Hi, I am attempting to add a class attribute to the unorderedlist HTML within the editor. So aiming for HTML markup of
"<ul class='contentbullets' ><li> </li></ul>"
I am using the following below where I never enter the callBackFnUL.
If i change the code to, see below, then the desired HTML markup is achieved. However, two parts of HTML are added. 1. The default HTML generated by the editor at the correct text insert point. 2. My desired HTML markup but this is placed at the end of the editor's content.
Does anyone know how to achieve adding a class attribute to the unorderedlist HTML within the editor?
Many thanks. Scott.
"<ul class='contentbullets' ><li> </li></ul>"
I am using the following below where I never enter the callBackFnUL.
| var insertUnorderedListCommand = RadEditorCommandList["InsertUnorderedList"]; | |
| RadEditorCommandList["InsertUnorderedList"] = function(commandName, editor, oTool) | |
| { | |
| insertUnorderedListCommand (commandName, editor, callBackFnUL); | |
| function callBackFnUL(result) | |
| { | |
| if (result) | |
| { | |
| editor.PasteHtml("<ul class='contentbullets' ><li> </li></ul>"); | |
| }; | |
| } | |
| } |
If i change the code to, see below, then the desired HTML markup is achieved. However, two parts of HTML are added. 1. The default HTML generated by the editor at the correct text insert point. 2. My desired HTML markup but this is placed at the end of the editor's content.
| var insertUnorderedListCommand = RadEditorCommandList["InsertUnorderedList"]; | |
| RadEditorCommandList["InsertUnorderedList"] = function(commandName, editor, oTool) | |
| { | |
| insertUnorderedListCommand (commandName, editor, callBackFnUL); | |
| editor.PasteHtml("<ul class='contentbullets' ><li> </li></ul>"); | |
| } |
Does anyone know how to achieve adding a class attribute to the unorderedlist HTML within the editor?
Many thanks. Scott.
