rulu ruru

post Disabling HTML entities in FCKEditor

December 25th, 2007

Filed under: javascript — starenka @ 13:56
Tags: , , , ,

What drives me crazy about FCKEditor is the fact, that by default it transforms characters to entities. For example š is in the source code represented as š .This sucks most when you are editing the source of the post previously written in WYSIWYG mode. It’s really hard to navigate thru such hordes of &s and it makes you pull your hair (if any).

Here’s a simple fix, tho. Locate your config file fckconfig.js in your FCK directory (if you’re using Wordpress with Dean’s FCKEditor For Wordpress it should be something like /wp-content/plugins/fckeditor_for_wordpress/fckeditor/fckconfig.js) and change these lines to:

FCKConfig.ProcessHTMLEntities = false ;
FCKConfig.IncludeLatinEntities = false ;
FCKConfig.IncludeGreekEntities = false ;

Popularity: 40% [?]

post TinyMCE & Wordpress - using theme CSS

December 23rd, 2007

Filed under: javascript — starenka @ 12:32
Tags: , ,

TinyMCE is a fine WYSIWYG you can use for comfort posts writing in Wordpress. It’s so easy to integrate, so you can use it with your own CMS in mere minutes. But what really sucks when it comes to Wordpress integration is the fact, that you don’t really see the CSS aplied while writing the post. However this could be easily fixed by editing single line in your TinyMCE config.

Locate your TinyMCE config file in /wp-includes/js/tinymce/tiny_mce_config.php. Now open it (f.e with Notepad++ ) and search for "content_css". This property points to CSS used for displaying the WYSIWYG textarea content. You can either edit the CSS to suit your needs or link your theme CSS instead. To link current theme CSS change the line to show: content_css : "<?php bloginfo('stylesheet_url'); ?>",

That’s it. Have fun :)

Popularity: 40% [?]

ruldrurd
© starenka 2oo7, cute alien monster by noizcut, original theme by Laurentiu Piron - customized by starenka | proudly powered by WordPress