mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-02 13:41:24 +01:00
Pink trailing whites
git-svn-id: http://svn.automattic.com/wordpress/trunk@16926 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e4698ba1be
commit
0e072f2dd7
@ -10,7 +10,7 @@
|
||||
*/
|
||||
init : function(ed, url) {
|
||||
var disabled = true;
|
||||
|
||||
|
||||
// Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample');
|
||||
ed.addCommand('WP_Link', function() {
|
||||
if ( disabled )
|
||||
@ -33,7 +33,7 @@
|
||||
});
|
||||
|
||||
ed.addShortcut('alt+shift+a', ed.getLang('advanced.link_desc'), 'WP_Link');
|
||||
|
||||
|
||||
ed.onNodeChange.add(function(ed, cm, n, co) {
|
||||
disabled = co && n.nodeName != 'A';
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user