上下文内联菜单不会出现在某些插入的图像上
Contextual inline menu doesn't appear on some inserted images
上下文内联菜单出现在具有相同域名的插入图像上。它不会出现在外部图像上。
例如:http://fiddle.tinymce.com/k5faab/35 you will notice that I added imagetools_toolbar: "openlink link unlink", to the tinymce.init. Try to insert an image ( https://www.paintthemoon.org/wp-content/uploads/2015/02/250x250.gif ) 您会注意到缺少上下文菜单。
我正在使用 TinyMCE 4.7。所有浏览器都存在此问题。
您看到的是由于 CORS 在浏览器中的工作方式而导致的预期行为。您可以创建图像代理来解决此问题,如下所述:
https://www.tiny.cloud/docs/plugins/imagetools/#imagetools_proxy
另一种方法是构建您自己的方法来获取图像:
https://www.tiny.cloud/docs/plugins/imagetools/#imagetools_fetch_image
...但请注意,您仍然必须遵守 CORS 限制,因此图像代理可能是更可靠的解决方案。
上下文内联菜单出现在具有相同域名的插入图像上。它不会出现在外部图像上。
例如:http://fiddle.tinymce.com/k5faab/35 you will notice that I added imagetools_toolbar: "openlink link unlink", to the tinymce.init. Try to insert an image ( https://www.paintthemoon.org/wp-content/uploads/2015/02/250x250.gif ) 您会注意到缺少上下文菜单。
我正在使用 TinyMCE 4.7。所有浏览器都存在此问题。
您看到的是由于 CORS 在浏览器中的工作方式而导致的预期行为。您可以创建图像代理来解决此问题,如下所述:
https://www.tiny.cloud/docs/plugins/imagetools/#imagetools_proxy
另一种方法是构建您自己的方法来获取图像:
https://www.tiny.cloud/docs/plugins/imagetools/#imagetools_fetch_image
...但请注意,您仍然必须遵守 CORS 限制,因此图像代理可能是更可靠的解决方案。