[wp-trac] [WordPress Trac] #28335: More tag can't be inserted if inside div
WordPress Trac
noreply at wordpress.org
Thu May 29 05:08:41 UTC 2014
#28335: More tag can't be inserted if inside div
------------------------------------+-----------------------------
Reporter: programmin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.9.2
Component: Editor | Version: 3.9.1
Severity: normal | Resolution:
Keywords: has-patch dev-feedback | Focuses: ui, javascript
------------------------------------+-----------------------------
Changes (by ebinnion):
* keywords: needs-patch => has-patch dev-feedback
Comment:
Confirmed that the something similar to the described behavior happened in
trunk when the following content was in the text tab.
{{{
<div>
hello world
</div>
}}}
When switching back to the editor, if I clicked the more button when the
cursor was directly beside 'hello world', the more shortcode was added at
the bottom of the div. Which, in this case, is considerably further down
the page from the 'hello world'.
I am attaching a patch that fixes the behavior and in my opinion,
simplifies some of the code.
Note: This patch only addresses `/wp-
includes/js/tinymce/plugins/wordpress/plugin.js` and not any of the
minified versions.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28335#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list