This is a migrated thread and some comments may be shown as answers.
Ability to get Text get_text() from the editor
1 Answer 80 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kevin
Top achievements
Rank 1
Kevin asked on 11 Dec 2010, 03:25 PM
Is there a way on the mvc editor to editor.get_text?   So far, the only things I am able to get are the html or the encoded values.  I need the actual text the way the end user sees it.

I have a requirement to edit text as follows.  The person types in something like this:
===================================
<errorOptions><notifyUsers><user><name>Grace Amazing

</name><email>grace_amzn@comcast.net</email></user></notifyusers</notifyUsers></errorOptions>
<errorOptions><notifyUsers><user><name>Grace Amazing

</name><email>grace_amzn@comcast.net</email></user></notifyusers</notifyUsers></errorOptions>
<errorOptions><notifyUsers><user><name>Grace Amazing

</name><email>grace_amzn@comcast.net</email></user></notifyusers</notifyUsers></errorOptions>
<errorOptions><notifyUsers><user><name>james
 
</name><email>bob@bob.net</email></user>
</
notifyusers</notifyUsers></errorOptions>

I need to be able to get the above text exactly as it appears (i.e. with the <error but without the spans and divs from the editor), not what I am recieving:
<span style="color: #000000; font-family: 'times new roman'; font-size: 14px; line-height: 21px;">
<div style="background-color: #ffffff;"><span style="margin-left: 0px !important;"><code style="color: #000000;"><</code><code style="color: #006699; font-weight: bold;">errorOptions</code><code style="color: #000000;">><</code><code style="color: #006699; font-weight: bold;">notifyUsers</code><code style="color: #000000;">><</code><code style="color: #006699; font-weight: bold;">user</code><code style="color: #000000;">><</code><code style="color: #006699; font-weight: bold;">name</code><code style="color: #000000;">>james<br />
</code></span> </div>
<div style="background-color: #ffffff;"><span style="margin-left: 0px !important;"><code style="color: #000000;"><span class="Apple-tab-span" style="white-space: pre;">    </span></</code><code style="color: #006699; font-weight: bold;">name</code><code style="color: #000000;">><</code><code style="color: #006699; font-weight: bold;">email</code><code style="color: #000000;">>bob@bob.net</</code><code style="color: #006699; font-weight: bold;">email</code><code style="color: #000000;">></</code><code style="color: #006699; font-weight: bold;">user</code><code style="color: #000000;">><br />
</</code><code style="color: #006699; font-weight: bold;">notifyusers</code><code style="color: #000000;"></notifyUsers></</code><code style="color: #006699; font-weight: bold;">errorOptions</code><code style="color: #000000;">></code></span></div>
</span>



            <div class="editor-label">
                <label for="SiteStyle">SiteStyle</label>
            </div>
            <div class="editor-field">
<div id="ctl00_MainContent_RadEditor1" class="RadEditor Default reWrapper" style="min-height: 400px; min-width: 4275px; width: 4275px; height: 400px; ">
<!-- 2010.2.929.40 --><div id="ctl00_MainContent_RadEditor1_dialogOpener" style="display:none;">
<div id="ctl00_MainContent_RadEditor1_dialogOpener_Window" style="display:none;">
<div id="ctl00_MainContent_RadEditor1_dialogOpener_Window_C">

