Title: Using TinyMCE as a text editor
Tags: html;plugins;text;tinymce;textarea
Question: TinyMCE is used in one of my projects as it was meant to be used; a WYSIWYG HTML editor.
I created a number of plug-ins for it that inserts certain fragments of text into the HTML and all is working fine. The plug-ins use TinyMCE's createMenuButton to create a menu button and tinyMCE.activeEditor.execCommand('mceInsertContent', ...) to do the inserting.
Now I need to add an editor for plain text in the same project. The text-only editor would also need to be able to insert those same fragments of text into plain <textarea&gt; or <input type="text"&gt; inputs.
Rather than duplicating code, I'd like to re-use the plug-ins written for TinyMCE.
Is there any way to either use TinyMCE as a plain text editor or use just the individual plug-ins?
I'm using TinyMCE 3 and can't upgrade to 4 due to missing essential features.


Here is another answer: You could use the editor "as is", but strip the html tags afterwards.

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2013:00:06/18/13', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<html><plugins><text><tinymce><textarea>', 'Title': 'Using TinyMCE as a text editor', 'ViewCount': 176, 'id': 17166000, 'user_AboutMe': '<p>Currently doing web development primarily (PHP, jQuery, JS, HTML, CSS, MySQL)</p>\n\n<p>Past experience with graphics effects (FilterMeister, C, C++), realtime audio (SynthMaker) and financial systems (Java, COBOL, PL/1, DB2, Oracle).</p>\n\n<p>Mostly interrested in finding new problems, then developing methods to solve them.</p>\n\n<p>Would like to do some Android development if I ever find the spare time for it.</p>\n', 'user_AccountId': 918935.0, 'user_DisplayName': 'Martijn', 'user_Reputation': 3638.0, 'user_Views': 352.0, 'user_id': 951064.0}}