Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#21037 closed defect (bug) (duplicate)

'Remove formatting' doesn't clear text alignment

Reported by: the-painted-hive's profile The Painted Hive Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.4
Component: TinyMCE Keywords: close reporter-feedback
Focuses: Cc:

Description

Not certain if this is a bug or just something which needs enhancing. Removing formatting from text within the visual editor fails to remove text alignment. This is going to be problematic for me when I migrate my posts from Blogger (as they have an in-line style of center-align though I want them to be justified in WordPress as set by my CSS). I want to be able to clear all alignment though the only way to achieve this is to manually edit each tag from the HTML which is way too laborious. Changing it within the visual editor does work though it adds another in-line style (which I don't want) and it doesn't erase the original alignment from the HTML. I found that the 'align=center' properties remained, they were just over-ridden. Can text alignment be included when removing all formatting?

Change History (3)

#1 @SergeyBiryukov
12 years ago

  • Component changed from Formatting to TinyMCE

#2 @azaozz
12 years ago

  • Keywords close reporter-feedback added

The "Remove formatting" command in TinyMCE would remove some inline tags and inline styles from the selected content. It properly removes text alignment when it was applied by the editor, only make sure to select exactly the content that needs the formatting removed (you can click on the HTML tags listed in the Path at the bottom to select wrappers, etc.).

#3 @azaozz
12 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Closing this as #22799 has a patch.

Note: See TracTickets for help on using tickets.