[wp-trac] [WordPress Trac] #27378: <!--more--> displaced in editor when switching from Visual to Text mode
WordPress Trac
noreply at wordpress.org
Wed Mar 12 15:08:31 UTC 2014
#27378: <!--more--> displaced in editor when switching from Visual to Text mode
----------------------------+-----------------------------
Reporter: NateWr | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: trunk
Severity: normal | Keywords:
Focuses: administration |
----------------------------+-----------------------------
With the new TinyMCE in 3.9 beta 1, the <!--more--> tag is displaced when
I switch from the Visual to Text mode. This only happens for more tags set
in posts prior to upgrading to 3.9 beta 1. If I insert a more tag using
the current editor, the position is restored.
Reproduction steps:
1. Load post with a more tag set in 3.8.1.
2. Switch from Visual to Text editor. Notice the more tag is now at the
top.
3. Switch back to Visual editor. Notice the more tag is now at the top.
Here is an image showing the process:
[http://imagebin.org/298969]
Here is the post_content entry in the database for this post, which was
created normally through the editor in WordPress 3.8.1.
{{{
mysql> select post_content from wp_posts where ID=102;
+--------------------------------------------------------------------------------------------------------------+
| post_content
|
+--------------------------------------------------------------------------------------------------------------+
| It was blustery out there today, but we had a great time. Check out the
photos!<!--more-->Here is some more. |
+--------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
}}}
And here is what the database entry looks like when I create a new post in
3.9 Beta 1 (this works fine when switching).
{{{
mysql> select post_content from wp_posts where ID=186;
+----------------------------------------------------------+
| post_content |
+----------------------------------------------------------+
| Here is my awesome text.
<!--more-->
And some more |
+----------------------------------------------------------+
1 row in set (0.00 sec)
}}}
Please let me know if there is anything else I can do to help. But I have
never looked at the TinyMCE code so I'm afraid I won't be much help there.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27378>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list