Problem in Htmleditor

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Problem in Htmleditor

    Hi,
    This is the problem i am facing now in Htmleditor control, on page load i set htmleditor control readonly property to true, after a button click i set readonly to false, i edited the content in htmleditor, after that when i get the content in htmleditor, i am getting empty value

    Best Regards
    SpeedStep
  2. #2

    RE: Problem in Htmleditor

    Hi,
    In Htmleditor control, on page load i set htmleditor property HtmlEditor.Readonly="true", after a button click i set this HtmlEditor.Readonly="false", and i enter some data. after entering the data, i click button to save the changed in HtmlEditor. but i was not able to take the changed data in string. how to do this


    <ext:HtmlEditor ID="html_memo" Width="450" Height="400" runat="server">
    <Listeners>
    <Render Handler="changeColor(this);" Delay="250" />
    </Listeners>
    </ext:HtmlEditor> 
    
    
    
    
    <script type="text/javascript">
    function changeColor(editor) {
    var dbody = editor.getEditorBody();
    var ss = {};
    var range = editor.doc.selection.createRange();
    ss['color'] = 'blue';
    Ext.DomHelper.applyStyles(dbody, ss);
    }
    </script>
    
    on save button click i used this code
    
    
    
    
    string rtf = " " + HtmlEditor1.Text + "";

Similar Threads

  1. Problem with HtmlEditor loading
    By beufreecasse in forum 1.x Help
    Replies: 21
    Last Post: Aug 24, 2011, 1:19 PM
  2. Problem with HTMLeditor width
    By haltenberg in forum 1.x Help
    Replies: 4
    Last Post: Aug 17, 2011, 5:37 PM
  3. HtmlEditor Post Problem
    By Dgsoft.ru in forum 1.x Help
    Replies: 5
    Last Post: Apr 29, 2009, 4:14 AM
  4. Htmleditor Problem
    By designworxz in forum 1.x Help
    Replies: 0
    Last Post: Mar 04, 2009, 6:50 AM
  5. HtmlEditor link problem
    By designworxz in forum 1.x Help
    Replies: 0
    Last Post: Feb 03, 2009, 1:32 AM

Posting Permissions