From 97d2b87550508fb35cd7bf55386d4366a3188299 Mon Sep 17 00:00:00 2001 From: Eduard Belozertsev Date: Wed, 2 Apr 2025 18:44:36 +0700 Subject: [PATCH] [71849] Add description AddMathEquation method (ApiPresentation) --- slide/apiBuilder.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/slide/apiBuilder.js b/slide/apiBuilder.js index 81658c85a1..2fd66e12db 100644 --- a/slide/apiBuilder.js +++ b/slide/apiBuilder.js @@ -1653,8 +1653,13 @@ /** * Adds a math equation to the current document. - * - * TODO: description + * @memberof ApiPresentation + * @typeofeditors ["CPE"] + * @param {string} sText - The math equation text. + * @param {string} sFormat - The math equation format. Possible values are "unicode" and "latex". + * @returns {boolean} + * @since 9.0.0 + * @see office-js-api/Examples/{Editor}/ApiPresentation/Methods/AddMathEquation.js */ ApiPresentation.prototype.AddMathEquation = function (sText, sFormat) { if (!Asc.editor) { @@ -1691,6 +1696,8 @@ const graphicController = Asc.editor.getGraphicController(); graphicController.startRecalculate(); } + + return true; }; //------------------------------------------------------------------------------------------------------------------