MDL-51228 atto_editor: Add documententation for inlineFormat flag
This commit is contained in:
+3
@@ -327,6 +327,7 @@ EditorPluginButtons.prototype = {
|
||||
* specified, in the class for the button.
|
||||
* @param {function} config.callback A callback function to call when the button is clicked.
|
||||
* @param {object} [config.callbackArgs] Any arguments to pass to the callback.
|
||||
* @param {boolean} [config.inlineFormat] Delay callback for text input if selection is collapsed.
|
||||
* @return {Node} The Node representing the newly created button.
|
||||
*/
|
||||
addButton: function(config) {
|
||||
@@ -490,6 +491,7 @@ EditorPluginButtons.prototype = {
|
||||
* specified, in the class for the button.
|
||||
* @param {function} config.callback A callback function to call when the button is clicked.
|
||||
* @param {object} [config.callbackArgs] Any arguments to pass to the callback.
|
||||
* @param {boolean} [config.inlineFormat] Delay callback for text input if selection is collapsed.
|
||||
* @param {array} config.entries List of menu entries with the string (entry.text) and the handlers (entry.handler).
|
||||
* @param {number} [config.overlayWidth=14] The width of the menu. This will be suffixed with the 'em' unit.
|
||||
* @param {string} [config.menuColor] menu icon background color
|
||||
@@ -675,6 +677,7 @@ EditorPluginButtons.prototype = {
|
||||
* @param {object} config
|
||||
* @param {function} config.callback A callback function to call when the button is clicked.
|
||||
* @param {object} [config.callbackArgs] Any arguments to pass to the callback.
|
||||
* @param {boolean} [config.inlineFormat] Delay callback for text input if selection is collapsed.
|
||||
* @param {object} [inheritFrom] A parent configuration that this configuration may inherit from.
|
||||
* @return {object} The normalized configuration
|
||||
* @private
|
||||
|
||||
+3
@@ -327,6 +327,7 @@ EditorPluginButtons.prototype = {
|
||||
* specified, in the class for the button.
|
||||
* @param {function} config.callback A callback function to call when the button is clicked.
|
||||
* @param {object} [config.callbackArgs] Any arguments to pass to the callback.
|
||||
* @param {boolean} [config.inlineFormat] Delay callback for text input if selection is collapsed.
|
||||
* @return {Node} The Node representing the newly created button.
|
||||
*/
|
||||
addButton: function(config) {
|
||||
@@ -488,6 +489,7 @@ EditorPluginButtons.prototype = {
|
||||
* specified, in the class for the button.
|
||||
* @param {function} config.callback A callback function to call when the button is clicked.
|
||||
* @param {object} [config.callbackArgs] Any arguments to pass to the callback.
|
||||
* @param {boolean} [config.inlineFormat] Delay callback for text input if selection is collapsed.
|
||||
* @param {array} config.entries List of menu entries with the string (entry.text) and the handlers (entry.handler).
|
||||
* @param {number} [config.overlayWidth=14] The width of the menu. This will be suffixed with the 'em' unit.
|
||||
* @param {string} [config.menuColor] menu icon background color
|
||||
@@ -673,6 +675,7 @@ EditorPluginButtons.prototype = {
|
||||
* @param {object} config
|
||||
* @param {function} config.callback A callback function to call when the button is clicked.
|
||||
* @param {object} [config.callbackArgs] Any arguments to pass to the callback.
|
||||
* @param {boolean} [config.inlineFormat] Delay callback for text input if selection is collapsed.
|
||||
* @param {object} [inheritFrom] A parent configuration that this configuration may inherit from.
|
||||
* @return {object} The normalized configuration
|
||||
* @private
|
||||
|
||||
@@ -177,6 +177,7 @@ EditorPluginButtons.prototype = {
|
||||
* specified, in the class for the button.
|
||||
* @param {function} config.callback A callback function to call when the button is clicked.
|
||||
* @param {object} [config.callbackArgs] Any arguments to pass to the callback.
|
||||
* @param {boolean} [config.inlineFormat] Delay callback for text input if selection is collapsed.
|
||||
* @return {Node} The Node representing the newly created button.
|
||||
*/
|
||||
addButton: function(config) {
|
||||
@@ -340,6 +341,7 @@ EditorPluginButtons.prototype = {
|
||||
* specified, in the class for the button.
|
||||
* @param {function} config.callback A callback function to call when the button is clicked.
|
||||
* @param {object} [config.callbackArgs] Any arguments to pass to the callback.
|
||||
* @param {boolean} [config.inlineFormat] Delay callback for text input if selection is collapsed.
|
||||
* @param {array} config.entries List of menu entries with the string (entry.text) and the handlers (entry.handler).
|
||||
* @param {number} [config.overlayWidth=14] The width of the menu. This will be suffixed with the 'em' unit.
|
||||
* @param {string} [config.menuColor] menu icon background color
|
||||
@@ -525,6 +527,7 @@ EditorPluginButtons.prototype = {
|
||||
* @param {object} config
|
||||
* @param {function} config.callback A callback function to call when the button is clicked.
|
||||
* @param {object} [config.callbackArgs] Any arguments to pass to the callback.
|
||||
* @param {boolean} [config.inlineFormat] Delay callback for text input if selection is collapsed.
|
||||
* @param {object} [inheritFrom] A parent configuration that this configuration may inherit from.
|
||||
* @return {object} The normalized configuration
|
||||
* @private
|
||||
|
||||
Reference in New Issue
Block a user