[wp-testers] HTML "code" tag in the Visual Editor?
deliciousdays
oliver.seidel at deliciousdays.com
Mon May 5 05:17:38 GMT 2008
True, but what can't so easily/transparently be adjusted is the removal
of that additional "WP intelligence" that kicks in when switching
between code & visual mode. If you're used to a bit more control over
the actual HTML used in your post, this WP 'feature' is totally useless.
For now I have to go into "wp-admin/js/editors.js" and remove the code in:
pre_wpautop : function(content) {...
&
wpautop : function(pee) {...
This is the most annoying part of how TinyMCE is implemented. Does
anyone have a less intrusive way of correcting this?
Cheers,
Oliver
Andrew Ozz wrote:
> Rick Beckman wrote:
>> The lack of being able to use the CODE tag is a big omission. (The
>> lack of
>> being able to easily create Definition Lists [DL, DT, and DD tags] in
>> TinyMCE is another omission I'm not at all happy about...
>
> Not exactly. It's just not enabled by default. If you need to use
> <code>, <samp>, <dd>, <dt>, <dl>, etc. in TinyMCE, add this to the
> init array:
>
> 'theme_advanced_blockformats' =>
> 'p,pre,code,dt,dd,samp,h1,h2,h3,h4,h5,h6',
>
> More info:
> http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/theme_advanced_blockformats
>
More information about the wp-testers
mailing list