It has two modes.
The first mode adds an id attribute to an existing block level tag.
So the cursor must be inside an opening tag not in a closing tag or in text.
So it works for me here (where the cursor is represented by the | char)
<p|>
If you instead select some text, it will use the second mode and will wrap an anchor a tag around the selected text and then put the id attribute on that anchor tag.
If we let [ ] indicate the highlighted text, then the following works just fine:
<p>This is a piece of [text.]</p>
(so the word "text." is selected and highlighted), it will produce the following assuming I want to add the id "jjj":
<p>This is a piece of <a id="jjj">text.</a></p>
There may be other modes to how people use it that I know nothing about (unfortunately).
Both of these modes seem to work perfectly in my testing.
So just to be clear how do you typically use it. I may learn something here!
The only bug I see is that it even works (incorrectly) in self-closing tags:
<hr|/>
Is that what you are seeing?
Thanks,
Kevin
|