-
- 120 Posts
Hi guys,
Love MODx and have created a few sites in it now. One thing is still bugging me though.
Can someone please tell me where (and what code/tagsto use) in the TINY Plugin directory to add configs to Tiny to make it :
1. When copy/pasting stop adding
tags - add <p>’s only.
2. On submit/save auto cleanup code to XHTML and perhaps convert the br’s to p’s as per point 1.
I know this can be done from reading the moxiecode site, but have not got a clue what and how and where to do it (web designer, not a programmer!!)
TIA
-
- 1,131 Posts
Try going into the plugin configuration and disabling the Cleanup option (
http://wiki.modxcms.com/index.php/TinyMCE). As to the methods of the cleanup routine, that’s more a question for MoxieCode and not one I have much control over.
Jeff
Jeff Whitfield
"I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
-
- 120 Posts
Jeff,
Thanks for the reply.
I have found the relevant setting I need but not sure in the MODx Tiny implementation where to put it.
Normally it seems this is called in the js init call on the page and would I believe solve my issue.
convert_newlines_to_brs : false,
force_p_newlines: true,
force_br_newlines : false,
remove_linebreaks : true,
Jeff - may I ask your advice where does one put this?
-
- 1,131 Posts
Been meaning to address this. I’ll work on getting an extra field added in the plugin config that will allow for custom parameters. Should be able to get it done and uploaded before the weekend is up.
Jeff
Jeff Whitfield
"I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
-
- 120 Posts
Jeff,
Your a star - thank you very much indeed.
-
- 1,131 Posts
Done! It’s been implemented in version 2.1.1.1a...just a minor revision.
http://modxcms.com/TinyMCE-2.1.1.1-1475.html
Should work like a charm! Be sure and read the updated wiki page regarding the new parameter (
http://wiki.modxcms.com/index.php/TinyMCE). Let me know how it works!
Jeff
Jeff Whitfield
"I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
-
- 1,131 Posts
Roma, what theme are you trying to use? I think it only works with the Content Editor and Custom themes.
Jeff Whitfield
"I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
-
- 10 Posts
I am using a Custom Theme in manager section