tinymce-docs
tinymce-docs copied to clipboard
Incorrect documentation (or impl) for contextmenu image entry
What is the current behavior? Describe the bug The contextmenu documentation indicates the following :
identifier Core/Plugin Description image Image Adds the Image… item for opening the Insert/Edit Image dialog.
As already reported by several issues (tinymce/tinymce#5646, tinymce/tinymce#5886, tinymce/tinymce#6349, ...), this is not the actual behavior : The "image" insertion will not appears in the context menu.
What is the expected behavior? A documentation which describe the current behavior, or an implementation with follows the documentation 😄 My personal preference would be to fix the implementation to make the image insertion item appear, exactly as it was in 4.x. And given the number of issues on this subject, I guess i'm not the only one ;)
Which versions of TinyMCE, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE? Affected : 5.x Previous working version : 4.x
Hi @OlivierJaquemet,
As mentioned in the linked issues the behavior of the context menu in 5.x is purposefully different from that of 4.x, and while that behavior wont change in 5.x you can file a feature request for a new setting that brings back the old behavior. As the documentation perhaps can be improved I see this as an documentation issue at the moment and will thus transfer it to tinymce/tinymce-docs.
Looking at the descriptions for some of the other context menu items at https://www.tiny.cloud/docs/ui-components/contextmenu/#availablecontextmenusections I suspect that we might want to improve the descriptions (mention what context they operate in) not just for the image item but for some other ones as well. For example, the lists context menu item require you to open the context menu on an ordered list.
Thank you @SimonFc for taking care of this.
I have filed a feature request : tinymce/tinymce#6628