This question is locked. New answers and comments are not allowed.
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:
===================================
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:
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"> </td><td class="reWrapper_center reCenter_top" colspan="3"> </td><td class="reWrapper_corner reCorner_top_right"> </td>
</tr><tr>
<td class="reLeftVerticalSide" rowspan="4"> </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"> </li><li><a title="Print (CTRL+P)" class="reTool" href="#" unselectable="on"><span class="Print" unselectable="on"> </span></a></li><li><a title="AJAX Spellchecker" class="reTool" href="#" unselectable="on"><span class="AjaxSpellCheck" unselectable="on"> </span></a></li><li><a title="Find And Replace (CTRL+F)" class="reTool" href="#" unselectable="on"><span class="FindAndReplace" unselectable="on"> </span></a></li><li><a title="Select All (CTRL+A)" class="reTool" href="#" unselectable="on"><span class="SelectAll" unselectable="on"> </span></a></li><li><a title="Cut" class="reTool" href="#" unselectable="on"><span class="Cut" unselectable="on"> </span></a></li><li><a title="Copy (CTRL+C)" class="reTool" href="#" unselectable="on"><span class="Copy" unselectable="on"> </span></a></li><li><a title="Paste (CTRL+V)" class="reTool" href="#" unselectable="on"><span class="Paste" unselectable="on"> </span></a></li><li><a title="Paste Options" class="reTool reSplitButton" href="#" unselectable="on"><span class="PasteStrip" unselectable="on"> </span><span class="split_arrow"> </span></a></li><li class="reSeparator"> </li><li><a title="Undo (CTRL+Z)" class="reTool reSplitButton" href="#" unselectable="on"><span class="Undo" unselectable="on"> </span><span class="split_arrow"> </span></a></li><li><a title="Redo (CTRL+Y)" class="reTool reSplitButton" href="#" unselectable="on"><span class="Redo" unselectable="on"> </span><span class="split_arrow"> </span></a></li><li class="reGrip grip_last"> </li>
</ul><ul class="reToolbar Default" onmousedown="return false;">
<li class="reGrip grip_first"> </li><li><a title="Image Manager (CTRL+G)" class="reTool" href="#" unselectable="on"><span class="ImageManager" unselectable="on"> </span></a></li><li><a title="Document Manager" class="reTool" href="#" unselectable="on"><span class="DocumentManager" unselectable="on"> </span></a></li><li><a title="Flash Manager" class="reTool" href="#" unselectable="on"><span class="FlashManager" unselectable="on"> </span></a></li><li><a title="Media Manager" class="reTool" href="#" unselectable="on"><span class="MediaManager" unselectable="on"> </span></a></li><li><a title="Template Manager" class="reTool" href="#" unselectable="on"><span class="TemplateManager" unselectable="on"> </span></a></li><li class="reSeparator"> </li><li><a title="Hyperlink Manager (CTRL+K)" class="reTool" href="#" unselectable="on"><span class="LinkManager" unselectable="on"> </span></a></li><li><a title="Remove Link (CTRL+SHIFT+K)" class="reTool" href="#" unselectable="on"><span class="Unlink" unselectable="on"> </span></a></li><li class="reGrip grip_last"> </li>
</ul><ul class="reToolbar Default" onmousedown="return false;">
<li class="reGrip grip_first"> </li><li><a title="SuperScript" class="reTool" href="#" unselectable="on"><span class="Superscript" unselectable="on"> </span></a></li><li><a title="Subscript" class="reTool" href="#" unselectable="on"><span class="Subscript" unselectable="on"> </span></a></li><li><a title="New Paragraph" class="reTool" href="#" unselectable="on"><span class="InsertParagraph" unselectable="on"> </span></a></li><li><a title="Insert Groupbox" class="reTool" href="#" unselectable="on"><span class="InsertGroupbox" unselectable="on"> </span></a></li><li><a title="Horizontal Rule" class="reTool" href="#" unselectable="on"><span class="InsertHorizontalRule" unselectable="on"> </span></a></li><li><a title="Insert Date" class="reTool" href="#" unselectable="on"><span class="InsertDate" unselectable="on"> </span></a></li><li><a title="Insert Time" class="reTool" href="#" unselectable="on"><span class="InsertTime" unselectable="on"> </span></a></li><li class="reSeparator"> </li><li><a title="Format Code Block" class="reTool" href="#" unselectable="on"><span class="FormatCodeBlock" unselectable="on"> </span></a></li><li class="reGrip grip_last"> </li>
</ul><ul class="reToolbar Default" onmousedown="return false;">
<li class="reGrip grip_first"> </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"> </li>
</ul><ul class="reToolbar Default" onmousedown="return false;">
<li class="reGrip grip_first"> </li><li><a title="Set Absolute Position" class="reTool" href="#" unselectable="on"><span class="AbsolutePosition" unselectable="on"> </span></a></li><li class="reSeparator"> </li><li><a title="Bold (CTRL+B)" class="reTool" href="#" unselectable="on"><span class="Bold" unselectable="on"> </span></a></li><li><a title="Italic (CTRL+I)" class="reTool" href="#" unselectable="on"><span class="Italic" unselectable="on"> </span></a></li><li><a title="Underline (CTRL+U)" class="reTool" href="#" unselectable="on"><span class="Underline" unselectable="on"> </span></a></li><li><a title="Strikethrough" class="reTool" href="#" unselectable="on"><span class="StrikeThrough" unselectable="on"> </span></a></li><li class="reSeparator"> </li><li><a title="Align Left" class="reTool" href="#" unselectable="on"><span class="JustifyLeft" unselectable="on"> </span></a></li><li><a title="Align Center" class="reTool" href="#" unselectable="on"><span class="JustifyCenter" unselectable="on"> </span></a></li><li><a title="Align Right" class="reTool" href="#" unselectable="on"><span class="JustifyRight" unselectable="on"> </span></a></li><li><a title="Justify" class="reTool" href="#" unselectable="on"><span class="JustifyFull" unselectable="on"> </span></a></li><li><a title="Remove alignment" class="reTool" href="#" unselectable="on"><span class="JustifyNone" unselectable="on"> </span></a></li><li class="reSeparator"> </li><li><a title="Indent" class="reTool" href="#" unselectable="on"><span class="Indent" unselectable="on"> </span></a></li><li><a title="Outdent" class="reTool" href="#" unselectable="on"><span class="Outdent" unselectable="on"> </span></a></li><li class="reSeparator"> </li><li><a title="Numbered List" class="reTool" href="#" unselectable="on"><span class="InsertOrderedList" unselectable="on"> </span></a></li><li><a title="Bullet List" class="reTool" href="#" unselectable="on"><span class="InsertUnorderedList" unselectable="on"> </span></a></li><li class="reSeparator"> </li><li><a title="Show/Hide Border" class="reTool reTool_selected" href="#" unselectable="on"><span class="ToggleTableBorder" unselectable="on"> </span></a></li><li><a title="XHTML Validator" class="reTool" href="#" unselectable="on"><span class="XhtmlValidator" unselectable="on"> </span></a></li><li class="reGrip grip_last"> </li>
</ul><ul class="reToolbar Default" onmousedown="return false;">
<li class="reGrip grip_first"> </li><li><a title="Foreground Color" class="reTool reSplitButton" href="#" unselectable="on"><span class="ForeColor" unselectable="on"> </span><span class="split_arrow"> </span></a></li><li><a title="Background Color" class="reTool reSplitButton" href="#" unselectable="on"><span class="BackColor" unselectable="on"> </span><span class="split_arrow"> </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"> </span><span class="split_arrow"> </span></a></li><li class="reGrip grip_last"> </li>
</ul><ul class="reToolbar Default" onmousedown="return false;">
<li class="reGrip grip_first"> </li><li><a title="Insert Symbol" class="reTool reSplitButton" href="#" unselectable="on"><span class="InsertSymbol" unselectable="on"> </span><span class="split_arrow"> </span></a></li><li><a title="Insert Table" class="reTool reSplitButton" href="#" unselectable="on"><span class="InsertTable" unselectable="on"> </span><span class="split_arrow"> </span></a></li><li><a title="Insert Form Element" class="reTool reSplitButton" href="#" unselectable="on"><span class="InsertFormElement" unselectable="on"> </span><span class="split_arrow"> </span></a></li><li><a title="Insert Code Snippet" class="reTool reSplitButton" href="#" unselectable="on"><span class="InsertSnippet" unselectable="on"> </span><span class="split_arrow"> </span></a></li><li><a title="Image Map Editor" class="reTool" href="#" unselectable="on"><span class="ImageMapDialog" unselectable="on"> </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"> </li><li><a title="Convert to lower case" class="reTool" href="#" unselectable="on"><span class="ConvertToLower" unselectable="on"> </span></a></li><li><a title="Convert to upper case" class="reTool" href="#" unselectable="on"><span class="ConvertToUpper" unselectable="on"> </span></a></li><li class="reSeparator"> </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"> </span><span class="split_arrow"> </span></a></li><li><a title="Toggle Full Screen Mode (F11)" class="reTool" href="#" unselectable="on"><span class="ToggleScreenMode" unselectable="on"> </span></a></li><li><a title="About RadEditor" class="reTool" href="#" unselectable="on"><span class="AboutDialog" unselectable="on"> </span></a></li><li class="reGrip grip_last"> </li>
</ul>
</div></td><td rowspan="4" id="ctl00_MainContent_RadEditor1Right" class="reTlbVertical"></td><td rowspan="4" class="reRightVerticalSide"> </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 Characters: 33 </span></div></td><td class="reResizeCell" valign="bottom" align="right" style="width:15px;"><div id="ctl00_MainContent_RadEditor1BottomResizer" style="cursor: se-resize; ">
</div></td>
</tr>
</tbody>
</table><noscript>
<p>RadEditor - please enable JavaScript to use the rich text editor.</p>
</noscript></td>
</tr><tr>
<td id="ctl00_MainContent_RadEditor1Module" class="reToolZone" style=""><div class="reModule"> </div><div class="reModule" style="height: 50px; "></div><div style="display: none; "></div></td>
</tr><tr>
<td class="reWrapper_corner reCorner_bottom_left"> </td><td class="reWrapper_center reCenter_bottom" colspan="3"> </td><td class="reWrapper_corner reCorner_bottom_right"> </td>
</tr>
</tbody>
</table><input id="ctl00_MainContent_RadEditor1_ClientState" name="ctl00_MainContent_RadEditor1_ClientState" type="hidden" autocomplete="off">
</div>
</div>
</pre></pre>
<pre><errorOptions><notifyUsers><user><name>Grace Amazing</name><email>grace_amzn@comcast.net</email></user></notifyusers</notifyUsers></errorOptions><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"> </td><td class="reWrapper_center reCenter_top" colspan="3"> </td><td class="reWrapper_corner reCorner_top_right"> </td>
</tr><tr>
<td class="reLeftVerticalSide" rowspan="4"> </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"> </li><li><a title="Print (CTRL+P)" class="reTool" href="#" unselectable="on"><span class="Print" unselectable="on"> </span></a></li><li><a title="AJAX Spellchecker" class="reTool" href="#" unselectable="on"><span class="AjaxSpellCheck" unselectable="on"> </span></a></li><li><a title="Find And Replace (CTRL+F)" class="reTool" href="#" unselectable="on"><span class="FindAndReplace" unselectable="on"> </span></a></li><li><a title="Select All (CTRL+A)" class="reTool" href="#" unselectable="on"><span class="SelectAll" unselectable="on"> </span></a></li><li><a title="Cut" class="reTool" href="#" unselectable="on"><span class="Cut" unselectable="on"> </span></a></li><li><a title="Copy (CTRL+C)" class="reTool" href="#" unselectable="on"><span class="Copy" unselectable="on"> </span></a></li><li><a title="Paste (CTRL+V)" class="reTool" href="#" unselectable="on"><span class="Paste" unselectable="on"> </span></a></li><li><a title="Paste Options" class="reTool reSplitButton" href="#" unselectable="on"><span class="PasteStrip" unselectable="on"> </span><span class="split_arrow"> </span></a></li><li class="reSeparator"> </li><li><a title="Undo (CTRL+Z)" class="reTool reSplitButton" href="#" unselectable="on"><span class="Undo" unselectable="on"> </span><span class="split_arrow"> </span></a></li><li><a title="Redo (CTRL+Y)" class="reTool reSplitButton" href="#" unselectable="on"><span class="Redo" unselectable="on"> </span><span class="split_arrow"> </span></a></li><li class="reGrip grip_last"> </li>
</ul><ul class="reToolbar Default" onmousedown="return false;">
<li class="reGrip grip_first"> </li><li><a title="Image Manager (CTRL+G)" class="reTool" href="#" unselectable="on"><span class="ImageManager" unselectable="on"> </span></a></li><li><a title="Document Manager" class="reTool" href="#" unselectable="on"><span class="DocumentManager" unselectable="on"> </span></a></li><li><a title="Flash Manager" class="reTool" href="#" unselectable="on"><span class="FlashManager" unselectable="on"> </span></a></li><li><a title="Media Manager" class="reTool" href="#" unselectable="on"><span class="MediaManager" unselectable="on"> </span></a></li><li><a title="Template Manager" class="reTool" href="#" unselectable="on"><span class="TemplateManager" unselectable="on"> </span></a></li><li class="reSeparator"> </li><li><a title="Hyperlink Manager (CTRL+K)" class="reTool" href="#" unselectable="on"><span class="LinkManager" unselectable="on"> </span></a></li><li><a title="Remove Link (CTRL+SHIFT+K)" class="reTool" href="#" unselectable="on"><span class="Unlink" unselectable="on"> </span></a></li><li class="reGrip grip_last"> </li>
</ul><ul class="reToolbar Default" onmousedown="return false;">
<li class="reGrip grip_first"> </li><li><a title="SuperScript" class="reTool" href="#" unselectable="on"><span class="Superscript" unselectable="on"> </span></a></li><li><a title="Subscript" class="reTool" href="#" unselectable="on"><span class="Subscript" unselectable="on"> </span></a></li><li><a title="New Paragraph" class="reTool" href="#" unselectable="on"><span class="InsertParagraph" unselectable="on"> </span></a></li><li><a title="Insert Groupbox" class="reTool" href="#" unselectable="on"><span class="InsertGroupbox" unselectable="on"> </span></a></li><li><a title="Horizontal Rule" class="reTool" href="#" unselectable="on"><span class="InsertHorizontalRule" unselectable="on"> </span></a></li><li><a title="Insert Date" class="reTool" href="#" unselectable="on"><span class="InsertDate" unselectable="on"> </span></a></li><li><a title="Insert Time" class="reTool" href="#" unselectable="on"><span class="InsertTime" unselectable="on"> </span></a></li><li class="reSeparator"> </li><li><a title="Format Code Block" class="reTool" href="#" unselectable="on"><span class="FormatCodeBlock" unselectable="on"> </span></a></li><li class="reGrip grip_last"> </li>
</ul><ul class="reToolbar Default" onmousedown="return false;">
<li class="reGrip grip_first"> </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"> </li>
</ul><ul class="reToolbar Default" onmousedown="return false;">
<li class="reGrip grip_first"> </li><li><a title="Set Absolute Position" class="reTool" href="#" unselectable="on"><span class="AbsolutePosition" unselectable="on"> </span></a></li><li class="reSeparator"> </li><li><a title="Bold (CTRL+B)" class="reTool" href="#" unselectable="on"><span class="Bold" unselectable="on"> </span></a></li><li><a title="Italic (CTRL+I)" class="reTool" href="#" unselectable="on"><span class="Italic" unselectable="on"> </span></a></li><li><a title="Underline (CTRL+U)" class="reTool" href="#" unselectable="on"><span class="Underline" unselectable="on"> </span></a></li><li><a title="Strikethrough" class="reTool" href="#" unselectable="on"><span class="StrikeThrough" unselectable="on"> </span></a></li><li class="reSeparator"> </li><li><a title="Align Left" class="reTool" href="#" unselectable="on"><span class="JustifyLeft" unselectable="on"> </span></a></li><li><a title="Align Center" class="reTool" href="#" unselectable="on"><span class="JustifyCenter" unselectable="on"> </span></a></li><li><a title="Align Right" class="reTool" href="#" unselectable="on"><span class="JustifyRight" unselectable="on"> </span></a></li><li><a title="Justify" class="reTool" href="#" unselectable="on"><span class="JustifyFull" unselectable="on"> </span></a></li><li><a title="Remove alignment" class="reTool" href="#" unselectable="on"><span class="JustifyNone" unselectable="on"> </span></a></li><li class="reSeparator"> </li><li><a title="Indent" class="reTool" href="#" unselectable="on"><span class="Indent" unselectable="on"> </span></a></li><li><a title="Outdent" class="reTool" href="#" unselectable="on"><span class="Outdent" unselectable="on"> </span></a></li><li class="reSeparator"> </li><li><a title="Numbered List" class="reTool" href="#" unselectable="on"><span class="InsertOrderedList" unselectable="on"> </span></a></li><li><a title="Bullet List" class="reTool" href="#" unselectable="on"><span class="InsertUnorderedList" unselectable="on"> </span></a></li><li class="reSeparator"> </li><li><a title="Show/Hide Border" class="reTool reTool_selected" href="#" unselectable="on"><span class="ToggleTableBorder" unselectable="on"> </span></a></li><li><a title="XHTML Validator" class="reTool" href="#" unselectable="on"><span class="XhtmlValidator" unselectable="on"> </span></a></li><li class="reGrip grip_last"> </li>
</ul><ul class="reToolbar Default" onmousedown="return false;">
<li class="reGrip grip_first"> </li><li><a title="Foreground Color" class="reTool reSplitButton" href="#" unselectable="on"><span class="ForeColor" unselectable="on"> </span><span class="split_arrow"> </span></a></li><li><a title="Background Color" class="reTool reSplitButton" href="#" unselectable="on"><span class="BackColor" unselectable="on"> </span><span class="split_arrow"> </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"> </span><span class="split_arrow"> </span></a></li><li class="reGrip grip_last"> </li>
</ul><ul class="reToolbar Default" onmousedown="return false;">
<li class="reGrip grip_first"> </li><li><a title="Insert Symbol" class="reTool reSplitButton" href="#" unselectable="on"><span class="InsertSymbol" unselectable="on"> </span><span class="split_arrow"> </span></a></li><li><a title="Insert Table" class="reTool reSplitButton" href="#" unselectable="on"><span class="InsertTable" unselectable="on"> </span><span class="split_arrow"> </span></a></li><li><a title="Insert Form Element" class="reTool reSplitButton" href="#" unselectable="on"><span class="InsertFormElement" unselectable="on"> </span><span class="split_arrow"> </span></a></li><li><a title="Insert Code Snippet" class="reTool reSplitButton" href="#" unselectable="on"><span class="InsertSnippet" unselectable="on"> </span><span class="split_arrow"> </span></a></li><li><a title="Image Map Editor" class="reTool" href="#" unselectable="on"><span class="ImageMapDialog" unselectable="on"> </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"> </li><li><a title="Convert to lower case" class="reTool" href="#" unselectable="on"><span class="ConvertToLower" unselectable="on"> </span></a></li><li><a title="Convert to upper case" class="reTool" href="#" unselectable="on"><span class="ConvertToUpper" unselectable="on"> </span></a></li><li class="reSeparator"> </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"> </span><span class="split_arrow"> </span></a></li><li><a title="Toggle Full Screen Mode (F11)" class="reTool" href="#" unselectable="on"><span class="ToggleScreenMode" unselectable="on"> </span></a></li><li><a title="About RadEditor" class="reTool" href="#" unselectable="on"><span class="AboutDialog" unselectable="on"> </span></a></li><li class="reGrip grip_last"> </li>
</ul>
</div></td><td rowspan="4" id="ctl00_MainContent_RadEditor1Right" class="reTlbVertical"></td><td rowspan="4" class="reRightVerticalSide"> </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 Characters: 33 </span></div></td><td class="reResizeCell" valign="bottom" align="right" style="width:15px;"><div id="ctl00_MainContent_RadEditor1BottomResizer" style="cursor: se-resize; ">
</div></td>
</tr>
</tbody>
</table><noscript>
<p>RadEditor - please enable JavaScript to use the rich text editor.</p>
</noscript></td>
</tr><tr>
<td id="ctl00_MainContent_RadEditor1Module" class="reToolZone" style=""><div class="reModule"> </div><div class="reModule" style="height: 50px; "></div><div style="display: none; "></div></td>
</tr><tr>
<td class="reWrapper_corner reCorner_bottom_left"> </td><td class="reWrapper_center reCenter_bottom" colspan="3"> </td><td class="reWrapper_corner reCorner_bottom_right"> </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
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
http://stackoverflow.com/questions/822452/strip-html-from-text-javascript