Skip to content

Commit

Permalink
[administration] Hide warning about not secured CKEditor (#3677)
Browse files Browse the repository at this point in the history
  • Loading branch information
henzigo authored Dec 19, 2024
1 parent 2051bde commit 9c78358
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ CKEDITOR.plugins.add('strinsert',
multiSelect: false,
panel:
{
css: [ editor.config.contentsCss, CKEDITOR.skin.getPath('editor') ],
css: [CKEDITOR.skin.getPath('editor')].concat(config.contentsCss),
voiceLabel: editor.lang.panelVoiceLabel
},

Expand Down
6 changes: 6 additions & 0 deletions app/assets/js/admin/grapesjs/initGrapesJs.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,13 @@ export default class InitGrapesJs {
plugins: plugins,
pluginsOpts: {
[ckeditorPlugin]: {
ckeditor: '',
options: {
enterMode: 2,
versionCheck: false,
allowedContent: true,
extraAllowedContent: '*(*)',
removePlugins: 'exportpdf',
toolbar: [
{ name: 'basicstyles', items: ['Bold', 'Italic', 'Strike', '-', 'RemoveFormat'] },
{ name: 'clipboard', items: ['PasteText', 'PasteFromWord'] },
Expand Down Expand Up @@ -203,8 +206,10 @@ export default class InitGrapesJs {
styleManagerSectors: []
},
[ckeditorPlugin]: {
ckeditor: '',
options: {
enterMode: 2,
versionCheck: false,
toolbar: [
{ name: 'basicstyles', items: ['Bold', 'Italic', 'Strike', '-', 'RemoveFormat'] },
{ name: 'format', items: ['Format'] },
Expand All @@ -216,6 +221,7 @@ export default class InitGrapesJs {
{ name: 'insert', items: ['SpecialChar', 'strinsert'] }
],
extraPlugins: 'strinsert',
removePlugins: 'exportpdf',
strinsert_strings: [
{ 'name': 'Povinné proměnné' },
...variables
Expand Down
2 changes: 1 addition & 1 deletion app/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
"php app/downloadPhing.php --phing-version=3.0.0": "script",
"php phing clean": "script",
"shopsys:domains-urls:configure": "symfony-cmd",
"ckeditor:install --clear=skip --release=full --tag=4.5.11": "symfony-cmd"
"ckeditor:install --clear=skip --release=full --tag=4.22.1": "symfony-cmd"
},
"security-check": "security-checker security:check"
},
Expand Down
2 changes: 2 additions & 0 deletions app/config/packages/fos_ck_editor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ fos_ck_editor:
autoload: false
configs:
default:
versionCheck: false
entities_greek: false
entities_latin: false
enterMode: 2
Expand All @@ -22,6 +23,7 @@ fos_ck_editor:
extraPlugins: 'layoutmanager'

email:
versionCheck: false
entities_greek: false
entities_latin: false
enterMode: 2
Expand Down

0 comments on commit 9c78358

Please sign in to comment.