RELEASE 2.7.0 OR ABOVE
You can add a new message to Synap Editor, or change a message that has already been set.
Related API
Changing the default message
- You can add new messages or change the default messages using the SynapEditor.addMessages(language, Object) API.
- (It should be set before creating Synap Editor as new.)
<script> var changedMessages = { 'message.label.bold': '★Bold★', // Bold -> ★Bold★ 'message.label.italic': '♧Italic♧' // Italic -> ♧Italic♧ }; SynapEditor.addMessages('en', changedMessages); // Changing the default message window.editor = new SynapEditor('synapEditor', synapEditorConfig); // Create Synap Editor after setting. </script>