Simple custom tag

dj

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>

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.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.