Make WordPress Core

Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#2058 closed defect (bug) (fixed)

TinyMCE editor adding border attribute

Reported by: darkfate's profile darkfate Owned by: ryan's profile ryan
Milestone: Priority: high
Severity: normal Version: 2.0
Component: Administration Keywords: tinymce bg|has-patch
Focuses: Cc:

Description

The blog that I have is using a doctype declaration of XHTML 1.1 which makes it not valid to have border attributes within a image tag. Now what I did was have the post and then put in the image and i deleted the border="0". Then I hit update and post and to my surprise it put back the border attribute! I thought I might of not hit update, but to make sure, I went back to the post and hit the html button and then i deleted the border tag again, then I hit update, and then I hit the html button again and it was back, I didn't even refresh the page or anything!

Attachments (1)

2058.diff (26.3 KB) - added by skeltoac 19 years ago.

Download all attachments as: .zip

Change History (4)

#1 @skeltoac
19 years ago

  • Keywords tinymce bg|has-patch added
  • Owner changed from anonymous to ryan

Updates to TinyMCE: Removed forced table border, added full XHTML 1.0 Transitional set for unfiltered_html, API improvements, JS moved from admin-header.php to tiny_mce_gzip.php

The border attribute will no longer be added automatically. If you want to change the allowed HTML set to adhere to a different doctype, you must use the new mce_valid_elements filter.

@skeltoac
19 years ago

#2 @ryan
19 years ago

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

(In [3292]) MCE improvements from skeltoac. fixes #2058

#3 @(none)
18 years ago

  • Milestone 2.0 deleted

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.