Commit a7eb6ed
committed
Add Configuration API
Linting
Fix attribute parsing
Fix `configure` and `listen` (again)
No need for inheritance, move preset getter to editor level
Refresh DOMPurify config on each call, extract deepMerge helper
Rely on JSON.parse when possible
Add vitest
Make fallback logic clearer
Split presets/global into separate configs, use preset for global api, merge all config constructor args into tree
Run tests during local ci and github actions
Move javascript tests to into first level test/ folder
Rely on editor element preset getter, remove second preset arg from EditorConfiguration
Use runtime default preset as source of truth for override attributes
Remove unused helper
Tweak config export
Document config api
Rename external toolbar attribute to toolbartarget1 parent ebadf6b commit a7eb6ed
File tree
29 files changed
+1294
-87
lines changed- .github/workflows
- app/assets/javascript
- config
- src
- config
- editor
- elements
- helpers
- nodes
- test
- dummy/app/views/posts
- javascript
- config
- editor
- helpers
- system
29 files changed
+1294
-87
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 3 | + | |
7 | 4 | | |
8 | 5 | | |
9 | 6 | | |
| |||
55 | 52 | | |
56 | 53 | | |
57 | 54 | | |
58 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
59 | 68 | | |
60 | 69 | | |
61 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
145 | 170 | | |
146 | 171 | | |
147 | | - | |
| 172 | + | |
148 | 173 | | |
149 | | - | |
150 | | - | |
151 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
152 | 177 | | |
153 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
154 | 183 | | |
155 | 184 | | |
156 | 185 | | |
| |||
Large diffs are not rendered by default.
Binary file not shown.
Binary file not shown.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| |||
0 commit comments