WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 7 weeks ago

#44275 reopened defect (bug)

<span data-mce-type="bookmark" style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" class="mce_SELRES_start"></span>

Reported by: michaelukr Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.9.6
Component: TinyMCE Keywords:
Focuses: Cc:

Description

This is a follow-up to #42908.

when inserting youtube or any shotrcode in text mode and gets into visual mode tinyMCE inserting <span data-mce-type="bookmark" style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" class="mce_SELRES_start"></span> code
and its hard to erase it
because its respawn again and again

Wordpress 4.9.6

Change History (5)

#1 @noisysocks
13 months ago

Hi @michaelukr! Thanks for the report. Is this bug still happening for you in the latest version of WordPress? Have you tried disabling all plugins to see if that fixes it? Are you able to go into detail on what steps you performed to see the bug happen?

#2 @michaelukr
13 months ago

  • Keywords needs-testing added

thanks for an answer
this bug still happening for you in the latest version of WordPress 5.2.2
but less than before (before was once in an 2-3 hours) now its one in a 2 or 3 days
i changed all - deactivated plugins , but it seems something wrong with <iframe code
if i use it, <span data-mce-type= appearing (but not everytime, as i said above)

#3 @azaozz
13 months ago

  • Keywords needs-testing removed
  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from assigned to closed

This is the "bookmark" inserted to keep the cursor position when switching Visual -> Text or Text -> Visual in the classic editor. Looks like another edge case there.

However I can't reproduce it now. All shortcodes (and shortcode look-alike strings) seem to work properly now. When switching Visual -> Text, either the whole shortcode is selected if there is a wpview preview and it was focused or the cursor position is kept if there was no preview.

When switching Text -> Visual and the cursor was in a shortcode, the whole shortcode is selected, or if there is a preview, the preview is focused.

In any case, if something seems wrong when switching Text -> Visual, try clicking somewhere else in the text to move the cursor. This will ensure that the code for keeping the cursor position wouldn't interfere with other editor functionality.

Closing as worksforme, feel free to reopen with more details and steps to reproduce if this still happens.

#4 @colomet
4 months ago

Worpress 5.3.x and I have the same problem where I use the wordpress plugin h5p iframe.

#5 @wordinvestor
7 weeks ago

  • Resolution worksforme deleted
  • Status changed from closed to reopened

I am still facing same issue in 5.4.2, and now google webmaster is giving error for this thing in google webmaster tool.
Unparsable structured data >> Parsing error: Missing ',' or '}'

Note: See TracTickets for help on using tickets.