Skip to content

ci: Fix RichText docs to unblock docs auto-generation #6250

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions web/libs/editor/src/tags/object/RichText/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down
Loading