http://www.igorgarcia.es/info.php
http://www.conaigestion.com/info.php
require_once ("webs/lib/ckeditor/ckeditor.php");
$CKEditor = new CKEditor();
$CKEditor->editor("texto", $operativos['frm']['texto']);
CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
config.toolbar =
[
['SelectAll','Format','RemoveFormat','-','Undo','Redo'],
['Bold','Italic','Underline'],
['NumberedList','BulletedList'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Link','Unlink']
];
};
Re: toolbar dissapear in new server
The problem was that ckeditor doesn't recognize the paths, so it can't find the config files.
I enter to ckeditor_php5.php, go to the line 500 and replace this lines:
$documentRoot = substr($realPath, 0, strlen($realPath) - strlen($selfPath)); $fileUrl = substr($file, strlen($documentRoot)); $ckeditorUrl = str_replace("ckeditor_php5.php", "", $fileUrl);for this ones
webs/lib is the path to my ckeditor