#16086 closed defect (bug) (wontfix)
TinyMCE inserts blank lines after paragraph with image with caption
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.1 |
Component: | TinyMCE | Keywords: | reporter-feedback |
Focuses: | Cc: |
Description
TinyMCE inserts blank lines with a nobreaking space entity after paragraph with image with caption.
This happens, when the text starts right after the last caption
Example:
[caption id="attachment_6120" align="alignleft" width="220" caption="Caption under image"]<img class="size-medium wp-image-6120" title="title" src="http://www.domain.com/wp-content/images/image.jpg" alt="alt text" width="220" height="165" />[/caption]First paragraph with some text. Second paragraph with some text.
becomes
[caption id="attachment_6120" align="alignleft" width="220" caption="Caption under image"]<img class="size-medium wp-image-6120" title="title" src="http://www.domain.com/wp-content/images/image.jpg" alt="alt text" width="220" height="165" />[/caption] First paragraph with some text. Second paragraph with some text.
after switching to visuell and back to HTML in the editor.
Attachments (1)
Change History (10)
#2
@
14 years ago
- Keywords reporter-feedback added; tinymce editor removed
Probably a browser specific issue with TinyMCE.
#4
@
14 years ago
There are a number of "lost formatting" issues with TinyMCE that occur if you switch back and forth between the Visual and HTML tabs.
#5
@
14 years ago
I was checking tiny_mce_src.js from its nightly build, saw some todo( commented out code ).
// Use BR instead of padded P elements inside editor and use <p> </p> outside editor /* if (o.set) h = h.replace(/<p>\s+( | |\u00a0|<br \/>)\s+<\/p>/g, '<p><br /></p>'); else h = h.replace(/<p>\s+( | |\u00a0|<br \/>)\s+<\/p>/g, '<p>$1</p>'); */ // Since Gecko and Safari keeps whitespace in the DOM we need to // remove it inorder to match other browsers. But I think Gecko and Safari is right. // This process is only done when getting contents out from the editor.
I guess it is the expected behavior.
#6
@
14 years ago
Attached a quick fix, just in case. I'm not much familiar with tiny mce so not touching it.
Note: See
TracTickets for help on using
tickets.
I can't reproduce this.
No matter how I try to put in a post (either starting with visual or html, and bouncing back and forth, saving in between), I never get extra