Hello,
I am trying to implement a very simple functionality, allowing me to insert a custom html tag, for example like this
Unfortunately, when I am using editor.PasteHtml method, the cursor after calling that method is placed after the closing tag, so the text entered is not formatted as I would wish it. This only happens when I am not selecting any existing text. If I do, I used the "apply css class" method in order to perform desired operation.
I would like simply to use the functionality of, for example, the Bold-Tool, which inserts <strong> tag, and then the text is formatted bold. Just instead "strong", I'd like to use my custom tag with attribute.
Perhaps I missed something, but I would appreciate your help.
Thanks in advance,
Lukasz
I am trying to implement a very simple functionality, allowing me to insert a custom html tag, for example like this
<span class="myClass"></span> |
I would like simply to use the functionality of, for example, the Bold-Tool, which inserts <strong> tag, and then the text is formatted bold. Just instead "strong", I'd like to use my custom tag with attribute.
Perhaps I missed something, but I would appreciate your help.
Thanks in advance,
Lukasz