ckeditor - resize CKEditor4 by windows.resize events -


i not need "user ability resize", automatic resize triggered windows.resize events.

translating necessity hipothetical/intentional code (it not works!), applicartion:

    $( window ).resize(function() {         editor = ckeditor.instances.editor1;         editor.height = window.innerheight - 106;         editor.width  = window.innerwidth  - 253;     }); 

how implement kind of resize ckeditor4? using standard editor @ textarea.


ps: name of behaviour perhaps "change size of editor on fly", necessity not config percentual width, see required subtractions.

well... use editor.resize() method ;)

$( window ).resize(function() {     editor = ckeditor.instances.editor1;     editor.resize( window.innerwidth  - 253, window.innerheight - 106 ); }); 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -