|
Get a 25% off coupon to use on any of our website scripts! - Subscribe to our Newsletter now!
|
Creating a New TinyMCE Theme for 3.xPosted 2009-03-27 in Guides
Here are the steps I took to create a new TinyMCE theme for TinyMCE 3.x. It isn't very hard to do, but the documentation is extremely out of date. You can tweak these all you want, but if you want to make a custom TinyMCE theme there isn't much available. Warning: This is by no means guaranteed to be the right way, or even a good way to do this. I just started implementing TinyMCE for the first time. The skin system appears to let you customize things to a great extent, but this is my first attempt to create an entirely new theme. Now that that's out of the way… All you need is the latest download and a text editor with basic search & replace. You might even get away with using the Search & Replace function on the TinyMCE demo (the binoculars icon). You will need to know some basic HTML, CSS and JavaScript to follow along. For the most part it's pretty easy. 1. Copy the default themeIt's easiest to use the default 'advanced' theme as a base for the new theme. Copy the 'advanced' theme folder found in 'tiny_mce/themes/' and give it a new name, for example 'mytheme'. 2. Edit the language fileThere is one small edit required in the theme language file. For English (default):
Note: If you have multiple languages or are using a non-English language file just edit all of the appropriate files in 'mytheme/langs/'. 3. Setup the new editor templateThe 'editor_template.js' file is the main theme file and requires the most changes, but it's a compressed file. To get the uncompressed version setup:
4. Edit the templateNow we need to edit the theme template with the new theme name and author info. Note the capitalization – check 'match case' or equivelant in your editor.
Here is the exact code used for the theme author information: 5. Using the new themeIf everything went okay so far, you should be ready to test the new theme. You would initialize your new editor from an HTML page like this (note the red areas which have been changed from the default example): Now you can modify your theme to your heart's content! When you're ready to deploy your new theme, you can use the JavaScript compressor to compress your 'editor_template.js' file down. First make a copy of the uncompressed version called 'editor_template_src.js'. I'm much more familiar with Xinha than TinyMCE, and this is my first whack at TinyMCE themes. I can't promise it's perfect but I'll try to keep this page updated as I experiment. Please let me know if anything is missing or incorrect.
|
SearchPopular Articles
SubscribeSubscribe via RSS Stay current with Scriptalicious news and subscribe in your favorite RSS reader. Subscribe via EmailGet the latest Scriptalicious news delivered to your inbox. Tag Cloudseo guides seo scripts scriptalicious seo tools forums PageRank SEO services content development apache htaccess mod_rewrite scripts webmaster google yahoo JavaScript XMLHttpRequest php contest software website list facebook ebook pagerank bing backlink rankings tool turnkey checker alexa themes marketing tinymce wysiwyg browser rank script tools legal trademark infringement mysql social web social networking advertising google plus plus one backlinks |
77 powerful SEO scripts for under $100. |
Real-time Backlink Rank Checker script. |