[wp-trac] [WordPress Trac] #44275: <span data-mce-type="bookmark" style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" class="mce_SELRES_start"></span>
WordPress Trac
noreply at wordpress.org
Mon Jul 15 20:41:27 UTC 2019
#44275: <span data-mce-type="bookmark" style="display: inline-block; width: 0px;
overflow: hidden; line-height: 0;" class="mce_SELRES_start"></span>
--------------------------+-------------------------
Reporter: michaelukr | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: TinyMCE | Version: 4.9.6
Severity: normal | Resolution: worksforme
Keywords: | Focuses:
--------------------------+-------------------------
Changes (by azaozz):
* keywords: needs-testing =>
* status: assigned => closed
* resolution: => worksforme
* milestone: Awaiting Review =>
Comment:
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44275#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list