Pink trailing whites
git-svn-id: https://develop.svn.wordpress.org/trunk@16926 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8b6cf91dc9
commit
4d85c3a424
@ -10,7 +10,7 @@
|
|||||||
*/
|
*/
|
||||||
init : function(ed, url) {
|
init : function(ed, url) {
|
||||||
var disabled = true;
|
var disabled = true;
|
||||||
|
|
||||||
// Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample');
|
// Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample');
|
||||||
ed.addCommand('WP_Link', function() {
|
ed.addCommand('WP_Link', function() {
|
||||||
if ( disabled )
|
if ( disabled )
|
||||||
@ -33,7 +33,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
ed.addShortcut('alt+shift+a', ed.getLang('advanced.link_desc'), 'WP_Link');
|
ed.addShortcut('alt+shift+a', ed.getLang('advanced.link_desc'), 'WP_Link');
|
||||||
|
|
||||||
ed.onNodeChange.add(function(ed, cm, n, co) {
|
ed.onNodeChange.add(function(ed, cm, n, co) {
|
||||||
disabled = co && n.nodeName != 'A';
|
disabled = co && n.nodeName != 'A';
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user