#42908 closed defect (bug) (fixed)
4.9.1 Bug Found in TinyMCE Visual/Text Tab
Reported by: | othellobloke | Owned by: | azaozz |
---|---|---|---|
Milestone: | 4.9.3 | Priority: | normal |
Severity: | normal | Version: | 4.9.1 |
Component: | TinyMCE | Keywords: | needs-patch |
Focuses: | Cc: |
Description
I raised my question here: https://wordpress.org/support/topic/switching-between-visual-text-tab-inserts-invisible-span/
When we type something in the visual editor and then click on the Text tab, it inserts the following:
<span style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" data-mce-type="bookmark" class="mce_SELRES_start"></span>
and then when switching back to Visual it erases what we wrote. But then when we switch back to the Text tab, the span I pasted above keeps getting appended to the one already there.
Change History (10)
#1
follow-up:
↓ 3
@
7 years ago
- Milestone Awaiting Review deleted
- Resolution set to invalid
- Status changed from new to closed
#2
@
7 years ago
- Resolution invalid deleted
- Status changed from closed to reopened
This error also occurs in WordPress.com. I was able to reproduce on a test site using Twenty Seventeen following up on user reports that came to me in the forums: http://en.forums.wordpress.com/topic/change-speed-of-slide-show-in-dara-theme
WordPress.com themes affected: Dara, Twenty Seventeen (I did not test additional WP.com themes)
To reproduce
- add the shortcode for the image slideshow in to a new post. It doesn't matter if you use Calypso or WP-Admin, as both are affected.
- add the "false" parameter to keep the slideshow from auto starting
- switch back to the visual editor, the "false" parameter does not work
- switch back to text editor and see the additional code that's been added https://screenshots.firefox.com/Qj0y2yZpdbtFVslK/wordpress.com
The "false" parameter will stick if you do not leave the text editor and save the post and publish it from that view.
#3
in reply to:
↑ 1
;
follow-up:
↓ 4
@
7 years ago
Replying to azaozz:
Hi @othellobloke, from the support forum thread seems this was an issue with a specific theme that has been resolved. Closing as invalid, feel free to reopen with more info and steps to reproduce on a clean install.
It's not a theme issue. It's a TinyMCE issue.
#4
in reply to:
↑ 3
@
7 years ago
- Milestone set to 4.9.3
Think I got to the bottom of this. It is a problem with shortcodes (again!) and keeping the scroll position. When switching Text => Visual the keep-position marker span gets stuck inside of the shortcode preview/placeholder. Then switching back to Text restores it as part of the shortcode. Having the cursor in that span or in the shortcode repeats this.
Replying to othellobloke:
Right, it is a problem with shortcodes, previews and keeping scroll position.
Patch coming up.
#5
@
7 years ago
- Owner set to azaozz
- Resolution set to fixed
- Status changed from reopened to closed
In 42574:
#8
@
7 years ago
Have the same issue using WordPress latest Version with Visual composer:
<span style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" data-mce-type="bookmark" class="mce_SELRES_start"></span>
Hi @othellobloke, from the support forum thread seems this was an issue with a specific theme that has been resolved. Closing as invalid, feel free to reopen with more info and steps to reproduce on a clean install.