How to remove unwanted HTML tages rendered by CuteEditor

Last post 12-07-2012, 8:27 AM by Kenneth. 3 replies.
Sort Posts: Previous Next
  •  12-06-2012, 9:49 AM 75396

    How to remove unwanted HTML tages rendered by CuteEditor

    H aving Cute Editor in my projects and works fine. Only problem is browser rendered Lots of HTML tag against Editor.

     

    I am using AutoConfigre = "Simple".

     

    How do i remove the code from when runtime? if i use more than one editor in single page, system slow to rendered the page .

     

    Kindly give me solution.

     

    Sethu

  •  12-06-2012, 12:05 PM 75405 in reply to 75396

    Re: How to remove unwanted HTML tages rendered by CuteEditor

    Hi,

     

    You can use html filter to remove the target which you do not want it shows in editor.

     

    please refer to http://cutesoft.net/developer+guide/scr/Creates-your-own-HTML-Filter.htm

     

    Regards,

     

    Ken

  •  12-06-2012, 11:58 PM 75408 in reply to 75405

    Re: How to remove unwanted HTML tages rendered by CuteEditor

    H i Ken,

     

    Thanks for your reply. How do i use this javascript function from ASP page.

     

    Kindly helpme out

     

     

    Regards,

    Sethu

  •  12-07-2012, 8:27 AM 75417 in reply to 75408

    Re: How to remove unwanted HTML tages rendered by CuteEditor

    Hi sethumail2000,

     

    Just need to add it to the bottom of your page, it will fire automatically.

     

    1. <!-- #include file = "cuteeditor_files/include_CuteEditor.asp" -->  
    2. <html>     
    3.     <head> 
    4.         <title>ASP Editor Demo</title> 
    5.     </head> 
    6.     <body> 
    7.          
    8.         <form name="theForm"
    9.         <% 
    10.             Dim editor 
    11.             Set editor = New CuteEditor 
    12.             editor.ID = "Editor1" 
    13.             editor.Draw() 
    14.         %> 
    15.         </form> 
    16.         <script type="text/javascript"
    17.             function CuteEditor_FilterHTML(editor, code) { 
    18.                 return code.replace(/(<form[^\>]*\>)([\s\S]*)(\<\/form\>)/ig, "$2"); 
    19.             } 
    20.             function CuteEditor_FilterCode(editor, code) { 
    21.                 return code.replace(/(<form[^\>]*\>)([\s\S]*)(\<\/form\>)/ig, "$2"); 
    22.             } 
    23.        </script>   
    24.     </body> 
    25. </html> 
     

    Regards,

     

    Ken

View as RSS news feed in XML