Last active
May 18, 2022 18:40
-
-
Save Gestas/1527f7ebfa128da1af61545752e1cb69 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# By default CKEditor disables browser based spellcheck. | |
# That can be changed by passing a modified configuration in UIxMailEditor.wox. | |
# NOTE: This eample is in the SoGo context, it may not be applicable elsewhere. | |
# MORE INFORMATION - | |
# https://www.sogo.nu/support/faq/how-to-customize-the-html.html | |
# https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-disableNativeSpellChecker | |
# https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-browserContextMenuOnCtrl | |
diff --git a/UI/Templates/MailerUI/UIxMailEditor.wox b/UI/Templates/MailerUI/UIxMailEditor.wox | |
index 002cb8267..178a485f7 100644 | |
--- a/UI/Templates/MailerUI/UIxMailEditor.wox | |
+++ b/UI/Templates/MailerUI/UIxMailEditor.wox | |
@@ -306,8 +306,8 @@ | |
sg-autogrow="true" | |
md-detect-hidden="md-detect-hidden"><!-- plain text editor --></textarea> | |
<sg-ckeditor id="message-content" | |
- ng-if="::(editor.composeType == 'html')" | |
- config="editor.ckConfig" | |
+ ng-if="editor.composeType == 'html'" | |
+ config="{ disableNativeSpellChecker: false, language: editor.ckConfig.language }" | |
on-instance-ready="editor.onHTMLReady($editor)" | |
on-focus="editor.onHTMLFocus($editor)" | |
ng-model="editor.message.editable.text"><!-- HTML editor --></sg-ckeditor> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment