Hi all,
I'm trying to migrate an application from the old RadEditor Q2 2007 SP1 to the new Ajax Editor Q3 2010.
I'm using VS2010 compiling for the .NET 2.0 framework and IE6+ as a target browser.
I use the editor to allow users to create letters: so far I've managed to get the new Editor to display on the page and display the letters.
The problem is: this application needs to set the Editor to one mode only, either Preview (read only) or Design (editable). It seems to be a pretty simple thing and everything works fine when I set it to read only like this:
Editor.Enabled = false;
Editor.EditModes = EditModes.Preview;
The Editor comes up in read-only preview mode as expected.
But if I set it like this:
Editor.Enabled = true;
Editor.EditModes = EditModes.Design;
The Editor comes up again in read-only preview mode!
But if I set it like this:
Editor.Enabled = true;
Editor.EditModes = EditModes.Design | EditModes.Preview;
It comes up in preview mode but displays the buttons to switch between preview and design, but I have to click the "Preview" button first and then the "Design" button after that to get into design mode and start editing.
Although it kind of works, it's obviously not acceptable: what I need is ONE mode active at a time and no way to switch between modes.
Can anybody please help?
More info: I'm setting the EditModes property in the page_load event handler and using IE8 in compatibility mode for the testing.
Thanks
Mauro
.
I'm trying to migrate an application from the old RadEditor Q2 2007 SP1 to the new Ajax Editor Q3 2010.
I'm using VS2010 compiling for the .NET 2.0 framework and IE6+ as a target browser.
I use the editor to allow users to create letters: so far I've managed to get the new Editor to display on the page and display the letters.
The problem is: this application needs to set the Editor to one mode only, either Preview (read only) or Design (editable). It seems to be a pretty simple thing and everything works fine when I set it to read only like this:
Editor.Enabled = false;
Editor.EditModes = EditModes.Preview;
The Editor comes up in read-only preview mode as expected.
But if I set it like this:
Editor.Enabled = true;
Editor.EditModes = EditModes.Design;
The Editor comes up again in read-only preview mode!
But if I set it like this:
Editor.Enabled = true;
Editor.EditModes = EditModes.Design | EditModes.Preview;
It comes up in preview mode but displays the buttons to switch between preview and design, but I have to click the "Preview" button first and then the "Design" button after that to get into design mode and start editing.
Although it kind of works, it's obviously not acceptable: what I need is ONE mode active at a time and no way to switch between modes.
Can anybody please help?
More info: I'm setting the EditModes property in the page_load event handler and using IE8 in compatibility mode for the testing.
Thanks
Mauro
.