Skip to content

Commit

Permalink
Update config-light.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed Sep 29, 2023
1 parent 631c5ae commit 58cd265
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions public/components/ckeditor4/config-light.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
var editors = document.querySelectorAll('.ckeditor-light');
for (var i = 0; i < editors.length; ++i) {
const editors = document.querySelectorAll('.ckeditor-light');
const publicCssFile = window.TypiCMS.public_css_file;

for (let i = 0; i < editors.length; ++i) {
CKEDITOR.replace(editors[i].id, {
toolbar: [
{ items: ['Bold', 'Italic', 'Subscript', 'Superscript'] },
{ items: ['RemoveFormat'] },
{ items: ['Link', 'Unlink'] },
{ items: ['Source'] },
],
toolbar: [{ items: ['Bold', 'Italic', 'Subscript', 'Superscript'] }, { items: ['RemoveFormat'] }, { items: ['Link', 'Unlink'] }, { items: ['Source'] }],
entities: false,
emailProtection: 'encode',
height: 240,
contentsCss: ['/css/public.css', '/components/ckeditor4/custom.css'],
contentsCss: [publicCssFile, '/components/ckeditor4/custom.css'],
language: document.documentElement.lang,
stylesSet: [],
extraPlugins: 'adv_link,codemirror',
Expand Down

0 comments on commit 58cd265

Please sign in to comment.