diff --git a/apps/editor/src/editorCore.ts b/apps/editor/src/editorCore.ts index 1973c87994..62f2e1d484 100644 --- a/apps/editor/src/editorCore.ts +++ b/apps/editor/src/editorCore.ts @@ -337,6 +337,14 @@ class ToastUIEditorCore { return options.viewer ? new Viewer(options) : new ToastUIEditorCore(options as EditorOptions); } + /** + * Set setCode + * @param {string | undefined} code - code for I18N language + */ + static setCode(code?: string) { + i18n.setCode(code); + } + /** * Set language * @param {string|string[]} code - code for I18N language