简体   繁体   中英

tinymce editor resize feature is not working

I am using tinymce editor version 3.5.8, and am trying to resize the editor window which is in default not possible i tried adding autoresize plugin and also setting the resize property to both in the init function resize : "both"

here's my init function

tinyMCE.init({

    onchange_callback: "MakeCurrentFormDirty",
    selector: "textarea",
    onkeypress_callback: "Test",
    mode: "specific_textareas",
    editor_selector: "mceEditor",
    theme: "advanced",
    plugins: "preview",
    resize: "both",


setup: function (ed) {
    ed.on('init', function () {
        $(ed.getWin()).bind('resize', function (e) {
            console.log('Editor window resized!');
        })
    });
},

please help me resolve. Thanks!!

You may add below code in init function. I doubt it supports tinyMCE 3.5.8.

Please add below and check. It worked for me.

mode: theme_advanced_resizing: true,

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM