Good to hear that Sony (wordpress3.3) has the new editor api wp_editor() that gives us the ability to use multiple instances of the editor in our custom fields with ease.
But I needed to to customize the default editor (for the main content) and couldn’t figure out how to do it with this function.
I needed to customize the editor for the my new custom post type called baner for which i needed to change the size of the editor with fewer buttons. I know i could do it by simply using a custom field instead but for some reason i want to use the content for the description of the banner.
Thank You in Advance.
I was looking for a solution to place custom metabox above the default editor and i’ve found the solution to my old question (how to customize the default editor with the wp_editor)!
The solution was to unset the default editor first. Then create another metabox to to place the content then use wp_editor to create new its new instance, simple isn’t it?
In this way we have registered a new metabox called content . Now time to place the editor
Now you can fully customize your editor! This is how it looks now. Hope it is useful for you too!
You can customize the editor (TinyMCE) with a filter, as shown here. Code snippet attached:
This code should be placed in your theme’s
functions.php
file. You may want toprint_r( $in )
to see all the keys that are passed (I’ve omitted some of them here because I don’t believe the page that I linked to above is up-to-date). You can browse the latest source here. You’ll find the filters you’re looking for in functionpublic static function editor_settings($editor_id, $set)
Also, you may also want to make sure that this only happens for your
baner
post_type, as this will affect all instances of the editor that are created.You can try this Editor which you can add additional fields also it is simple to use and install