I am creating a plugin for TinyMCE, which is basically a form that has a textarea in it. I want the user to be able to input formatted text in that textarea, using the TinyMCE editor. The problem is that I'm not able to 'enrich' the textarea element inside the dialog.htm file in any way. Does there exist a way to do such a thing?
Thanks in advance,
Tomor
I found a quick fix. I managed to put the editor in an iframe, following the suggestion in this post:
http://www.tinymce.com/forum/viewtopic.php?pid=84668#p84668
It seems a bit messy, but it works.
Related
I have a problem with the TinyMCE editor that I'd like to fix.
The tinymce editor converts to [b]content[/b] for bold text instead of <strong>content</strong> or <b>content</b>
All inline elements also do the same. including; img, italic, URL, etc.
I have checked the doc and search google, but, I'm not getting any useful answers. I'd appreciate it if anyone can be able to help. Thanks
You are likely running the bbcode plugin with TinyMCE. If you stop running that plugin TinyMCE will provide you with HTML and not bbcode markup.
https://www.tiny.cloud/docs/plugins/opensource/bbcode/
I'm using TinyMCE's codesample plugin. It works the first time and saves correctly into the database, but when opening the editor again, it either strips the code sample content (if it's "illegal") or places it outside of the codesample tags.
Saved Code:
<pre class="language-markup"><code><!DOCTYPE html></code></pre>
When loading the editor again:
<pre class="language-markup"><code></code></pre>
Should the content somehow be filtered before returning it to the editor? I assume it's because the editor is converting the escaped HTML back to normal tags first...seems a bit silly really.
Anyone know a workaround for this or encountered this before?
Thanks in advance
See this TinyMCE Fiddle:
http://fiddle.tinymce.com/ITfaab
It seems to load your example code back into the editor just fine. What are you doing differently?
In my app i'm use tinyMCE editor to create rich email content, but now I need also sent messages as plain text now. Did someone knew how to force tinyMCE to use as a simple text editor w o any content editing, and use \r\n as line breaker?
I'm really stack at this moment, and thinking about writing own simple text editor, based on textarea. Didn't find in tinyMCE docs any solution.
TinyMCE is an HTML editor - there is no option to turn it into a plain text editor. The best you could do with TinyMCE is to transform the HTML into plain text when saving the form.
I tried out the solution found here: https://wordpress.stackexchange.com/questions/33552/how-to-use-tinymce-for-user-biographical-info-without-messing-with-any-core-fi/33575#33575 and added it to my plugin code.
The problem is, it turns the editor white
How do I make it show up?
So I decided to use this plugin instead:
http://wordpress.org/extend/plugins/visual-biography-editor/
It will make the description textarea get the same editor as the wordpress post/page editor.
Hope this helps anyone who passes by!
John
I want to disable drag and drop text and image into the tinymce Editor (textarea). I tried to search on the web and still cannot find the working answer. Can anyone please provide me the snippet that i can work around ? Thanks much.
Anyone ? :(
This should be possible using the paste plugin. The paste_block_drop option should do just what you want.