Using TinyMCE Advanced with plugin's textarea - Wordpress - tinymce

I'm developing a custom plugin in Wordpress. I also have the TinyMCE Advanced Wordpress plugin activated and working.
I created a normal HTML textarea, and converted it into a TinyMCE WYSIWYG editor, using the class="theEditor" attribute. The problem is, it's Wordpress' own TinyMCE implementation, and NOT the TinyMCE Advanced plugin's implementation, which means I miss out on all its features, including the (most important for my purposes) "stop removing <p> and <br> tags" option.
How do I make the textarea trigger TinyMCE Advanced?

You should have a look at these two articles:
http://allcreatives.net/2011/02/02/using-the-native-wordpress-tinymce-wysiwyg-editor-with-your-custom-post-meta-textareas/
http://www.keighl.com/2010/01/tinymce-in-wordpress-plugins/
And check the the_editor (/wp-includes/general-template.php -> line 1771) and the wp_tiny_mce (/wp-admin/includes/post.php -> line 1377) functions too.
Updated the links
These links are dead, but can be reached in the internet archive here:
allcreative.net page
keighl.com page

Related

tinymce adding a context form to a custom plugin in wordpress

So after a lot of trial and error I managed to make a simple tinyMCE plugin that suits a project I'm working on , the plugin at the moment adds or removes a html tag from the slection , but now I want to add a Context Form similar to the link Context Form tinyMCE comes with but there is no clear documentation to do this with the wordpress plugin inside the tinymce.PluginManager . Anyone know how to add this using the tinymce functionaities (in Wordpress).

Umbraco 7 tinyMCE RTE removing HTML5 tags

I installed Umbraco 7.2.5 and having issues with tinyMCE editor.
The richTextEditor is removing HTML5 tags, like <section>.
I have followed the instruction to edit tinyMceConfig.config file and allow any HTML by editing the following
<validElements><![CDATA[*[*]]]></validElements>
But this is not working.
I have restarted website in IIS, but no luck.
Any help would be highly appreciated.
Thanks.
PS.
I have another website running under Umbraco 6, and the above solution works.
This is is likely due to TidyHtml and is an unfortunate issue indeed!
Umbraco documentation shows /config/umbracosettings.config sections where Tidy can be disabled.
Heads up that the TidyEditorContent element is no longer in the default instalation of this file but can easily be added back under the content section:
<content>
<TidyEditorContent>False</TidyEditorContent>
<errors>
<error404>1</error404>

CQ5/AEM - Certain links are not rewriting

We're experiencing some inconsistency with URLs on our publish instance. Some links are having the /content/project/ removed whilst others are not.
The /etc/map has been created and seems to be working as expected, except for these links.
An example of where the rewriting is links in the OOTB Text component.
Just highlighted the text and used the hyperlink in the RTE.
The output HTML on publish comes through as the desired
<a adhocenable="false" href="/path/support.html">My Link</a>
A link that's not being rewritten is from a component, in it's dialog we have a richtext xtype that is referenced in the jsp
<cq:text property="description">
This however is output on the publish as:
<a adhocenable="false" href="/content/project/path/support.html">Other Link</a>
I've had a look in /system/console/configMgr and the Day CQ Link Transformer Checker and this has a:href, area:href, from:action, input:value. So I thought this would pick up the links under anchors.
If anyone can suggest where I should be looking to resolve this, any help would be appreciated.
Upon further investigations I noticed that the links that were not working were contained in tags, and therefore not rewritten by AEM

Plone TinyMCE themed preview

is there a "healthy" way to make the TinyMCE-Preview-Button work with plone.app.theming?
Content could be in different workflow_states (private, visible, ...)
For example:
Work on content (http://edit.example.com) -> click TinyMCE Preview-Button -> Live-Preview with themed site (http://www.example.com/)
thanks for suggestions
I'm not sure the question is relevant.
You mix plone.app.theming and multi domains theming.
Plone is not multidomain theming friendly and will not be.
And even if it was (let say throw an addon) you have to build your own tinymce plugin to do that because tinymce is not itself a multidomains tool.
So you will have to build a specific plugin to achieve this.

tinymce dijit.editor

I have been using tinyMCE over dojo dijit.editor because tinyMCE wins out on functionality. Though I've just come across this: http://phphtmledit.com/dojo/ShowEditor.php?gclid=CPizxJzR3qQCFQpBbgodFidd9A
which, if I'm reading it correctly, claims to be a dojo editor but has all the functionality of tinyMCE.
So my question: are there more dijit.editor plugins out there? So far I've found these: http://docs.dojocampus.org/dojox/editor/plugins
http://docs.dojocampus.org/dijit/_editor/plugins
In particular, is there an image inserter plugin for dijit.editor?
There is an image uploading / inserting plugin - dojox.editor.plugins.UploadImage
The demo behind your link looks like a demo of the http://cutesoft.net/ WYSIWYG editor. (Found the link in the HTML source) You can always mail cutesoft and ask them if they build their editor on top of dojo...
As far as I know all the editor stuff in dojo is documented behind the links you already found and you can of course always write your own plugin.