jodit 3.18.8 → 3.19.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/README.md +29 -2
- package/build/jodit.es2018.en.css +125 -124
- package/build/jodit.es2018.en.js +28267 -23413
- package/build/plugins/{speech/speech-recognize → speech-recognize}/speech-recognize.es2018.en.css +1 -1
- package/build/plugins/{speech/speech-recognize/speech-recognize.js → speech-recognize/speech-recognize.es2018.en.js} +139 -128
- package/package.json +22 -22
- package/src/config.ts +75 -0
- package/src/core/constants.ts +3 -0
- package/src/core/dom/dom.ts +34 -0
- package/src/core/helpers/helpers.test.js +31 -25
- package/src/core/helpers/string/i18n.ts +4 -6
- package/src/core/helpers/utils/align.ts +83 -0
- package/src/core/helpers/utils/default-language.ts +1 -1
- package/src/core/helpers/utils/index.ts +11 -9
- package/src/core/helpers/utils/mark-deprecated.ts +1 -1
- package/src/core/helpers/utils/parse-query.ts +1 -1
- package/src/{plugins/print/helpers.ts → core/helpers/utils/print.ts} +6 -2
- package/src/core/helpers/utils/utils.ts +19 -1
- package/src/core/plugin/plugin-system.ts +23 -7
- package/src/core/request/ajax.ts +9 -3
- package/src/core/ui/icon.ts +11 -3
- package/src/index.ts +2 -8
- package/src/langs/ar.js +0 -4
- package/src/langs/cs_cz.js +0 -4
- package/src/langs/de.js +0 -4
- package/src/langs/es.js +0 -4
- package/src/langs/fa.js +0 -4
- package/src/langs/fr.js +0 -4
- package/src/langs/he.js +0 -4
- package/src/langs/hu.js +0 -4
- package/src/langs/id.js +0 -4
- package/src/langs/index.ts +24 -25
- package/src/langs/it.js +0 -4
- package/src/langs/ja.js +0 -4
- package/src/langs/ko.js +0 -4
- package/src/langs/nl.js +0 -4
- package/src/langs/pl.js +0 -4
- package/src/langs/pt_br.js +0 -4
- package/src/langs/ru.js +0 -4
- package/src/langs/tr.js +0 -4
- package/src/langs/zh_cn.js +0 -4
- package/src/langs/zh_tw.js +0 -4
- package/src/modules/dialog/dialog.test.js +2 -0
- package/src/modules/file-browser/config.ts +3 -2
- package/src/modules/file-browser/file-browser.ts +2 -7
- package/src/modules/image-editor/config.ts +6 -0
- package/src/{styles → modules/image-editor}/icons/crop.svg +0 -0
- package/src/{styles → modules/image-editor}/icons/resize.svg +0 -0
- package/src/modules/table/table.test.js +0 -906
- package/src/modules/widget/color-picker/color-picker.ts +2 -0
- package/src/{styles/icons → modules/widget/color-picker}/palette.svg +0 -0
- package/src/modules/widget/file-selector/file-selector.ts +1 -1
- package/src/{styles/icons → plugins/about}/about.svg +0 -0
- package/src/plugins/about/about.ts +6 -1
- package/src/plugins/add-new-line/add-new-line.test.js +219 -0
- package/src/plugins/add-new-line/add-new-line.ts +3 -0
- package/src/plugins/add-new-line/config.ts +3 -0
- package/src/{styles/icons → plugins/add-new-line}/enter.svg +0 -0
- package/src/plugins/{keyboard/backspace → backspace}/backspace.test.js +0 -0
- package/src/plugins/{keyboard/backspace → backspace}/backspace.ts +10 -9
- package/src/plugins/{keyboard/backspace → backspace}/cases/check-join-neighbors.ts +7 -4
- package/src/plugins/{keyboard/backspace → backspace}/cases/check-join-two-lists.ts +6 -2
- package/src/plugins/{keyboard/backspace → backspace}/cases/check-not-collapsed.ts +4 -0
- package/src/plugins/{keyboard/backspace → backspace}/cases/check-remove-char.ts +7 -2
- package/src/plugins/{keyboard/backspace → backspace}/cases/check-remove-content-not-editable.ts +5 -0
- package/src/plugins/{keyboard/backspace → backspace}/cases/check-remove-empty-neighbor.ts +6 -3
- package/src/plugins/{keyboard/backspace → backspace}/cases/check-remove-empty-parent.ts +11 -3
- package/src/plugins/{keyboard/backspace → backspace}/cases/check-remove-unbreakable-element.ts +7 -2
- package/src/plugins/{keyboard/backspace → backspace}/cases/check-table-cell.ts +5 -1
- package/src/plugins/{keyboard/backspace → backspace}/cases/check-unwrap-first-list-item.ts +5 -1
- package/src/plugins/{keyboard/backspace → backspace}/cases/index.ts +4 -0
- package/src/plugins/{keyboard/backspace → backspace}/config.ts +0 -0
- package/src/plugins/{keyboard → backspace}/helpers.ts +1 -36
- package/src/plugins/{keyboard/backspace → backspace}/interface.d.ts +0 -0
- package/src/plugins/bold/bold.ts +11 -0
- package/src/{styles → plugins/bold}/icons/bold.svg +0 -0
- package/src/{styles → plugins/bold}/icons/italic.svg +0 -0
- package/src/{styles → plugins/bold}/icons/strikethrough.svg +0 -0
- package/src/{styles → plugins/bold}/icons/subscript.svg +0 -0
- package/src/{styles → plugins/bold}/icons/superscript.svg +0 -0
- package/src/{styles → plugins/bold}/icons/underline.svg +0 -0
- package/src/plugins/class-span/{icon.svg → class-span.svg} +0 -0
- package/src/plugins/class-span/class-span.ts +5 -2
- package/src/plugins/{fix/clean-html → clean-html}/README.md +0 -0
- package/src/plugins/{fix/clean-html → clean-html}/clean-html.test.js +0 -0
- package/src/plugins/{fix/clean-html → clean-html}/clean-html.ts +7 -3
- package/src/plugins/{fix/clean-html → clean-html}/config.ts +4 -1
- package/src/{styles/icons → plugins/clean-html}/eraser.svg +0 -0
- package/src/plugins/{fix/clean-html → clean-html}/helpers/get-hash.ts +3 -2
- package/src/plugins/{fix/clean-html → clean-html}/helpers/index.ts +1 -1
- package/src/plugins/{fix/clean-html → clean-html}/helpers/remove-format/remove-format-for-collapsed-selection.ts +1 -1
- package/src/plugins/{fix/clean-html → clean-html}/helpers/remove-format/remove-format-for-selection.ts +3 -3
- package/src/plugins/{fix/clean-html → clean-html}/helpers/visitor/filters/allow-attributes.ts +1 -1
- package/src/plugins/{fix/clean-html → clean-html}/helpers/visitor/filters/fill-empty-paragraph.ts +1 -1
- package/src/plugins/{fix/clean-html → clean-html}/helpers/visitor/filters/index.ts +1 -1
- package/src/plugins/{fix/clean-html → clean-html}/helpers/visitor/filters/remove-inv-text-nodes.ts +1 -1
- package/src/plugins/{fix/clean-html → clean-html}/helpers/visitor/filters/replace-old-tags.ts +1 -1
- package/src/plugins/{fix/clean-html → clean-html}/helpers/visitor/filters/sanitize-attributes.ts +2 -2
- package/src/plugins/{fix/clean-html → clean-html}/helpers/visitor/filters/try-remove-node.ts +7 -36
- package/src/plugins/{fix/clean-html → clean-html}/helpers/visitor/visit-node-walker.ts +3 -2
- package/src/plugins/clipboard/clipboard.ts +19 -10
- package/src/plugins/clipboard/config.ts +6 -0
- package/src/{styles → plugins/clipboard}/icons/copy.svg +0 -0
- package/src/{styles → plugins/clipboard}/icons/cut.svg +0 -0
- package/src/{styles → plugins/clipboard}/icons/paste.svg +0 -0
- package/src/{styles → plugins/clipboard}/icons/select-all.svg +0 -0
- package/src/{styles/icons → plugins/color}/brush.svg +0 -0
- package/src/plugins/color/color.ts +6 -169
- package/src/plugins/color/config.ts +183 -0
- package/src/{styles/icons/copyformat.svg → plugins/copy-format/copy-format.svg} +0 -0
- package/src/plugins/copy-format/copy-format.test.js +223 -0
- package/src/plugins/{clipboard → copy-format}/copy-format.ts +10 -3
- package/src/plugins/copy-format/langs/ar.js +9 -0
- package/src/plugins/copy-format/langs/cs_cz.js +9 -0
- package/src/plugins/copy-format/langs/de.js +9 -0
- package/src/plugins/copy-format/langs/es.js +9 -0
- package/src/plugins/copy-format/langs/fa.js +9 -0
- package/src/plugins/copy-format/langs/fr.js +9 -0
- package/src/plugins/copy-format/langs/he.js +9 -0
- package/src/plugins/{speech/speech-recognize → copy-format}/langs/hu.js +1 -3
- package/src/plugins/{speech/speech-recognize → copy-format}/langs/id.js +1 -3
- package/src/plugins/{speech/speech-recognize → copy-format}/langs/index.ts +0 -0
- package/src/plugins/copy-format/langs/it.js +9 -0
- package/src/plugins/copy-format/langs/ja.js +9 -0
- package/src/plugins/copy-format/langs/ko.js +9 -0
- package/src/plugins/copy-format/langs/nl.js +9 -0
- package/src/plugins/copy-format/langs/pl.js +9 -0
- package/src/plugins/{speech/speech-recognize → copy-format}/langs/pt_br.js +1 -3
- package/src/plugins/copy-format/langs/ru.js +9 -0
- package/src/plugins/copy-format/langs/tr.js +9 -0
- package/src/plugins/{speech/speech-recognize → copy-format}/langs/zh_cn.js +1 -3
- package/src/plugins/copy-format/langs/zh_tw.js +9 -0
- package/src/plugins/{clipboard/drag-and-drop → drag-and-drop}/drag-and-drop.ts +6 -4
- package/src/plugins/drag-and-drop-element/config.ts +22 -0
- package/src/plugins/{clipboard/drag-and-drop-element → drag-and-drop-element}/drag-and-drop-element.test.js +0 -0
- package/src/plugins/{clipboard/drag-and-drop-element → drag-and-drop-element}/drag-and-drop-element.ts +7 -3
- package/src/plugins/{keyboard/enter → enter}/README.md +0 -0
- package/src/plugins/{keyboard/enter → enter}/enter.test.js +0 -0
- package/src/plugins/{keyboard/enter → enter}/enter.ts +7 -3
- package/src/plugins/{keyboard/enter → enter}/helpers/check-br.ts +1 -1
- package/src/plugins/{keyboard/enter → enter}/helpers/check-unsplittable-box.ts +1 -1
- package/src/plugins/{keyboard/enter → enter}/helpers/get-block-wrapper.ts +1 -1
- package/src/plugins/{keyboard/enter → enter}/helpers/has-previous-block.ts +1 -1
- package/src/plugins/{keyboard/enter → enter}/helpers/index.ts +1 -1
- package/src/plugins/{keyboard/enter → enter}/helpers/insert-paragraph.ts +1 -1
- package/src/plugins/{keyboard/enter → enter}/helpers/process-empty-li-leaf.ts +2 -1
- package/src/plugins/{keyboard/enter → enter}/helpers/split-fragment.ts +3 -2
- package/src/plugins/{keyboard/enter → enter}/helpers/wrap-text.ts +1 -1
- package/src/plugins/error-messages/error-messages.ts +3 -0
- package/src/plugins/{media → file}/file.ts +5 -2
- package/src/plugins/focus/focus.ts +3 -0
- package/src/plugins/font/config.ts +151 -0
- package/src/plugins/font/font.ts +6 -134
- package/src/{styles → plugins/font}/icons/font.svg +0 -0
- package/src/{styles → plugins/font}/icons/fontsize.svg +0 -0
- package/src/plugins/format-block/format-block.ts +6 -0
- package/src/{styles/icons → plugins/format-block}/paragraph.svg +0 -0
- package/src/plugins/fullsize/config.ts +73 -0
- package/src/plugins/fullsize/fullsize.test.js +35 -0
- package/src/plugins/fullsize/fullsize.ts +5 -54
- package/src/{styles → plugins/fullsize}/icons/fullsize.svg +0 -0
- package/src/{styles → plugins/fullsize}/icons/shrink.svg +0 -0
- package/src/plugins/hotkeys/config.ts +38 -0
- package/src/plugins/hotkeys/hotkeys.test.js +136 -0
- package/src/plugins/{keyboard → hotkeys}/hotkeys.ts +6 -28
- package/src/{styles/icons → plugins/hr}/hr.svg +0 -0
- package/src/plugins/{insert/insert.test.js → hr/hr.test.js} +0 -0
- package/src/plugins/{insert → hr}/hr.ts +7 -1
- package/src/plugins/iframe/config.ts +0 -21
- package/src/plugins/iframe/iframe.ts +3 -0
- package/src/{styles/icons → plugins/image}/image.svg +0 -0
- package/src/plugins/image/image.ts +6 -0
- package/src/plugins/{image/image-processor → image-processor}/README.md +0 -0
- package/src/plugins/{image/image-processor → image-processor}/config.ts +0 -0
- package/src/plugins/{image/image-processor → image-processor}/image-processor.ts +5 -2
- package/src/plugins/{image/image-properties → image-properties}/config.ts +1 -1
- package/src/plugins/{image/image-properties → image-properties}/image-properties.less +1 -1
- package/src/plugins/image-properties/image-properties.test.js +548 -0
- package/src/plugins/{image/image-properties → image-properties}/image-properties.ts +23 -15
- package/src/plugins/{image/image-properties → image-properties}/templates/form.ts +2 -2
- package/src/plugins/{image/image-properties → image-properties}/templates/main-tab.ts +2 -2
- package/src/plugins/{image/image-properties → image-properties}/templates/position-tab.ts +2 -2
- package/src/plugins/indent/config.ts +57 -0
- package/src/plugins/indent/helpers.ts +23 -0
- package/src/{styles → plugins/indent}/icons/indent.svg +0 -0
- package/src/{styles → plugins/indent}/icons/outdent.svg +0 -0
- package/src/plugins/indent/indent.ts +6 -48
- package/src/plugins/index.ts +61 -53
- package/src/plugins/inline-popup/config/config.ts +9 -0
- package/src/plugins/inline-popup/config/items/img.ts +10 -7
- package/src/{styles → plugins/inline-popup}/icons/addcolumn.svg +0 -0
- package/src/{styles → plugins/inline-popup}/icons/addrow.svg +0 -0
- package/src/{styles → plugins/inline-popup}/icons/merge.svg +0 -0
- package/src/{styles → plugins/inline-popup}/icons/splitg.svg +0 -0
- package/src/{styles → plugins/inline-popup}/icons/splitv.svg +0 -0
- package/src/{styles → plugins/inline-popup}/icons/th-list.svg +0 -0
- package/src/{styles → plugins/inline-popup}/icons/th.svg +0 -0
- package/src/plugins/inline-popup/inline-popup.ts +5 -1
- package/src/{styles/icons → plugins/justify}/justify.svg +0 -0
- package/src/plugins/justify/justify.ts +9 -46
- package/src/plugins/{keyboard → key-arrow-outside}/key-arrow-outside.ts +6 -4
- package/src/plugins/limit/config.ts +30 -0
- package/src/plugins/limit/limit.ts +4 -23
- package/src/plugins/line-height/config.ts +3 -1
- package/src/plugins/line-height/langs/ar.js +9 -0
- package/src/plugins/line-height/langs/cs_cz.js +9 -0
- package/src/plugins/line-height/langs/de.js +9 -0
- package/src/plugins/line-height/langs/es.js +9 -0
- package/src/plugins/line-height/langs/fa.js +9 -0
- package/src/plugins/line-height/langs/fr.js +9 -0
- package/src/plugins/line-height/langs/he.js +9 -0
- package/src/plugins/line-height/langs/hu.js +9 -0
- package/src/plugins/line-height/langs/id.js +9 -0
- package/src/plugins/line-height/langs/index.ts +47 -0
- package/src/plugins/line-height/langs/it.js +9 -0
- package/src/plugins/line-height/langs/ja.js +9 -0
- package/src/plugins/line-height/langs/ko.js +9 -0
- package/src/plugins/line-height/langs/nl.js +9 -0
- package/src/plugins/line-height/langs/pl.js +9 -0
- package/src/plugins/line-height/langs/pt_br.js +9 -0
- package/src/plugins/line-height/langs/ru.js +9 -0
- package/src/plugins/line-height/langs/tr.js +9 -0
- package/src/plugins/line-height/langs/zh_cn.js +9 -0
- package/src/plugins/line-height/langs/zh_tw.js +9 -0
- package/src/{styles/icons → plugins/line-height}/line-height.svg +0 -0
- package/src/plugins/line-height/line-height.ts +12 -3
- package/src/plugins/link/config.ts +6 -0
- package/src/{styles → plugins/link}/icons/link.svg +0 -0
- package/src/{styles → plugins/link}/icons/unlink.svg +0 -0
- package/src/plugins/link/link.ts +5 -1
- package/src/plugins/media/config.ts +30 -0
- package/src/plugins/media/media.ts +5 -24
- package/src/plugins/mobile/mobile.ts +3 -0
- package/src/plugins/ordered-list/config.ts +4 -1
- package/src/{styles → plugins/ordered-list}/icons/ol.svg +0 -0
- package/src/{styles → plugins/ordered-list}/icons/ul.svg +0 -0
- package/src/plugins/ordered-list/ordered-list.ts +3 -0
- package/src/plugins/{clipboard/paste → paste}/README.md +0 -0
- package/src/plugins/{clipboard/paste → paste}/config.ts +5 -12
- package/src/plugins/{clipboard/paste → paste}/helpers.ts +6 -25
- package/src/plugins/{clipboard/paste → paste}/interface.ts +3 -14
- package/src/plugins/{clipboard/paste → paste}/paste.test.js +0 -0
- package/src/plugins/{clipboard/paste → paste}/paste.ts +20 -23
- package/src/plugins/{clipboard/paste-from-word → paste-from-word}/README.md +0 -0
- package/src/plugins/{clipboard/paste-from-word → paste-from-word}/config.ts +2 -3
- package/src/plugins/{clipboard/paste-from-word → paste-from-word}/paste-from-word.ts +15 -16
- package/src/plugins/{clipboard/paste-storage → paste-storage}/paste-storage.less +1 -1
- package/src/plugins/paste-storage/paste-storage.test.js +231 -0
- package/src/plugins/{clipboard/paste-storage → paste-storage}/paste-storage.ts +8 -5
- package/src/plugins/placeholder/placeholder.ts +4 -1
- package/src/plugins/plugins.test.js +0 -2141
- package/src/plugins/powered-by-jodit/powered-by-jodit.ts +9 -5
- package/src/plugins/{print/preview → preview}/preview.less +1 -1
- package/src/plugins/{print/preview → preview}/preview.test.js +0 -0
- package/src/plugins/{print/preview → preview}/preview.ts +4 -1
- package/src/plugins/print/lib/generate-critical-css.ts +3 -0
- package/src/{styles/icons → plugins/print}/print.svg +0 -0
- package/src/plugins/print/print.ts +10 -3
- package/src/{styles → plugins/redo-undo}/icons/redo.svg +0 -0
- package/src/{styles → plugins/redo-undo}/icons/undo.svg +0 -0
- package/src/plugins/redo-undo/redo-undo.ts +10 -1
- package/src/plugins/resize-cells/config.ts +19 -0
- package/src/plugins/resize-cells/resize-cells.less +27 -0
- package/src/plugins/resize-cells/resize-cells.test.js +890 -0
- package/src/plugins/{table → resize-cells}/resize-cells.ts +10 -4
- package/src/plugins/resize-handler/config.ts +21 -0
- package/src/plugins/{size → resize-handler}/resize-handler.ts +5 -0
- package/src/plugins/resizer/config.ts +1 -1
- package/src/plugins/resizer/resizer.ts +6 -2
- package/src/plugins/search/config.ts +3 -0
- package/src/plugins/search/helpers/sentence-finder.ts +1 -1
- package/src/plugins/search/helpers/wrap-ranges-texts-in-tmp-span.ts +1 -1
- package/src/{styles/icons → plugins/search}/search.svg +0 -0
- package/src/plugins/search/search.ts +7 -3
- package/src/plugins/select/config.ts +1 -1
- package/src/plugins/select/select.ts +6 -7
- package/src/plugins/select-cells/config.ts +19 -0
- package/src/plugins/{table → select-cells}/select-cells.ts +10 -5
- package/src/plugins/size/config.ts +0 -56
- package/src/plugins/size/size.test.js +27 -0
- package/src/plugins/size/size.ts +6 -1
- package/src/plugins/source/config.ts +9 -7
- package/src/plugins/source/editor/engines/ace.ts +8 -5
- package/src/plugins/source/editor/engines/area.ts +3 -2
- package/src/plugins/source/editor/engines/custom.ts +1 -0
- package/src/plugins/source/editor/factory.ts +2 -1
- package/src/{styles/icons → plugins/source}/source.svg +0 -0
- package/src/plugins/source/source.ts +9 -4
- package/src/plugins/{speech/speech-recognize → speech-recognize}/README.md +4 -4
- package/src/plugins/{speech/speech-recognize → speech-recognize}/config.ts +5 -3
- package/src/plugins/{speech/speech-recognize → speech-recognize}/constants.ts +2 -1
- package/src/plugins/{speech/speech-recognize → speech-recognize}/helpers/api.ts +1 -1
- package/src/plugins/{speech/speech-recognize → speech-recognize}/helpers/exec-spell-command.ts +1 -1
- package/src/plugins/{speech/speech-recognize → speech-recognize}/helpers/recognize-manager.ts +5 -7
- package/src/plugins/{speech/speech-recognize → speech-recognize}/helpers/sound.ts +4 -1
- package/src/plugins/{speech/speech-recognize → speech-recognize}/interface.ts +1 -1
- package/src/plugins/{speech/speech-recognize → speech-recognize}/langs/ar.js +4 -1
- package/src/plugins/{speech/speech-recognize → speech-recognize}/langs/cs_cz.js +4 -1
- package/src/plugins/{speech/speech-recognize → speech-recognize}/langs/de.js +4 -1
- package/src/plugins/{speech/speech-recognize → speech-recognize}/langs/es.js +4 -1
- package/src/plugins/{speech/speech-recognize → speech-recognize}/langs/fa.js +4 -1
- package/src/plugins/{speech/speech-recognize → speech-recognize}/langs/fr.js +4 -1
- package/src/plugins/{speech/speech-recognize → speech-recognize}/langs/he.js +4 -1
- package/src/plugins/speech-recognize/langs/hu.js +14 -0
- package/src/plugins/speech-recognize/langs/id.js +14 -0
- package/src/plugins/speech-recognize/langs/index.ts +47 -0
- package/src/plugins/{speech/speech-recognize → speech-recognize}/langs/it.js +4 -1
- package/src/plugins/{speech/speech-recognize → speech-recognize}/langs/ja.js +4 -1
- package/src/plugins/{speech/speech-recognize → speech-recognize}/langs/ko.js +4 -1
- package/src/plugins/{speech/speech-recognize → speech-recognize}/langs/nl.js +4 -1
- package/src/plugins/{speech/speech-recognize → speech-recognize}/langs/pl.js +4 -1
- package/src/plugins/speech-recognize/langs/pt_br.js +14 -0
- package/src/plugins/{speech/speech-recognize → speech-recognize}/langs/ru.js +4 -1
- package/src/plugins/{speech/speech-recognize → speech-recognize}/langs/tr.js +4 -1
- package/src/plugins/speech-recognize/langs/zh_cn.js +14 -0
- package/src/plugins/{speech/speech-recognize → speech-recognize}/langs/zh_tw.js +4 -1
- package/src/plugins/{speech/speech-recognize → speech-recognize}/speech-recognize.less +2 -2
- package/src/plugins/{speech/speech-recognize/icon.svg → speech-recognize/speech-recognize.svg} +0 -0
- package/src/plugins/{speech/speech-recognize → speech-recognize}/speech-recognize.ts +2 -2
- package/src/plugins/spellcheck/config.ts +4 -1
- package/src/plugins/spellcheck/langs/ar.js +9 -0
- package/src/plugins/spellcheck/langs/cs_cz.js +9 -0
- package/src/plugins/spellcheck/langs/de.js +9 -0
- package/src/plugins/spellcheck/langs/es.js +9 -0
- package/src/plugins/spellcheck/langs/fa.js +9 -0
- package/src/plugins/spellcheck/langs/fr.js +9 -0
- package/src/plugins/spellcheck/langs/he.js +9 -0
- package/src/plugins/spellcheck/langs/hu.js +9 -0
- package/src/plugins/spellcheck/langs/id.js +9 -0
- package/src/plugins/spellcheck/langs/index.ts +47 -0
- package/src/plugins/spellcheck/langs/it.js +9 -0
- package/src/plugins/spellcheck/langs/ja.js +9 -0
- package/src/plugins/spellcheck/langs/ko.js +9 -0
- package/src/plugins/spellcheck/langs/nl.js +9 -0
- package/src/plugins/spellcheck/langs/pl.js +9 -0
- package/src/plugins/spellcheck/langs/pt_br.js +9 -0
- package/src/plugins/spellcheck/langs/ru.js +9 -0
- package/src/plugins/spellcheck/langs/tr.js +9 -0
- package/src/plugins/spellcheck/langs/zh_cn.js +9 -0
- package/src/plugins/spellcheck/langs/zh_tw.js +9 -0
- package/src/plugins/spellcheck/spellcheck.ts +8 -0
- package/src/plugins/stat/config.ts +23 -0
- package/src/plugins/stat/stat.ts +6 -14
- package/src/plugins/sticky/config.ts +44 -0
- package/src/plugins/sticky/sticky.test.js +201 -0
- package/src/plugins/sticky/sticky.ts +6 -34
- package/src/plugins/symbols/config.ts +4 -2
- package/src/plugins/symbols/langs/ar.js +9 -0
- package/src/plugins/symbols/langs/cs_cz.js +9 -0
- package/src/plugins/symbols/langs/de.js +9 -0
- package/src/plugins/symbols/langs/es.js +9 -0
- package/src/plugins/symbols/langs/fa.js +9 -0
- package/src/plugins/symbols/langs/fr.js +9 -0
- package/src/plugins/symbols/langs/he.js +9 -0
- package/src/plugins/symbols/langs/hu.js +9 -0
- package/src/plugins/symbols/langs/id.js +9 -0
- package/src/plugins/symbols/langs/index.ts +47 -0
- package/src/plugins/symbols/langs/it.js +9 -0
- package/src/plugins/symbols/langs/ja.js +9 -0
- package/src/plugins/symbols/langs/ko.js +9 -0
- package/src/plugins/symbols/langs/nl.js +9 -0
- package/src/plugins/symbols/langs/pl.js +9 -0
- package/src/plugins/symbols/langs/pt_br.js +9 -0
- package/src/plugins/symbols/langs/ru.js +9 -0
- package/src/plugins/symbols/langs/tr.js +9 -0
- package/src/plugins/symbols/langs/zh_cn.js +9 -0
- package/src/plugins/symbols/langs/zh_tw.js +9 -0
- package/src/{styles/icons/omega.svg → plugins/symbols/symbols.svg} +0 -0
- package/src/plugins/symbols/symbols.test.js +280 -0
- package/src/plugins/symbols/symbols.ts +13 -4
- package/src/plugins/{keyboard/tab → tab}/README.md +0 -0
- package/src/plugins/{keyboard/tab → tab}/cases/index.ts +1 -1
- package/src/plugins/{keyboard/tab → tab}/cases/on-tab-inside-li.ts +3 -2
- package/src/plugins/{keyboard/tab → tab}/config.ts +1 -1
- package/src/plugins/{keyboard/tab → tab}/tab.test.js +0 -0
- package/src/plugins/{keyboard/tab → tab}/tab.ts +7 -4
- package/src/plugins/table/config.ts +3 -4
- package/src/plugins/table/table.less +0 -26
- package/src/{styles/icons → plugins/table}/table.svg +0 -0
- package/src/plugins/table/table.ts +7 -0
- package/src/plugins/{table → table-keyboard-navigation}/table-keyboard-navigation.ts +5 -2
- package/src/plugins/tooltip/tooltip.ts +4 -2
- package/src/plugins/{media/video → video}/config.ts +4 -1
- package/src/{styles/icons → plugins/video}/video.svg +0 -0
- package/src/plugins/{media/video/index.ts → video/video.ts} +6 -2
- package/src/plugins/{fix/wrap-nodes → wrap-nodes}/README.md +0 -0
- package/src/plugins/{fix/wrap-nodes → wrap-nodes}/config.ts +1 -1
- package/src/plugins/{fix/wrap-nodes → wrap-nodes}/wrap-nodes.test.js +0 -0
- package/src/plugins/{fix/wrap-nodes → wrap-nodes}/wrap-nodes.ts +6 -3
- package/src/plugins/xpath/config.ts +19 -0
- package/src/plugins/xpath/xpath.test.js +182 -0
- package/src/plugins/xpath/xpath.ts +9 -13
- package/src/styles/icons/index.ts +2 -114
- package/src/types/ajax.d.ts +7 -4
- package/src/types/file-browser.d.ts +5 -1
- package/src/types/index.d.ts +1 -1
- package/src/types/plugin.d.ts +1 -1
- package/src/types/types.d.ts +7 -0
- package/src/types/uploader.d.ts +6 -2
- package/tsconfig.json +8 -12
- package/types/config.d.ts +69 -1
- package/types/core/constants.d.ts +2 -0
- package/types/core/dom/dom.d.ts +8 -0
- package/types/core/helpers/utils/align.d.ts +18 -0
- package/types/core/helpers/utils/index.d.ts +11 -9
- package/types/core/helpers/utils/mark-deprecated.d.ts +1 -1
- package/types/{plugins/print/helpers.d.ts → core/helpers/utils/print.d.ts} +0 -0
- package/types/core/helpers/utils/utils.d.ts +5 -1
- package/types/index.d.ts +1 -0
- package/types/modules/file-browser/file-browser.d.ts +1 -4
- package/types/plugins/about/about.d.ts +0 -2
- package/types/plugins/{keyboard/backspace → backspace}/backspace.d.ts +2 -5
- package/types/plugins/{keyboard/backspace → backspace}/cases/check-join-neighbors.d.ts +3 -0
- package/types/plugins/{keyboard/backspace → backspace}/cases/check-join-two-lists.d.ts +3 -0
- package/types/plugins/{keyboard/backspace → backspace}/cases/check-not-collapsed.d.ts +3 -0
- package/types/plugins/{keyboard/backspace → backspace}/cases/check-remove-char.d.ts +4 -1
- package/types/plugins/{keyboard/backspace → backspace}/cases/check-remove-content-not-editable.d.ts +3 -0
- package/types/plugins/{keyboard/backspace → backspace}/cases/check-remove-empty-neighbor.d.ts +3 -0
- package/types/plugins/{keyboard/backspace → backspace}/cases/check-remove-empty-parent.d.ts +3 -0
- package/types/plugins/{keyboard/backspace → backspace}/cases/check-remove-unbreakable-element.d.ts +3 -0
- package/types/plugins/{keyboard/backspace → backspace}/cases/check-table-cell.d.ts +3 -0
- package/types/plugins/{keyboard/backspace → backspace}/cases/check-unwrap-first-list-item.d.ts +3 -0
- package/types/plugins/{keyboard/backspace → backspace}/cases/index.d.ts +0 -0
- package/types/plugins/{keyboard/backspace → backspace}/config.d.ts +0 -0
- package/types/plugins/{keyboard → backspace}/helpers.d.ts +0 -8
- package/types/plugins/{fix/clean-html → clean-html}/clean-html.d.ts +2 -2
- package/types/plugins/{fix/clean-html → clean-html}/config.d.ts +1 -1
- package/types/plugins/{fix/clean-html → clean-html}/helpers/get-hash.d.ts +1 -1
- package/types/plugins/{fix/clean-html → clean-html}/helpers/index.d.ts +1 -1
- package/types/plugins/{fix/clean-html → clean-html}/helpers/remove-format/remove-format-for-collapsed-selection.d.ts +1 -1
- package/types/plugins/{fix/clean-html → clean-html}/helpers/remove-format/remove-format-for-selection.d.ts +1 -1
- package/types/plugins/{fix/clean-html → clean-html}/helpers/visitor/filters/allow-attributes.d.ts +1 -1
- package/types/plugins/{fix/clean-html → clean-html}/helpers/visitor/filters/fill-empty-paragraph.d.ts +1 -1
- package/types/plugins/{fix/clean-html → clean-html}/helpers/visitor/filters/index.d.ts +1 -1
- package/types/plugins/{fix/clean-html → clean-html}/helpers/visitor/filters/remove-inv-text-nodes.d.ts +1 -1
- package/types/plugins/{fix/clean-html → clean-html}/helpers/visitor/filters/replace-old-tags.d.ts +1 -1
- package/types/plugins/{fix/clean-html → clean-html}/helpers/visitor/filters/sanitize-attributes.d.ts +1 -1
- package/types/plugins/{fix/clean-html → clean-html}/helpers/visitor/filters/try-remove-node.d.ts +4 -1
- package/types/plugins/{fix/clean-html → clean-html}/helpers/visitor/visit-node-walker.d.ts +1 -1
- package/types/plugins/clipboard/clipboard.d.ts +1 -1
- package/types/plugins/color/color.d.ts +1 -0
- package/types/plugins/{media/video → color}/config.d.ts +0 -0
- package/types/plugins/{clipboard → copy-format}/copy-format.d.ts +0 -0
- package/types/plugins/{clipboard/drag-and-drop → drag-and-drop}/drag-and-drop.d.ts +1 -1
- package/types/plugins/drag-and-drop-element/config.d.ts +14 -0
- package/types/plugins/{clipboard/drag-and-drop-element → drag-and-drop-element}/drag-and-drop-element.d.ts +2 -1
- package/types/plugins/{keyboard/enter → enter}/enter.d.ts +1 -1
- package/types/plugins/{keyboard/enter → enter}/helpers/check-br.d.ts +1 -1
- package/types/plugins/{keyboard/enter → enter}/helpers/check-unsplittable-box.d.ts +1 -1
- package/types/plugins/{keyboard/enter → enter}/helpers/get-block-wrapper.d.ts +1 -1
- package/types/plugins/{keyboard/enter → enter}/helpers/has-previous-block.d.ts +1 -1
- package/types/plugins/{keyboard/enter → enter}/helpers/index.d.ts +1 -1
- package/types/plugins/{keyboard/enter → enter}/helpers/insert-paragraph.d.ts +1 -1
- package/types/plugins/{keyboard/enter → enter}/helpers/process-empty-li-leaf.d.ts +1 -1
- package/types/plugins/{keyboard/enter → enter}/helpers/split-fragment.d.ts +1 -1
- package/types/plugins/{keyboard/enter → enter}/helpers/wrap-text.d.ts +1 -1
- package/types/plugins/{media → file}/file.d.ts +1 -1
- package/types/plugins/font/config.d.ts +11 -0
- package/types/plugins/font/font.d.ts +1 -5
- package/types/plugins/fullsize/config.d.ts +34 -0
- package/types/plugins/fullsize/fullsize.d.ts +1 -25
- package/types/plugins/hotkeys/config.d.ts +14 -0
- package/types/plugins/{keyboard → hotkeys}/hotkeys.d.ts +3 -7
- package/types/plugins/{insert → hr}/hr.d.ts +1 -1
- package/types/plugins/iframe/config.d.ts +0 -17
- package/types/plugins/{image/image-processor → image-processor}/config.d.ts +0 -0
- package/types/plugins/{image/image-processor → image-processor}/image-processor.d.ts +1 -1
- package/types/plugins/{image/image-properties → image-properties}/config.d.ts +0 -0
- package/types/plugins/{image/image-properties → image-properties}/image-properties.d.ts +5 -5
- package/types/plugins/{image/image-properties → image-properties}/templates/form.d.ts +1 -1
- package/types/plugins/{image/image-properties → image-properties}/templates/main-tab.d.ts +1 -1
- package/types/plugins/{image/image-properties → image-properties}/templates/position-tab.d.ts +1 -1
- package/types/plugins/indent/config.d.ts +14 -0
- package/types/plugins/{image → indent}/helpers.d.ts +3 -2
- package/types/plugins/indent/indent.d.ts +1 -8
- package/types/plugins/index.d.ts +61 -45
- package/types/plugins/inline-popup/inline-popup.d.ts +1 -1
- package/types/plugins/justify/justify.d.ts +0 -8
- package/types/plugins/{keyboard → key-arrow-outside}/key-arrow-outside.d.ts +1 -1
- package/types/plugins/limit/config.d.ts +22 -0
- package/types/plugins/limit/limit.d.ts +1 -16
- package/types/plugins/line-height/line-height.d.ts +1 -0
- package/types/plugins/media/config.d.ts +22 -0
- package/types/plugins/media/media.d.ts +1 -16
- package/types/plugins/{clipboard/paste → paste}/config.d.ts +1 -7
- package/types/plugins/{clipboard/paste → paste}/helpers.d.ts +3 -7
- package/types/plugins/{clipboard/paste → paste}/interface.d.ts +2 -3
- package/types/plugins/{clipboard/paste → paste}/paste.d.ts +5 -5
- package/types/plugins/{clipboard/paste-from-word → paste-from-word}/config.d.ts +2 -3
- package/types/plugins/{clipboard/paste-from-word → paste-from-word}/paste-from-word.d.ts +5 -5
- package/types/plugins/{clipboard/paste-storage → paste-storage}/paste-storage.d.ts +2 -2
- package/types/plugins/placeholder/placeholder.d.ts +1 -1
- package/types/plugins/{print/preview → preview}/preview.d.ts +0 -0
- package/types/plugins/print/lib/generate-critical-css.d.ts +3 -0
- package/types/plugins/redo-undo/redo-undo.d.ts +1 -1
- package/types/plugins/resize-cells/config.d.ts +11 -0
- package/types/plugins/{table → resize-cells}/resize-cells.d.ts +4 -3
- package/types/plugins/resize-handler/config.d.ts +12 -0
- package/types/plugins/{size → resize-handler}/resize-handler.d.ts +1 -0
- package/types/plugins/resizer/resizer.d.ts +1 -1
- package/types/plugins/select/select.d.ts +0 -2
- package/types/plugins/select-cells/config.d.ts +11 -0
- package/types/plugins/{table → select-cells}/select-cells.d.ts +2 -1
- package/types/plugins/size/config.d.ts +0 -4
- package/types/plugins/size/size.d.ts +2 -1
- package/types/plugins/source/source.d.ts +1 -0
- package/types/plugins/spellcheck/spellcheck.d.ts +1 -0
- package/types/plugins/stat/config.d.ts +16 -0
- package/types/plugins/stat/stat.d.ts +2 -8
- package/types/plugins/sticky/config.d.ts +32 -0
- package/types/plugins/sticky/sticky.d.ts +2 -27
- package/types/plugins/symbols/symbols.d.ts +3 -2
- package/types/plugins/{keyboard/tab → tab}/cases/index.d.ts +1 -1
- package/types/plugins/{keyboard/tab → tab}/cases/on-tab-inside-li.d.ts +2 -1
- package/types/plugins/{keyboard/tab → tab}/config.d.ts +0 -0
- package/types/plugins/{insert/index.d.ts → tab/tab.d.ts} +1 -4
- package/types/plugins/table/config.d.ts +0 -2
- package/types/plugins/table/table.d.ts +2 -0
- package/types/plugins/{table → table-keyboard-navigation}/table-keyboard-navigation.d.ts +0 -0
- package/types/plugins/tooltip/tooltip.d.ts +0 -13
- package/{src/plugins/insert/index.ts → types/plugins/video/config.d.ts} +1 -6
- package/types/plugins/video/video.d.ts +6 -0
- package/types/plugins/{fix/wrap-nodes → wrap-nodes}/config.d.ts +1 -1
- package/types/plugins/wrap-nodes/wrap-nodes.d.ts +6 -0
- package/types/plugins/xpath/config.d.ts +11 -0
- package/types/plugins/xpath/xpath.d.ts +1 -24
- package/types/styles/icons/index.d.ts +1 -57
- package/types/types/ajax.d.ts +7 -4
- package/types/types/file-browser.d.ts +5 -1
- package/types/types/index.d.ts +1 -1
- package/types/types/plugin.d.ts +1 -1
- package/types/types/types.d.ts +7 -0
- package/types/types/uploader.d.ts +6 -2
- package/.github/ISSUE_TEMPLATE.md +0 -18
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -14
- package/.github/workflows/docs.yml +0 -16
- package/.github/workflows/tests.yml +0 -22
- package/.idea/codeStyles/Project.xml +0 -68
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/dictionaries/v_chupurnov.xml +0 -12
- package/.idea/encodings.xml +0 -4
- package/.idea/inspectionProfiles/Project_Default.xml +0 -118
- package/.idea/jodit.iml +0 -12
- package/.idea/jsLibraryMappings.xml +0 -6
- package/.idea/markdown-navigator-enh.xml +0 -29
- package/.idea/markdown-navigator.xml +0 -55
- package/.idea/misc.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/prettier.xml +0 -6
- package/.idea/stylesheetLinters/stylelint.xml +0 -6
- package/.idea/vcs.xml +0 -6
- package/.idea/watcherTasks.xml +0 -4
- package/.idea/workspace.xml +0 -1521
- package/CHANGELOG.MD +0 -3280
- package/CONTRIBUTING.md +0 -100
- package/SECURITY.md +0 -10
- package/build/jodit.css +0 -5866
- package/build/jodit.es2018.css +0 -4822
- package/build/jodit.es2018.en.min.css +0 -1
- package/build/jodit.es2018.en.min.js +0 -1
- package/build/jodit.es2018.js +0 -34937
- package/build/jodit.es2018.min.css +0 -1
- package/build/jodit.es2018.min.js +0 -1
- package/build/jodit.js +0 -42539
- package/build/jodit.min.css +0 -8
- package/build/jodit.min.js +0 -1
- package/build/plugins/speech/speech-recognize/speech-recognize.css +0 -39
- package/build/plugins/speech/speech-recognize/speech-recognize.es2018.css +0 -39
- package/build/plugins/speech/speech-recognize/speech-recognize.es2018.en.js +0 -920
- package/build/plugins/speech/speech-recognize/speech-recognize.es2018.en.min.css +0 -1
- package/build/plugins/speech/speech-recognize/speech-recognize.es2018.en.min.js +0 -1
- package/build/plugins/speech/speech-recognize/speech-recognize.es2018.js +0 -920
- package/build/plugins/speech/speech-recognize/speech-recognize.es2018.min.css +0 -1
- package/build/plugins/speech/speech-recognize/speech-recognize.es2018.min.js +0 -1
- package/build/plugins/speech/speech-recognize/speech-recognize.min.css +0 -1
- package/build/plugins/speech/speech-recognize/speech-recognize.min.js +0 -1
- package/build/vdom.css +0 -18
- package/build/vdom.js +0 -1297
- package/src/plugins/clipboard/index.ts +0 -18
- package/src/plugins/clipboard/paste/CHANGELOG.md +0 -21
- package/src/plugins/fix/index.ts +0 -12
- package/src/plugins/format-block/CHANGELOG.md +0 -16
- package/src/plugins/image/helpers.ts +0 -44
- package/src/plugins/image/image-properties/templates/index.ts +0 -13
- package/src/plugins/image/index.ts +0 -13
- package/src/plugins/media/index.ts +0 -13
- package/src/plugins/print/index.ts +0 -12
- package/src/plugins/size/index.ts +0 -13
- package/src/plugins/source/const.ts +0 -11
- package/src/plugins/source/index.ts +0 -14
- package/src/plugins/table/index.ts +0 -15
- package/src/styles/icons/arrows-alt.svg +0 -4
- package/src/styles/icons/arrows-h.svg +0 -4
- package/src/styles/icons/attachment.svg +0 -4
- package/src/styles/icons/chain-broken.svg +0 -4
- package/src/styles/icons/check-square.svg +0 -1
- package/src/styles/icons/dedent.svg +0 -4
- package/src/styles/icons/menu.svg +0 -1
- package/src/styles/icons/resizer.svg +0 -4
- package/tsdoc.json +0 -30
- package/types/core/decorators/spy/spy.d.ts +0 -9
- package/types/plugins/clipboard/index.d.ts +0 -16
- package/types/plugins/fix/index.d.ts +0 -10
- package/types/plugins/fix/wrap-nodes/wrap-nodes.d.ts +0 -39
- package/types/plugins/image/image-properties/templates/index.d.ts +0 -11
- package/types/plugins/image/index.d.ts +0 -11
- package/types/plugins/keyboard/tab/tab.d.ts +0 -18
- package/types/plugins/media/index.d.ts +0 -11
- package/types/plugins/media/video/index.d.ts +0 -11
- package/types/plugins/print/index.d.ts +0 -10
- package/types/plugins/size/index.d.ts +0 -11
- package/types/plugins/source/const.d.ts +0 -9
- package/types/plugins/source/index.d.ts +0 -12
- package/types/plugins/speech/speech-recognize/config.d.ts +0 -60
- package/types/plugins/speech/speech-recognize/constants.d.ts +0 -10
- package/types/plugins/speech/speech-recognize/helpers/api.d.ts +0 -10
- package/types/plugins/speech/speech-recognize/helpers/exec-spell-command.d.ts +0 -10
- package/types/plugins/speech/speech-recognize/helpers/recognize-manager.d.ts +0 -48
- package/types/plugins/speech/speech-recognize/helpers/sound.d.ts +0 -11
- package/types/plugins/speech/speech-recognize/interface.d.ts +0 -42
- package/types/plugins/speech/speech-recognize/speech-recognize.d.ts +0 -24
- package/types/plugins/table/index.d.ts +0 -13
package/src/core/ui/icon.ts
CHANGED
|
@@ -15,6 +15,7 @@ import type {
|
|
|
15
15
|
IViewBased
|
|
16
16
|
} from 'jodit/types';
|
|
17
17
|
import { css } from 'jodit/core/helpers/utils/css';
|
|
18
|
+
import { camelCase, kebabCase } from 'jodit/core/helpers';
|
|
18
19
|
|
|
19
20
|
export class Icon {
|
|
20
21
|
private static icons: IDictionary<string> = {};
|
|
@@ -24,12 +25,19 @@ export class Icon {
|
|
|
24
25
|
return name;
|
|
25
26
|
}
|
|
26
27
|
|
|
27
|
-
|
|
28
|
+
const icon =
|
|
28
29
|
Icon.icons[name] ||
|
|
29
30
|
Icon.icons[name.replace(/-/g, '_')] ||
|
|
30
31
|
Icon.icons[name.replace(/_/g, '-')] ||
|
|
31
|
-
Icon.icons[name
|
|
32
|
-
|
|
32
|
+
Icon.icons[camelCase(name)] ||
|
|
33
|
+
Icon.icons[kebabCase(name)] ||
|
|
34
|
+
Icon.icons[name.toLowerCase()];
|
|
35
|
+
|
|
36
|
+
if (!isProd && !icon) {
|
|
37
|
+
console.log(`Icon "${name}" not found`);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
return icon;
|
|
33
41
|
}
|
|
34
42
|
|
|
35
43
|
/**
|
package/src/index.ts
CHANGED
|
@@ -25,9 +25,10 @@ import Languages from './langs/';
|
|
|
25
25
|
import * as decorators from './core/decorators';
|
|
26
26
|
import * as constants from './core/constants';
|
|
27
27
|
import * as Modules from './modules/';
|
|
28
|
-
import * as Plugins from './plugins/';
|
|
29
28
|
import * as Icons from './styles/icons/';
|
|
30
29
|
|
|
30
|
+
import 'jodit/plugins/index';
|
|
31
|
+
|
|
31
32
|
// copy constants in Jodit
|
|
32
33
|
Object.keys(constants).forEach((key: string) => {
|
|
33
34
|
(DefaultJodit as any)[key] = (constants as any)[key];
|
|
@@ -60,13 +61,6 @@ Object.keys(decorators)
|
|
|
60
61
|
(DefaultJodit as any)[key] = (Modules as any)[key];
|
|
61
62
|
});
|
|
62
63
|
|
|
63
|
-
// Plugins
|
|
64
|
-
Object.keys(Plugins)
|
|
65
|
-
.filter(esFilter)
|
|
66
|
-
.forEach((key: string) => {
|
|
67
|
-
DefaultJodit.plugins.add(key, (Plugins as any)[key]);
|
|
68
|
-
});
|
|
69
|
-
|
|
70
64
|
// Languages
|
|
71
65
|
Object.keys(Languages)
|
|
72
66
|
.filter(esFilter)
|
package/src/langs/ar.js
CHANGED
|
@@ -132,14 +132,12 @@ module.exports = {
|
|
|
132
132
|
font: 'الخط',
|
|
133
133
|
about: 'حول المحرر',
|
|
134
134
|
print: 'طباعة',
|
|
135
|
-
symbol: 'رمز',
|
|
136
135
|
underline: 'أكد',
|
|
137
136
|
strikethrough: 'شطب',
|
|
138
137
|
indent: 'المسافة البادئة',
|
|
139
138
|
outdent: 'نتوء',
|
|
140
139
|
fullsize: 'ملء الشاشة',
|
|
141
140
|
shrink: 'الحجم التقليدي',
|
|
142
|
-
copyformat: 'نسخ التنسيق',
|
|
143
141
|
hr: 'الخط',
|
|
144
142
|
ul: 'قائمة',
|
|
145
143
|
ol: 'قائمة مرقمة',
|
|
@@ -222,7 +220,5 @@ module.exports = {
|
|
|
222
220
|
'Word Paste Detected': 'كلمة لصق الكشف عن',
|
|
223
221
|
Clean: 'نظيفة',
|
|
224
222
|
'Insert className': 'أدخل اسم الفصل',
|
|
225
|
-
'Line height': 'ارتفاع الخط',
|
|
226
|
-
Spellchecking: 'التدقيق الإملائي',
|
|
227
223
|
'Press Alt for custom resizing': 'اضغط البديل لتغيير حجم مخصص'
|
|
228
224
|
};
|
package/src/langs/cs_cz.js
CHANGED
|
@@ -129,14 +129,12 @@ module.exports = {
|
|
|
129
129
|
font: 'písmo',
|
|
130
130
|
about: 'о editoru',
|
|
131
131
|
print: 'tisk',
|
|
132
|
-
symbol: 'symbol',
|
|
133
132
|
underline: 'podtrženo',
|
|
134
133
|
strikethrough: 'přeškrtnuto',
|
|
135
134
|
indent: 'zvětšit odsazení',
|
|
136
135
|
outdent: 'zmenšit odsazení',
|
|
137
136
|
fullsize: 'celoobrazovkový režim',
|
|
138
137
|
shrink: 'smrsknout',
|
|
139
|
-
copyformat: 'Kopírovat formát',
|
|
140
138
|
hr: 'Linka',
|
|
141
139
|
ul: 'Odrážka',
|
|
142
140
|
ol: 'Číslovaný seznam',
|
|
@@ -224,7 +222,5 @@ module.exports = {
|
|
|
224
222
|
'Find Previous': 'Najít Předchozí',
|
|
225
223
|
'Find Next': 'Najít Další',
|
|
226
224
|
'Insert className': 'Vložte název třídy',
|
|
227
|
-
'Line height': 'Výška čáry',
|
|
228
|
-
Spellchecking: 'Kontrola pravopisu',
|
|
229
225
|
'Press Alt for custom resizing': 'Stiskněte Alt pro vlastní změnu velikosti'
|
|
230
226
|
};
|
package/src/langs/de.js
CHANGED
|
@@ -164,14 +164,12 @@ module.exports = {
|
|
|
164
164
|
font: 'Schriftart',
|
|
165
165
|
about: 'Über',
|
|
166
166
|
print: 'Drucken',
|
|
167
|
-
symbol: 'Symbol',
|
|
168
167
|
underline: 'Unterstreichen',
|
|
169
168
|
strikethrough: 'Durchstreichen',
|
|
170
169
|
indent: 'Einzug',
|
|
171
170
|
outdent: 'Herausstellen',
|
|
172
171
|
fullsize: 'Vollgröße',
|
|
173
172
|
shrink: 'Schrumpfen',
|
|
174
|
-
copyformat: 'Format kopierenт',
|
|
175
173
|
hr: 'die Linie',
|
|
176
174
|
ul: 'Liste von',
|
|
177
175
|
ol: 'Nummerierte Liste',
|
|
@@ -229,8 +227,6 @@ module.exports = {
|
|
|
229
227
|
'Find Previous': 'Suche vorherige',
|
|
230
228
|
'Find Next': 'Weitersuchen',
|
|
231
229
|
'Insert className': 'className (CSS) einfügen',
|
|
232
|
-
'Line height': 'Zeilenhöhe',
|
|
233
|
-
Spellchecking: 'Rechtschreibprüfung',
|
|
234
230
|
'Press Alt for custom resizing':
|
|
235
231
|
'Drücken Sie Alt für benutzerdefinierte Größenanpassung'
|
|
236
232
|
};
|
package/src/langs/es.js
CHANGED
|
@@ -163,14 +163,12 @@ module.exports = {
|
|
|
163
163
|
font: 'Letra',
|
|
164
164
|
about: 'Acerca de',
|
|
165
165
|
print: 'Imprimir',
|
|
166
|
-
symbol: 'Símbolo',
|
|
167
166
|
underline: 'subrayar',
|
|
168
167
|
strikethrough: 'tachar',
|
|
169
168
|
indent: 'sangría',
|
|
170
169
|
outdent: 'quitar sangría',
|
|
171
170
|
fullsize: 'Tamaño completo',
|
|
172
171
|
shrink: 'encoger',
|
|
173
|
-
copyformat: 'Copiar formato',
|
|
174
172
|
hr: 'línea horizontal',
|
|
175
173
|
ul: 'lista sin ordenar',
|
|
176
174
|
ol: 'lista ordenada',
|
|
@@ -228,8 +226,6 @@ module.exports = {
|
|
|
228
226
|
'Find Previous': 'Buscar Anterior',
|
|
229
227
|
'Find Next': 'Buscar Siguiente',
|
|
230
228
|
'Insert className': 'Insertar nombre de clase',
|
|
231
|
-
'Line height': 'Altura de la línea',
|
|
232
|
-
Spellchecking: 'Corrección ortográfica',
|
|
233
229
|
'Press Alt for custom resizing':
|
|
234
230
|
'Presione Alt para cambiar el tamaño personalizado'
|
|
235
231
|
};
|
package/src/langs/fa.js
CHANGED
|
@@ -164,14 +164,12 @@ module.exports = {
|
|
|
164
164
|
font: 'فونت',
|
|
165
165
|
about: 'درباره',
|
|
166
166
|
print: 'چاپ',
|
|
167
|
-
symbol: 'سمبل',
|
|
168
167
|
underline: 'خط زیرین',
|
|
169
168
|
strikethrough: 'خط روی متن',
|
|
170
169
|
indent: 'فرورفتگی',
|
|
171
170
|
outdent: 'فرورفتگی از بیرون',
|
|
172
171
|
fullsize: 'کامل کردن',
|
|
173
172
|
shrink: 'کوچک کردن',
|
|
174
|
-
copyformat: 'کپی کردن قالب',
|
|
175
173
|
hr: 'خط',
|
|
176
174
|
ul: 'لیست',
|
|
177
175
|
ol: 'لیست عدید',
|
|
@@ -224,7 +222,5 @@ module.exports = {
|
|
|
224
222
|
'Find Previous': 'پیدا کردن قبلی',
|
|
225
223
|
'Find Next': 'پیدا کردن بعدی',
|
|
226
224
|
'Insert className': 'Insertar nombre de clase',
|
|
227
|
-
'Line height': 'ارتفاع خط',
|
|
228
|
-
Spellchecking: 'غلطیابی املایی',
|
|
229
225
|
'Press Alt for custom resizing': 'برای تغییر اندازه سفارشی فشار دهید'
|
|
230
226
|
};
|
package/src/langs/fr.js
CHANGED
|
@@ -147,14 +147,12 @@ module.exports = {
|
|
|
147
147
|
font: 'police',
|
|
148
148
|
about: "à propos de l'éditeur",
|
|
149
149
|
print: 'impression',
|
|
150
|
-
symbol: 'caractère',
|
|
151
150
|
underline: 'souligné',
|
|
152
151
|
strikethrough: 'barré',
|
|
153
152
|
indent: 'indentation',
|
|
154
153
|
outdent: 'indifférent',
|
|
155
154
|
fullsize: 'taille réelle',
|
|
156
155
|
shrink: 'taille conventionnelle',
|
|
157
|
-
copyformat: 'Format de copie',
|
|
158
156
|
hr: 'la ligne',
|
|
159
157
|
ul: 'Liste des',
|
|
160
158
|
ol: 'Liste numérotée',
|
|
@@ -219,8 +217,6 @@ module.exports = {
|
|
|
219
217
|
'Find Previous': 'Trouvez Précédente',
|
|
220
218
|
'Find Next': 'Suivant',
|
|
221
219
|
'Insert className': 'Insérer un nom de classe',
|
|
222
|
-
'Line height': 'Hauteur de ligne',
|
|
223
|
-
Spellchecking: 'Vérification Orthographique',
|
|
224
220
|
'Press Alt for custom resizing':
|
|
225
221
|
'Appuyez sur Alt pour un redimensionnement personnalisé'
|
|
226
222
|
};
|
package/src/langs/he.js
CHANGED
|
@@ -163,14 +163,12 @@ module.exports = {
|
|
|
163
163
|
font: 'גופן',
|
|
164
164
|
about: 'עלינו',
|
|
165
165
|
print: 'הדפס',
|
|
166
|
-
symbol: 'תו מיוחד',
|
|
167
166
|
underline: 'קו תחתון',
|
|
168
167
|
strikethrough: 'קו חוצה',
|
|
169
168
|
indent: 'הגדל כניסה',
|
|
170
169
|
outdent: 'הקטן כניסה',
|
|
171
170
|
fullsize: 'גודל מלא',
|
|
172
171
|
shrink: 'כווץ',
|
|
173
|
-
copyformat: 'העתק עיצוב',
|
|
174
172
|
hr: 'קו אופקי',
|
|
175
173
|
ul: 'רשימת תבליטים',
|
|
176
174
|
ol: 'רשימה ממוספרת',
|
|
@@ -223,7 +221,5 @@ module.exports = {
|
|
|
223
221
|
'Find Previous': 'מצא את הקודם',
|
|
224
222
|
'Find Next': 'חפש את הבא',
|
|
225
223
|
'Insert className': 'הכנס את שם הכיתה',
|
|
226
|
-
'Line height': 'גובה שורה',
|
|
227
|
-
Spellchecking: 'בדיקת איות',
|
|
228
224
|
'Press Alt for custom resizing': 'לחץ על אלט לשינוי גודל מותאם אישית'
|
|
229
225
|
};
|
package/src/langs/hu.js
CHANGED
|
@@ -165,14 +165,12 @@ module.exports = {
|
|
|
165
165
|
font: 'Betű',
|
|
166
166
|
about: 'Rólunk',
|
|
167
167
|
print: 'Nyomtat',
|
|
168
|
-
symbol: 'Szimbólum',
|
|
169
168
|
underline: 'Aláhúzott',
|
|
170
169
|
strikethrough: 'Áthúzott',
|
|
171
170
|
indent: 'Behúzás',
|
|
172
171
|
outdent: 'Aussenseiter',
|
|
173
172
|
fullsize: 'Teljes méret',
|
|
174
173
|
shrink: 'Összenyom',
|
|
175
|
-
copyformat: 'Formátum másolás',
|
|
176
174
|
hr: 'Egyenes vonal',
|
|
177
175
|
ul: 'Lista',
|
|
178
176
|
ol: 'Számozott lista',
|
|
@@ -225,7 +223,5 @@ module.exports = {
|
|
|
225
223
|
'Find Previous': 'Megtalálja Előző',
|
|
226
224
|
'Find Next': 'Következő Keresése',
|
|
227
225
|
'Insert className': 'Helyezze be az osztály nevét',
|
|
228
|
-
'Line height': 'Vonal magassága',
|
|
229
|
-
Spellchecking: 'Helyesírás-ellenőrzés',
|
|
230
226
|
'Press Alt for custom resizing': 'Nyomja meg az Alt egyéni átméretezés'
|
|
231
227
|
};
|
package/src/langs/id.js
CHANGED
|
@@ -129,14 +129,12 @@ module.exports = {
|
|
|
129
129
|
font: 'font',
|
|
130
130
|
about: 'tentang',
|
|
131
131
|
print: 'cetak',
|
|
132
|
-
symbol: 'simbol',
|
|
133
132
|
underline: 'garis bawah',
|
|
134
133
|
strikethrough: 'coret',
|
|
135
134
|
indent: 'menjorok ke dalam',
|
|
136
135
|
outdent: 'menjorok ke luar',
|
|
137
136
|
fullsize: 'ukuran penuh',
|
|
138
137
|
shrink: 'menyusut',
|
|
139
|
-
copyformat: 'salin format',
|
|
140
138
|
hr: 'hr',
|
|
141
139
|
ul: 'ul',
|
|
142
140
|
ol: 'ol',
|
|
@@ -224,7 +222,5 @@ module.exports = {
|
|
|
224
222
|
'Find Previous': 'Menemukan Sebelumnya',
|
|
225
223
|
'Find Next': 'Menemukan Berikutnya',
|
|
226
224
|
'Insert className': 'Masukkan nama kelas',
|
|
227
|
-
'Line height': 'Tinggi baris',
|
|
228
|
-
Spellchecking: 'Spellchecking',
|
|
229
225
|
'Press Alt for custom resizing': 'Tekan Alt untuk mengubah ukuran kustom'
|
|
230
226
|
};
|
package/src/langs/index.ts
CHANGED
|
@@ -13,37 +13,32 @@
|
|
|
13
13
|
import type { IDictionary } from 'jodit/types';
|
|
14
14
|
import { isArray } from '../core/helpers/checker';
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
let exp: IDictionary<IDictionary<string>> = {
|
|
19
|
-
en
|
|
20
|
-
};
|
|
16
|
+
let exp: IDictionary<IDictionary<string>> = {};
|
|
21
17
|
|
|
22
18
|
if (!process.env.EXCLUDE_LANGS) {
|
|
23
|
-
const ar = require('
|
|
24
|
-
const cs_cz = require('
|
|
25
|
-
const de = require('
|
|
26
|
-
const es = require('
|
|
27
|
-
const fr = require('
|
|
28
|
-
const he = require('
|
|
29
|
-
const hu = require('
|
|
30
|
-
const id = require('
|
|
31
|
-
const it = require('
|
|
32
|
-
const ja = require('
|
|
33
|
-
const ko = require('
|
|
34
|
-
const nl = require('
|
|
35
|
-
const pl = require('
|
|
36
|
-
const pt_br = require('
|
|
37
|
-
const ru = require('
|
|
38
|
-
const tr = require('
|
|
39
|
-
const zh_cn = require('
|
|
40
|
-
const zh_tw = require('
|
|
19
|
+
const ar = require('jodit/langs/ar');
|
|
20
|
+
const cs_cz = require('jodit/langs/cs_cz');
|
|
21
|
+
const de = require('jodit/langs/de');
|
|
22
|
+
const es = require('jodit/langs/es');
|
|
23
|
+
const fr = require('jodit/langs/fr');
|
|
24
|
+
const he = require('jodit/langs/he');
|
|
25
|
+
const hu = require('jodit/langs/hu');
|
|
26
|
+
const id = require('jodit/langs/id');
|
|
27
|
+
const it = require('jodit/langs/it');
|
|
28
|
+
const ja = require('jodit/langs/ja');
|
|
29
|
+
const ko = require('jodit/langs/ko');
|
|
30
|
+
const nl = require('jodit/langs/nl');
|
|
31
|
+
const pl = require('jodit/langs/pl');
|
|
32
|
+
const pt_br = require('jodit/langs/pt_br');
|
|
33
|
+
const ru = require('jodit/langs/ru');
|
|
34
|
+
const tr = require('jodit/langs/tr');
|
|
35
|
+
const zh_cn = require('jodit/langs/zh_cn');
|
|
36
|
+
const zh_tw = require('jodit/langs/zh_tw');
|
|
41
37
|
|
|
42
38
|
exp = {
|
|
43
39
|
ar,
|
|
44
40
|
cs_cz,
|
|
45
41
|
de,
|
|
46
|
-
en,
|
|
47
42
|
es,
|
|
48
43
|
fr,
|
|
49
44
|
he,
|
|
@@ -62,8 +57,12 @@ if (!process.env.EXCLUDE_LANGS) {
|
|
|
62
57
|
};
|
|
63
58
|
}
|
|
64
59
|
|
|
60
|
+
const en = require('jodit/langs/en');
|
|
61
|
+
exp.en = en;
|
|
62
|
+
|
|
65
63
|
/* Unpack array to hash */
|
|
66
|
-
const get = (value: IDictionary): IDictionary =>
|
|
64
|
+
const get = (value: IDictionary): IDictionary =>
|
|
65
|
+
value ? value.default || value : {},
|
|
67
66
|
hashLang: IDictionary = {};
|
|
68
67
|
|
|
69
68
|
if (isArray(get(en))) {
|
package/src/langs/it.js
CHANGED
|
@@ -164,14 +164,12 @@ module.exports = {
|
|
|
164
164
|
font: 'Font',
|
|
165
165
|
about: 'Approposito di',
|
|
166
166
|
print: 'Stampa',
|
|
167
|
-
symbol: 'Simbolo',
|
|
168
167
|
underline: 'Sottolineato',
|
|
169
168
|
strikethrough: 'Barrato',
|
|
170
169
|
indent: 'trattino',
|
|
171
170
|
outdent: 'annulla rientro',
|
|
172
171
|
fullsize: 'A grandezza normale',
|
|
173
172
|
shrink: 'comprimere',
|
|
174
|
-
copyformat: 'Copia il formato',
|
|
175
173
|
hr: 'linea orizzontale',
|
|
176
174
|
ul: 'lista non ordinata',
|
|
177
175
|
ol: 'lista ordinata',
|
|
@@ -224,8 +222,6 @@ module.exports = {
|
|
|
224
222
|
'Find Previous': 'Trova Precedente',
|
|
225
223
|
'Find Next': 'Trova Successivo',
|
|
226
224
|
'Insert className': 'Inserisci il nome della classe',
|
|
227
|
-
'Line height': 'Altezza linea',
|
|
228
|
-
Spellchecking: 'Controllo ortografico',
|
|
229
225
|
'Press Alt for custom resizing':
|
|
230
226
|
'Premere Alt per il ridimensionamento personalizzato'
|
|
231
227
|
};
|
package/src/langs/ja.js
CHANGED
|
@@ -143,14 +143,12 @@ module.exports = {
|
|
|
143
143
|
font: 'font',
|
|
144
144
|
about: 'about',
|
|
145
145
|
print: 'print',
|
|
146
|
-
symbol: 'symbol',
|
|
147
146
|
underline: 'underline',
|
|
148
147
|
strikethrough: 'strikethrough',
|
|
149
148
|
indent: 'indent',
|
|
150
149
|
outdent: 'outdent',
|
|
151
150
|
fullsize: 'fullsize',
|
|
152
151
|
shrink: 'shrink',
|
|
153
|
-
copyformat: 'copyformat',
|
|
154
152
|
hr: '分割線',
|
|
155
153
|
ul: '箇条書き',
|
|
156
154
|
ol: '番号付きリスト',
|
|
@@ -227,8 +225,6 @@ module.exports = {
|
|
|
227
225
|
'Upper Alpha': '英大文字',
|
|
228
226
|
'Upper Roman': 'ローマ数字大文字',
|
|
229
227
|
'Insert className': 'クラス名を挿入',
|
|
230
|
-
'Line height': 'ラインの高さ',
|
|
231
|
-
Spellchecking: 'スペルチェック',
|
|
232
228
|
'Press Alt for custom resizing':
|
|
233
229
|
'カスタムサイズ変更のためのAltキーを押します'
|
|
234
230
|
};
|
package/src/langs/ko.js
CHANGED
|
@@ -127,14 +127,12 @@ module.exports = {
|
|
|
127
127
|
font: '글꼴',
|
|
128
128
|
about: '편집기 정보',
|
|
129
129
|
print: '프린트',
|
|
130
|
-
symbol: '기호',
|
|
131
130
|
underline: '밑줄',
|
|
132
131
|
strikethrough: '취소선',
|
|
133
132
|
indent: '들여쓰기',
|
|
134
133
|
outdent: '내어쓰기',
|
|
135
134
|
fullsize: '전체 화면',
|
|
136
135
|
shrink: '일반 화면',
|
|
137
|
-
copyformat: '복사 형식',
|
|
138
136
|
hr: '구분선',
|
|
139
137
|
ul: '글머리 목록',
|
|
140
138
|
ol: '번호 목록',
|
|
@@ -222,8 +220,6 @@ module.exports = {
|
|
|
222
220
|
'Find Previous': '이전 찾기',
|
|
223
221
|
'Find Next': '다음 찾기',
|
|
224
222
|
'Insert className': 'className 입력',
|
|
225
|
-
'Line height': '선 높이',
|
|
226
|
-
Spellchecking: '맞춤법 검사',
|
|
227
223
|
'Press Alt for custom resizing':
|
|
228
224
|
'사용자 지정 크기 조정에 대 한 고도 누르십시오'
|
|
229
225
|
};
|
package/src/langs/nl.js
CHANGED
|
@@ -165,14 +165,12 @@ module.exports = {
|
|
|
165
165
|
font: 'lettertype',
|
|
166
166
|
about: 'over',
|
|
167
167
|
print: 'afdrukken',
|
|
168
|
-
symbol: 'symbool',
|
|
169
168
|
underline: 'onderstreept',
|
|
170
169
|
strikethrough: 'doorgestreept',
|
|
171
170
|
indent: 'inspringen',
|
|
172
171
|
outdent: 'minder inspringen',
|
|
173
172
|
fullsize: 'volledige grootte',
|
|
174
173
|
shrink: 'kleiner maken',
|
|
175
|
-
copyformat: 'opmaak kopiëren',
|
|
176
174
|
hr: 'horizontale lijn',
|
|
177
175
|
ul: 'lijst',
|
|
178
176
|
ol: 'genummerde lijst',
|
|
@@ -225,7 +223,5 @@ module.exports = {
|
|
|
225
223
|
'Find Previous': 'Vorige Zoeken',
|
|
226
224
|
'Find Next': 'Volgende Zoeken',
|
|
227
225
|
'Insert className': 'Voeg de klassenaam in',
|
|
228
|
-
'Line height': 'Lijnhoogte',
|
|
229
|
-
Spellchecking: 'Spellingcontrole',
|
|
230
226
|
'Press Alt for custom resizing': 'Druk op Alt voor aangepaste grootte'
|
|
231
227
|
};
|
package/src/langs/pl.js
CHANGED
|
@@ -165,14 +165,12 @@ module.exports = {
|
|
|
165
165
|
font: 'czcionka',
|
|
166
166
|
about: 'O programie',
|
|
167
167
|
print: 'drukuj',
|
|
168
|
-
symbol: 'symbol',
|
|
169
168
|
underline: 'podkreślenie',
|
|
170
169
|
strikethrough: 'przekreślenie',
|
|
171
170
|
indent: 'wcięcie',
|
|
172
171
|
outdent: 'wycięcie',
|
|
173
172
|
fullsize: 'pełen rozmiar',
|
|
174
173
|
shrink: 'przytnij',
|
|
175
|
-
copyformat: 'format kopii',
|
|
176
174
|
hr: 'linia pozioma',
|
|
177
175
|
ul: 'lista',
|
|
178
176
|
ol: 'lista numerowana',
|
|
@@ -225,7 +223,5 @@ module.exports = {
|
|
|
225
223
|
'Find Previous': 'Znaleźć Poprzednie',
|
|
226
224
|
'Find Next': 'Znajdź Dalej',
|
|
227
225
|
'Insert className': 'Wstaw nazwę zajęć',
|
|
228
|
-
'Line height': 'Wysokość linii',
|
|
229
|
-
Spellchecking: 'Sprawdzanie pisowni',
|
|
230
226
|
'Press Alt for custom resizing': 'Naciśnij Alt, aby zmienić rozmiar'
|
|
231
227
|
};
|
package/src/langs/pt_br.js
CHANGED
|
@@ -163,14 +163,12 @@ module.exports = {
|
|
|
163
163
|
font: 'fonte',
|
|
164
164
|
about: 'Sobre de',
|
|
165
165
|
print: 'Imprimir',
|
|
166
|
-
symbol: 'Símbolo',
|
|
167
166
|
underline: 'sublinhar',
|
|
168
167
|
strikethrough: 'tachado',
|
|
169
168
|
indent: 'recuar',
|
|
170
169
|
outdent: 'diminuir recuo',
|
|
171
170
|
fullsize: 'Tamanho completo',
|
|
172
171
|
shrink: 'diminuir',
|
|
173
|
-
copyformat: 'Copiar formato',
|
|
174
172
|
hr: 'linha horizontal',
|
|
175
173
|
ul: 'lista não ordenada',
|
|
176
174
|
ol: 'lista ordenada',
|
|
@@ -228,8 +226,6 @@ module.exports = {
|
|
|
228
226
|
'Find Previous': 'Encontrar Anteriores',
|
|
229
227
|
'Find Next': 'Localizar Próxima',
|
|
230
228
|
'Insert className': 'Insira o nome da classe',
|
|
231
|
-
'Line height': 'Altura da linha',
|
|
232
|
-
Spellchecking: 'Verificação ortográfica',
|
|
233
229
|
'Press Alt for custom resizing':
|
|
234
230
|
'Pressione Alt para redimensionamento personalizado'
|
|
235
231
|
};
|
package/src/langs/ru.js
CHANGED
|
@@ -128,14 +128,12 @@ module.exports = {
|
|
|
128
128
|
font: 'шрифт',
|
|
129
129
|
about: 'о редакторе',
|
|
130
130
|
print: 'печать',
|
|
131
|
-
symbol: 'символ',
|
|
132
131
|
underline: 'подчеркнутый',
|
|
133
132
|
strikethrough: 'перечеркнутый',
|
|
134
133
|
indent: 'отступ',
|
|
135
134
|
outdent: 'выступ',
|
|
136
135
|
fullsize: 'во весь экран',
|
|
137
136
|
shrink: 'обычный размер',
|
|
138
|
-
copyformat: 'Копировать формат',
|
|
139
137
|
hr: 'линия',
|
|
140
138
|
ul: 'Список',
|
|
141
139
|
ol: 'Нумерованный список',
|
|
@@ -223,8 +221,6 @@ module.exports = {
|
|
|
223
221
|
'Find Previous': 'Найти Предыдущие',
|
|
224
222
|
'Find Next': 'Найти Далее',
|
|
225
223
|
'Insert className': 'Вставить название класса',
|
|
226
|
-
'Line height': 'Высота линии',
|
|
227
|
-
Spellchecking: 'Проверка орфографии',
|
|
228
224
|
'Press Alt for custom resizing':
|
|
229
225
|
'Нажмите Alt для изменения пользовательского размера'
|
|
230
226
|
};
|
package/src/langs/tr.js
CHANGED
|
@@ -163,14 +163,12 @@ module.exports = {
|
|
|
163
163
|
font: 'Font',
|
|
164
164
|
about: 'Hakkında',
|
|
165
165
|
print: 'Yazdır',
|
|
166
|
-
symbol: 'Sembol',
|
|
167
166
|
underline: 'Alt çizgi',
|
|
168
167
|
strikethrough: 'Üstü çizili',
|
|
169
168
|
indent: 'Girinti',
|
|
170
169
|
outdent: 'Çıkıntı',
|
|
171
170
|
fullsize: 'Tam ekran',
|
|
172
171
|
shrink: 'Küçült',
|
|
173
|
-
copyformat: 'Kopyalama Biçimi',
|
|
174
172
|
hr: 'Ayraç',
|
|
175
173
|
ul: 'Sırasız liste',
|
|
176
174
|
ol: 'Sıralı liste',
|
|
@@ -223,8 +221,6 @@ module.exports = {
|
|
|
223
221
|
'Find Previous': 'Öncekini Bul',
|
|
224
222
|
'Find Next': 'Sonrakini Bul',
|
|
225
223
|
'Insert className': 'Sınıf adı girin',
|
|
226
|
-
'Line height': 'Çizgi yüksekliği',
|
|
227
|
-
Spellchecking: 'Yazım denetimi',
|
|
228
224
|
'Press Alt for custom resizing':
|
|
229
225
|
'Özel yeniden boyutlandırma için Alt tuşuna basın'
|
|
230
226
|
};
|
package/src/langs/zh_cn.js
CHANGED
|
@@ -146,14 +146,12 @@ module.exports = {
|
|
|
146
146
|
font: '字体',
|
|
147
147
|
about: '关于',
|
|
148
148
|
print: '打印',
|
|
149
|
-
symbol: '符号',
|
|
150
149
|
underline: '下划线',
|
|
151
150
|
strikethrough: '上出现',
|
|
152
151
|
indent: '增加缩进',
|
|
153
152
|
outdent: '减少缩进',
|
|
154
153
|
fullsize: '全屏',
|
|
155
154
|
shrink: '收缩',
|
|
156
|
-
copyformat: '复制格式',
|
|
157
155
|
hr: '分割线',
|
|
158
156
|
ul: '无序列表',
|
|
159
157
|
ol: '顺序列表',
|
|
@@ -223,7 +221,5 @@ module.exports = {
|
|
|
223
221
|
'Find Previous': '查找上一个',
|
|
224
222
|
'Find Next': '查找下一个',
|
|
225
223
|
'Insert className': '插入班级名称',
|
|
226
|
-
'Line height': '线高',
|
|
227
|
-
Spellchecking: '拼写检查',
|
|
228
224
|
'Press Alt for custom resizing': '按Alt自定义调整大小'
|
|
229
225
|
};
|
package/src/langs/zh_tw.js
CHANGED
|
@@ -144,14 +144,12 @@ module.exports = {
|
|
|
144
144
|
font: '字體',
|
|
145
145
|
about: '關於',
|
|
146
146
|
print: '打印',
|
|
147
|
-
symbol: '符號',
|
|
148
147
|
underline: '下劃線',
|
|
149
148
|
strikethrough: '上出現',
|
|
150
149
|
indent: '增加縮進',
|
|
151
150
|
outdent: '減少縮進',
|
|
152
151
|
fullsize: '全屏',
|
|
153
152
|
shrink: '收縮',
|
|
154
|
-
copyformat: '複製格式',
|
|
155
153
|
hr: '分割線',
|
|
156
154
|
ul: '無序列表',
|
|
157
155
|
ol: '順序列表',
|
|
@@ -221,7 +219,5 @@ module.exports = {
|
|
|
221
219
|
'Find Previous': 'ค้นหาก่อนหน้านี้',
|
|
222
220
|
'Find Next': 'ค้นหาถัดไป',
|
|
223
221
|
'Insert className': 'ใส่ชื่อคลาส',
|
|
224
|
-
'Line height': 'ความสูงเส้น',
|
|
225
|
-
Spellchecking: 'สะกดคำ',
|
|
226
222
|
'Press Alt for custom resizing': 'กดอัลท์สำหรับการปรับขนาดที่กำหนดเอง'
|
|
227
223
|
};
|
|
@@ -23,8 +23,9 @@ import type {
|
|
|
23
23
|
IViewBased
|
|
24
24
|
} from 'jodit/types';
|
|
25
25
|
|
|
26
|
-
import {
|
|
27
|
-
import { UIFileInput } from 'jodit/core/ui';
|
|
26
|
+
import { isArray, isString } from 'jodit/core/helpers/checker';
|
|
27
|
+
import { UIFileInput } from 'jodit/core/ui/form/inputs/file/file';
|
|
28
|
+
import { humanSizeToBytes } from 'jodit/core/helpers/utils/human-size-to-bytes';
|
|
28
29
|
|
|
29
30
|
declare module 'jodit/config' {
|
|
30
31
|
interface Config {
|
|
@@ -12,7 +12,7 @@ import './styles';
|
|
|
12
12
|
|
|
13
13
|
import { Config } from 'jodit/config';
|
|
14
14
|
import * as consts from 'jodit/core/constants';
|
|
15
|
-
import { Dialog } from 'jodit/modules/dialog/';
|
|
15
|
+
import { Dialog } from 'jodit/modules/dialog/dialog';
|
|
16
16
|
|
|
17
17
|
import type {
|
|
18
18
|
IFileBrowser,
|
|
@@ -42,9 +42,6 @@ import {
|
|
|
42
42
|
isAbort
|
|
43
43
|
} from 'jodit/core/helpers';
|
|
44
44
|
import { ViewWithToolbar } from 'jodit/core/view/view-with-toolbar';
|
|
45
|
-
|
|
46
|
-
import './config';
|
|
47
|
-
|
|
48
45
|
import { Dom } from 'jodit/core/dom';
|
|
49
46
|
import { makeDataProvider } from './factories';
|
|
50
47
|
import { stateListeners } from './listeners/state-listeners';
|
|
@@ -58,9 +55,7 @@ import { loadTree } from './fetch/load-tree';
|
|
|
58
55
|
import { loadItems } from './fetch/load-items';
|
|
59
56
|
import { STATUSES } from 'jodit/core/component';
|
|
60
57
|
|
|
61
|
-
|
|
62
|
-
* @module modules/file-browser
|
|
63
|
-
*/
|
|
58
|
+
import './config';
|
|
64
59
|
|
|
65
60
|
export class FileBrowser extends ViewWithToolbar implements IFileBrowser {
|
|
66
61
|
/** @override */
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import type { ImageEditorOptions } from 'jodit/types';
|
|
8
8
|
import { Config } from 'jodit/config';
|
|
9
|
+
import { Icon } from 'jodit/core/ui/icon';
|
|
9
10
|
|
|
10
11
|
declare module 'jodit/config' {
|
|
11
12
|
interface Config {
|
|
@@ -28,3 +29,8 @@ Config.prototype.imageeditor = {
|
|
|
28
29
|
cropDefaultWidth: '70%',
|
|
29
30
|
cropDefaultHeight: '70%'
|
|
30
31
|
};
|
|
32
|
+
|
|
33
|
+
Icon.set('crop', require('./icons/crop.svg')).set(
|
|
34
|
+
'resize',
|
|
35
|
+
require('./icons/resize.svg')
|
|
36
|
+
);
|
|
File without changes
|
|
File without changes
|