简体   繁体   English

TinyMCE'mceImage'execCommand返回false

[英]TinyMCE 'mceImage' execCommand returns false

In Chrome 66 and using the mobile theme, the mceImage command returns false. 在Chrome 66中并使用mobile主题, mceImage命令返回false。 What I'm expecting that it'll open the image dialog of the image plugin. 我期望它将打开image插件的图像对话框。

Doesn't work and returns false: 不起作用并返回false:

tinyMCE.activeEditor.editorCommands.execCommand('mceImage');

Works and returns true: 工作并返回true:

tinyMCE.activeEditor.editorCommands.execCommand('bold');

Anybody knows why? 有人知道为什么吗? And is there also a different way to trigger the image upload dialog? 还有触发图像上传对话框的其他方法吗?

According to the documentation ( https://www.tinymce.com/docs/mobile/#configuringtheplugins ): 根据文档( https://www.tinymce.com/docs/mobile/#configuringtheplugins ):

The plugins supported by mobile are currently limited to the autosave , autolink and lists plugins. 移动设备支持的插件目前仅限于autosaveautolinklists插件。 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. 我们处于早期发布周期,希望听到我们的开发者社区的意见,哪些插件应进行移动优化。

So I would expect that trying to trigger the image dialog on mobile would not work as that plugin does not appear to be supported on the mobile theme. 因此,我希望尝试在移动设备上触发图像对话框不起作用,因为该插件在移动主题上似乎不受支持。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 通过tinyMCE.EditorManager.execCommand(&#39;mceAddControl&#39;,false,newId)添加tinymce时,出现“操作不安全”错误。 - Getting “The operation is insecure” error when adding tinymce via tinyMCE.EditorManager.execCommand( 'mceAddControl',false, newId); tinymce编辑器未显示并且getcontent返回false - tinymce editor is not displaying and getcontent returns false 如何在tinyMCE中使用execcommand进行预览 - How to preview using execcommand in tinyMCE 使用TinyMCE execCommand插入元素并保留引用 - Insert element using TinyMCE execCommand and retain a reference 禁用document.execCommand(“copy”)为false - Disabling document.execCommand(“copy”) to false TinyMCE 6 execCommand 'mceInsertContent'<a href>从插入的内容</a>中删除 - TinyMCE 6 execCommand 'mceInsertContent' removes <a href> from inserted content chrome使用execCommand(&#39;copy&#39;)添加回车符 - chrome adds carriage returns using execCommand('copy') 使 document.execCommand(&#39;insertText&#39;, false, &#39;message&#39;) 与 Draftjs 一起工作? - make document.execCommand('insertText', false, 'message') work with draftjs? jQuery-execCommand(“ insertUnorderedList”,false,null); -Internet Explorer的不同行为 - jQuery - execCommand(“insertUnorderedList”, false, null); - Different behavior with Internet Explorer TinyMCE getContent 返回 Null - TinyMCE getContent Returns Null
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM