From 7a62a64686eae2de374f090395379454daec44db Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Sun, 13 Mar 2016 17:46:59 +0000 Subject: [PATCH] TinyMCE, inline link: ensure the inline dialog is in preview mode after updating a link from the (advanced) modal. Props afercia. See #33301. git-svn-id: https://develop.svn.wordpress.org/trunk@36977 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/wplink.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp-includes/js/wplink.js b/src/wp-includes/js/wplink.js index 27505b81d4..c32a998449 100644 --- a/src/wp-includes/js/wplink.js +++ b/src/wp-includes/js/wplink.js @@ -436,6 +436,8 @@ var wpLink; } } + // Not editing any more + attrs['data-wplink-edit'] = null; editor.dom.setAttribs( link, attrs ); } else { if ( text ) {