Added Wiris Editor for CKEditor - Refs #7961

1.10.x
José Loguercio 10 years ago
parent 55dce729c7
commit beb11dc94c
  1. 5
      main/inc/lib/javascript/ckeditor/plugins/ckeditor_wiris/Readme.txt
  2. 2
      main/template/default/layout/header.js.tpl
  3. 4
      src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Basic.php
  4. 4
      src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Documents.php
  5. 3
      src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/DocumentsStudent.php
  6. 2
      src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Wiki.php
  7. 3
      src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/WikiStudent.php
  8. 3
      src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/WikiTask.php

@ -0,0 +1,5 @@
For activate Wiris Editor for CkEditor you need to
Download the Plugin and copy the files inside this folder :
http://www.wiris.com/es/plugins3/ckeditor/download

@ -4,7 +4,7 @@ var plugins = [
'asciimath', 'asciimath',
'asciisvg', 'asciisvg',
'audio', 'audio',
//'ckeditor_wiris', 'ckeditor_wiris',
'dialogui', 'dialogui',
'glossary', 'glossary',
'leaflet', 'leaflet',

@ -108,7 +108,7 @@ class Basic extends Toolbar
if (api_get_setting('enabled_wiris') == 'true') { if (api_get_setting('enabled_wiris') == 'true') {
// Commercial plugin // Commercial plugin
//$plugins[] = 'ckeditor_wiris'; $plugins[] = 'ckeditor_wiris';
} }
if (api_get_setting('enabled_imgmap') == 'true') { if (api_get_setting('enabled_imgmap') == 'true') {
@ -204,6 +204,7 @@ class Basic extends Toolbar
['BulletedList', 'NumberedList', 'HorizontalRule'], ['BulletedList', 'NumberedList', 'HorizontalRule'],
['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'], ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'],
['Format', 'Font', 'FontSize', 'Bold', 'Italic', 'Underline', 'TextColor', 'BGColor', 'Source'], ['Format', 'Font', 'FontSize', 'Bold', 'Italic', 'Underline', 'TextColor', 'BGColor', 'Source'],
api_get_setting('enabled_wiris') == 'true' ? ['ckeditor_wiris_formulaEditor', 'ckeditor_wiris_CAS'] : [''],
['Toolbarswitch'] ['Toolbarswitch']
]; ];
} }
@ -241,6 +242,7 @@ class Basic extends Toolbar
[api_get_setting('allow_spellcheck') == 'true' ? 'Scayt' : ''], [api_get_setting('allow_spellcheck') == 'true' ? 'Scayt' : ''],
['Styles', 'Format', 'Font', 'FontSize'], ['Styles', 'Format', 'Font', 'FontSize'],
['PageBreak', 'ShowBlocks', 'Source'], ['PageBreak', 'ShowBlocks', 'Source'],
api_get_setting('enabled_wiris') == 'true' ? ['ckeditor_wiris_formulaEditor', 'ckeditor_wiris_CAS'] : [''],
['Toolbarswitch'], ['Toolbarswitch'],
]; ];
} }

@ -81,7 +81,8 @@ class Documents extends Basic
'/', '/',
['Styles', 'Format', 'Font', 'FontSize'], ['Styles', 'Format', 'Font', 'FontSize'],
['Bold', 'Italic', 'Underline'], ['Bold', 'Italic', 'Underline'],
['JustifyLeft', 'JustifyCenter', 'JustifyRight'] ['JustifyLeft', 'JustifyCenter', 'JustifyRight'],
api_get_setting('enabled_wiris') == 'true' ? ['ckeditor_wiris_formulaEditor', 'ckeditor_wiris_CAS'] : ['']
]; ];
} }
@ -118,6 +119,7 @@ class Documents extends Basic
'BGColor', 'BGColor',
'Source', 'Source',
], ],
api_get_setting('enabled_wiris') == 'true' ? ['ckeditor_wiris_formulaEditor', 'ckeditor_wiris_CAS'] : [''],
['Toolbarswitch'] ['Toolbarswitch']
]; ];
} }

@ -82,6 +82,7 @@ class DocumentsStudent extends Basic
[api_get_setting('allow_spellcheck') == 'true' ? 'Scayt' : ''], [api_get_setting('allow_spellcheck') == 'true' ? 'Scayt' : ''],
['Styles', 'Format', 'Font', 'FontSize'], ['Styles', 'Format', 'Font', 'FontSize'],
['PageBreak', 'ShowBlocks'], ['PageBreak', 'ShowBlocks'],
api_get_setting('enabled_wiris') == 'true' ? ['ckeditor_wiris_formulaEditor', 'ckeditor_wiris_CAS'] : [''],
['Toolbarswitch'] ['Toolbarswitch']
]; ];
} }
@ -119,6 +120,7 @@ class DocumentsStudent extends Basic
['Styles', 'Format', 'Font', 'FontSize'], ['Styles', 'Format', 'Font', 'FontSize'],
['Bold', 'Italic', 'Underline'], ['Bold', 'Italic', 'Underline'],
['JustifyLeft', 'JustifyCenter', 'JustifyRight'], ['JustifyLeft', 'JustifyCenter', 'JustifyRight'],
api_get_setting('enabled_wiris') == 'true' ? ['ckeditor_wiris_formulaEditor', 'ckeditor_wiris_CAS'] : [''],
['ShowBlocks'] ['ShowBlocks']
]; ];
} }
@ -154,6 +156,7 @@ class DocumentsStudent extends Basic
'TextColor', 'TextColor',
'BGColor', 'BGColor',
], ],
api_get_setting('enabled_wiris') == 'true' ? ['ckeditor_wiris_formulaEditor', 'ckeditor_wiris_CAS'] : [''],
['Toolbarswitch'] ['Toolbarswitch']
]; ];
} }

