html editor

  1. #1

    html editor

    i just have a question about the html editor, why is it that if i have this code, switching to source view works ok

    
    <ext:HtmlEditor ID="exttxtDefinition" runat="server"  FieldLabel="* Definition" Height="100" >
                        <Listeners>
                            <EditModeChange Handler="function(htmleditor, sourceEdit)
                                {
                                    alert(htmleditor.getRawValue());
                                }" />
                        </Listeners>
                    </ext:HtmlEditor>

    but if i replace .getRawValue with getValue then the source view would not contain <tags> but like this -> %3Ctags
  2. #2

    RE: html editor

    Hi,

    By default the editor escape the value to avoid server side exception ( System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client)


    You can turn off escaping: EscapeValue="false"
  3. #3

    RE: html editor

    whenever i enter a tag in a textfield... i get a bad response error when saving... is there any way to avoid this aside from turning off page validation
  4. #4

    RE: html editor

    Hi,

    You should choose: Escaping or set ValidateRequest="false" for the page

Similar Threads

  1. [CLOSED] HTML editor with IE 8
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 17, 2010, 7:59 AM
  2. Html Editor Help.
    By ozayBK in forum 1.x Help
    Replies: 13
    Last Post: Apr 28, 2010, 10:42 PM
  3. 0.82 html editor bug
    By [WP]joju in forum Bugs
    Replies: 3
    Last Post: Dec 21, 2009, 1:48 AM
  4. html editor in IE8
    By [WP]joju in forum 1.x Help
    Replies: 0
    Last Post: Dec 02, 2009, 10:24 AM
  5. [CLOSED] html editor
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 24, 2009, 11:06 AM

Posting Permissions