Hi all,
I ve checked the document, but I dont know how to use the following command in an html file.
// Set editor width to 100% and height to 350px. editor.resize( '100%', '350' );
I had set an textarea with class ckeditor, and a <script type="text/javascript" src="ckeditor/ckeditor.js"></script> in the head wihtin an html file.
Can anyone show an example about where and how to put the editor.resize code in the html?
Many thanks
Hi forpizinmind
Hi forpizinmind
do you actually need to resize the editor after it has been created? If not, you can simply configure the default size, for example in the config.js file by adding the following entries:
However, if you need to change the size anytime after the editor has been created, you can use the resize() method which you can call actually anywhere in the HTML file as long as you make sure that it's not executed until the editor has been fully initialized. For example:
HTH
gread
gread