Skip to content

Commit af3c79c

Browse files
author
djmaze
committed
Moved CKEditor to be plugin
1 parent 240b038 commit af3c79c

File tree

217 files changed

+467
-8683
lines changed

Some content is hidden

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

217 files changed

+467
-8683
lines changed

README.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -116,23 +116,23 @@ RainLoop 1.15 vs SnappyMail
116116

117117
|js/* |RainLoop |Snappy |
118118
|--------------- |--------: |--------: |
119-
|admin.js |2.158.025 | 101.796 |
120-
|app.js |4.215.733 | 501.679 |
119+
|admin.js |2.158.025 | 100.608 |
120+
|app.js |4.215.733 | 495.934 |
121121
|boot.js | 672.433 | 4.726 |
122122
|libs.js | 647.679 | 227.974 |
123123
|polyfills.js | 325.908 | 0 |
124124
|serviceworker.js | 0 | 285 |
125-
|TOTAL |8.019.778 | 836.460 |
125+
|TOTAL |8.019.778 | 829.355 |
126126

127127
|js/min/* |RainLoop |Snappy |RL gzip |SM gzip |RL brotli |SM brotli |
128128
|--------------- |--------: |--------: |------: |------: |--------: |--------: |
129-
|admin.min.js | 255.514 | 51.172 | 73.899 | 15.082 | 60.674 | 13.491 |
130-
|app.min.js | 516.000 | 243.404 |140.430 | 71.302 |110.657 | 60.167 |
131-
|boot.min.js | 66.456 | 2.525 | 22.553 | 1.391 | 20.043 | 1.201 |
129+
|admin.min.js | 255.514 | 50.607 | 73.899 | 14.944 | 60.674 | 13.364 |
130+
|app.min.js | 516.000 | 240.553 |140.430 | 70.291 |110.657 | 59.309 |
131+
|boot.min.js | 66.456 | 2.442 | 22.553 | 1.371 | 20.043 | 1.178 |
132132
|libs.min.js | 574.626 | 115.877 |177.280 | 42.809 |151.855 | 38.099 |
133133
|polyfills.min.js | 32.608 | 0 | 11.315 | 0 | 10.072 | 0 |
134-
|TOTAL |1.445.204 | 412.978 |425.477 |130.584 |353.301 |112.958 |
135-
|TOTAL (no admin) |1.189.690 | 361.806 |351.061 |115.502 |292.627 | 99.467 |
134+
|TOTAL |1.445.204 | 409.479 |425.477 |129.415 |353.301 |111.950 |
135+
|TOTAL (no admin) |1.189.690 | 358.872 |351.061 |114.471 |292.627 | 98.586 |
136136

137137
For a user its around 66% smaller and faster than traditional RainLoop.
138138

@@ -166,12 +166,12 @@ For a user its around 66% smaller and faster than traditional RainLoop.
166166

167167
|css/* |RainLoop |Snappy |RL gzip |SM gzip |SM brotli |
168168
|------------ |-------: |-------: |------: |------: |--------: |
169-
|app.css | 340.334 | 107.316 | 46,959 | 18.818 | 16.150 |
170-
|app.min.css | 274.791 | 88.449 | 39.618 | 16.838 | 14.830 |
169+
|app.css | 340.334 | 107.279 | 46,959 | 18.816 | 16.160 |
170+
|app.min.css | 274.791 | 88.402 | 39.618 | 16.831 | 14.827 |
171171
|boot.css | | 2.066 | | 913 | 742 |
172172
|boot.min.css | | 1.696 | | 818 | 664 |
173-
|admin.css | | 48.053 | | 9.494 | 8.310 |
174-
|admin.min.css | | 38.740 | | 8.441 | 7.501 |
173+
|admin.css | | 46.393 | | 9.237 | 8.073 |
174+
|admin.min.css | | 37.306 | | 8.191 | 7.282 |
175175

176176

177177
### Squire vs CKEditor
@@ -189,8 +189,7 @@ Still TODO:
189189

190190
CKEditor including the 7 asset requests (css,language,plugins,icons) is 633.46 KB / 180.47 KB (gzip).
191191

192-
To use the old CKEditor, you must enable it in /data/\_data\_/\_default\_/configs/application.ini
193-
in the [labs] section add/edit: `use_ck_html_editor = On`
192+
To use the old CKEditor, you must install the plugin.
194193

195194
### PHP73 branch
196195

dev/Common/Html.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { createCKEditor } from 'External/CKEditor.js';
2-
31
const
42
htmlre = /[&<>"']/g,
53
htmlmap = {
@@ -180,11 +178,11 @@ class HtmlEditor {
180178
this.onReady && this.onReady();
181179
};
182180

183-
if (window.CKEDITOR) {
184-
this.editor = createCKEditor(this.element);
185-
this.editor.on('instanceReady', onReady);
186-
} else {
187-
this.editor = new SquireUI(this.element, this.editor);
181+
if (rl.createWYSIWYG) {
182+
this.editor = rl.createWYSIWYG(this.element, onReady);
183+
}
184+
if (!this.editor) {
185+
this.editor = new SquireUI(this.element);
188186
setTimeout(onReady,1);
189187
}
190188

dev/External/CKEditor.js

Lines changed: 0 additions & 79 deletions
This file was deleted.

dev/Styles/@Main.less

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,3 @@
6767
@import "Animations.less";
6868

6969
@import "_End.less";
70-
/*
71-
@import "_CkeFix.less";
72-
*/

dev/Styles/_CkeFix.less

Lines changed: 0 additions & 213 deletions
This file was deleted.

dev/boot.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,6 @@ win.rl = {
153153
.then(() => Promise.all([loadScript(appData.TemplatesLink), loadScript(appData.LangLink)]))
154154
.then(() => loadScript(appData.StaticAppJsLink))
155155
.then(() => appData.PluginsLink ? loadScript(appData.PluginsLink) : Promise.resolve())
156-
.then(() =>
157-
// Enable the old CKEditor?
158-
(appData.Auth && appData.StaticEditorJsLink)
159-
? loadScript(appData.StaticEditorJsLink)
160-
: Promise.resolve()
161-
)
162156
.then(() => win.__APP_BOOT ? win.__APP_BOOT(showError) : showError())
163157
.catch(e => {
164158
showError();

0 commit comments

Comments
 (0)