How to Disable Resize in CKEditor and Change Language to English in php?

StackOverflow https://stackoverflow.com/questions/23264334

  •  08-07-2023
  •  | 
  •  

سؤال

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

هل كانت مفيدة؟

المحلول

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);

نصائح أخرى

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top