WebSite-PHP Framework PHP
Multi language
Simple Ajax mode
No HTML, no JavaScript
URL rewriting
Mail sending
Sitemap - RSS - Web service
Download WebSite-PHP FrameWork now
 


Loading
 


Tutorial Editor

Tutorials

>

Tutorial Editor



Tutorial 1 : Editor no toolbar
File: /pages/tutorials/editor/editor-01.php

<?php
class Editor01 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : Editor no toolbar";
        
        
$this->render = new Editor($this);
        
$this->render->setHeight(100);
        
$this->render->setWidth(545);
        
$this->render->setToolbar(Editor::TOOLBAR_NONE);
    }
}
?>


Tutorial 2 : Editor simple toolbar
File: /pages/tutorials/editor/editor-02.php

<?php
class Editor02 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : Editor simple toolbar";
        
        
$this->render = new Editor($this);
        
$this->render->setHeight(100);
        
$this->render->setWidth(545);
        
$this->render->setToolbar(Editor::TOOLBAR_SIMPLE);
    }
}
?>


Tutorial 3 : Editor medium toolbar
File: /pages/tutorials/editor/editor-03.php

<?php
class Editor03 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : Editor medium 
                                toolbar"
;
        
        
$this->render = new Editor($this);
        
$this->render->setHeight(100);
        
$this->render->setWidth(545);
        
$this->render->setToolbar(Editor::TOOLBAR_MEDIUM);
    }
}
?>


Tutorial 4 : Small Editor with collapse toolbar
File: /pages/tutorials/editor/editor-04.php

<?php
class Editor04 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : Small Editor 
                                with collapse toolbar"
;
        
        
$this->render = new Editor($this);
        
$this->render->setHeight(100);
        
$this->render->setWidth(300);
        
$this->render->collapseToolbar();
    }
}
?>


Tutorial 5 : Change color of resizable Editor
File: /pages/tutorials/editor/editor-05.php

<?php
class Editor05 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : Change color 
                                of resizable Editor"
;
        
        
$editor = new Editor($this);
        
$editor->setToolbar(Editor::TOOLBAR_SIMPLE);
        
$editor->setColor('#FF0000');
        
$editor->resizable(true);
        
        
$this->render $editor;
    }
}
?>



Share

 


Copyright © 2009-2024 WebSite-PHP Framework PHP
Home Documentation Download Quick start Tutorials Wiki Issue Tracker