Question

i want to disable resizing ckeditor in php and its default language to english change .

i've loaded the ckeditor in php below :

<?php
     $CKeditor = new CKeditor();
     $CKeditor->BasePath = 'ckeditor/';
     $CKeditor->editor('editor1');
?>

enter image description here

Was it helpful?

Solution

Try this:

$config['language']='en';
$config['removePlugins']='resize';   //Remove resize image
$config['resize_enabled ']=false;   //Disallow resizing

And initialize CKeditor like:

$CKeditor->editor("editor1",'',$config);

OTHER TIPS

There's dedicated configuration option config.resize_enabled to control the resizer. As for the language, you can set it with config.language.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top