WordPress.org

Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#5803 closed enhancement (fixed)

TinyMCE, add "select class" to the Image pop-up

Reported by: azaozz Owned by:
Milestone: 2.5 Priority: normal
Severity: normal Version:
Component: TinyMCE Keywords:
Focuses: Cc:

Description

This patch adds the "Class" drop-down to the "Image" pop-up in TinyMCE 3.0. The classes shown there are defined in "tinymce/wordpress.css". They should also exist in the theme's style.css, so only common classes like .alignleft and .alignright can be added.

Attachments (2)

image-popup-class.patch (47.7 KB) - added by azaozz 10 years ago.
image-popup-class2.patch (49.1 KB) - added by azaozz 10 years ago.

Download all attachments as: .zip

Change History (6)

#1 @ryan
10 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [6764]) add "select class" to the Image pop-up. Props azaozz. fixes #5803

#2 @azaozz
10 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

Reworked the patch. This would be much easier to use. It automatically adds class="alignleft" or "alignright" when float left/right is selected for the image. It also falls-back well: If the classes aren't defined in style.css, the float still remains.

#3 @ryan
10 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

(In [6769]) Automatically add classes to images for floated images. Props azaozz. fixes #5803

#4 @Viper007Bond
10 years ago

Sweet. No more having to add padding to all images in posts or fixing screwed up posts for my clients. :D

Note: See TracTickets for help on using tickets.