Skip to content

Commit 7cca102

Browse files
Merge pull request #303 from jeanbez/main
switch to self-hosted editor
2 parents 69ea35e + b0a2239 commit 7cca102

File tree

125 files changed

+7360
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+7360
-5
lines changed

templates/Questionnaires/view.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -320,22 +320,25 @@
320320

321321
<?php echo $this->Form->end(); ?>
322322

323-
<script src="https://cdn.tiny.cloud/1/1q5sjjedyv15tfpn9b7cvojp4i72ahfneyqj7yrfu771hcu1/tinymce/6/tinymce.min.js" referrerpolicy="origin"></script>
323+
<?php
324+
echo $this->Html->script('tinymce/tinymce.min.js', [
325+
'referrerpolicy' => 'origin',
326+
'crossorigin' => 'anonymous'
327+
]);
328+
?>
324329

325330
<script type="text/javascript">
326331
var t_editors;
327332

328333
editors = tinymce.init({
329-
skin: 'outside',
330-
icons: 'small',
331334
statusbar: false,
332335
menubar: false,
333336
selector: 'textarea',
334337
height: 300,
335-
readonly: 1,
338+
readonly: true,
336339
plugins: 'image link lists searchreplace table wordcount',
337340
toolbar: false,
338-
content_css: ['/io-500-hub/css/editor.css']
341+
license_key: 'gpl'
339342
}).then(function(editors) {
340343
t_editors = editors;
341344
});

webroot/js/tinymce/icons/default/icons.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webroot/js/tinymce/langs/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This is where language files should be placed.
2+
3+
Please DO NOT translate these directly, use this service instead: https://crowdin.com/project/tinymce

webroot/js/tinymce/license.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Software License Agreement
2+
3+
**TinyMCE**[<https://github.com/tinymce/tinymce>](https://github.com/tinymce/tinymce)
4+
Copyright (c) 2024, Ephox Corporation DBA Tiny Technologies, Inc.
5+
6+
Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html).

webroot/js/tinymce/models/dom/model.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webroot/js/tinymce/notices.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Below is a list of third party libraries that this software uses:
2+
----------------------------------------------------------------
3+
4+
dompurify - Patched by Tiny
5+
owner: Mario Heiderich
6+
repo: https://github.com/cure53/DOMPurify
7+
version: 3.2.4
8+
license: MPL-2.0 OR Apache-2.0
9+
10+
prismjs
11+
owner: Lea Verou
12+
repo: https://github.com/PrismJS/prism
13+
version: 1.25.0
14+
license: MIT
15+
16+
17+
prism-themes
18+
owner: Lea Verou
19+
repo: https://github.com/PrismJS/prism-themes
20+
version: 1.9.0
21+
license: MIT

webroot/js/tinymce/plugins/accordion/plugin.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webroot/js/tinymce/plugins/advlist/plugin.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)