Re: Bug with un-editable/selectable tags.

  •  02-18-2005, 4:12 PM

    Re: Bug with un-editable/selectable tags.

    Hi,

    I resolve the problem about contentEditable property set by default to True at the outside of the root node of code to be available in the editor.  You can see here the code needed to use full featured template approach.


    Add this code to your head node of the page where editor is define :

    <scriptlanguage="javascript">

    function
    beUneditable(){

        var editor1=document.getElementById('<%=Editor1.ClientID%>');

        var editdoc=editor1.GetDocument();

        editdoc.body.contentEditable =

    false;
    }
    </
    script>

    Add onload call in the body tag of the same page :

    <

    bodyonload="beUneditable()">
     
     
    Injoy!

View Complete Thread