Ticket #2058 (closed defect (bug): fixed)

Opened 6 years ago

Last modified 5 years ago

TinyMCE editor adding border attribute

Reported by: darkfate Owned by: ryan
Priority: high Milestone:
Component: Administration Version: 2.0
Severity: normal Keywords: tinymce bg|has-patch
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

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

Change History

  • 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.

comment:2   ryan6 years ago

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

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

  • Milestone 2.0 deleted

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.