How to change default editor of Vivvo to Cute Editor?

  •  10-03-2007, 7:44 PM

    How to change default editor of Vivvo to Cute Editor?

    How to change default editor of Vivvo to Cute Editor?

     
    Step 1: Open admin/include.php file and in the bottom of this file,  set

    $wysiwyg_editor = "cute";
     
    Step 2: Create a new file, name it to article_add_cute.tpl. Copy the content of article_add_tiny.tpl into it.  Then delete tinyMCE javascript code.
     
    Step 3. Open admin/article_add.php file, find the following code:
     
     if (!isset($wysiwyg_editor) or $wysiwyg_editor=="spaw")
        include('spaw/spaw_control.class.php');
     
    to:
     
    if (!isset($wysiwyg_editor) or $wysiwyg_editor=="cute")
        include_once("CuteEditor_Files/include_CuteEditor.php");

     
    Find the following code:
     

     $sw = new SPAW_Wysiwyg('body' ,"",
                           'en', 'full', 'default', '550px' , '350px');
                    $body_editor = $sw->getHtml();
                    $filename=$root . $admin_directory . "/templates/article_add_spaw.tpl";

    Change it to:
     
                     
                  $editor=new CuteEditor();
                  $editor->ID="body";
                  $editor->Text="{$body}";
                  $editor->FilesPath="CuteEditor_Files";              
                  $body_editor = $editor->GetString();
                  $editor=null;
                  $filename=$root . $admin_directory . "/templates/article_add_cute.tpl";

    Step 4. Open admin/edit.php file, modify the code as step 3.
     

     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View Complete Thread