Opened 14 years ago
Closed 14 years ago
#14211 closed defect (bug) (fixed)
Full Screen view in TinyMCE can destroy post
Reported by: | RanYanivHartstein | Owned by: | azaozz |
---|---|---|---|
Milestone: | 3.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | TinyMCE | Keywords: | |
Focuses: | Cc: |
Description
In certain cases, switching to full screen view in TinyMCE can destroy a post's contents.
Here's one way to reproduce this.
- Get the file bad-full-screen.txt attached to this ticket
- Create a new post in any 3.0 blog
- Switch to HTML
- Paste from above file
- Update/publish (or anyway, save)
- Switch to Visual Editor
- Hit Full Screen
Now, the Full Screen view doesn't just hide the text, it removes it - when you switch back to normal view, the post is empty (except for a line break with mce_bogus="1").
This looks like it's caused by something in the last three paragraphs. When I paste the text in paragraph by paragraph, the paragraph that seems to be responsible is the one that starts with "To begin with, we're going to..." (the third paragraph from the end). For e.g., If I go through the above process, but between stage 8 and stage 9 I remove that paragraph, everything works fine.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
I can reproduce the problem with just the string "undefined" as the post_content.
Furthermore, once in Visual mod with the string "undefined" as the post_content, I cannot switch back to HTML mode.