From 009d495ca7246f9e6402cab49a9a1071ec40925d Mon Sep 17 00:00:00 2001 From: kadevgraaf Date: Fri, 20 Jul 2018 12:09:45 +0200 Subject: [PATCH 1/3] Enable native browser spellcheck to CKeditor --- assets/ckeditor_config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/ckeditor_config.js b/assets/ckeditor_config.js index 27b72450d..640e936f1 100644 --- a/assets/ckeditor_config.js +++ b/assets/ckeditor_config.js @@ -166,7 +166,7 @@ CKEDITOR.editorConfig = function( config ) { //config.removeButtons = 'Underline,Subscript,Superscript'; - + config.disableNativeSpellChecker = false; //#####Image upload via CKeditor - TODO// //config.uploadUrl; From 4f189a3aa1cf3083a299aa8bcf341f981ea83721 Mon Sep 17 00:00:00 2001 From: kadevgraaf Date: Fri, 20 Jul 2018 12:31:46 +0200 Subject: [PATCH 2/3] Added help menu for getting native context menu (to do spellchecking) --- components/Deck/SlideEditLeftPanel/SlideEditLeftPanel.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/Deck/SlideEditLeftPanel/SlideEditLeftPanel.js b/components/Deck/SlideEditLeftPanel/SlideEditLeftPanel.js index 111c2826f..cdd655794 100644 --- a/components/Deck/SlideEditLeftPanel/SlideEditLeftPanel.js +++ b/components/Deck/SlideEditLeftPanel/SlideEditLeftPanel.js @@ -211,8 +211,9 @@ class SlideEditLeftPanel extends React.Component { '• Bring input box to front or back: press control+shift and then the plus or minus key
' + '• Duplicate an input box: control + d
'+ '• Delete an input box: control + delete
'+ - '• See https://sdk.ckeditor.com/samples/accessibility.html for more (CKeditor) keyboard shortcuts

' + - '• Tip: press the "shift" keyboard button while resizing an image to maintain the width-to-heigth ratio/dimensions of the image
' + '• See https://sdk.ckeditor.com/samples/accessibility.html for more (CKeditor) keyboard shortcuts.

' + + '• Tip: press the "shift" keyboard button while resizing an image to maintain the width-to-heigth ratio/dimensions of the image.
'+ + '• Tip: Hold the Ctrl or Meta (Mac) key when right-clicking to show your native browser context menu. This is usefull for spellchecking and selecting spell language.
' }), //'• When using Firefox, the selection of text via mouse cursor does not work well. Use keyboard selection or another browser instead. We are working to solve this problem.
' + type: 'question', From a79bddb000fc77d11de23d43c5820af4526dc3a7 Mon Sep 17 00:00:00 2001 From: kadevgraaf Date: Mon, 23 Jul 2018 15:58:06 +0200 Subject: [PATCH 3/3] Test removal of Ckeditor context menu --- assets/ckeditor_config.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/assets/ckeditor_config.js b/assets/ckeditor_config.js index 640e936f1..2c208ec7f 100644 --- a/assets/ckeditor_config.js +++ b/assets/ckeditor_config.js @@ -80,7 +80,7 @@ CKEDITOR.editorConfig = function( config ) { //Klaas edit -> remove CKeditor red magicline overlay for enter by mouse config.removePlugins = 'magicline'; //Klaas edit -> remove CKeditor context menu - //config.removePlugins = 'magicline,contextmenu,liststyle,tabletools'; + config.removePlugins = 'magicline,contextmenu,liststyle,tabletools'; CKEDITOR.config.magicline_color = '#0000FF'; @@ -109,7 +109,6 @@ CKEDITOR.editorConfig = function( config ) { 'clipboard,' + 'colorbutton,' + 'colordialog,' + - 'contextmenu,' + 'dialogadvtab,' + 'elementspath,' + 'enterkey,' +