Closed indigoxela closed 8 months ago
Looks OK, works... not sure, yet.
The usual glitch - are people aware of the context menu and how to add it to profiles?
Another option would be a context toolbar (like in tinymce_imce), but they're a bit ... visually noisy.
I wasn't aware of context menus or how to add to profiles. I would prefer context menu to context toolbar The only way I could figure out doing start (just learned that is an HTML feature) was editing source code; am I missing an easier trick?
Yay, feedback! :tada:
I wasn't aware of context menus or how to add to profiles.
Profiles can set them like that: https://github.com/backdrop-contrib/tinymce/blob/1.x-1.x/config/tinymce.profiles.default.json#L10
Note that the new backdroplistprops
context menu isn't added there, yet.
Figuring out, which one's are available in an active editor ... can be done via console. On a page (node form) with an active editor run following in your browser dev tools:
tinymce.activeEditor.ui.registry.getAll('contextMenus').contextMenus
That's maybe not very obvious. :speak_no_evil: And a bit nerdish... Any plugin can ship with additional contextmenus.
I would prefer context menu to context toolbar
May I know the reason?
While the initial PR is fine as a proof-of-concept, it has bad UX in many ways.
So I'll have to think the UX over a bit. And I don't think, this is an urgent feature, anyway.
... And a little more feedback maybe ...
Already better: a single button, a single dialog. And as I dropped using listprop button from lists plugin, the "disabled" quirk is also gone.
CKE5 provides additional list properties for OL elements.
While TinyMCE provides list styles (and a little hidden the "start" attribute), it doesn't provide the "reversed" property out of the box. To achive that, a custom plugin is needed.
As a context menu it would be quite easy. The UX might not be ideal because of different dialogs for the same element...