</div><input id="ctl00_MainContent_RadEditor1_dialogOpener_Window_ClientState" name="ctl00_MainContent_RadEditor1_dialogOpener_Window_ClientState" type="hidden" autocomplete="off">
</div><input id="ctl00_MainContent_RadEditor1_dialogOpener_ClientState" name="ctl00_MainContent_RadEditor1_dialogOpener_ClientState" type="hidden" autocomplete="off">
</div><table id="ctl00_MainContent_RadEditor1Wrapper" cellpadding="0" cellspacing="0" style="table-layout: auto; width: 100%; height: 400px; ">
<tbody>
<tr>
<td class="reWrapper_corner reCorner_top_left">&nbsp;</td><td class="reWrapper_center reCenter_top" colspan="3">&nbsp;</td><td class="reWrapper_corner reCorner_top_right">&nbsp;</td>
</tr><tr>
<td class="reLeftVerticalSide" rowspan="4">&nbsp;</td><td rowspan="4" id="ctl00_MainContent_RadEditor1Left" class="reTlbVertical"></td><td id="ctl00_MainContent_RadEditor1Top" class="reToolCell" style="width:100%;"><div class="Default reToolbarWrapper">
<ul class="reToolbar Default" onmousedown="return false;">
<li class="reGrip grip_first">&nbsp;</li><li><a title="Print (CTRL+P)" class="reTool" href="#" unselectable="on"><span class="Print" unselectable="on">&nbsp;</span></a></li><li><a title="AJAX Spellchecker" class="reTool" href="#" unselectable="on"><span class="AjaxSpellCheck" unselectable="on">&nbsp;</span></a></li><li><a title="Find And Replace (CTRL+F)" class="reTool" href="#" unselectable="on"><span class="FindAndReplace" unselectable="on">&nbsp;</span></a></li><li><a title="Select All (CTRL+A)" class="reTool" href="#" unselectable="on"><span class="SelectAll" unselectable="on">&nbsp;</span></a></li><li><a title="Cut" class="reTool" href="#" unselectable="on"><span class="Cut" unselectable="on">&nbsp;</span></a></li><li><a title="Copy (CTRL+C)" class="reTool" href="#" unselectable="on"><span class="Copy" unselectable="on">&nbsp;</span></a></li><li><a title="Paste (CTRL+V)" class="reTool" href="#" unselectable="on"><span class="Paste" unselectable="on">&nbsp;</span></a></li><li><a title="Paste Options" class="reTool reSplitButton" href="#" unselectable="on"><span class="PasteStrip" unselectable="on">&nbsp;</span><span class="split_arrow">&nbsp;</span></a></li><li class="reSeparator">&nbsp;</li><li><a title="Undo (CTRL+Z)" class="reTool reSplitButton" href="#" unselectable="on"><span class="Undo" unselectable="on">&nbsp;</span><span class="split_arrow">&nbsp;</span></a></li><li><a title="Redo (CTRL+Y)" class="reTool reSplitButton" href="#" unselectable="on"><span class="Redo" unselectable="on">&nbsp;</span><span class="split_arrow">&nbsp;</span></a></li><li class="reGrip grip_last">&nbsp;</li>
</ul><ul class="reToolbar Default" onmousedown="return false;">
<li class="reGrip grip_first">&nbsp;</li><li><a title="Image Manager (CTRL+G)" class="reTool" href="#" unselectable="on"><span class="ImageManager" unselectable="on">&nbsp;</span></a></li><li><a title="Document Manager" class="reTool" href="#" unselectable="on"><span class="DocumentManager" unselectable="on">&nbsp;</span></a></li><li><a title="Flash Manager" class="reTool" href="#" unselectable="on"><span class="FlashManager" unselectable="on">&nbsp;</span></a></li><li><a title="Media Manager" class="reTool" href="#" unselectable="on"><span class="MediaManager" unselectable="on">&nbsp;</span></a></li><li><a title="Template Manager" class="reTool" href="#" unselectable="on"><span class="TemplateManager" unselectable="on">&nbsp;</span></a></li><li class="reSeparator">&nbsp;</li><li><a title="Hyperlink Manager (CTRL+K)" class="reTool" href="#" unselectable="on"><span class="LinkManager" unselectable="on">&nbsp;</span></a></li><li><a title="Remove Link (CTRL+SHIFT+K)" class="reTool" href="#" unselectable="on"><span class="Unlink" unselectable="on">&nbsp;</span></a></li><li class="reGrip grip_last">&nbsp;</li>
</ul><ul class="reToolbar Default" onmousedown="return false;">
<li class="reGrip grip_first">&nbsp;</li><li><a title="SuperScript" class="reTool" href="#" unselectable="on"><span class="Superscript" unselectable="on">&nbsp;</span></a></li><li><a title="Subscript" class="reTool" href="#" unselectable="on"><span class="Subscript" unselectable="on">&nbsp;</span></a></li><li><a title="New Paragraph" class="reTool" href="#" unselectable="on"><span class="InsertParagraph" unselectable="on">&nbsp;</span></a></li><li><a title="Insert Groupbox" class="reTool" href="#" unselectable="on"><span class="InsertGroupbox" unselectable="on">&nbsp;</span></a></li><li><a title="Horizontal Rule" class="reTool" href="#" unselectable="on"><span class="InsertHorizontalRule" unselectable="on">&nbsp;</span></a></li><li><a title="Insert Date" class="reTool" href="#" unselectable="on"><span class="InsertDate" unselectable="on">&nbsp;</span></a></li><li><a title="Insert Time" class="reTool" href="#" unselectable="on"><span class="InsertTime" unselectable="on">&nbsp;</span></a></li><li class="reSeparator">&nbsp;</li><li><a title="Format Code Block" class="reTool" href="#" unselectable="on"><span class="FormatCodeBlock" unselectable="on">&nbsp;</span></a></li><li class="reGrip grip_last">&nbsp;</li>
</ul><ul class="reToolbar Default" onmousedown="return false;">
<li class="reGrip grip_first">&nbsp;</li><li><a title="Paragraph Style" class="reDropdown" href="#" unselectable="on"><span class="FormatBlock" style="width:80px;" unselectable="on">Paragraph Style</span></a></li><li><a title="Font Name (CTRL+SHIFT+F)" class="reDropdown" href="#" unselectable="on"><span class="FontName" style="width:80px;" unselectable="on">Font Name</span></a></li><li><a title="Real font size (CTRL+SHIFT+P)" class="reDropdown" href="#" unselectable="on"><span class="RealFontSize" style="width:34px;" unselectable="on">Real font size</span></a></li><li class="reGrip grip_last">&nbsp;</li>
</ul><ul class="reToolbar Default" onmousedown="return false;">
<li class="reGrip grip_first">&nbsp;</li><li><a title="Set Absolute Position" class="reTool" href="#" unselectable="on"><span class="AbsolutePosition" unselectable="on">&nbsp;</span></a></li><li class="reSeparator">&nbsp;</li><li><a title="Bold (CTRL+B)" class="reTool" href="#" unselectable="on"><span class="Bold" unselectable="on">&nbsp;</span></a></li><li><a title="Italic (CTRL+I)" class="reTool" href="#" unselectable="on"><span class="Italic" unselectable="on">&nbsp;</span></a></li><li><a title="Underline (CTRL+U)" class="reTool" href="#" unselectable="on"><span class="Underline" unselectable="on">&nbsp;</span></a></li><li><a title="Strikethrough" class="reTool" href="#" unselectable="on"><span class="StrikeThrough" unselectable="on">&nbsp;</span></a></li><li class="reSeparator">&nbsp;</li><li><a title="Align Left" class="reTool" href="#" unselectable="on"><span class="JustifyLeft" unselectable="on">&nbsp;</span></a></li><li><a title="Align Center" class="reTool" href="#" unselectable="on"><span class="JustifyCenter" unselectable="on">&nbsp;</span></a></li><li><a title="Align Right" class="reTool" href="#" unselectable="on"><span class="JustifyRight" unselectable="on">&nbsp;</span></a></li><li><a title="Justify" class="reTool" href="#" unselectable="on"><span class="JustifyFull" unselectable="on">&nbsp;</span></a></li><li><a title="Remove alignment" class="reTool" href="#" unselectable="on"><span class="JustifyNone" unselectable="on">&nbsp;</span></a></li><li class="reSeparator">&nbsp;</li><li><a title="Indent" class="reTool" href="#" unselectable="on"><span class="Indent" unselectable="on">&nbsp;</span></a></li><li><a title="Outdent" class="reTool" href="#" unselectable="on"><span class="Outdent" unselectable="on">&nbsp;</span></a></li><li class="reSeparator">&nbsp;</li><li><a title="Numbered List" class="reTool" href="#" unselectable="on"><span class="InsertOrderedList" unselectable="on">&nbsp;</span></a></li><li><a title="Bullet List" class="reTool" href="#" unselectable="on"><span class="InsertUnorderedList" unselectable="on">&nbsp;</span></a></li><li class="reSeparator">&nbsp;</li><li><a title="Show/Hide Border" class="reTool reTool_selected" href="#" unselectable="on"><span class="ToggleTableBorder" unselectable="on">&nbsp;</span></a></li><li><a title="XHTML Validator" class="reTool" href="#" unselectable="on"><span class="XhtmlValidator" unselectable="on">&nbsp;</span></a></li><li class="reGrip grip_last">&nbsp;</li>
</ul><ul class="reToolbar Default" onmousedown="return false;">
<li class="reGrip grip_first">&nbsp;</li><li><a title="Foreground Color" class="reTool reSplitButton" href="#" unselectable="on"><span class="ForeColor" unselectable="on">&nbsp;</span><span class="split_arrow">&nbsp;</span></a></li><li><a title="Background Color" class="reTool reSplitButton" href="#" unselectable="on"><span class="BackColor" unselectable="on">&nbsp;</span><span class="split_arrow">&nbsp;</span></a></li><li><a title="Apply CSS Class" class="reDropdown" href="#" unselectable="on"><span class="ApplyClass" style="width:80px;" unselectable="on">Apply CSS Class</span></a></li><li><a title="Format Stripper" class="reTool reSplitButton" href="#" unselectable="on"><span class="FormatStripper" unselectable="on">&nbsp;</span><span class="split_arrow">&nbsp;</span></a></li><li class="reGrip grip_last">&nbsp;</li>
</ul><ul class="reToolbar Default" onmousedown="return false;">
<li class="reGrip grip_first">&nbsp;</li><li><a title="Insert Symbol" class="reTool reSplitButton" href="#" unselectable="on"><span class="InsertSymbol" unselectable="on">&nbsp;</span><span class="split_arrow">&nbsp;</span></a></li><li><a title="Insert Table" class="reTool reSplitButton" href="#" unselectable="on"><span class="InsertTable" unselectable="on">&nbsp;</span><span class="split_arrow">&nbsp;</span></a></li><li><a title="Insert Form Element" class="reTool reSplitButton" href="#" unselectable="on"><span class="InsertFormElement" unselectable="on">&nbsp;</span><span class="split_arrow">&nbsp;</span></a></li><li><a title="Insert Code Snippet" class="reTool reSplitButton" href="#" unselectable="on"><span class="InsertSnippet" unselectable="on">&nbsp;</span><span class="split_arrow">&nbsp;</span></a></li><li><a title="Image Map Editor" class="reTool" href="#" unselectable="on"><span class="ImageMapDialog" unselectable="on">&nbsp;</span></a></li><li><a title="Custom Links (CTRL+ALT+K)" class="reDropdown" href="#" unselectable="on"><span class="InsertCustomLink" style="width:80px;" unselectable="on">Custom Links</span></a></li><li class="reSeparator">&nbsp;</li><li><a title="Convert to lower case" class="reTool" href="#" unselectable="on"><span class="ConvertToLower" unselectable="on">&nbsp;</span></a></li><li><a title="Convert to upper case" class="reTool" href="#" unselectable="on"><span class="ConvertToUpper" unselectable="on">&nbsp;</span></a></li><li class="reSeparator">&nbsp;</li><li><a title="Zoom" class="reDropdown" href="#" unselectable="on"><span class="Zoom" style="width:44px;" unselectable="on">Zoom</span></a></li><li><a title="Module Manager" class="reTool reSplitButton" href="#" unselectable="on"><span class="ModuleManager" unselectable="on">&nbsp;</span><span class="split_arrow">&nbsp;</span></a></li><li><a title="Toggle Full Screen Mode (F11)" class="reTool" href="#" unselectable="on"><span class="ToggleScreenMode" unselectable="on">&nbsp;</span></a></li><li><a title="About RadEditor" class="reTool" href="#" unselectable="on"><span class="AboutDialog" unselectable="on">&nbsp;</span></a></li><li class="reGrip grip_last">&nbsp;</li>
</ul>
</div></td><td rowspan="4" id="ctl00_MainContent_RadEditor1Right" class="reTlbVertical"></td><td rowspan="4" class="reRightVerticalSide">&nbsp;</td>
</tr><tr>
<td valign="top" id="ctl00_MainContent_RadEditor1Center" class="reContentCell" style="height:100%;"><label for="ctl00_MainContent_RadEditor1ContentHiddenTextarea" style="display:none;">RadEditor hidden textarea</label><textarea id="ctl00_MainContent_RadEditor1ContentHiddenTextarea" name="ctl00$MainContent$RadEditor1" rows="4" cols="20" style="display:none;">%26lt%3berrorOptions%26gt%3b%26lt%3bnotifyUsers%26gt%3b%26lt%3buser%26gt%3b%26lt%3bname%26gt%3bGrace Amazing%26lt%3b/name%26gt%3b%26lt%3bemail%26gt%3bgrace_amzn@comcast.net%26lt%3b/email%26gt%3b%26lt%3b/user%26gt%3b%26lt%3b/notifyusers%26lt%3b/notifyUsers%26gt%3b%26lt%3b/errorOptions%26gt%3b</textarea><iframe frameborder="0" src="javascript:'<html></html>';" style="width: 100%; height: 100%; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " title="Rich text editor with ID ctl00_MainContent_RadEditor1" id="ctl00_MainContent_RadEditor1_contentIframe">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe></td>
</tr><tr>
<td class="reToolZone"><table cellpadding="0" cellspacing="0" id="ctl00_MainContent_RadEditor1_BottomTable" style="width:100%;">
<tbody>
<tr>
<td class="reEditorModesCell"><div class="reEditorModes" id="ctl00_MainContent_RadEditor1_ModesWrapper">
<ul>
<li><a href="javascript:void(0);" title="Design" class="reMode_design reMode_selected"><span>Design</span></a></li><li><a href="javascript:void(0);" title="HTML" class="reMode_html"><span>HTML</span></a></li><li><a href="javascript:void(0);" title="Preview" class="reMode_preview"><span>Preview</span></a></li>
</ul>
</div></td><td class="reBottomZone" id="ctl00_MainContent_RadEditor1Bottom"><div class="reModule"><span style="line-height:22px">Words: 2 &nbsp;&nbsp;Characters: 33&nbsp;</span></div></td><td class="reResizeCell" valign="bottom" align="right" style="width:15px;"><div id="ctl00_MainContent_RadEditor1BottomResizer" style="cursor: se-resize; ">
&nbsp;
</div></td>
</tr>
</tbody>
</table><noscript>
&lt;p&gt;RadEditor - please enable JavaScript to use the rich text editor.&lt;/p&gt;
</noscript></td>
</tr><tr>
<td id="ctl00_MainContent_RadEditor1Module" class="reToolZone" style=""><div class="reModule">&nbsp;</div><div class="reModule" style="height: 50px; "></div><div style="display: none; "></div></td>
</tr><tr>
<td class="reWrapper_corner reCorner_bottom_left">&nbsp;</td><td class="reWrapper_center reCenter_bottom" colspan="3">&nbsp;</td><td class="reWrapper_corner reCorner_bottom_right">&nbsp;</td>
</tr>
</tbody>
</table><input id="ctl00_MainContent_RadEditor1_ClientState" name="ctl00_MainContent_RadEditor1_ClientState" type="hidden" autocomplete="off">
</div>
            </div>

        </pre></pre>