@ -80,6 +80,7 @@ class Wiki extends Basic
'BGColor', 'BGColor',
api_get_setting('allow_spellcheck') == 'true' ? 'Scayt' : '', api_get_setting('allow_spellcheck') == 'true' ? 'Scayt' : '',
], ],
api_get_setting('enabled_wiris') == 'true' ? ['ckeditor_wiris_formulaEditor', 'ckeditor_wiris_CAS'] : [''],
['Source'] ['Source']
]; ];
} }
@ -97,6 +98,7 @@ class Wiki extends Basic
['BulletedList', 'NumberedList', 'HorizontalRule'], ['BulletedList', 'NumberedList', 'HorizontalRule'],
['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'], ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'],
['Format', 'Font', 'FontSize', 'Bold', 'Italic', 'Underline', 'TextColor', 'BGColor', 'Source'], ['Format', 'Font', 'FontSize', 'Bold', 'Italic', 'Underline', 'TextColor', 'BGColor', 'Source'],
api_get_setting('enabled_wiris') == 'true' ? ['ckeditor_wiris_formulaEditor', 'ckeditor_wiris_CAS'] : [''],
['Toolbarswitch'] ['Toolbarswitch']
]; ];
} }

@ -66,6 +66,7 @@ class WikiStudent extends Basic
[api_get_setting('allow_spellcheck') == 'true' ? 'Scayt' : ''], [api_get_setting('allow_spellcheck') == 'true' ? 'Scayt' : ''],
['Styles', 'Format', 'Font', 'FontSize'], ['Styles', 'Format', 'Font', 'FontSize'],
['PageBreak', 'ShowBlocks'], ['PageBreak', 'ShowBlocks'],
api_get_setting('enabled_wiris') == 'true' ? ['ckeditor_wiris_formulaEditor', 'ckeditor_wiris_CAS'] : [''],
['Toolbarswitch'] ['Toolbarswitch']
]; ];
} }
@ -115,6 +116,7 @@ class WikiStudent extends Basic
'TextColor', 'TextColor',
'BGColor' 'BGColor'
], ],
api_get_setting('enabled_wiris') == 'true' ? ['ckeditor_wiris_formulaEditor', 'ckeditor_wiris_CAS'] : [''],
['ShowBlocks'] ['ShowBlocks']
]; ];
} }
@ -132,6 +134,7 @@ class WikiStudent extends Basic
['BulletedList', 'NumberedList', 'HorizontalRule'], ['BulletedList', 'NumberedList', 'HorizontalRule'],
['JustifyLeft', 'JustifyCenter', 'JustifyBlock'], ['JustifyLeft', 'JustifyCenter', 'JustifyBlock'],
['Format', 'Font', 'FontSize', 'Bold', 'Italic', 'Underline', 'TextColor', 'BGColor'], ['Format', 'Font', 'FontSize', 'Bold', 'Italic', 'Underline', 'TextColor', 'BGColor'],
api_get_setting('enabled_wiris') == 'true' ? ['ckeditor_wiris_formulaEditor', 'ckeditor_wiris_CAS'] : [''],
['Toolbarswitch'] ['Toolbarswitch']
]; ];
} }

@ -58,6 +58,7 @@ class WikiTask extends Basic
[api_get_setting('allow_spellcheck') == 'true' ? 'Scayt' : ''], [api_get_setting('allow_spellcheck') == 'true' ? 'Scayt' : ''],
['Styles', 'Format', 'Font', 'FontSize'], ['Styles', 'Format', 'Font', 'FontSize'],
['PageBreak', 'ShowBlocks', 'Source'], ['PageBreak', 'ShowBlocks', 'Source'],
api_get_setting('enabled_wiris') == 'true' ? ['ckeditor_wiris_formulaEditor', 'ckeditor_wiris_CAS'] : [''],
['Toolbarswitch'] ['Toolbarswitch']
]; ];
} }
@ -75,6 +76,7 @@ class WikiTask extends Basic
['Table'], ['Table'],
['Bold', 'Italic', 'Underline'], ['Bold', 'Italic', 'Underline'],
['JustifyLeft', 'JustifyCenter', '-', 'NumberedList', 'BulletedList', '-', 'TextColor', 'BGColor'], ['JustifyLeft', 'JustifyCenter', '-', 'NumberedList', 'BulletedList', '-', 'TextColor', 'BGColor'],
api_get_setting('enabled_wiris') == 'true' ? ['ckeditor_wiris_formulaEditor', 'ckeditor_wiris_CAS'] : [''],
['Source'] ['Source']
]; ];
} }
@ -92,6 +94,7 @@ class WikiTask extends Basic
['BulletedList', 'NumberedList', 'HorizontalRule'], ['BulletedList', 'NumberedList', 'HorizontalRule'],
['JustifyLeft', 'JustifyCenter', 'JustifyBlock'], ['JustifyLeft', 'JustifyCenter', 'JustifyBlock'],
['Format', 'Font', 'FontSize', 'Bold', 'Italic', 'Underline', 'TextColor', 'BGColor'], ['Format', 'Font', 'FontSize', 'Bold', 'Italic', 'Underline', 'TextColor', 'BGColor'],
api_get_setting('enabled_wiris') == 'true' ? ['ckeditor_wiris_formulaEditor', 'ckeditor_wiris_CAS'] : [''],
['Toolbarswitch'] ['Toolbarswitch']
]; ];
} }

Loading…
Cancel
Save