style-option “position:absolute”

Last post 09-09-2010, 9:13 AM by Eric. 1 replies.
Sort Posts: Previous Next
  •  09-09-2010, 4:20 AM 63906

    style-option “position:absolute”

    Hi,

     

    sometimes wordtext is inserted and then those elements contain the style-option “position:absolute” , which I don’t want…

     My question is how to set up the editor, to refuse this, I suppose, it’ll work with this function:

     sounds quiet simple, but what page is meant with:

    “All you need to do is adding the code below into the bottom of the page” ?

     

    Thanks in advance…

     

     

     

    doubter

  •  09-09-2010, 9:13 AM 63910 in reply to 63906

    Re: style-option “position:absolute”

    Dear doubter,
     
    Please refer to the following example:
    <?php include_once("cuteeditor_files/include_CuteEditor.php") ; ?>
    <html>
    <head>
    </head>
    <body>
    <form name="theForm" action="Edithtml.php?postback=true" method="post">
    <?php
    $editor=new CuteEditor();
    $editor->ID="Editor1";
    //  $editor->EditorBodyStyle="font:normal 12px arial;";
    $editor->EditorWysiwygModeCss="php.css";
    $editor->EditCompleteDocument=true;
    if (@$_GET["postback"]!="true")
    {
     $editor->LoadHTML("document.html");
     $editor->Draw();
    }
    else
    {
     $editor->SaveFile("document.html");
     $editor->Draw();
    }
    $editor=null;
    //use $_POST["Editor1"]to retrieve the data
    ?>
    <script type="text/javascript">   
    //Please replace the following regular expression with your own one and implement your requirement
    function CuteEditor_FilterHTML(editor,code)
    {
     return code.replace(/(<form[^\>]*\>)([\s\S]*)(\<\/form\>)/i, "$2");
    }
    function CuteEditor_FilterCode(editor,code)
    {
     return code.replace(/(<form[^\>]*\>)([\s\S]*)(\<\/form\>)/i, "$2");
    }
    </script>
    </body>
    </html>
    Thank you for asking
View as RSS news feed in XML