<pre>&lt;errorOptions&gt;&lt;notifyUsers&gt;&lt;user&gt;&lt;name&gt;Grace Amazing&lt;/name&gt;&lt;email&gt;grace_amzn@comcast.net&lt;/email&gt;&lt;/user&gt;&lt;/notifyusers&lt;/notifyUsers&gt;&lt;/errorOptions&gt;<br>
non encode pre
<pre><erroroptions><notifyusers><user><name>Grace Amazing</name><email>grace_amzn@comcast.net</email></user></notifyusers></erroroptions><br>

            <div class="editor-label">
                <label for="SiteStyle">SiteStyle</label>
            </div>
            <div class="editor-field">
<div id="ctl00_MainContent_RadEditor1" class="RadEditor Default reWrapper" style="min-height: 400px; min-width: 4275px; width: 4275px; height: 400px; ">
<!-- 2010.2.929.40 --><div id="ctl00_MainContent_RadEditor1_dialogOpener" style="display:none;">
<div id="ctl00_MainContent_RadEditor1_dialogOpener_Window" style="display:none;">
<div id="ctl00_MainContent_RadEditor1_dialogOpener_Window_C">

</div><input id="ctl00_MainContent_RadEditor1_dialogOpener_Window_ClientState" name="ctl00_MainContent_RadEditor1_dialogOpener_Window_ClientState" type="hidden" autocomplete="off">
</div><input id="ctl00_MainContent_RadEditor1_dialogOpener_ClientState" name="ctl00_MainContent_RadEditor1_dialogOpener_ClientState" type="hidden" autocomplete="off">
</div><table id="ctl00_MainContent_RadEditor1Wrapper" cellpadding="0" cellspacing="0" style="table-layout: auto; width: 100%; height: 400px; ">
<tbody>
<tr>
<td class="reWrapper_corner reCorner_top_left">&nbsp;</td><td class="reWrapper_center reCenter_top" colspan="3">&nbsp;</td><td class="reWrapper_corner reCorner_top_right">&nbsp;</td>
</tr><tr>
<td class="reLeftVerticalSide" rowspan="4">&nbsp;</td><td rowspan="4" id="ctl00_MainContent_RadEditor1Left" class="reTlbVertical"></td><td id="ctl00_MainContent_RadEditor1Top" class="reToolCell" style="width:100%;"><div class="Default reToolbarWrapper">
<ul class="reToolbar Default" onmousedown="return false;">
<li class="reGrip grip_first">&nbsp;</li><li><a title="Print (CTRL+P)" class="reTool" href="#" unselectable="on"><span class="Print" unselectable="on">&nbsp;</span></a></li><li><a title="AJAX Spellchecker" class="reTool" href="#" unselectable="on"><span class="AjaxSpellCheck" unselectable="on">&nbsp;</span></a></li><li><a title="Find And Replace (CTRL+F)" class="reTool" href="#" unselectable="on"><span class="FindAndReplace" unselectable="on">&nbsp;</span></a></li><li><a title="Select All (CTRL+A)" class="reTool" href="#" unselectable="on"><span class="SelectAll" unselectable="on">&nbsp;</span></a></li><li><a title="Cut" class="reTool" href="#" unselectable="on"><span class="Cut" unselectable="on">&nbsp;</span></a></li><li><a title="Copy (CTRL+C)" class="reTool" href="#" unselectable="on"><span class="Copy" unselectable="on">&nbsp;</span></a></li><li><a title="Paste (CTRL+V)" class="reTool" href="#" unselectable="on"><span class="Paste" unselectable="on">&nbsp;</span></a></li><li><a title="Paste Options" class="reTool reSplitButton" href="#" unselectable="on"><span class="PasteStrip" unselectable="on">&nbsp;</span><span class="split_arrow">&nbsp;</span></a></li><li class="reSeparator">&nbsp;</li><li><a title="Undo (CTRL+Z)" class="reTool reSplitButton" href="#" unselectable="on"><span class="Undo" unselectable="on">&nbsp;</span><span class="split_arrow">&nbsp;</span></a></li><li><a title="Redo (CTRL+Y)" class="reTool reSplitButton" href="#" unselectable="on"><span class="Redo" unselectable="on">&nbsp;</span><span class="split_arrow">&nbsp;</span></a></li><li class="reGrip grip_last">&nbsp;</li>
</ul><ul class="reToolbar Default" onmousedown="return false;">
<li class="reGrip grip_first">&nbsp;</li><li><a title="Image Manager (CTRL+G)" class="reTool" href="#" unselectable="on"><span class="ImageManager" unselectable="on">&nbsp;</span></a></li><li><a title="Document Manager" class="reTool" href="#" unselectable="on"><span class="DocumentManager" unselectable="on">&nbsp;</span></a></li><li><a title="Flash Manager" class="reTool" href="#" unselectable="on"><span class="FlashManager" unselectable="on">&nbsp;</span></a></li><li><a title="Media Manager" class="reTool" href="#" unselectable="on"><span class="MediaManager" unselectable="on">&nbsp;</span></a></li><li><a title="Template Manager" class="reTool" href="#" unselectable="on"><span class="TemplateManager" unselectable="on">&nbsp;</span></a></li><li class="reSeparator">&nbsp;</li><li><a title="Hyperlink Manager (CTRL+K)" class="reTool" href="#" unselectable="on"><span class="LinkManager" unselectable="on">&nbsp;</span></a></li><li><a title="Remove Link (CTRL+SHIFT+K)" class="reTool" href="#" unselectable="on"><span class="Unlink" unselectable="on">&nbsp;</span></a></li><li class="reGrip grip_last">&nbsp;</li>
</ul><ul class="reToolbar Default" onmousedown="return false;">
<li class="reGrip grip_first">&nbsp;</li><li><a title="SuperScript" class="reTool" href="#" unselectable="on"><span class="Superscript" unselectable="on">&nbsp;</span></a></li><li><a title="Subscript" class="reTool" href="#" unselectable="on"><span class="Subscript" unselectable="on">&nbsp;</span></a></li><li><a title="New Paragraph" class="reTool" href="#" unselectable="on"><span class="InsertParagraph" unselectable="on">&nbsp;</span></a></li><li><a title="Insert Groupbox" class="reTool" href="#" unselectable="on"><span class="InsertGroupbox" unselectable="on">&nbsp;</span></a></li><li><a title="Horizontal Rule" class="reTool" href="#" unselectable="on"><span class="InsertHorizontalRule" unselectable="on">&nbsp;</span></a></li><li><a title="Insert Date" class="reTool" href="#" unselectable="on"><span class="InsertDate" unselectable="on">&nbsp;</span></a></li><li><a title="Insert Time" class="reTool" href="#" unselectable="on"><span class="InsertTime" unselectable="on">&nbsp;</span></a></li><li class="reSeparator">&nbsp;</li><li><a title="Format Code Block" class="reTool" href="#" unselectable="on"><span class="FormatCodeBlock" unselectable="on">&nbsp;</span></a></li><li class="reGrip grip_last">&nbsp;</li>
</ul><ul class="reToolbar Default" onmousedown="return false;">
<li class="reGrip grip_first">&nbsp;</li><li><a title="Paragraph Style" class="reDropdown" href="#" unselectable="on"><span class="FormatBlock" style="width:80px;" unselectable="on">Paragraph Style</span></a></li><li><a title="Font Name (CTRL+SHIFT+F)" class="reDropdown" href="#" unselectable="on"><span class="FontName" style="width:80px;" unselectable="on">Font Name</span></a></li><li><a title="Real font size (CTRL+SHIFT+P)" class="reDropdown" href="#" unselectable="on"><span class="RealFontSize" style="width:34px;" unselectable="on">Real font size</span></a></li><li class="reGrip grip_last">&nbsp;</li>
</ul><ul class="reToolbar Default" onmousedown="return false;">
<li class="reGrip grip_first">&nbsp;</li><li><a title="Set Absolute Position" class="reTool" href="#" unselectable="on"><span class="AbsolutePosition" unselectable="on">&nbsp;</span></a></li><li class="reSeparator">&nbsp;</li><li><a title="Bold (CTRL+B)" class="reTool" href="#" unselectable="on"><span class="Bold" unselectable="on">&nbsp;</span></a></li><li><a title="Italic (CTRL+I)" class="reTool" href="#" unselectable="on"><span class="Italic" unselectable="on">&nbsp;</span></a></li><li><a title="Underline (CTRL+U)" class="reTool" href="#" unselectable="on"><span class="Underline" unselectable="on">&nbsp;</span></a></li><li><a title="Strikethrough" class="reTool" href="#" unselectable="on"><span class="StrikeThrough" unselectable="on">&nbsp;</span></a></li><li class="reSeparator">&nbsp;</li><li><a title="Align Left" class="reTool" href="#" unselectable="on"><span class="JustifyLeft" unselectable="on">&nbsp;</span></a></li><li><a title="Align Center" class="reTool" href="#" unselectable="on"><span class="JustifyCenter" unselectable="on">&nbsp;</span></a></li><li><a title="Align Right" class="reTool" href="#" unselectable="on"><span class="JustifyRight" unselectable="on">&nbsp;</span></a></li><li><a title="Justify" class="reTool" href="#" unselectable="on"><span class="JustifyFull" unselectable="on">&nbsp;</span></a></li><li><a title="Remove alignment" class="reTool" href="#" unselectable="on"><span class="JustifyNone" unselectable="on">&nbsp;</span></a></li><li class="reSeparator">&nbsp;</li><li><a title="Indent" class="reTool" href="#" unselectable="on"><span class="Indent" unselectable="on">&nbsp;</span></a></li><li><a title="Outdent" class="reTool" href="#" unselectable="on"><span class="Outdent" unselectable="on">&nbsp;</span></a></li><li class="reSeparator">&nbsp;</li><li><a title="Numbered List" class="reTool" href="#" unselectable="on"><span class="InsertOrderedList" unselectable="on">&nbsp;</span></a></li><li><a title="Bullet List" class="reTool" href="#" unselectable="on"><span class="InsertUnorderedList" unselectable="on">&nbsp;</span></a></li><li class="reSeparator">&nbsp;</li><li><a title="Show/Hide Border" class="reTool reTool_selected" href="#" unselectable="on"><span class="ToggleTableBorder" unselectable="on">&nbsp;</span></a></li><li><a title="XHTML Validator" class="reTool" href="#" unselectable="on"><span class="XhtmlValidator" unselectable="on">&nbsp;</span></a></li><li class="reGrip grip_last">&nbsp;</li>
</ul><ul class="reToolbar Default" onmousedown="return false;">
<li class="reGrip grip_first">&nbsp;</li><li><a title="Foreground Color" class="reTool reSplitButton" href="#" unselectable="on"><span class="ForeColor" unselectable="on">&nbsp;</span><span class="split_arrow">&nbsp;</span></a></li><li><a title="Background Color" class="reTool reSplitButton" href="#" unselectable="on"><span class="BackColor" unselectable="on">&nbsp;</span><span class="split_arrow">&nbsp;</span></a></li><li><a title="Apply CSS Class" class="reDropdown" href="#" unselectable="on"><span class="ApplyClass" style="width:80px;" unselectable="on">Apply CSS Class</span></a></li><li><a title="Format Stripper" class="reTool reSplitButton" href="#" unselectable="on"><span class="FormatStripper" unselectable="on">&nbsp;</span><span class="split_arrow">&nbsp;</span></a></li><li class="reGrip grip_last">&nbsp;</li>
</ul><ul class="reToolbar Default" onmousedown="return false;">
<li class="reGrip grip_first">&nbsp;</li><li><a title="Insert Symbol" class="reTool reSplitButton" href="#" unselectable="on"><span class="InsertSymbol" unselectable="on">&nbsp;</span><span class="split_arrow">&nbsp;</span></a></li><li><a title="Insert Table" class="reTool reSplitButton" href="#" unselectable="on"><span class="InsertTable" unselectable="on">&nbsp;</span><span class="split_arrow">&nbsp;</span></a></li><li><a title="Insert Form Element" class="reTool reSplitButton" href="#" unselectable="on"><span class="InsertFormElement" unselectable="on">&nbsp;</span><span class="split_arrow">&nbsp;</span></a></li><li><a title="Insert Code Snippet" class="reTool reSplitButton" href="#" unselectable="on"><span class="InsertSnippet" unselectable="on">&nbsp;</span><span class="split_arrow">&nbsp;</span></a></li><li><a title="Image Map Editor" class="reTool" href="#" unselectable="on"><span class="ImageMapDialog" unselectable="on">&nbsp;</span></a></li><li><a title="Custom Links (CTRL+ALT+K)" class="reDropdown" href="#" unselectable="on"><span class="InsertCustomLink" style="width:80px;" unselectable="on">Custom Links</span></a></li><li class="reSeparator">&nbsp;</li><li><a title="Convert to lower case" class="reTool" href="#" unselectable="on"><span class="ConvertToLower" unselectable="on">&nbsp;</span></a></li><li><a title="Convert to upper case" class="reTool" href="#" unselectable="on"><span class="ConvertToUpper" unselectable="on">&nbsp;</span></a></li><li class="reSeparator">&nbsp;</li><li><a title="Zoom" class="reDropdown" href="#" unselectable="on"><span class="Zoom" style="width:44px;" unselectable="on">Zoom</span></a></li><li><a title="Module Manager" class="reTool reSplitButton" href="#" unselectable="on"><span class="ModuleManager" unselectable="on">&nbsp;</span><span class="split_arrow">&nbsp;</span></a></li><li><a title="Toggle Full Screen Mode (F11)" class="reTool" href="#" unselectable="on"><span class="ToggleScreenMode" unselectable="on">&nbsp;</span></a></li><li><a title="About RadEditor" class="reTool" href="#" unselectable="on"><span class="AboutDialog" unselectable="on">&nbsp;</span></a></li><li class="reGrip grip_last">&nbsp;</li>
</ul>
</div></td><td rowspan="4" id="ctl00_MainContent_RadEditor1Right" class="reTlbVertical"></td><td rowspan="4" class="reRightVerticalSide">&nbsp;</td>
</tr><tr>
<td valign="top" id="ctl00_MainContent_RadEditor1Center" class="reContentCell" style="height:100%;"><label for="ctl00_MainContent_RadEditor1ContentHiddenTextarea" style="display:none;">RadEditor hidden textarea</label><textarea id="ctl00_MainContent_RadEditor1ContentHiddenTextarea" name="ctl00$MainContent$RadEditor1" rows="4" cols="20" style="display:none;">%26lt%3berrorOptions%26gt%3b%26lt%3bnotifyUsers%26gt%3b%26lt%3buser%26gt%3b%26lt%3bname%26gt%3bGrace Amazing%26lt%3b/name%26gt%3b%26lt%3bemail%26gt%3bgrace_amzn@comcast.net%26lt%3b/email%26gt%3b%26lt%3b/user%26gt%3b%26lt%3b/notifyusers%26lt%3b/notifyUsers%26gt%3b%26lt%3b/errorOptions%26gt%3b</textarea><iframe frameborder="0" src="javascript:'<html></html>';" style="width: 100%; height: 100%; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " title="Rich text editor with ID ctl00_MainContent_RadEditor1" id="ctl00_MainContent_RadEditor1_contentIframe">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe></td>
</tr><tr>
<td class="reToolZone"><table cellpadding="0" cellspacing="0" id="ctl00_MainContent_RadEditor1_BottomTable" style="width:100%;">
<tbody>
<tr>
<td class="reEditorModesCell"><div class="reEditorModes" id="ctl00_MainContent_RadEditor1_ModesWrapper">
<ul>
<li><a href="javascript:void(0);" title="Design" class="reMode_design reMode_selected"><span>Design</span></a></li><li><a href="javascript:void(0);" title="HTML" class="reMode_html"><span>HTML</span></a></li><li><a href="javascript:void(0);" title="Preview" class="reMode_preview"><span>Preview</span></a></li>
</ul>
</div></td><td class="reBottomZone" id="ctl00_MainContent_RadEditor1Bottom"><div class="reModule"><span style="line-height:22px">Words: 2 &nbsp;&nbsp;Characters: 33&nbsp;</span></div></td><td class="reResizeCell" valign="bottom" align="right" style="width:15px;"><div id="ctl00_MainContent_RadEditor1BottomResizer" style="cursor: se-resize; ">
&nbsp;
</div></td>
</tr>
</tbody>
</table><noscript>
&lt;p&gt;RadEditor - please enable JavaScript to use the rich text editor.&lt;/p&gt;
</noscript></td>
</tr><tr>
<td id="ctl00_MainContent_RadEditor1Module" class="reToolZone" style=""><div class="reModule">&nbsp;</div><div class="reModule" style="height: 50px; "></div><div style="display: none; "></div></td>
</tr><tr>
<td class="reWrapper_corner reCorner_bottom_left">&nbsp;</td><td class="reWrapper_center reCenter_bottom" colspan="3">&nbsp;</td><td class="reWrapper_corner reCorner_bottom_right">&nbsp;</td>
</tr>
</tbody>
</table><input id="ctl00_MainContent_RadEditor1_ClientState" name="ctl00_MainContent_RadEditor1_ClientState" type="hidden" autocomplete="off">
</div>
            </div>

        </pre></pre

1 Answer, 1 is accepted

Sort by
0
Demon
Top achievements
Rank 1
answered on 11 Dec 2010, 05:55 PM
You can get the editor value and then strip all tags like this:

http://stackoverflow.com/questions/822452/strip-html-from-text-javascript
Tags
Editor
Asked by
Kevin
Top achievements
Rank 1
Answers by
Demon
Top achievements
Rank 1
Share this question
or