Opened 19 years ago
Closed 19 years ago
#6224 closed defect (bug) (invalid)
TinyMCE configuration removes DIVs unnecessarily
| Reported by: | offmessage | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | TinyMCE | Version: | 2.3.3 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
source:branches/2.3/wp-includes/js/tinymce/tiny_mce_config.php@5700#25 forces TinyMCE to try and replace <DIV>s with <P>s. This seems completely unnecessary and breaks any use of microformats in blog posts. Even more annoyingly it is different for blogs hosted on wordpress.com, where this configuration is not present.
@@ -23,5 +23,5 @@
// Set up init variables
- $valid_elements = 'p/-div[*],-strong/-b[*],-em/-i[*],-font[*],-ul[*],-ol[*],-li[*],*[*]';
+ $valid_elements = '-div[*],-strong/-b[*],-em/-i[*],-font[*],-ul[*],-ol[*],-li[*],*[*]';
$valid_elements = apply_filters('mce_valid_elements', $valid_elements);
Change History (5)
#2
@
19 years ago
I think possibly i should give up at this point!
http://trac.wordpress.org/browser/branches/2.3/wp-includes/js/tinymce/tiny_mce_config.php#L25
#3
@
19 years ago
- Resolution → invalid
- Status new → closed
Closing as invalid for now. Please test trunk (2.5), I believe this issue is resolved there.
#4
@
19 years ago
- Resolution invalid
- Status closed → reopened
I see that it's fixed in trunk, but would hope that the fix would be back ported to the 2.3.x branches? It's a bug there too, and lots of people aren't going to update to 2.5 straight away.
#5
@
19 years ago
- Resolution → invalid
- Status reopened → closed
Backporting this to the 2.3.x branch would mean an upgrade to TinyMCE3, which is far too invasive for a maintenance update and will therefore not make it into any possible 2.3.x maintenance releases.
Reclosing as invalid because of that.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Damn - I meant source:branches/2.3/wp-includes/js/tinymce/tiny_mce_config.php@5700#25