1

我遇到了 jbimages 插件和自动调整大小的问题。autoresize 插件效果很好,但是当我使用 jbimages 插入图像时,它不会调整它的大小。有没有办法手动调用自动调整大小?也许在输入某些内容时调用自动调整大小?

    tinymce.init({
    selector: "textarea#newCommentText",
    theme: "modern",
    plugins: [
            "advlist autolink link image lists charmap hr anchor pagebreak spellchecker",
            "media nonbreaking",
            "table contextmenu directionality paste jbimages autoresize"
        ],
    menubar: false,
    toolbar_items_size: 'small',
    width: 308,
    height: 35,
    content_css: "css/content.css",
    toolbar: "media jbimages", 
    statusbar: false,
    //init_instance_callback: function (inst) { inst.execCommand('mceAutoResize'); }
});

感谢您的任何建议!

4

0 回答 0