TinyMCE将JS功能扩展到页面高度,就像在wordpress中一样

时间:2014-12-12 12:56:03

标签: javascript wordpress tinymce tinymce-4

与wordpress post editor tinymce一样,我在我的网站中使用相同的编辑器,并希望实现wordpress编辑器扩展功能,扩展以适应内容的编写,并始终保持格式化工具的可用性。

https://core.trac.wordpress.org/browser/trunk/src/wp-admin/js/editor-expand.js

1 个答案:

答案 0 :(得分:0)

**if i understood you right this may be the solutions**    
<script type="text/javascript">

    tinymce.init({
      selector: "textarea",
       plugins: [
        "advlist autolink lists link image charmap print preview anchor",
        "searchreplace visualblocks code fullscreen",
        "insertdatetime media table contextmenu paste jbimages",
      ],
    relative_urls: false,
    toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image jbimages | fullscreen |preview | mybutton",

    });
    </script>