-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TinyMCE: Shortcut [Ctrl] + [Shift] + [Space] to insert non-breaking spaces #44702
Comments
In the tiny docu I found some infos about howto add custum shortcuts. Unfortunately, I am already failing to get the shortcut ctrl + shift + spacebar in the example to work: https://codepen.io/AK-CCM/pen/wBwmdbg. |
the demo on that page for inserting a username doesnt work either. Not sure what anyone at joomla can do to help you with that. You should contact tinymce |
I've saved these lines (ChatGPT helped me and in CodePen it works) in plugin.js and uploaded the file to /home/www/.../media/plg_editors_tinymce/js/plugins/shortcut-nonbreaking
After that I've added in the tinymce plugin at External Plugin URLs: After saving changes I cleared the cache, opened an article, clicked in the editor and tried to insert a nbsp with Ctrl + Shift + 9. But nothing happens. Did I made the plugin implementation correct? |
try |
thx4hint! I've forgotten the file in the path. Here's my actual plugin.js – it works fine to insert a nbsp with ctrl + shift + 9:
But if I change the key combination to ctrl+shift+space nothing happens when I press ctrl + shift + spacebar. |
These lines work fine:
Perhaps this functionality could be merged to Joomla? |
Is your feature request related to a problem? Please describe.
If I want to insert a non-breaking space
in the editor I have to click on the icon in the toolbar or choose the menu item in the Edit menu. This is cumbersome and interrupts the flow of writing every time.Describe the solution you'd like
It would be great if non-breaking spaces could easily inserted by the shortcut [Ctrl] + [Shift] + [Space] like in Microsoft Word or LibreOffice Writer.
Additional context
https://www.tiny.cloud/docs/tinymce/latest/shortcuts/
The text was updated successfully, but these errors were encountered: