jodit 3.15.2 → 3.16.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/workspace.xml +301 -299
- package/CHANGELOG.MD +88 -7
- package/CONTRIBUTING.md +97 -0
- package/README.md +7 -7
- package/build/jodit.css +38 -32
- package/build/jodit.es2018.css +37 -31
- package/build/jodit.es2018.en.css +37 -31
- package/build/jodit.es2018.en.js +1981 -1393
- package/build/jodit.es2018.en.min.css +1 -1
- package/build/jodit.es2018.en.min.js +1 -1
- package/build/jodit.es2018.js +2053 -1447
- package/build/jodit.es2018.min.css +1 -1
- package/build/jodit.es2018.min.js +1 -1
- package/build/jodit.js +3475 -2625
- package/build/jodit.min.css +2 -2
- package/build/jodit.min.js +1 -1
- package/build/vdom.css +1 -1
- package/build/vdom.js +32 -20
- package/package.json +13 -13
- package/src/README.md +1 -1
- package/src/config.ts +69 -36
- package/src/core/async/async.ts +46 -24
- package/src/core/constants.ts +1 -0
- package/src/core/decorators/README.md +35 -0
- package/src/core/decorators/cache/cache.ts +1 -1
- package/src/core/decorators/debounce/debounce.ts +20 -9
- package/src/core/decorators/idle/README.md +14 -0
- package/src/core/decorators/idle/idle.ts +1 -1
- package/src/core/decorators/watch/watch.ts +8 -7
- package/src/core/dom/README.md +42 -0
- package/src/core/dom/dom.ts +37 -23
- package/src/core/dom/index.ts +1 -0
- package/src/core/dom/lazy-walker.ts +133 -0
- package/src/core/event-emitter/event-emitter.ts +8 -8
- package/src/core/event-emitter/eventify.ts +73 -0
- package/src/core/event-emitter/index.ts +1 -0
- package/src/core/helpers/html/apply-styles.ts +1 -1
- package/src/core/helpers/html/strip-tags.ts +3 -2
- package/src/core/helpers/string/fuzzy-search-index.ts +58 -0
- package/src/core/helpers/string/i18n.ts +1 -1
- package/src/core/helpers/string/index.ts +3 -2
- package/src/core/helpers/utils/append-script.ts +1 -1
- package/src/core/helpers/utils/css.ts +1 -1
- package/src/core/helpers/utils/selector.ts +1 -1
- package/src/core/helpers/utils/utils.ts +3 -3
- package/src/core/plugin/plugin-system.ts +14 -8
- package/src/core/request/ajax.ts +3 -3
- package/src/core/selection/select.ts +10 -10
- package/src/core/selection/style/api/toggle/toggle-css.ts +5 -2
- package/src/core/selection/style/api/wrap-unwrapped-text.ts +1 -1
- package/src/core/selection/style/apply-style.ts +4 -4
- package/src/core/storage/engines/local-storage-provider.ts +20 -19
- package/src/core/ui/button/button/button.ts +5 -5
- package/src/core/ui/element.ts +2 -2
- package/src/core/ui/form/inputs/input/input.ts +1 -1
- package/src/core/ui/form/inputs/select/select.ts +1 -1
- package/src/core/ui/group/list.ts +2 -2
- package/src/core/vdom/render/index.ts +12 -8
- package/src/core/vdom/v-dom-jodit.ts +1 -1
- package/src/core/view/view.ts +1 -1
- package/src/index.ts +3 -3
- package/src/jodit.ts +72 -55
- package/src/langs/README.md +1 -1
- package/src/langs/ar.js +2 -1
- package/src/langs/cs_cz.js +2 -1
- package/src/langs/de.js +2 -1
- package/src/langs/es.js +2 -1
- package/src/langs/fa.js +2 -1
- package/src/langs/fr.js +2 -1
- package/src/langs/he.js +2 -1
- package/src/langs/hu.js +2 -1
- package/src/langs/id.js +2 -1
- package/src/langs/index.ts +1 -1
- package/src/langs/it.js +2 -1
- package/src/langs/ja.js +2 -1
- package/src/langs/ko.js +2 -1
- package/src/langs/nl.js +2 -1
- package/src/langs/pl.js +2 -1
- package/src/langs/pt_br.js +2 -1
- package/src/langs/ru.js +2 -1
- package/src/langs/tr.js +2 -1
- package/src/langs/zh_cn.js +2 -1
- package/src/langs/zh_tw.js +2 -1
- package/src/modules/dialog/dialog.ts +6 -6
- package/src/modules/dialog/prompt.ts +1 -1
- package/src/modules/file-browser/README.md +2 -2
- package/src/modules/file-browser/builders/context-menu.ts +12 -13
- package/src/modules/file-browser/fetch/load-tree.ts +1 -1
- package/src/modules/file-browser/file-browser.ts +10 -7
- package/src/modules/history/README.md +5 -0
- package/src/modules/{observer → history}/command.ts +5 -5
- package/src/modules/{observer/observer.ts → history/history.ts} +97 -55
- package/src/modules/{observer → history}/snapshot.ts +3 -4
- package/src/modules/{observer → history}/stack.ts +4 -4
- package/src/modules/image-editor/image-editor.ts +8 -8
- package/src/modules/image-editor/templates/form.ts +2 -2
- package/src/modules/index.ts +3 -3
- package/src/modules/status-bar/status-bar.ts +4 -0
- package/src/modules/table/table.ts +2 -2
- package/src/modules/toolbar/button/button.ts +2 -2
- package/src/modules/toolbar/collection/collection.ts +1 -1
- package/src/modules/uploader/helpers/process-old-browser-drag.ts +1 -1
- package/src/modules/uploader/helpers/send-files.ts +1 -1
- package/src/modules/uploader/helpers/send.ts +1 -1
- package/src/modules/uploader/uploader.ts +3 -3
- package/src/modules/widget/color-picker/color-picker.ts +2 -3
- package/src/modules/widget/tabs/tabs.ts +17 -12
- package/src/plugins/add-new-line/add-new-line.ts +8 -8
- package/src/plugins/class-span/class-span.ts +1 -1
- package/src/plugins/clipboard/copy-format.ts +1 -1
- package/src/plugins/clipboard/drag-and-drop-element.ts +4 -2
- package/src/plugins/clipboard/paste/config.ts +19 -3
- package/src/plugins/clipboard/paste/helpers.ts +17 -50
- package/src/plugins/clipboard/paste/interface.ts +6 -0
- package/src/plugins/clipboard/paste/paste.ts +22 -8
- package/src/plugins/clipboard/paste-from-word/config.ts +17 -0
- package/src/plugins/clipboard/paste-from-word/paste-from-word.ts +15 -6
- package/src/plugins/clipboard/paste-storage/paste-storage.ts +6 -6
- package/src/plugins/color/color.ts +2 -2
- package/src/plugins/error-messages/error-messages.ts +2 -2
- package/src/plugins/fix/clean-html/README.md +26 -0
- package/src/plugins/fix/{clean-html.ts → clean-html/clean-html.ts} +59 -142
- package/src/plugins/fix/clean-html/config.ts +106 -0
- package/src/plugins/fix/index.ts +12 -0
- package/src/plugins/fix/wrap-nodes/README.md +27 -0
- package/src/plugins/fix/wrap-nodes/config.ts +24 -0
- package/src/plugins/fix/{wrap-text-nodes.ts → wrap-nodes/wrap-nodes.ts} +9 -4
- package/src/plugins/focus/focus.ts +1 -1
- package/src/plugins/format-block/format-block.ts +1 -1
- package/src/plugins/fullsize/fullsize.ts +4 -4
- package/src/plugins/iframe/iframe.ts +3 -3
- package/src/plugins/image/image-properties/image-properties.ts +12 -13
- package/src/plugins/indent/indent.ts +1 -1
- package/src/plugins/index.ts +2 -2
- package/src/plugins/inline-popup/config/items/a.ts +2 -2
- package/src/plugins/inline-popup/config/items/cells.ts +11 -11
- package/src/plugins/inline-popup/config/items/iframe.ts +1 -1
- package/src/plugins/inline-popup/config/items/img.ts +7 -7
- package/src/plugins/inline-popup/inline-popup.ts +5 -5
- package/src/plugins/keyboard/backspace/backspace.ts +1 -1
- package/src/plugins/keyboard/backspace/cases/check-join-neighbors.ts +1 -1
- package/src/plugins/keyboard/helpers.ts +1 -1
- package/src/plugins/keyboard/hotkeys.ts +1 -1
- package/src/plugins/limit/limit.ts +3 -3
- package/src/plugins/line-height/line-height.ts +1 -1
- package/src/plugins/link/link.ts +8 -8
- package/src/plugins/link/template.ts +2 -2
- package/src/plugins/media/file.ts +1 -1
- package/src/plugins/media/media.ts +1 -1
- package/src/plugins/media/video/config.ts +1 -1
- package/src/plugins/mobile/config.ts +1 -1
- package/src/plugins/mobile/mobile.ts +1 -1
- package/src/plugins/ordered-list/config.ts +61 -0
- package/src/plugins/ordered-list/ordered-list.ts +3 -153
- package/src/plugins/placeholder/placeholder.ts +3 -3
- package/src/plugins/print/helpers.ts +14 -7
- package/src/plugins/print/index.ts +1 -1
- package/src/plugins/print/{preview.less → preview/preview.less} +1 -1
- package/src/plugins/print/{preview.ts → preview/preview.ts} +9 -8
- package/src/plugins/print/print.ts +19 -10
- package/src/plugins/redo-undo/redo-undo.ts +3 -3
- package/src/plugins/resizer/resizer.ts +11 -11
- package/src/plugins/search/README.md +38 -0
- package/src/plugins/search/config.ts +82 -0
- package/src/plugins/search/helpers/index.ts +12 -0
- package/src/plugins/search/helpers/sentence-finder.ts +103 -0
- package/src/plugins/search/helpers/wrap-ranges-texts-in-tmp-span.ts +120 -0
- package/src/plugins/search/search.ts +269 -615
- package/src/plugins/search/ui/search.less +159 -0
- package/src/plugins/search/ui/search.ts +256 -0
- package/src/plugins/select/select.ts +1 -1
- package/src/plugins/size/config.ts +8 -8
- package/src/plugins/size/resize-handler.ts +3 -3
- package/src/plugins/size/size.ts +4 -4
- package/src/plugins/source/editor/engines/ace.ts +9 -9
- package/src/plugins/source/editor/engines/area.ts +3 -3
- package/src/plugins/source/source.ts +6 -6
- package/src/plugins/spellcheck/README.md +1 -0
- package/src/plugins/spellcheck/config.ts +34 -0
- package/src/plugins/spellcheck/spellcheck.svg +4 -0
- package/src/plugins/spellcheck/spellcheck.ts +48 -0
- package/src/plugins/sticky/sticky.ts +3 -3
- package/src/plugins/table/resize-cells.ts +11 -11
- package/src/plugins/table/select-cells.ts +2 -2
- package/src/plugins/tooltip/tooltip.ts +1 -1
- package/src/plugins/xpath/xpath.ts +8 -8
- package/src/polyfills.ts +5 -4
- package/src/styles/icons/README.md +2 -2
- package/src/types/async.d.ts +12 -2
- package/src/types/core.ts +1 -1
- package/src/types/events.d.ts +6 -2
- package/src/types/file-browser.d.ts +1 -2
- package/{types/types/observer.d.ts → src/types/history.d.ts} +11 -7
- package/src/types/index.d.ts +1 -1
- package/src/types/jodit.d.ts +12 -4
- package/src/types/toolbar.d.ts +5 -5
- package/src/types/types.d.ts +11 -4
- package/types/config.d.ts +68 -35
- package/types/core/async/async.d.ts +11 -4
- package/types/core/constants.d.ts +1 -0
- package/types/core/dom/dom.d.ts +3 -5
- package/types/core/dom/index.d.ts +1 -0
- package/types/core/dom/lazy-walker.d.ts +37 -0
- package/types/core/event-emitter/eventify.d.ts +39 -0
- package/types/core/event-emitter/index.d.ts +1 -0
- package/types/core/helpers/string/fuzzy-search-index.d.ts +10 -0
- package/types/core/helpers/string/i18n.d.ts +1 -1
- package/types/core/helpers/string/index.d.ts +3 -2
- package/types/core/helpers/utils/utils.d.ts +1 -1
- package/types/core/selection/select.d.ts +1 -1
- package/types/core/ui/button/button/button.d.ts +4 -4
- package/types/core/view/view.d.ts +1 -1
- package/types/jodit.d.ts +19 -6
- package/types/modules/{observer → history}/command.d.ts +4 -4
- package/types/modules/{observer/observer.d.ts → history/history.d.ts} +17 -9
- package/types/modules/{observer → history}/snapshot.d.ts +1 -1
- package/types/modules/{observer → history}/stack.d.ts +3 -3
- package/types/modules/image-editor/image-editor.d.ts +1 -1
- package/types/modules/index.d.ts +3 -3
- package/types/modules/toolbar/button/button.d.ts +2 -5
- package/types/modules/widget/tabs/tabs.d.ts +1 -1
- package/types/plugins/class-span/class-span.d.ts +1 -1
- package/types/plugins/clipboard/paste/config.d.ts +8 -0
- package/types/plugins/clipboard/paste/helpers.d.ts +2 -2
- package/types/plugins/clipboard/paste/interface.d.ts +5 -0
- package/types/plugins/clipboard/paste-from-word/config.d.ts +5 -0
- package/types/plugins/clipboard/paste-from-word/paste-from-word.d.ts +3 -2
- package/types/plugins/fix/clean-html/clean-html.d.ts +70 -0
- package/types/plugins/fix/{clean-html.d.ts → clean-html/config.d.ts} +2 -57
- package/types/plugins/fix/index.d.ts +10 -0
- package/types/plugins/fix/wrap-nodes/config.d.ts +16 -0
- package/types/plugins/fix/{wrap-text-nodes.d.ts → wrap-nodes/wrap-nodes.d.ts} +5 -2
- package/types/plugins/fullsize/fullsize.d.ts +2 -2
- package/types/plugins/index.d.ts +2 -2
- package/types/plugins/ordered-list/config.d.ts +6 -0
- package/types/plugins/ordered-list/ordered-list.d.ts +1 -1
- package/types/plugins/print/helpers.d.ts +2 -2
- package/types/plugins/print/index.d.ts +1 -1
- package/types/plugins/print/{preview.d.ts → preview/preview.d.ts} +1 -1
- package/types/plugins/search/config.d.ts +36 -0
- package/types/plugins/search/helpers/index.d.ts +10 -0
- package/types/plugins/search/helpers/sentence-finder.d.ts +21 -0
- package/types/plugins/search/helpers/wrap-ranges-texts-in-tmp-span.d.ts +14 -0
- package/types/plugins/search/search.d.ts +25 -39
- package/types/plugins/search/ui/search.d.ts +37 -0
- package/types/plugins/spellcheck/config.d.ts +15 -0
- package/types/plugins/spellcheck/spellcheck.d.ts +19 -0
- package/types/plugins/sticky/sticky.d.ts +2 -2
- package/types/types/async.d.ts +12 -2
- package/types/types/core.d.ts +1 -1
- package/types/types/core.ts +1 -1
- package/types/types/events.d.ts +6 -2
- package/types/types/file-browser.d.ts +1 -2
- package/{src/types/observer.d.ts → types/types/history.d.ts} +11 -7
- package/types/types/index.d.ts +1 -1
- package/types/types/jodit.d.ts +12 -4
- package/types/types/toolbar.d.ts +5 -5
- package/types/types/types.d.ts +11 -4
- package/src/modules/observer/README.md +0 -0
- package/src/plugins/search/search.less +0 -152
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
|
|
4
|
-
* Version: v3.
|
|
4
|
+
* Version: v3.16.2
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -4338,21 +4338,17 @@ html.jodit_fullsize-box_true {
|
|
|
4338
4338
|
--jd-transform-button-active: 0.95;
|
|
4339
4339
|
--jd-timeout-button-active: 0.1s;
|
|
4340
4340
|
}
|
|
4341
|
-
.jodit-search {
|
|
4341
|
+
.jodit-ui-search {
|
|
4342
4342
|
position: absolute;
|
|
4343
4343
|
top: 0;
|
|
4344
4344
|
right: 0;
|
|
4345
4345
|
width: 0;
|
|
4346
4346
|
height: 0;
|
|
4347
|
-
visibility: hidden;
|
|
4348
4347
|
}
|
|
4349
|
-
.jodit-
|
|
4348
|
+
.jodit-ui-search_sticky_true {
|
|
4350
4349
|
position: fixed;
|
|
4351
4350
|
}
|
|
4352
|
-
.jodit-
|
|
4353
|
-
visibility: visible;
|
|
4354
|
-
}
|
|
4355
|
-
.jodit-search .jodit-search__box {
|
|
4351
|
+
.jodit-ui-search__box {
|
|
4356
4352
|
position: absolute;
|
|
4357
4353
|
right: 0;
|
|
4358
4354
|
display: flex;
|
|
@@ -4363,7 +4359,7 @@ html.jodit_fullsize-box_true {
|
|
|
4363
4359
|
border-width: 0 0 1px 1px;
|
|
4364
4360
|
background-color: var(--jd-color-panel);
|
|
4365
4361
|
}
|
|
4366
|
-
.jodit-
|
|
4362
|
+
.jodit-ui-search__box input {
|
|
4367
4363
|
width: 100%;
|
|
4368
4364
|
height: 100%;
|
|
4369
4365
|
padding: 0 var(--jd-padding-default);
|
|
@@ -4372,22 +4368,22 @@ html.jodit_fullsize-box_true {
|
|
|
4372
4368
|
background-color: transparent;
|
|
4373
4369
|
outline: none;
|
|
4374
4370
|
}
|
|
4375
|
-
.jodit-
|
|
4371
|
+
.jodit-ui-search__box input[data-ref='replace'] {
|
|
4376
4372
|
display: none;
|
|
4377
4373
|
}
|
|
4378
|
-
.jodit-
|
|
4374
|
+
.jodit-ui-search__box input:not(:focus) + input:not(:focus) {
|
|
4379
4375
|
border-top: 1px solid var(--jd-color-border);
|
|
4380
4376
|
}
|
|
4381
|
-
.jodit-
|
|
4382
|
-
.jodit-
|
|
4383
|
-
.jodit-
|
|
4377
|
+
.jodit-ui-search__buttons,
|
|
4378
|
+
.jodit-ui-search__counts,
|
|
4379
|
+
.jodit-ui-search__inputs {
|
|
4384
4380
|
height: var(--jd-height-search);
|
|
4385
4381
|
}
|
|
4386
|
-
.jodit-
|
|
4382
|
+
.jodit-ui-search__inputs {
|
|
4387
4383
|
width: var(--jd-width-search-input-box);
|
|
4388
4384
|
padding-right: calc(var(--jd-padding-default) / 2);
|
|
4389
4385
|
}
|
|
4390
|
-
.jodit-
|
|
4386
|
+
.jodit-ui-search__counts {
|
|
4391
4387
|
display: flex;
|
|
4392
4388
|
width: var(--jd-width-search-count-box);
|
|
4393
4389
|
align-items: center;
|
|
@@ -4395,56 +4391,66 @@ html.jodit_fullsize-box_true {
|
|
|
4395
4391
|
border-left: 1px solid var(--jd-color-border);
|
|
4396
4392
|
color: var(--jd-color-border);
|
|
4397
4393
|
}
|
|
4398
|
-
.jodit-
|
|
4394
|
+
.jodit-ui-search__buttons {
|
|
4399
4395
|
display: flex;
|
|
4400
4396
|
flex: 1;
|
|
4401
4397
|
align-items: center;
|
|
4402
4398
|
justify-content: center;
|
|
4403
4399
|
padding-left: 0;
|
|
4404
4400
|
}
|
|
4405
|
-
.jodit-
|
|
4401
|
+
.jodit-ui-search__buttons button {
|
|
4406
4402
|
width: 32%;
|
|
4407
4403
|
height: 100%;
|
|
4408
4404
|
border: 1px solid transparent;
|
|
4409
4405
|
margin-right: 1%;
|
|
4410
4406
|
background-color: transparent;
|
|
4411
4407
|
}
|
|
4412
|
-
.jodit-
|
|
4408
|
+
.jodit-ui-search__buttons button[data-ref='replace-btn'] {
|
|
4413
4409
|
display: none;
|
|
4414
4410
|
width: 100%;
|
|
4415
4411
|
border: 1px solid var(--jd-color-border);
|
|
4416
4412
|
margin-top: 2px;
|
|
4417
4413
|
}
|
|
4418
|
-
.jodit-
|
|
4414
|
+
.jodit-ui-search__buttons button:hover {
|
|
4419
4415
|
background-color: var(--jd-color-background-button-hover);
|
|
4420
4416
|
}
|
|
4421
|
-
.jodit-
|
|
4417
|
+
.jodit-ui-search__buttons button:focus {
|
|
4422
4418
|
border: 1px solid var(--jd-color-background-selection_opacity50);
|
|
4423
4419
|
}
|
|
4424
|
-
.jodit-
|
|
4420
|
+
.jodit-ui-search__buttons button:active {
|
|
4425
4421
|
border: 1px solid var(--jd-color-background-selection);
|
|
4426
4422
|
transform: scale(var(--jd-transform-button-active), var(--jd-transform-button-active));
|
|
4427
4423
|
}
|
|
4428
|
-
.jodit-
|
|
4429
|
-
.jodit-
|
|
4424
|
+
.jodit-ui-search_empty-query_true [data-ref='next'],
|
|
4425
|
+
.jodit-ui-search_empty-query_true [data-ref='prev'] {
|
|
4426
|
+
opacity: 0.5;
|
|
4427
|
+
}
|
|
4428
|
+
.jodit-ui-search_replace_true .jodit-ui-search__counts,
|
|
4429
|
+
.jodit-ui-search_replace_true .jodit-ui-search__inputs {
|
|
4430
4430
|
height: calc(var(--jd-height-search) * 2);
|
|
4431
4431
|
}
|
|
4432
|
-
.jodit-
|
|
4433
|
-
.jodit-
|
|
4432
|
+
.jodit-ui-search_replace_true .jodit-ui-search__counts input,
|
|
4433
|
+
.jodit-ui-search_replace_true .jodit-ui-search__inputs input {
|
|
4434
4434
|
height: 50%;
|
|
4435
4435
|
transition: background-color var(--jd-timeout-button-active) linear;
|
|
4436
4436
|
}
|
|
4437
|
-
.jodit-
|
|
4438
|
-
.jodit-
|
|
4437
|
+
.jodit-ui-search_replace_true .jodit-ui-search__counts input:focus,
|
|
4438
|
+
.jodit-ui-search_replace_true .jodit-ui-search__inputs input:focus {
|
|
4439
4439
|
box-shadow: inset 0 0 3px 0 var(--jd-color-border);
|
|
4440
4440
|
}
|
|
4441
|
-
.jodit-
|
|
4441
|
+
.jodit-ui-search_replace_true .jodit-ui-search__counts input[data-ref='replace'],
|
|
4442
|
+
.jodit-ui-search_replace_true .jodit-ui-search__inputs input[data-ref='replace'] {
|
|
4443
|
+
display: block;
|
|
4444
|
+
}
|
|
4445
|
+
.jodit-ui-search_replace_true .jodit-ui-search__buttons {
|
|
4442
4446
|
flex-wrap: wrap;
|
|
4443
4447
|
}
|
|
4444
|
-
.jodit-
|
|
4445
|
-
.jodit-search.jodit-search_replace .jodit-search__buttons button[data-ref='replace-btn'] {
|
|
4448
|
+
.jodit-ui-search_replace_true .jodit-ui-search__buttons button[data-ref='replace-btn'] {
|
|
4446
4449
|
display: block;
|
|
4447
4450
|
}
|
|
4451
|
+
[jd-tmp-selection] {
|
|
4452
|
+
background-color: aquamarine;
|
|
4453
|
+
}
|
|
4448
4454
|
|
|
4449
4455
|
/*!
|
|
4450
4456
|
* Jodit Editor (https://xdsoft.net/jodit/)
|