From 6bb3af3913f1587bf478891f2fd3b4cee63bb256 Mon Sep 17 00:00:00 2001 From: Pluto Date: Fri, 31 Jul 2026 19:02:50 +0530 Subject: [PATCH] fix: editor js file jsdoc link broken causing docusaurus parse failing --- src/editor/Editor.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/editor/Editor.js b/src/editor/Editor.js index c226051ec1..b105553689 100644 --- a/src/editor/Editor.js +++ b/src/editor/Editor.js @@ -1741,7 +1741,7 @@ define(function (require, exports, module) { * @param {boolean} [center] true to center the viewport * @param {number} [centerOptions] Option value, or 0 for no options; one of the BOUNDARY_* constants above. * @param {?string} [origin] An optional string that describes what other selection or edit operations this - * should be merged with for the purposes of undo. See {@link Document::Document#replaceRange} for more details. + * should be merged with for the purposes of undo. See `Document#replaceRange` for more details. */ Editor.prototype.setSelection = function (start, end, center, centerOptions, origin) { this.setSelections([{ start: start, end: end || start }], center, centerOptions, origin); @@ -1839,7 +1839,7 @@ define(function (require, exports, module) { * @param {boolean} center true to center the viewport around the primary selection. * @param {number} centerOptions Option value, or 0 for no options; one of the BOUNDARY_* constants above. * @param {?string} origin An optional string that describes what other selection or edit operations this - * should be merged with for the purposes of undo. See {@link Document::Document#replaceRange} for more details. + * should be merged with for the purposes of undo. See `Document#replaceRange` for more details. */ Editor.prototype.setSelections = function (selections, center, centerOptions, origin) { var primIndex = selections.length - 1, options; @@ -2323,7 +2323,7 @@ define(function (require, exports, module) { * the start and end. * @return {?(Object|string)} Name of syntax-highlighting mode, or object containing a "name" property * naming the mode along with configuration options required by the mode. - * @see {@link LanguageManager::#getLanguageForPath} and {@link LanguageManager::Language#getMode}. + * @see {@link LanguageManager::#getLanguageForPath} and `Language#getMode`. */ Editor.prototype.getModeForRange = function (start, end, knownMixed) { var outerMode = this._codeMirror.getMode(), @@ -2350,7 +2350,7 @@ define(function (require, exports, module) { * @param {{start:{line:number, ch:number}, end:{line:number, ch:number}, reversed:boolean}} selection * @return {?(Object|string)} Name of syntax-highlighting mode, or object containing a "name" property * naming the mode along with configuration options required by the mode. - * @see {@link LanguageManager::#getLanguageForPath} and {@link LanguageManager::Language#getMode}. + * @see {@link LanguageManager::#getLanguageForPath} and `Language#getMode`. */ Editor.prototype.getModeForSelection = function (selection) { // Check for mixed mode info @@ -2429,7 +2429,7 @@ define(function (require, exports, module) { * Gets the syntax-highlighting mode for the document. * * @return {Object|String} Object or Name of syntax-highlighting mode - * @see {@link LanguageManager::#getLanguageForPath|LanguageManager.getLanguageForPath} and {@link LanguageManager::Language#getMode|Language.getMode}. + * @see {@link LanguageManager::#getLanguageForPath|LanguageManager.getLanguageForPath} and `Language.getMode`. */ Editor.prototype.getModeForDocument = function () { return this._codeMirror.getOption("mode");