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 (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...