Re: Change Background Color of Editor

  •  04-04-2006, 5:08 PM

    Re: Change Background Color of Editor

    I tried it already and no luck...
     
    ASP Error: Object doesn't support this property or method: 'ClientID'. So I changed it to ID and now get the following error:
    Javascript Error: Object doesn't support this property or method
    Line: 936
    Below is my code/line #.
    933 <script>
    934 function changeBG(color) {
    935      var editor1=document.getElementById('content');
    936      var editdoc = editor1.GetDocument();
    937      editdoc.body.style.backgroundColor=color; 
    938 }
    939 </script>

    The ASP version is much different then the ASP.NET version... can you please provide a sample code that would allow this to work?
View Complete Thread