Skip to content

Commit 61dc799

Browse files
committed
remove ckeditor
1 parent ae61b58 commit 61dc799

23 files changed

+31
-73
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ composer.lock
2929

3030
###> symfony/webpack-encore-bundle ###
3131
/node_modules/
32-
/public/ckeditor4/
3332
npm-debug.log
3433
###< symfony/webpack-encore-bundle ###
3534

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,4 @@ yarn install
5353

5454
# build assets in prod mode
5555
yarn build
56-
57-
# install ckeditor
58-
cp -R node_modules/ckeditor4 public
59-
# or yarn copy-ckeditor
6056
```

assets/admin/ckeditor.js

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import './highlightCode.scss'
2-
31
import highlightJs from 'highlight.js/lib/core'
42

53
import yaml from 'highlight.js/lib/languages/yaml';

assets/admin/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
import './main.scss'
2-
import './plugins/highlightCode'
2+
import './highlightCode'

assets/admin/main.scss

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
@use "~highlight.js/scss/atom-one-dark-reasonable";
2+
3+
hl-code {
4+
display: block;
5+
overflow-x: auto;
6+
padding: 1em;
7+
white-space: pre;
8+
margin-bottom: 1rem;
9+
10+
&.scroll {
11+
max-height: 420px;
12+
}
13+
}
14+
115
.content-bar {
216
position: sticky;
317
top: calc(65px + 1rem); // topbar-height

assets/admin/plugins/highlightCode.scss

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

config/packages/umbrella_core.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
umbrella_core:
2-
ckeditor:
3-
asset: ckeditor4/ckeditor.js
1+
umbrella_core:

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"license": "UNLICENSED",
33
"private": true,
44
"dependencies": {
5-
"ckeditor4": "4.21.0",
65
"highlight.js": "^11.7.0"
76
},
87
"devDependencies": {
@@ -24,7 +23,6 @@
2423
"dev": "encore dev",
2524
"watch": "encore dev --watch",
2625
"build": "encore production --progress",
27-
"copy-ckeditor": "cp -R node_modules/ckeditor4 public",
2826
"lint": "eslint assets",
2927
"lint-fix": "eslint assets --fix"
3028
},

public/build/971.46e4ee57.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)