set cute editor readonly dynamically

Last post 11-11-2005, 4:43 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  11-08-2005, 11:54 PM 12416

    set cute editor readonly dynamically

    Hi,
     
    Is anyone know how to set cute editor readonly using javascript?
     
    I tried the following code but did not work.

    ----------------------------------------------------------------------------- 
        Javacript:
       
        var editor1 = el("CE_Editor1_ID");
        editor1.readonly= true;
     
    ------------------------------------------------------------------------------
        aspx:
     
        <%@ Register TagPrefix="ce" Namespace="CuteEditor" Assembly="CuteEditor" %>
            ...
        <html>
            ....
    <div id="NotesSection">
     <CE:Editor id="Editor1" style="Z-INDEX: 101; LEFT: 1px; POSITION: absolute; TOP: 0px" runat="server"
      ConfigurationPath="~/CuteSoft_Client/CuteEditor/Configuration/mytools.config" AutoConfigure="None"
      Width="550px" Height="200px" ThemeType="Office2003" ShowHtmlMode="False" ShowCodeViewToolBar="False">
      <FrameStyle Height="100%" BorderWidth="1px" BorderStyle="Solid" BorderColor="#DDDDDD" Width="100%"
      CssClass="CuteEditorFrame" BackColor="White"></FrameStyle>       
     </CE:Editor>      
     <br/>
     <span style="position:absolute; TOP:200px">
      <INPUT type=button value="Save" onclick="getHTML()" ID="Button1">  
     </span>
    </div>
         
         
    <div id="NoteSection2">
     <TEXTAREA cols=0 rows=0 id=myTextArea style="width:0px" NAME="myTextArea">Try click the "get HTML" button</TEXTAREA>     
    </div
    ...
    <html>
     
    Rose
  •  11-11-2005, 4:43 PM 12572 in reply to 12416

    Re: set cute editor readonly dynamically

    Rose,
     
    The ReadOnly property can not be set in the client side.

    Can you explain more details about your project?

    Maybe we can find some workarounds.
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML