Hello all,
I am using a RadEditor in where I need to enable Edit Mode or Preview Mode based on permissions (Only specific users can edit the content).
So, it is working OK but because of space, I need to use the "Floating" toolbar option.
The issue appears when I set Preview Mode + Floating Toolbar...and it is that the toolbar allows me to edit the content...If I use "Default" Toolbar mode...it appears as "grey out" and I cannot use it...achieving what I need...but if I go back to "Floating" mode, the restriction goes off.
Please let me know if you have any ideas about what could be happening.
This is what I am calling in the "OnLoad" method...
I also tried with JavaScript with no luck...
Thanks all for your help!!!
Christian
I am using a RadEditor in where I need to enable Edit Mode or Preview Mode based on permissions (Only specific users can edit the content).
So, it is working OK but because of space, I need to use the "Floating" toolbar option.
The issue appears when I set Preview Mode + Floating Toolbar...and it is that the toolbar allows me to edit the content...If I use "Default" Toolbar mode...it appears as "grey out" and I cannot use it...achieving what I need...but if I go back to "Floating" mode, the restriction goes off.
Please let me know if you have any ideas about what could be happening.
This is what I am calling in the "OnLoad" method...
private
void
SetEditorMode()
{
this
.HelpContentRadEditor.ToolbarMode = EditorToolbarMode.Floating;
this
.HelpContentRadEditor.EditModes = EditModes.Preview;
}
I also tried with JavaScript with no luck...
function
OnClientLoad(editor, args) {
setTimeout(
function
() {
editor.set_mode(4);
}, 150);
}
Thanks all for your help!!!
Christian