【发布时间】:2016-10-27 23:09:41
【问题描述】:
(我禁用了上下文菜单插件。) 在tinymce中,我想用右键单击菜单鼠标粘贴文本,就像在这个文本编辑器中一样。 I noticed that i can do that when the selector is blinking on the first line. 我在哪里可以设置?
问候
弗兰克
【问题讨论】:
标签: javascript tinymce
(我禁用了上下文菜单插件。) 在tinymce中,我想用右键单击菜单鼠标粘贴文本,就像在这个文本编辑器中一样。 I noticed that i can do that when the selector is blinking on the first line. 我在哪里可以设置?
问候
弗兰克
【问题讨论】:
标签: javascript tinymce
对于几年后看到这个的其他人,这是我为我的 TinyMCE 编辑器启用右键单击粘贴所做的操作:
tinymce.init({
selector: ".TinyMceTextEditor",
plugins: "contextmenu",
contextmenu: "paste | link image inserttable | cell row column deletetable"
});
如果您启用了上下文菜单插件,那么您可以指定上下文菜单本身并包含“粘贴”。这样,您可以绕过默认的右键单击上下文菜单,仍然可以获得粘贴选项(以及许多其他功能)。我在上下文菜单中的其他选项是默认值。
【讨论】:
contextmenu_never_use_native: true。
看看 tinymce 上下文菜单插件。我们使用它的修改版本作为自己的插件来向用户显示不同的选项。
【讨论】: