- <?
- //1 - Pour intégrer l'éditeur à une page
-
- $textEdit_install = '../core/PHP/textEditor';
- include ($textEdit_install.'/textEditor.Class.php');
-
- ?>
- <html>
- <head>
- <?
- textEditor::includeFiles (true, $textEdit_install);
- ?>
- </head>
- <body>
- <?
- $textEdit = new textEditor("textEditor", "name", $textEdit_install);
- $textEdit->displayEditor(textEditor::MODE_JS, true, "100%", "450", NULL, 60000);
- ?>
- </body>
- </html>
-
- <?
- //2 - Pour parser un fichier édité par textEditor (afin de faire un rendu)
-
- $textEdit_install = '../core/PHP/textEditor';
- include ($textEdit_install.'/textEditor.Class.php');
-
- $texte_render = textEditor::parse ('/mon_fichier.ext');
-
- ?>
- <html>
- <head/>
- <body>
- <?
- echo $texte_render;
- ?>
- </body>
- </html>
<?
//1 - Pour intégrer l'éditeur à une page
$textEdit_install = '../core/PHP/textEditor';
include ($textEdit_install.'/textEditor.Class.php');
?>
<html>
<head>
<?
textEditor::includeFiles (true, $textEdit_install);
?>
</head>
<body>
<?
$textEdit = new textEditor("textEditor", "name", $textEdit_install);
$textEdit->displayEditor(textEditor::MODE_JS, true, "100%", "450", NULL, 60000);
?>
</body>
</html>
<?
//2 - Pour parser un fichier édité par textEditor (afin de faire un rendu)
$textEdit_install = '../core/PHP/textEditor';
include ($textEdit_install.'/textEditor.Class.php');
$texte_render = textEditor::parse ('/mon_fichier.ext');
?>
<html>
<head/>
<body>
<?
echo $texte_render;
?>
</body>
</html>