In radEditor I have a custon button to set teg at begin en end of my selection like this :
Telerik.Web.UI.Editor.CommandList[
"Schedule"] = function (commandName, editor, args) {
var selection = editor.getSelectionHtml();
//Remove all custom tags before insert new custom tags
var html = editor.get_html(true).replace("<ordredujour>", "");
html.replace(
"</ordredujour>", "");
var newhtml = html.replace(selection, '<ordredujour>' + selection + '</ordredujour>');
editor.set_html(newhtml);
}
I must remove old tag if old tag exist because i want only one <ordredujour> tag in all my html
My problem is that in HTML tab, I don't see my custom tag around selection. Do you know why ?