javascript - 在 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();
});
}
解决方案
推荐阅读
- knative - Knative Eventing - helloworld 样本触发器的 NewObservedGenFailure 错误
- javascript - 无论按钮被点击多少次,事件处理程序只执行一次函数。为什么会这样?
- git - 使用 Git 将分支转移到 anotherRemote/branch,除了 origin 远程
- bookshelf.js - .where() 带条件逻辑
- ios - 使用 SwiftUI 按钮导航到 Storyboard
- java - 如何在 Solr 中的两个 BooleaQueryBuilder 值中添加斜率(请检查正文)
- ms-access - Delphi ADO BCD 十进制字段值设置不正确
- json - 如何持久化列表