[wp-trac] [WordPress Trac] #42681: 'Insert link' button doesn't work when updating a post and using div elements at the same time
WordPress Trac
noreply at wordpress.org
Thu Nov 23 14:55:17 UTC 2017
#42681: 'Insert link' button doesn't work when updating a post and using div
elements at the same time
----------------------------+-----------------------------
Reporter: michellefoolen | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: TinyMCE | Version: 4.9
Severity: normal | Keywords:
Focuses: |
----------------------------+-----------------------------
When updating a post (after publishing it earlier), it's not possible to
add a new link via the 'insert' link button in the visual editor, if the
link is placed between<div> and </div> elements.
You can reproduce this error by:
- opening a new post
- adding <div> </div> in the text editor *
- press the ‘publish’ button
- switch back to the visual editor
- add a link via the ‘insert’ link button (for example: www.google.com)
- switch to the text editor and notice that the result is not a link
element but just :<div> http://www.google.com</div>
Actual result: <div> http://www.google.com </div>
Expected result: <div> <a href=“http://google.com”>http://google.com</a>
</div>
This error didn’t happen in WordPress 4.8.2, but it does in WordPress 4.9.
*please note that from here on, everything in your editor is placed within
div elements automatically. For example, just pressing the ‘enter’ button
leads to new<div> </div> elements in your text editor
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42681>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list