I need to get the current editor html content on the client side while the editor is in Preview mode.
The code for this is
This works fine with Internet Explorer, but does not return the current html content under Firefox.
Example
the following checkbox is unchecked.
In Internet Explorer, checking the checkbox in preview mode and then running the get_html command will return the form element with its current status.
In Firefox, it always returns the initial state of the content, not the current state. ie.
If the checkbox is checked when entering preview mode, get_html will always return:
If the checkbox is unchecked when entering preview mode, get_html will always return:
Testing with IE8 and Firefox 3.6. Telerik Q1 2010.
The code for this is
var editor = $find("<%=RadEditor1.ClientID%>"); |
var editorcontent = editor.get_html(false); |
This works fine with Internet Explorer, but does not return the current html content under Firefox.
Example
the following checkbox is unchecked.
<input name="Check 1" id="Check1" type="checkbox" submitname="Check 1" value="on"/> |
In Internet Explorer, checking the checkbox in preview mode and then running the get_html command will return the form element with its current status.
<input name="Check 1" id="Check1" type="checkbox" CHECKED submitname="Check 1" value="on" /> |
In Firefox, it always returns the initial state of the content, not the current state. ie.
If the checkbox is checked when entering preview mode, get_html will always return:
<input name="Check 1" value="on" id="Check1" type="checkbox" checked="checked" submitname="Check 1" /> |
If the checkbox is unchecked when entering preview mode, get_html will always return:
<input name="Check 1" value="on" id="Check1" type="checkbox" submitname="Check 1" /> |
Testing with IE8 and Firefox 3.6. Telerik Q1 2010.