That sounds like the best solution - leave it up to the theme authors to decide what classes should be allowed in the TinyMCE. I could definitely use this feature!
Cheers - Stuart. On 12/12/05, Andy Skelton <[EMAIL PROTECTED]> wrote: > On 12/11/05, Richard Jenkins <[EMAIL PROTECTED]> wrote: > > There are WYSIWYG editors available that do let you add custom CSS > > classes. Xihha (http://xinha.python-hosting.com/wiki/Examples) for > > example has a sidebar with a list of classes that you can select. I > > think another has a drop-down menu, but I can't recall which one. > > 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 > [email protected] > http://lists.automattic.com/mailman/listinfo/wp-testers > _______________________________________________ wp-testers mailing list [email protected] http://lists.automattic.com/mailman/listinfo/wp-testers
