Launching editor in preview mode allows editing in Firefox

Last post 10-17-2011, 7:45 AM by Kenneth. 3 replies.
Sort Posts: Previous Next
  •  10-08-2011, 2:04 PM 70322

    Launching editor in preview mode allows editing in Firefox

    Hi,
     
    I am trying to launch editor in Preview mode. For this, I configure the editor in PHP as follows:
     
    $editor->ActiveTab="View";

    Upon load, I can see that Preview tab is active. However, I can edit the text.
     
    When I switch to another mode (Normal or HTML) and then back to Preview, editing is no longer possible (as expected). Seems this issue is similar to http://cutesoft.net/forums/thread/19100.aspx
     
    Best,
    Einar
     
    P.S. I am using Firefox 7.0.1; verified this problem does not happen with IE9. Tested with latest version of editor.
  •  10-10-2011, 9:21 AM 70333 in reply to 70322

    Re: Launching editor in preview mode allows editing in Firefox

    Hi erslht,
     
    Can you try the example below? it works fine for me. Is your site online? If so, can you send me the test page url? So I can check it too.
     
    <?php include_once("cuteeditor_files/include_CuteEditor.php") ; ?>
    <html>    
        <head>
        </head>
        <body>
            
            <form ID="Form1">
            <?php
                $editor=new CuteEditor();
                $editor->ID="Editor1";
                $editor->ActiveTab="View";
                $editor->Text="this is a test!";
                $editor->Draw();
                $editor=null;
            ?>
            </form>
        </body>
    </html>
     
    Regards,
     
    Ken
  •  10-16-2011, 2:49 AM 70407 in reply to 70333

    Re: Launching editor in preview mode allows editing in Firefox

    Hi Ken,
     
    I tried with the code you provided and can reproduce the problem. Site is not yet live.
     
    Did you try with Firefox 7.0.1?
     
    Best,
    Einar
  •  10-17-2011, 7:45 AM 70420 in reply to 70407

    Re: Launching editor in preview mode allows editing in Firefox

    Hi erslht,
     
    Yes, I can reproduce this issue on firefox 7.1.
     
    For now please use the code below to achieve the view tab when editor load.
     
    I have reported this issue to the development team, once issue is resloved, I will keep your posted.
     
    <?php require_once "cuteeditor_files/include_CuteEditor.php" ?>  

    <html>    
    <body>    
            <form id="form1" method="POST">    
                <?php    
                    $editor=new CuteEditor();    
                    $editor->Text="Type here";    
                    $editor->ID="Editor1";
                    $editor->Draw();    
                ?>    
           </form>    
    </body>    
    </html>
    <script>

    function CuteEditor_OnInitialized(editor)
    {
       editor.ExecCommand("TabView");
    }
    </script>
     
    Regards,
     
    Ken
View as RSS news feed in XML