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

Hello,

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

Hi April,

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

No, I mean in the actual text editor in CMS backend. The plain text option/button now toggles back and forth between inserting plain text and non-plain text when copy and pasting in content. Example: If I copy my content and hit the plain text button to paste, a box will pop up that tells me I am pasting in plain text. However, the next time I hit the plain text button, it doesn't paste in plain text...the button toggles back and forth. I want to set it so it always pastes in plain text.

April

Re: [apdance9] Plain Text in TINY MCE

By aev - November 30, 2010

Re: [aev] Plain Text in TINY MCE

By design9 - December 2, 2010

I tried this from this post but it is still not working. It actually makes the toggle worse than it was before. I want it to automatically stay on plain text all the time so I do not have to keep hitting the plain text button and toggling back and forth. Any other ideas to achieve this?

Thanks!

April

Re: [apdance9] Plain Text in TINY MCE

By Jason - December 2, 2010

Hi April,

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

Thanks Jason,

This did the trick!

April

Re: [zaba] Plain Text in TINY MCE

By Jason - December 22, 2011

Hi,

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/