[wp-testers] CSS in WYSIWYG

Humaneasy Consulting humaneasy at gmail.com
Mon Dec 12 12:47:27 GMT 2005


Hi Andy,

You can count my vote for this. Real nice solution :)
Please implement it just for 2.0

Best, Lopo

2005/12/12, Andy Skelton <skeltoac at gmail.com>:
>
>
> TinyMCE does have such a dropdown. We removed it from the UI because
> we don't yet have a way to know which classes to put in the select
> element.
>
> Here's a thought: theme authors now have functions.php. In the editor
> we could do something like this:
>
> $image_classes = apply_filter('editor_image_classes', array());
> if ( count($image_classes) > 0 ) {
> echo "<select ...>";
> foreach ( $image_classes as $label => $class )
>   echo "<option value='$class'>$label</option>";
> echo "</select>";
> }
>
> And then the theme authors would do this:
>
> add_filter('editor_image_classes', 'oogabooga_image_classes');
> function oogabooga_image_classes($image_classes) {
> $image_classes += array('alignright' => 'alignright', 'alt
> (Alternate)' => 'alt');
> return $image_classes;
> }
>
> Thoughts? Opinions? Bug reports? Flames? :-)
>
> Andy
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://comox.textdrive.com/pipermail/wp-testers/attachments/20051212/5cfa6bf5/attachment.htm


More information about the wp-testers mailing list