WebSite-PHP Framework PHP
Multi langues
Mode Ajax simple
Aucun HTML, aucun JavaScript
URL rewrinting
Envoi d'email
Sitemap - RSS - Web service
Télécharger le Framework WebSite-PHP maintenant
 


Loading
 


Tutoriel Editor

Tutoriels

>

Tutoriel Editor



Tutoriel 1 : Editor no toolbar
Fichier: /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);
    }
}
?>


Tutoriel 2 : Editor simple toolbar
Fichier: /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);
    }
}
?>


Tutoriel 3 : Editor medium toolbar
Fichier: /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);
    }
}
?>


Tutoriel 4 : Small Editor with collapse toolbar
Fichier: /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();
    }
}
?>


Tutoriel 5 : Change color of resizable Editor
Fichier: /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
Accueil Documentation Télécharger Quick start Tutoriels Wiki Issue Tracker