From 266dc740f67d8e5a16e27402d47f1c3681045b6d Mon Sep 17 00:00:00 2001 From: hlomzik Date: Fri, 23 Aug 2024 21:35:37 +0100 Subject: [PATCH] Fix RichText docs to unblock docs auto-generation --- web/libs/editor/src/tags/object/RichText/model.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/libs/editor/src/tags/object/RichText/model.js b/web/libs/editor/src/tags/object/RichText/model.js index a328d6ab5d38..c4735c773969 100644 --- a/web/libs/editor/src/tags/object/RichText/model.js +++ b/web/libs/editor/src/tags/object/RichText/model.js @@ -355,7 +355,7 @@ const Model = types * @param {number} startOffset - The offset within the starting node. * @param {Node} end - The ending node of the range. * @param {number} endOffset - The offset within the ending node. - * @return {undefined|[number,number]} - An array containing the calculated global offsets in codepoints in the form [startGlobalOffset, endGlobalOffset]. + * @return {number[]|undefined} - An array containing the calculated global offsets in codepoints in the form of [startGlobalOffset, endGlobalOffset]. */ relativeOffsetsToGlobalOffsets(start, startOffset, end, endOffset) { return domManager.relativeOffsetsToGlobalOffsets(start, startOffset, end, endOffset); @@ -365,7 +365,7 @@ const Model = types * Converts the given range to its global offset. * * @param {Range} range - The range to convert. - * @returns {[number, number]|undefined} - The global offsets of the range. + * @returns {number[]|undefined} - The global offsets of the range in the form of [startGlobalOffset, endGlobalOffset]. */ rangeToGlobalOffset(range) { return domManager.rangeToGlobalOffset(range);