diff options
| author | Robot Odoo <xmo+roboto@odoo.com> | 2019-02-19 08:09:28 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-19 08:09:28 +0100 |
| commit | d56402a5471a1efbda92a1dd2babf8a7d0cd7de0 (patch) | |
| tree | 794052970c2b06962b069bf87a49a95e64e1c465 /addons/web_editor/static | |
| parent | 7cd45840fc9b7f678fb50512d6c6e9c2933bdce2 (diff) | |
| parent | f7e1f0645e93adb2eb78c383ac9bf9fbae80315c (diff) | |
[FIX] doc: build errors & some warnings
closes odoo/odoo#30835
Diffstat (limited to 'addons/web_editor/static')
4 files changed, 19 insertions, 19 deletions
diff --git a/addons/web_editor/static/src/js/wysiwyg/plugin/helper.js b/addons/web_editor/static/src/js/wysiwyg/plugin/helper.js index 68542d7a4f8..9d346d42a27 100644 --- a/addons/web_editor/static/src/js/wysiwyg/plugin/helper.js +++ b/addons/web_editor/static/src/js/wysiwyg/plugin/helper.js @@ -125,7 +125,7 @@ var HelperPlugin = AbstractPlugin.extend({ * Returns the number of leading breakable space in the textNode. * Note: returns 0 if the node is not a textNode. * - * @param {Node} + * @param {Node} node */ countLeadingBreakableSpace: function (node) { if (!dom.isText(node)) { @@ -151,19 +151,20 @@ var HelperPlugin = AbstractPlugin.extend({ }, /** * Remove the dom between 2 points (respecting unbreakable rules). - * Returns an object: - * { - * node: pointA.node (updated if necessary), - * offset: pointA.offset (updated if necessary), - * changed: bool (whether changes were applied) - * } + * Returns an object:: + * + * { + * node: pointA.node (updated if necessary), + * offset: pointA.offset (updated if necessary), + * changed: bool (whether changes were applied) + * } * * @param {Object} pointA * @param {Node} pointA.node - * @param {Integer} pointA.offset + * @param {number} pointA.offset * @param {Object} pointB * @param {Node} pointB.node - * @param {Integer} pointB.offset + * @param {number} pointB.offset * @returns {Object} {node, offset, changed} */ deleteBetween: function (pointA, pointB) { @@ -704,7 +705,7 @@ var HelperPlugin = AbstractPlugin.extend({ /** * Returns the node targeted by a path * - * @param {Object[]} list of object (tagName, offset) + * @param {Object[]} path list of object (tagName, offset) * @returns {Node} */ fromPath: function (path) { diff --git a/addons/web_editor/static/src/js/wysiwyg/plugin/unbreakable.js b/addons/web_editor/static/src/js/wysiwyg/plugin/unbreakable.js index 81a90d55413..388a3b2b2c9 100644 --- a/addons/web_editor/static/src/js/wysiwyg/plugin/unbreakable.js +++ b/addons/web_editor/static/src/js/wysiwyg/plugin/unbreakable.js @@ -33,7 +33,9 @@ var Unbreakable = AbstractPlugin.extend({ //-------------------------------------------------------------------------- /** - * Change the selection if it breaks an unbreakable node. + * Change the selection if it breaks an unbreakable node: + * + * .. code-block:: xml * <unbreakable id="a"> content_1 @@ -56,6 +58,8 @@ var Unbreakable = AbstractPlugin.extend({ </allow> </unbreakable> + * .. code-block: none + START END RESIZE START RESIZE END content_1 content_1 content_3 content_3 (find the first allowed node) @@ -70,9 +74,9 @@ var Unbreakable = AbstractPlugin.extend({ content_6 content_8 - content_6 content_7 content_8 - content_8 content_9 content_12 content_10 - - * - * @returns {WrappedRange} - */ + * + * @returns {WrappedRange} + */ secureRange: function () { var self = this; var range = this.context.invoke('editor.createRange'); diff --git a/addons/web_editor/static/src/js/wysiwyg/wysiwyg_iframe.js b/addons/web_editor/static/src/js/wysiwyg/wysiwyg_iframe.js index 9de5c6b4cb7..be6ac41e5cb 100644 --- a/addons/web_editor/static/src/js/wysiwyg/wysiwyg_iframe.js +++ b/addons/web_editor/static/src/js/wysiwyg/wysiwyg_iframe.js @@ -193,10 +193,6 @@ Wysiwyg.include({ * * @param {Node} [DOM] * @returns {Object} - * @returns {Node} sc - start container - * @returns {Number} so - start offset - * @returns {Node} ec - end container - * @returns {Number} eo - end offset */ Wysiwyg.getRange = function (DOM) { var summernote = (DOM.defaultView || DOM.ownerDocument.defaultView)._summernoteSlave || _summernoteMaster; diff --git a/addons/web_editor/static/src/js/wysiwyg_snippets/wysiwyg_snippets.js b/addons/web_editor/static/src/js/wysiwyg_snippets/wysiwyg_snippets.js index 5df48ebf2f9..f88ae46376f 100644 --- a/addons/web_editor/static/src/js/wysiwyg_snippets/wysiwyg_snippets.js +++ b/addons/web_editor/static/src/js/wysiwyg_snippets/wysiwyg_snippets.js @@ -50,7 +50,6 @@ Wysiwyg.include({ * snippets can by url begin with '/' or an view xml_id. * * @override - * @param {string} [options.snippets] */ start: function () { var self = this; |
