如何解决TinyMce 在大于屏幕高度的文本上滚动问题
TinyMce 编辑器不关注插入符号位置,而是在编辑器高于屏幕尺寸时位于编辑器的中间。它只发生在输入(新行)。
这在 Firefox 浏览器上更持久。
我的配置:
public config: any = {
mode: 'exact',selector: 'textarea',autoresize_bottom_margin: 50,skin: false,content_css: '/assets/skins/content.css',menubar: false,height: 150,width: 1000,min_width: 600,max_width: 1000,min_height: 150,toolbar: [
'print | bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | styleselect fontsizeselect fontselect forecolor backcolor insertdatetime','cut copy paste | numlist bullist | indent outdent | undo redo | link unlink anchor image | hr removeformat | subscript superscript | charmap emoticons'
],toolbar_items_size : 'small',plugins: ['lists','autoresize','link','anchor','code','hr','charmap','insertdatetime','emoticons','image','imagetools','paste'],image_advtab: true,paste_as_text: false,resize: 'both',statusbar: true,toolbar_persist: true,toolbar_sticky: true,paste_data_images: true,powerpaste_allow_local_images: true,powerpaste_word_import: 'prompt',contextmenu: 'cut copy paste image imagetools ',forced_root_block: false,autofocus: false,id: 'tinymce',setup: editor => {
editor.on('init',_ => {
this.editor = editor;
this.editor.execCommand('mceInsertContent',false,"</br> ");
})
}
};
是否有解决此问题的方法?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。