Hi,
My query is regarding Rad Editor.
The problem is when I create a custom commands in rad editor
to apply styles to content as font size, font type etc.,.
But at the same when I try to apply CSS class to content it
is not working for me.
Below is my Code
Below is the code working
EditorCommandList["Mandatory"] = function (commandName, editor,
args) {
if (editor.getSelectionHtml() != "") {
editor.fire("FontSize",
{ value: "40" });
}
}
Below is the code
not working
EditorCommandList["GuideLines"] = function (commandName,
editor, args) {
if (editor.getSelectionHtml() != "") {
editor.fire("ApplyClass", { value: "radGuideLines " });
}
}
In the above code when i try apply a class using "ApplyClass" command it is not working.
Please provide me solution ASAP.
Thanks