Plain Text in TINY MCE
9 posts by 4 authors in: Forums > CMS Builder
Last Post: December 22, 2011 (RSS)
By design9 - November 30, 2010
Is there a way to adjust the settings in the TINY Mce for the plain Text button to have it always stay on plain text so it doesn't toggle back and forth between it?
Thank you,
April
Re: [apdance9] Plain Text in TINY MCE
By Jason - November 30, 2010
Do you mean only viewing the HTML code instead of the rich text? I don't believe TinyMCE supports that.
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Re: [Jason] Plain Text in TINY MCE
By design9 - November 30, 2010
April
Re: [aev] Plain Text in TINY MCE
By design9 - December 2, 2010
Thanks!
April
Re: [apdance9] Plain Text in TINY MCE
By Jason - December 2, 2010
You can try this:
Open up cmsAdmin/lib/wysiwyg.php (or wysiwyg_customer.php if you're using that instead).
About half way down the page you should see a block of code like this:
// Paste From Word Settings - Docs: http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/paste
// Un-comment these lines to have pasting default to text
//paste_text_sticky: true,
//setup: function(ed) {
// ed.onInit.add(function(ed) { // from: http://tinymce.moxiecode.net/punbb/viewtopic.php?pid=73053#p73053
// ed.pasteAsPlainText = true;
// ed.controlManager.setActive("pastetext", true);
// });
//},
Just uncomment these lines like this:
// Paste From Word Settings - Docs: http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/paste
// Un-comment these lines to have pasting default to text
paste_text_sticky: true,
setup: function(ed) {
ed.onInit.add(function(ed) { // from: http://tinymce.moxiecode.net/punbb/viewtopic.php?pid=73053#p73053
ed.pasteAsPlainText = true;
ed.controlManager.setActive("pastetext", true);
});
},
If for some reason you don't have this code at all in your file, paste it in under this:
// Load Plugins: ***NOTE*** plugins must be added both loadWysiwygJavascript() and initWysiwyg() (twice in this page, search for "plugins:")
plugins: "inlinepopups,contextmenu,table,fullscreen,paste,media,spellchecker",
This will set plain text pasting as default.
Hope this helps.
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Re: [Jason] Plain Text in TINY MCE
By design9 - December 3, 2010
This did the trick!
April
Re: [design9] Plain Text in TINY MCE
By zaba - December 22, 2011
Re: [zaba] Plain Text in TINY MCE
By Jason - December 22, 2011
The change posted above should set "paste as plain text" to be the default. Give that a try and let us know if you run into any issues.
Thanks
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/