javascript - CKEditor editor.resize() 在 jQuery 中不起作用

标签 javascript jquery html css

我在一个页面中使用多个 Ck 编辑器,我想在其中一个的编辑区域中提供固定的高度和宽度。我尝试使用 editor.resize('150','250',true) 。但是它不工作。任何人都可以帮助我解决这个问题吗?这是我的代码:

$('textarea#Users_about_me').ckeditor({
    toolbar: [{
        name: 'basicstyles',
        items: ['Bold', 'Italic']
    }, {
        name: 'paragraph',
        items: ['NumberedList', 'BulletedList']
    }],
    height: '300px',
    width: '100%'
});

谢谢, 双联实验室

最佳答案

    <textarea id="myfield" ></textarea>
     CKEDITOR.replace('#myfield',{customConfig :'',width:'700px',height:'700px'});

关于javascript - CKEditor editor.resize() 在 jQuery 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20193114/

相关文章:

javascript - 在 JavaScript 中使用本地文件作为数据源

Javascript 根据值从下拉列表中获取选项

javascript - 移动时给输入一个值,然后通过ajax保存它 - php/jquery -php

javascript - Three.js computeCentroids 是做什么的?

javascript - 折线周围的长度缓冲区

javascript - 如何获取 jqGrid 中显示的行数?

jquery - HTML CSS 类选择器

html - 纯CSS子菜单垂直

python - 从 beautifulsoup 结果中删除 <a> HTML 标签

javascript - 当我在其上选择一个元素时,如何在父 li 上添加一个事件类。使用javascript