Commit 1733e06b authored by Romain Courteaud's avatar Romain Courteaud

[erp5_xhtml_style] Disable spell checker relying on an external webservice

parent f2312f23
...@@ -77,8 +77,7 @@ ...@@ -77,8 +77,7 @@
{name: 'document', {name: 'document',
items: ['Source', '-', 'Save', 'Print', '-', 'Templates']}, items: ['Source', '-', 'Save', 'Print', '-', 'Templates']},
{name: 'clipboard', items: ['Undo', 'Redo']}, {name: 'clipboard', items: ['Undo', 'Redo']},
{name: 'editing', items: ['Find', 'Replace', '-', 'SelectAll', {name: 'editing', items: ['Find', 'Replace', '-', 'SelectAll']},
'-', 'Scayt']},
'/', '/',
{name: 'basicstyles', {name: 'basicstyles',
items: ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', items: ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript',
...@@ -100,6 +99,8 @@ ...@@ -100,6 +99,8 @@
MOBILE_CONFIGURATION = { MOBILE_CONFIGURATION = {
toolbar: TOOLBAR_MOBILE, toolbar: TOOLBAR_MOBILE,
disableNativeSpellChecker: false, disableNativeSpellChecker: false,
// Remove the WebSpellChecker and SpellCheckAsYouType (SCAYT) plugins.
removePlugins: 'scayt,wsc',
// Disable ACF to not destroy HTML on mobile // Disable ACF to not destroy HTML on mobile
allowedContent: true, allowedContent: true,
keystrokes: [ keystrokes: [
...@@ -109,6 +110,8 @@ ...@@ -109,6 +110,8 @@
DESKTOP_CONFIGURATION = { DESKTOP_CONFIGURATION = {
toolbar: TOOLBAR_DESKTOP, toolbar: TOOLBAR_DESKTOP,
disableNativeSpellChecker: false, disableNativeSpellChecker: false,
// Remove the WebSpellChecker and SpellCheckAsYouType (SCAYT) plugins.
removePlugins: 'scayt,wsc',
// Disable ACF to not destroy HTML on mobile // Disable ACF to not destroy HTML on mobile
allowedContent: true, allowedContent: true,
keystrokes: [ keystrokes: [
...@@ -119,7 +122,8 @@ ...@@ -119,7 +122,8 @@
toolbar: [], toolbar: [],
allowedContent: true, allowedContent: true,
readOnly: true, readOnly: true,
removePlugins: 'elementspath', // Remove the WebSpellChecker and SpellCheckAsYouType (SCAYT) plugins.
removePlugins: 'elementspath,scayt,wsc',
startupShowBorders: false, startupShowBorders: false,
startupOutlineBlocks: false, startupOutlineBlocks: false,
contentsCss: '' contentsCss: ''
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment