I have a new page design where CKEditor4's textarea
(inside a div
editor) is positioned beside of a left vertical panel (div
panel). When user click "close panel", the panel collapses and all content of div
editor goes to left, except the textarea
.
I need a CKEditor4 method (or function) that sets a value for the position (relative or absolute) in the X space of the browser, in runtime (not only config).
It is similar to the editor.resize()
method, but I not see any "editor.reposition()" method... It exists? There are some workaround (ex. using jQuery)?
As reference, the CSS that changes in the configuration about panel...
When HTML starts with a "closed panel",
div.editor {padding-left:0; }
When HTML starts with a "opened panel",
div.editor {padding-left:240px;}
Similar question: resize CKEditor4 by windows.resize events
Images: without and with left panel.