首页 > 解决方案 > 在 TinyMCE 中插入表格后,双击光标不显示

问题描述

我在我的角度应用程序中使用 tinyMCE。启用表格和图像插件。启用后不是每次都面临以下问题,而是中间:

在表格下方双击插入表格后无法获得光标。编写文本工作正常,但对用户不友好。

使用 Angular2-tinyMCE 包:下面是我的代码:

TinymceModule.withConfig({
      body_class: 'tiny-mce-font',
      plugins: ['table','autoresize','lists'],
      min_height : 500,
      theme: 'modern',
      menubar: false,
      statusbar: false,
      auto_focus:true,
      toolbar: 'undo redo | bold italic | bullist numlist outdent indent | link unlink | table | styleselect | fontsizeselect | fontselect',
      setup : function(ed) {
        ed.on("click", function() {
            ed.focus();
        });  
    }

标签: javascriptangulartinymce

解决方案


推荐阅读