tui.editor icon indicating copy to clipboard operation
tui.editor copied to clipboard

Is there any way I can change the name of the "WYSIWYG" button?

Open TomatoYuyuko opened this issue 1 year ago • 1 comments

TomatoYuyuko avatar Sep 30 '24 09:09 TomatoYuyuko

@TomatoYuyuko I have achieved this by setting a new language.

I copied over apps/editor/src/i18n/en-us.ts and made the required changes. Then in my code:

import enUS from './path-to-my-i18n-file'
import { EditorCore } from '@toast-ui/editor'

EditorCore.setLanguage('custom-en-US', enUS)

Then set language to 'custom-en-US' in the editor options.

Does that help?

rawstream avatar Oct 04 '24 17:10 rawstream