Hi Ryan, Yannick from Weeblr here, hope you're doing well.
For several of my extensions (4SEO, 4Podcast and some more to come), I am in need for accessing the content editor with javascript.
Nothing fancy, things like:
- getting and setting the current editor content (as HTML)
- possibly getting user selection position, or getting the selected HTML
Both Joomla 3 and Joomla 4, but J4 is a priority.
Do you have some doc on how to "officially" do that? or what'd be your advice on the most compatible way to do this with JCE?
I mean by that: if I can have the same code for both Joomla TinyMCE and JCE, it's best.
Thanks for any pointer,
Yannick Gaultier
https://weeblr.com
For several of my extensions (4SEO, 4Podcast and some more to come), I am in need for accessing the content editor with javascript.
Nothing fancy, things like:
- getting and setting the current editor content (as HTML)
- possibly getting user selection position, or getting the selected HTML
Both Joomla 3 and Joomla 4, but J4 is a priority.
Do you have some doc on how to "officially" do that? or what'd be your advice on the most compatible way to do this with JCE?
I mean by that: if I can have the same code for both Joomla TinyMCE and JCE, it's best.
Thanks for any pointer,
Yannick Gaultier
https://weeblr.com