mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 18:32:23 +01:00
Reorder quicktags.js
a bit to account for the order of defining vars and functions after [43577].
See #44371. Built from https://develop.svn.wordpress.org/trunk@43579 git-svn-id: http://core.svn.wordpress.org/trunk@43408 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1422d8ffd9
commit
1824884b75
@ -35,47 +35,20 @@ window.edButtons = [];
|
|||||||
*
|
*
|
||||||
* Define all former global functions so plugins that hack quicktags.js directly don't cause fatal errors.
|
* Define all former global functions so plugins that hack quicktags.js directly don't cause fatal errors.
|
||||||
*/
|
*/
|
||||||
window.edAddTag = function(){},
|
window.edAddTag = function(){};
|
||||||
window.edCheckOpenTags = function(){},
|
window.edCheckOpenTags = function(){};
|
||||||
window.edCloseAllTags = function(){},
|
window.edCloseAllTags = function(){};
|
||||||
window.edInsertImage = function(){},
|
window.edInsertImage = function(){};
|
||||||
window.edInsertLink = function(){},
|
window.edInsertLink = function(){};
|
||||||
window.edInsertTag = function(){},
|
window.edInsertTag = function(){};
|
||||||
window.edLink = function(){},
|
window.edLink = function(){};
|
||||||
window.edQuickLink = function(){},
|
window.edQuickLink = function(){};
|
||||||
window.edRemoveTag = function(){},
|
window.edRemoveTag = function(){};
|
||||||
window.edShowButton = function(){},
|
window.edShowButton = function(){};
|
||||||
window.edShowLinks = function(){},
|
window.edShowLinks = function(){};
|
||||||
window.edSpell = function(){},
|
window.edSpell = function(){};
|
||||||
window.edToolbar = function(){};
|
window.edToolbar = function(){};
|
||||||
|
|
||||||
/**
|
|
||||||
* Initialize new instance of the Quicktags editor
|
|
||||||
*/
|
|
||||||
window.quicktags = function(settings) {
|
|
||||||
return new QTags(settings);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Inserts content at the caret in the active editor (textarea)
|
|
||||||
*
|
|
||||||
* Added for back compatibility
|
|
||||||
* @see QTags.insertContent()
|
|
||||||
*/
|
|
||||||
window.edInsertContent = function(bah, txt) {
|
|
||||||
return QTags.insertContent(txt);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Adds a button to all instances of the editor
|
|
||||||
*
|
|
||||||
* Added for back compatibility, use QTags.addButton() as it gives more flexibility like type of button, button placement, etc.
|
|
||||||
* @see QTags.addButton()
|
|
||||||
*/
|
|
||||||
window.edButton = function(id, display, tagStart, tagEnd, access) {
|
|
||||||
return QTags.addButton( id, display, tagStart, tagEnd, access, '', -1 );
|
|
||||||
}
|
|
||||||
|
|
||||||
/* jshint ignore:end */
|
/* jshint ignore:end */
|
||||||
|
|
||||||
(function(){
|
(function(){
|
||||||
@ -747,3 +720,30 @@ window.edButton = function(id, display, tagStart, tagEnd, access) {
|
|||||||
edButtons[140] = new qt.CloseButton();
|
edButtons[140] = new qt.CloseButton();
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initialize new instance of the Quicktags editor
|
||||||
|
*/
|
||||||
|
window.quicktags = function(settings) {
|
||||||
|
return new window.QTags(settings);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Inserts content at the caret in the active editor (textarea)
|
||||||
|
*
|
||||||
|
* Added for back compatibility
|
||||||
|
* @see QTags.insertContent()
|
||||||
|
*/
|
||||||
|
window.edInsertContent = function(bah, txt) {
|
||||||
|
return window.QTags.insertContent(txt);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds a button to all instances of the editor
|
||||||
|
*
|
||||||
|
* Added for back compatibility, use QTags.addButton() as it gives more flexibility like type of button, button placement, etc.
|
||||||
|
* @see QTags.addButton()
|
||||||
|
*/
|
||||||
|
window.edButton = function(id, display, tagStart, tagEnd, access) {
|
||||||
|
return window.QTags.addButton( id, display, tagStart, tagEnd, access, '', -1 );
|
||||||
|
};
|
||||||
|
2
wp-includes/js/quicktags.min.js
vendored
2
wp-includes/js/quicktags.min.js
vendored
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.0-alpha-43578';
|
$wp_version = '5.0-alpha-43579';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user