-
-
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
[5.3] Custom shortcodes for TinyMCE #44506
Comments
That is a massive feature request |
and where (and how) do you create these magical shortcodes |
Are you ever going to reply to my question. As it stands your request can not move forward as it doesnt make any sense. |
in the TinyMCE settings, just like now, you can create language tags and styles for links. The TinyMCE editor for editors will have 1 additional button |
and what do these shortcodes do, where do they come from? Please give an example of one of these shortcodes |
I would expect he or she talks about https://www.tiny.cloud/docs/tinymce/latest/keyboard-shortcuts/ which should possible to implement. if the topic is https://www.tiny.cloud/docs/tinymce/latest/shortcuts/ then I think it is much harder |
It's already part of core
Not really. I had a PR for this but it was rejected so I made it available as a plugin from my ghithub [edit] it would be hard to make it customisable by the site owner But neither of them sound like anything to do with embedded content or
|
So he means something like "autotext" in word? where for example entering (in german) "mfg" extends to "Mit freundlichen Grüßen"? |
i have no idea - that is what I am waiting to hear. I have my suspicions based on wp but am waiting for @universewrld to respond |
that's not what I mean
for the editor in TinyMCE this code will look like: on the front this code will be generated as: in the TinyMCE settings it would look something like this: Name: YouTube |
Why would you do that when tinymce already supports embedding of youtube videos https://www.youtube.com/watch?v=ul3mcXMX0gA&ab_channel=LearnJoomla4 |
YouTube was just one of many examples, in fact, |
ok, so you want an interface to create an interface for macros. If someone like to creates such a tinymce plugin we could add it but it's in your scope to find someone who likes to develop someone if no body picks this up. |
Youtube was just one example of the built in embedding features already present in tinymce Your http/https example would NOT be solved. Your shortcodes (unlike existing content plugins) will only run inside tinymce and the code they generate would be saved in the content item. Going back into the tinymce plugin settings and changing the values of your shortcode would NOT change any existing content. |
This is not for existing content, this is for any content from the moment editors start using this feature and for changing the code in |
Tinymce does not work like that so what you are asking for is impossible |
it could be just a request for |
Then it would be no different to the very many extensions that already do this. |
Is your feature request related to a problem? Please describe.
Since version 5.2, @joomla offers to create custom styles for links in the TinyMCE settings, but there is nothing similar for embedded content.
Describe the solution you'd like
I suggest adding the ability to create your own custom shortcodes in the TinyMCE settings.
I don't see the need to load third-party components with third-party libraries and scripts for such a basic feature.
Additional context
Out of the box shortcodes will be a great solution, replacing all possible third-party components for embedded content.
Websites on Joomla should be as fast as possible, and third-party developers like to add their huge third-party libraries and scripts for such a basic feature, which makes the website load much longer than it should.
Each administrator would be able to create their own set of shortcodes, instead of loading huge libraries of shortcodes from third-party developers on every page of their website.
The text was updated successfully, but these errors were encountered: