I have a component and I want to make a textarea on the admin backend interface use the TinyMCE editor:
- How do I reference the TinyMCE that is being used by other components (instead of duplicating it) 2.) How do I hook into the page init or some place where I can let TinyMCE do it's magic (of if Joomla provides a way)
Thanks
Looks like all I had to do was get an instance of
JEditor
and use this to render my textarea:If you need an advanced editor set
class=mceAdvanced
. If you want a simple editor then setclass=mceSimple
.