TinyMCE 'mceImage' execCommand returns 错误
TinyMCE 'mceImage' execCommand returns false
在 Chrome 66 和使用 mobile
主题时,mceImage
命令 returns false。我期望它会打开 image
插件的图像对话框。
不起作用并且 returns 错误:
tinyMCE.activeEditor.editorCommands.execCommand('mceImage');
有效并且returns正确:
tinyMCE.activeEditor.editorCommands.execCommand('bold');
有人知道为什么吗?还有其他触发图片上传对话框的方法吗?
根据文档 (https://www.tinymce.com/docs/mobile/#configuringtheplugins):
The plugins supported by mobile are currently limited to the autosave
,
autolink
and lists
plugins. This is by design. We are in the early
release cycle and want to hear from our developer community about
which plugins should be mobile optimized.
所以我希望尝试在移动设备上触发图像对话框不会起作用,因为移动主题似乎不支持该插件。
在 Chrome 66 和使用 mobile
主题时,mceImage
命令 returns false。我期望它会打开 image
插件的图像对话框。
不起作用并且 returns 错误:
tinyMCE.activeEditor.editorCommands.execCommand('mceImage');
有效并且returns正确:
tinyMCE.activeEditor.editorCommands.execCommand('bold');
有人知道为什么吗?还有其他触发图片上传对话框的方法吗?
根据文档 (https://www.tinymce.com/docs/mobile/#configuringtheplugins):
The plugins supported by mobile are currently limited to the
autosave
,autolink
andlists
plugins. This is by design. We are in the early release cycle and want to hear from our developer community about which plugins should be mobile optimized.
所以我希望尝试在移动设备上触发图像对话框不会起作用,因为移动主题似乎不支持该插件。