Is there a good way to take the installed TinyMCE in the manager and place it inside a resource for access on the front-end in a form? Specifically by way of snippet.
-
☆ A M B ☆
- 24,524 Posts
You can use a TV with a Rich Text output widget, then use the snippet code
$output = $modx->getTemplateVarOutput(array('tvname'));
return $output['tvname'];
This is for Evo. And since it’s on the front-end, the input type doesn’t matter.
Sorry, I forgot to mention I’m working in Revo.
-
☆ A M B ☆
- 24,524 Posts
Should be able to do the same thing, although I don’t know what the equivalent of that API function is.
I’m still messing with it, but so far I’ve only gotten a textarea.
I’m still not able to find a way to get TinyMCE in the front-end.
I am also trying to get the default tinyMCE that is in the manager context to show in a textarea on the front-end. Can anyone help me?
NewsPublisher is coming soon (just a few more bugs to squash). It provides TinyMCE editing in the front-end. In the meantime, I think you can create a richtext TV.