[wp-trac] Re: [WordPress Trac] #6610: When saving in Firefox,
TinyMCE alters the inside of <pre> and <code> tags.
WordPress Trac
wp-trac at lists.automattic.com
Sun Apr 6 18:10:25 GMT 2008
#6610: When saving in Firefox, TinyMCE alters the inside of <pre> and <code> tags.
-------------------------------------------------------------------------------------+
Reporter: asandler | Owner: azaozz
Type: defect | Status: assigned
Priority: normal | Milestone: 2.5.1
Component: TinyMCE | Version: 2.5
Severity: normal | Resolution:
Keywords: tinymce,editor,firefox,space,indentation,pre,code,indent,tab,tabulation |
-------------------------------------------------------------------------------------+
Changes (by azaozz):
* owner: anonymous => azaozz
* status: new => assigned
Comment:
The <pre> and <code> tags are quite different. Generally <code> is an
inline [http://www.w3.org/TR/html401/struct/text.html#h-9.2.1 phrase
element] like <strong> and <em>, so it doesn't preserve white space or
line breaks.
The only HTML tag that preserves
[http://www.w3.org/TR/html401/struct/text.html#whitespace white space] is
<pre>, however there's a small bug in the js wpautop that eventually will
remove some spaces if you switch Visual to HTML mode and back several
times. I'm working on a patch for this for 2.5.1, until then, for best
results format the inside of the <pre> tags from HTML mode prior to saving
the post.
--
Ticket URL: <http://trac.wordpress.org/ticket/6610#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list