jodit-pro 1.3.39 → 2.0.0-beta.10
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/.nvmrc +1 -0
- package/CHANGELOG.md +982 -0
- package/LICENSE.txt +1 -0
- package/README.md +27 -27
- package/SECURITY.md +10 -0
- package/es2015/jodit.css +4945 -0
- package/es2015/jodit.fat.min.css +1 -0
- package/es2015/jodit.fat.min.js +10 -0
- package/es2015/jodit.js +42706 -0
- package/es2015/jodit.min.css +1 -0
- package/es2015/jodit.min.js +10 -0
- package/es2015/plugins/autocomplete/autocomplete.css +26 -0
- package/es2015/plugins/autocomplete/autocomplete.js +473 -0
- package/es2015/plugins/autocomplete/autocomplete.min.js +10 -0
- package/es2015/plugins/backup/backup.css +48 -0
- package/es2015/plugins/backup/backup.js +567 -0
- package/{build/plugins/backup/backup.css → es2015/plugins/backup/backup.min.css} +1 -1
- package/es2015/plugins/backup/backup.min.js +10 -0
- package/es2015/plugins/button-generator/button-generator.css +316 -0
- package/es2015/plugins/button-generator/button-generator.js +1363 -0
- package/es2015/plugins/button-generator/button-generator.min.css +1 -0
- package/es2015/plugins/button-generator/button-generator.min.js +10 -0
- package/es2015/plugins/change-case/change-case.js +171 -0
- package/es2015/plugins/change-case/change-case.min.js +10 -0
- package/es2015/plugins/color-picker/color-picker.css +133 -0
- package/es2015/plugins/color-picker/color-picker.js +519 -0
- package/es2015/plugins/color-picker/color-picker.min.css +1 -0
- package/es2015/plugins/color-picker/color-picker.min.js +10 -0
- package/es2015/plugins/emoji/emoji.css +108 -0
- package/es2015/plugins/emoji/emoji.js +421 -0
- package/es2015/plugins/emoji/emoji.min.css +1 -0
- package/es2015/plugins/emoji/emoji.min.js +10 -0
- package/es2015/plugins/export-docs/export-docs.js +153 -0
- package/es2015/plugins/export-docs/export-docs.min.js +10 -0
- package/es2015/plugins/finder/finder.css +1342 -0
- package/es2015/plugins/finder/finder.js +3175 -0
- package/es2015/plugins/finder/finder.min.css +1 -0
- package/es2015/plugins/finder/finder.min.js +10 -0
- package/es2015/plugins/google-maps/google-maps.css +397 -0
- package/es2015/plugins/google-maps/google-maps.js +2492 -0
- package/es2015/plugins/google-maps/google-maps.min.css +1 -0
- package/es2015/plugins/google-maps/google-maps.min.js +10 -0
- package/es2015/plugins/google-search/google-search.js +108 -0
- package/es2015/plugins/google-search/google-search.min.js +10 -0
- package/es2015/plugins/highlight-signature/highlight-signature.js +233 -0
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +10 -0
- package/es2015/plugins/iframe-editor/iframe-editor.css +16 -0
- package/es2015/plugins/iframe-editor/iframe-editor.js +310 -0
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +10 -0
- package/es2015/plugins/keyboard/keyboard.css +48 -0
- package/es2015/plugins/keyboard/keyboard.js +539 -0
- package/es2015/plugins/keyboard/keyboard.min.js +10 -0
- package/es2015/plugins/mobile-view/mobile-view.js +170 -0
- package/es2015/plugins/mobile-view/mobile-view.min.js +10 -0
- package/es2015/plugins/page-break/page-break.js +181 -0
- package/es2015/plugins/page-break/page-break.min.js +10 -0
- package/es2015/plugins/paste-code/paste-code.css +21 -0
- package/es2015/plugins/paste-code/paste-code.js +320 -0
- package/es2015/plugins/paste-code/paste-code.min.js +10 -0
- package/es2015/plugins/paste-from-word/paste-from-word.js +1541 -0
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +10 -0
- package/es2015/plugins/show-blocks/show-blocks.js +645 -0
- package/es2015/plugins/show-blocks/show-blocks.min.js +10 -0
- package/es2015/plugins/todo-list/todo-list.css +77 -0
- package/es2015/plugins/todo-list/todo-list.js +314 -0
- package/es2015/plugins/todo-list/todo-list.min.css +1 -0
- package/es2015/plugins/todo-list/todo-list.min.js +10 -0
- package/es2015/plugins/translate/translate.css +91 -0
- package/es2015/plugins/translate/translate.js +630 -0
- package/es2015/plugins/translate/translate.min.js +10 -0
- package/es2015/plugins/tune-block/tune-block.css +37 -0
- package/es2015/plugins/tune-block/tune-block.js +387 -0
- package/{build/plugins/tune-block/tune-block.css → es2015/plugins/tune-block/tune-block.min.css} +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +10 -0
- package/es2018/jodit.css +4945 -0
- package/es2018/jodit.fat.min.css +1 -0
- package/es2018/jodit.fat.min.js +10 -0
- package/es2018/jodit.js +42762 -0
- package/es2018/jodit.min.css +1 -0
- package/es2018/jodit.min.js +10 -0
- package/es2018/plugins/autocomplete/autocomplete.css +26 -0
- package/es2018/plugins/autocomplete/autocomplete.js +471 -0
- package/es2018/plugins/autocomplete/autocomplete.min.js +10 -0
- package/es2018/plugins/backup/backup.css +48 -0
- package/es2018/plugins/backup/backup.js +561 -0
- package/{build/plugins/backup/backup.es5.css → es2018/plugins/backup/backup.min.css} +1 -1
- package/es2018/plugins/backup/backup.min.js +10 -0
- package/es2018/plugins/button-generator/button-generator.css +316 -0
- package/es2018/plugins/button-generator/button-generator.js +1387 -0
- package/es2018/plugins/button-generator/button-generator.min.css +1 -0
- package/es2018/plugins/button-generator/button-generator.min.js +10 -0
- package/es2018/plugins/change-case/change-case.js +171 -0
- package/es2018/plugins/change-case/change-case.min.js +10 -0
- package/es2018/plugins/color-picker/color-picker.css +133 -0
- package/es2018/plugins/color-picker/color-picker.js +519 -0
- package/es2018/plugins/color-picker/color-picker.min.css +1 -0
- package/es2018/plugins/color-picker/color-picker.min.js +10 -0
- package/es2018/plugins/emoji/emoji.css +108 -0
- package/es2018/plugins/emoji/emoji.js +425 -0
- package/es2018/plugins/emoji/emoji.min.css +1 -0
- package/es2018/plugins/emoji/emoji.min.js +10 -0
- package/es2018/plugins/export-docs/export-docs.js +157 -0
- package/es2018/plugins/export-docs/export-docs.min.js +10 -0
- package/es2018/plugins/finder/finder.css +1342 -0
- package/es2018/plugins/finder/finder.js +3160 -0
- package/es2018/plugins/finder/finder.min.css +1 -0
- package/es2018/plugins/finder/finder.min.js +10 -0
- package/es2018/plugins/google-maps/google-maps.css +397 -0
- package/es2018/plugins/google-maps/google-maps.js +2556 -0
- package/es2018/plugins/google-maps/google-maps.min.css +1 -0
- package/es2018/plugins/google-maps/google-maps.min.js +10 -0
- package/es2018/plugins/google-search/google-search.js +108 -0
- package/es2018/plugins/google-search/google-search.min.js +10 -0
- package/es2018/plugins/highlight-signature/highlight-signature.js +233 -0
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +10 -0
- package/es2018/plugins/iframe-editor/iframe-editor.css +16 -0
- package/es2018/plugins/iframe-editor/iframe-editor.js +310 -0
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +10 -0
- package/es2018/plugins/keyboard/keyboard.css +48 -0
- package/es2018/plugins/keyboard/keyboard.js +539 -0
- package/es2018/plugins/keyboard/keyboard.min.js +10 -0
- package/es2018/plugins/mobile-view/mobile-view.js +170 -0
- package/es2018/plugins/mobile-view/mobile-view.min.js +10 -0
- package/es2018/plugins/page-break/page-break.js +181 -0
- package/es2018/plugins/page-break/page-break.min.js +10 -0
- package/es2018/plugins/paste-code/paste-code.css +21 -0
- package/es2018/plugins/paste-code/paste-code.js +318 -0
- package/es2018/plugins/paste-code/paste-code.min.js +10 -0
- package/es2018/plugins/paste-from-word/paste-from-word.js +1541 -0
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +10 -0
- package/es2018/plugins/show-blocks/show-blocks.js +645 -0
- package/es2018/plugins/show-blocks/show-blocks.min.js +10 -0
- package/es2018/plugins/todo-list/todo-list.css +77 -0
- package/es2018/plugins/todo-list/todo-list.js +314 -0
- package/es2018/plugins/todo-list/todo-list.min.css +1 -0
- package/es2018/plugins/todo-list/todo-list.min.js +10 -0
- package/es2018/plugins/translate/translate.css +91 -0
- package/es2018/plugins/translate/translate.js +639 -0
- package/es2018/plugins/translate/translate.min.js +10 -0
- package/es2018/plugins/tune-block/tune-block.css +37 -0
- package/es2018/plugins/tune-block/tune-block.js +387 -0
- package/{build/plugins/tune-block/tune-block.es5.css → es2018/plugins/tune-block/tune-block.min.css} +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +10 -0
- package/es2021/jodit.css +4945 -0
- package/es2021/jodit.fat.min.css +1 -0
- package/es2021/jodit.fat.min.js +10 -0
- package/es2021/jodit.js +42643 -0
- package/es2021/jodit.min.css +1 -0
- package/es2021/jodit.min.js +10 -0
- package/es2021/plugins/autocomplete/autocomplete.css +26 -0
- package/es2021/plugins/autocomplete/autocomplete.js +463 -0
- package/es2021/plugins/autocomplete/autocomplete.min.css +1 -0
- package/es2021/plugins/autocomplete/autocomplete.min.js +10 -0
- package/es2021/plugins/backup/backup.css +48 -0
- package/es2021/plugins/backup/backup.js +554 -0
- package/es2021/plugins/backup/backup.min.css +1 -0
- package/es2021/plugins/backup/backup.min.js +10 -0
- package/es2021/plugins/button-generator/button-generator.css +316 -0
- package/es2021/plugins/button-generator/button-generator.js +1382 -0
- package/es2021/plugins/button-generator/button-generator.min.css +1 -0
- package/es2021/plugins/button-generator/button-generator.min.js +10 -0
- package/es2021/plugins/change-case/change-case.js +171 -0
- package/es2021/plugins/change-case/change-case.min.js +10 -0
- package/es2021/plugins/color-picker/color-picker.css +133 -0
- package/es2021/plugins/color-picker/color-picker.js +517 -0
- package/es2021/plugins/color-picker/color-picker.min.css +1 -0
- package/es2021/plugins/color-picker/color-picker.min.js +10 -0
- package/es2021/plugins/emoji/emoji.css +108 -0
- package/es2021/plugins/emoji/emoji.js +425 -0
- package/es2021/plugins/emoji/emoji.min.css +1 -0
- package/es2021/plugins/emoji/emoji.min.js +10 -0
- package/es2021/plugins/export-docs/export-docs.js +156 -0
- package/es2021/plugins/export-docs/export-docs.min.js +10 -0
- package/es2021/plugins/finder/finder.css +1342 -0
- package/es2021/plugins/finder/finder.js +3152 -0
- package/es2021/plugins/finder/finder.min.css +1 -0
- package/es2021/plugins/finder/finder.min.js +10 -0
- package/es2021/plugins/google-maps/google-maps.css +397 -0
- package/es2021/plugins/google-maps/google-maps.js +2540 -0
- package/es2021/plugins/google-maps/google-maps.min.css +1 -0
- package/es2021/plugins/google-maps/google-maps.min.js +10 -0
- package/es2021/plugins/google-search/google-search.js +107 -0
- package/es2021/plugins/google-search/google-search.min.js +10 -0
- package/es2021/plugins/highlight-signature/highlight-signature.js +231 -0
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +10 -0
- package/es2021/plugins/iframe-editor/iframe-editor.css +16 -0
- package/es2021/plugins/iframe-editor/iframe-editor.js +308 -0
- package/es2021/plugins/iframe-editor/iframe-editor.min.css +1 -0
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +10 -0
- package/es2021/plugins/keyboard/keyboard.css +48 -0
- package/es2021/plugins/keyboard/keyboard.js +537 -0
- package/es2021/plugins/keyboard/keyboard.min.css +1 -0
- package/es2021/plugins/keyboard/keyboard.min.js +10 -0
- package/es2021/plugins/mobile-view/mobile-view.js +168 -0
- package/es2021/plugins/mobile-view/mobile-view.min.js +10 -0
- package/es2021/plugins/page-break/page-break.js +181 -0
- package/es2021/plugins/page-break/page-break.min.js +10 -0
- package/es2021/plugins/paste-code/paste-code.css +21 -0
- package/es2021/plugins/paste-code/paste-code.js +318 -0
- package/es2021/plugins/paste-code/paste-code.min.css +1 -0
- package/es2021/plugins/paste-code/paste-code.min.js +10 -0
- package/es2021/plugins/paste-from-word/paste-from-word.js +1528 -0
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +10 -0
- package/es2021/plugins/show-blocks/show-blocks.js +645 -0
- package/es2021/plugins/show-blocks/show-blocks.min.js +10 -0
- package/es2021/plugins/todo-list/todo-list.css +77 -0
- package/es2021/plugins/todo-list/todo-list.js +313 -0
- package/es2021/plugins/todo-list/todo-list.min.css +1 -0
- package/es2021/plugins/todo-list/todo-list.min.js +10 -0
- package/es2021/plugins/translate/translate.css +91 -0
- package/es2021/plugins/translate/translate.js +636 -0
- package/es2021/plugins/translate/translate.min.css +1 -0
- package/es2021/plugins/translate/translate.min.js +10 -0
- package/es2021/plugins/tune-block/tune-block.css +37 -0
- package/es2021/plugins/tune-block/tune-block.js +385 -0
- package/es2021/plugins/tune-block/tune-block.min.css +1 -0
- package/es2021/plugins/tune-block/tune-block.min.js +10 -0
- package/es2021.en/jodit.css +4945 -0
- package/es2021.en/jodit.fat.min.css +1 -0
- package/es2021.en/jodit.fat.min.js +10 -0
- package/es2021.en/jodit.js +40989 -0
- package/es2021.en/jodit.min.css +1 -0
- package/es2021.en/jodit.min.js +10 -0
- package/es2021.en/plugins/autocomplete/autocomplete.css +26 -0
- package/es2021.en/plugins/autocomplete/autocomplete.js +463 -0
- package/es2021.en/plugins/autocomplete/autocomplete.min.css +1 -0
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +10 -0
- package/es2021.en/plugins/backup/backup.css +48 -0
- package/es2021.en/plugins/backup/backup.js +554 -0
- package/es2021.en/plugins/backup/backup.min.css +1 -0
- package/es2021.en/plugins/backup/backup.min.js +10 -0
- package/es2021.en/plugins/button-generator/button-generator.css +316 -0
- package/es2021.en/plugins/button-generator/button-generator.js +1382 -0
- package/es2021.en/plugins/button-generator/button-generator.min.css +1 -0
- package/es2021.en/plugins/button-generator/button-generator.min.js +10 -0
- package/es2021.en/plugins/change-case/change-case.js +171 -0
- package/es2021.en/plugins/change-case/change-case.min.js +10 -0
- package/es2021.en/plugins/color-picker/color-picker.css +133 -0
- package/es2021.en/plugins/color-picker/color-picker.js +517 -0
- package/es2021.en/plugins/color-picker/color-picker.min.css +1 -0
- package/es2021.en/plugins/color-picker/color-picker.min.js +10 -0
- package/es2021.en/plugins/emoji/emoji.css +108 -0
- package/es2021.en/plugins/emoji/emoji.js +425 -0
- package/es2021.en/plugins/emoji/emoji.min.css +1 -0
- package/es2021.en/plugins/emoji/emoji.min.js +10 -0
- package/es2021.en/plugins/export-docs/export-docs.js +156 -0
- package/es2021.en/plugins/export-docs/export-docs.min.js +10 -0
- package/es2021.en/plugins/finder/finder.css +1342 -0
- package/es2021.en/plugins/finder/finder.js +3117 -0
- package/es2021.en/plugins/finder/finder.min.css +1 -0
- package/es2021.en/plugins/finder/finder.min.js +10 -0
- package/es2021.en/plugins/google-maps/google-maps.css +397 -0
- package/es2021.en/plugins/google-maps/google-maps.js +2540 -0
- package/es2021.en/plugins/google-maps/google-maps.min.css +1 -0
- package/es2021.en/plugins/google-maps/google-maps.min.js +10 -0
- package/es2021.en/plugins/google-search/google-search.js +107 -0
- package/es2021.en/plugins/google-search/google-search.min.js +10 -0
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +231 -0
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +10 -0
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +16 -0
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +308 -0
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.css +1 -0
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +10 -0
- package/es2021.en/plugins/keyboard/keyboard.css +48 -0
- package/es2021.en/plugins/keyboard/keyboard.js +537 -0
- package/es2021.en/plugins/keyboard/keyboard.min.css +1 -0
- package/es2021.en/plugins/keyboard/keyboard.min.js +10 -0
- package/es2021.en/plugins/mobile-view/mobile-view.js +168 -0
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +10 -0
- package/es2021.en/plugins/page-break/page-break.js +181 -0
- package/es2021.en/plugins/page-break/page-break.min.js +10 -0
- package/es2021.en/plugins/paste-code/paste-code.css +21 -0
- package/es2021.en/plugins/paste-code/paste-code.js +318 -0
- package/es2021.en/plugins/paste-code/paste-code.min.css +1 -0
- package/es2021.en/plugins/paste-code/paste-code.min.js +10 -0
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1528 -0
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +10 -0
- package/es2021.en/plugins/show-blocks/show-blocks.js +322 -0
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +10 -0
- package/es2021.en/plugins/todo-list/todo-list.css +77 -0
- package/es2021.en/plugins/todo-list/todo-list.js +313 -0
- package/es2021.en/plugins/todo-list/todo-list.min.css +1 -0
- package/es2021.en/plugins/todo-list/todo-list.min.js +10 -0
- package/es2021.en/plugins/translate/translate.css +91 -0
- package/es2021.en/plugins/translate/translate.js +636 -0
- package/es2021.en/plugins/translate/translate.min.css +1 -0
- package/es2021.en/plugins/translate/translate.min.js +10 -0
- package/es2021.en/plugins/tune-block/tune-block.css +37 -0
- package/es2021.en/plugins/tune-block/tune-block.js +385 -0
- package/es2021.en/plugins/tune-block/tune-block.min.css +1 -0
- package/es2021.en/plugins/tune-block/tune-block.min.js +10 -0
- package/es5/jodit.css +5956 -0
- package/es5/jodit.fat.min.css +1 -0
- package/es5/jodit.fat.min.js +10 -0
- package/es5/jodit.js +49879 -0
- package/es5/jodit.min.css +15 -0
- package/es5/jodit.min.js +10 -0
- package/es5/plugins/autocomplete/autocomplete.css +26 -0
- package/es5/plugins/autocomplete/autocomplete.js +536 -0
- package/es5/plugins/autocomplete/autocomplete.min.css +1 -0
- package/es5/plugins/autocomplete/autocomplete.min.js +10 -0
- package/es5/plugins/backup/backup.css +48 -0
- package/es5/plugins/backup/backup.js +599 -0
- package/es5/plugins/backup/backup.min.css +1 -0
- package/es5/plugins/backup/backup.min.js +10 -0
- package/es5/plugins/button-generator/button-generator.css +316 -0
- package/es5/plugins/button-generator/button-generator.js +1310 -0
- package/es5/plugins/button-generator/button-generator.min.css +1 -0
- package/es5/plugins/button-generator/button-generator.min.js +10 -0
- package/es5/plugins/change-case/change-case.js +179 -0
- package/es5/plugins/change-case/change-case.min.js +10 -0
- package/es5/plugins/color-picker/color-picker.css +133 -0
- package/es5/plugins/color-picker/color-picker.js +525 -0
- package/es5/plugins/color-picker/color-picker.min.css +1 -0
- package/es5/plugins/color-picker/color-picker.min.js +10 -0
- package/es5/plugins/emoji/emoji.css +108 -0
- package/es5/plugins/emoji/emoji.js +459 -0
- package/es5/plugins/emoji/emoji.min.css +1 -0
- package/es5/plugins/emoji/emoji.min.js +10 -0
- package/es5/plugins/export-docs/export-docs.js +174 -0
- package/es5/plugins/export-docs/export-docs.min.js +10 -0
- package/es5/plugins/finder/finder.css +1342 -0
- package/es5/plugins/finder/finder.js +3335 -0
- package/es5/plugins/finder/finder.min.css +1 -0
- package/es5/plugins/finder/finder.min.js +10 -0
- package/es5/plugins/google-maps/google-maps.css +397 -0
- package/es5/plugins/google-maps/google-maps.js +2463 -0
- package/es5/plugins/google-maps/google-maps.min.css +1 -0
- package/es5/plugins/google-maps/google-maps.min.js +10 -0
- package/es5/plugins/google-search/google-search.js +113 -0
- package/es5/plugins/google-search/google-search.min.js +10 -0
- package/es5/plugins/highlight-signature/highlight-signature.js +253 -0
- package/es5/plugins/highlight-signature/highlight-signature.min.js +10 -0
- package/es5/plugins/iframe-editor/iframe-editor.css +16 -0
- package/es5/plugins/iframe-editor/iframe-editor.js +319 -0
- package/es5/plugins/iframe-editor/iframe-editor.min.css +1 -0
- package/es5/plugins/iframe-editor/iframe-editor.min.js +10 -0
- package/es5/plugins/keyboard/keyboard.css +48 -0
- package/es5/plugins/keyboard/keyboard.js +556 -0
- package/es5/plugins/keyboard/keyboard.min.css +1 -0
- package/es5/plugins/keyboard/keyboard.min.js +10 -0
- package/es5/plugins/mobile-view/mobile-view.js +176 -0
- package/es5/plugins/mobile-view/mobile-view.min.js +10 -0
- package/es5/plugins/page-break/page-break.js +169 -0
- package/es5/plugins/page-break/page-break.min.js +10 -0
- package/es5/plugins/paste-code/paste-code.css +21 -0
- package/es5/plugins/paste-code/paste-code.js +348 -0
- package/es5/plugins/paste-code/paste-code.min.css +1 -0
- package/es5/plugins/paste-code/paste-code.min.js +10 -0
- package/es5/plugins/paste-from-word/paste-from-word.js +1670 -0
- package/es5/plugins/paste-from-word/paste-from-word.min.js +10 -0
- package/es5/plugins/show-blocks/show-blocks.js +649 -0
- package/es5/plugins/show-blocks/show-blocks.min.js +10 -0
- package/es5/plugins/todo-list/todo-list.css +77 -0
- package/es5/plugins/todo-list/todo-list.js +324 -0
- package/es5/plugins/todo-list/todo-list.min.css +1 -0
- package/es5/plugins/todo-list/todo-list.min.js +10 -0
- package/es5/plugins/translate/translate.css +91 -0
- package/es5/plugins/translate/translate.js +657 -0
- package/es5/plugins/translate/translate.min.css +1 -0
- package/es5/plugins/translate/translate.min.js +10 -0
- package/es5/plugins/tune-block/tune-block.css +37 -0
- package/es5/plugins/tune-block/tune-block.js +397 -0
- package/es5/plugins/tune-block/tune-block.min.css +1 -0
- package/es5/plugins/tune-block/tune-block.min.js +10 -0
- package/examples/arabic.lang.html +8 -8
- package/examples/color-picker.html +6 -6
- package/examples/custom-icons.html +8 -8
- package/examples/custom-toolbar.html +8 -8
- package/examples/example.default.html +6 -6
- package/examples/fullsize.html +8 -8
- package/examples/index.html +6 -6
- package/examples/inline-mode.html +8 -8
- package/examples/oneinstance.html +8 -8
- package/examples/theme.html +6 -6
- package/package.json +6 -22
- package/LICENSE.md +0 -3
- package/build/jodit.css +0 -1
- package/build/jodit.es5.css +0 -8
- package/build/jodit.es5.js +0 -1
- package/build/jodit.fat.css +0 -1
- package/build/jodit.fat.es5.css +0 -1
- package/build/jodit.fat.es5.js +0 -1
- package/build/jodit.fat.js +0 -1
- package/build/jodit.js +0 -1
- package/build/plugins/autocomplete/autocomplete.es5.js +0 -1
- package/build/plugins/autocomplete/autocomplete.js +0 -1
- package/build/plugins/backup/backup.es5.js +0 -1
- package/build/plugins/backup/backup.js +0 -1
- package/build/plugins/button-generator/button-generator.css +0 -1
- package/build/plugins/button-generator/button-generator.es5.css +0 -1
- package/build/plugins/button-generator/button-generator.es5.js +0 -1
- package/build/plugins/button-generator/button-generator.js +0 -1
- package/build/plugins/change-case/change-case.es5.js +0 -1
- package/build/plugins/change-case/change-case.js +0 -1
- package/build/plugins/color-picker/color-picker.css +0 -1
- package/build/plugins/color-picker/color-picker.es5.css +0 -1
- package/build/plugins/color-picker/color-picker.es5.js +0 -1
- package/build/plugins/color-picker/color-picker.js +0 -1
- package/build/plugins/emoji/emoji.css +0 -1
- package/build/plugins/emoji/emoji.es5.css +0 -1
- package/build/plugins/emoji/emoji.es5.js +0 -1
- package/build/plugins/emoji/emoji.js +0 -1
- package/build/plugins/export-docs/export-docs.es5.js +0 -1
- package/build/plugins/export-docs/export-docs.js +0 -1
- package/build/plugins/finder/finder.css +0 -1
- package/build/plugins/finder/finder.es5.css +0 -1
- package/build/plugins/finder/finder.es5.js +0 -1
- package/build/plugins/finder/finder.js +0 -1
- package/build/plugins/google-maps/google-maps.css +0 -1
- package/build/plugins/google-maps/google-maps.es5.css +0 -1
- package/build/plugins/google-maps/google-maps.es5.js +0 -1
- package/build/plugins/google-maps/google-maps.js +0 -1
- package/build/plugins/google-search/google-search.es5.js +0 -1
- package/build/plugins/google-search/google-search.js +0 -1
- package/build/plugins/highlight-signature/highlight-signature.es5.js +0 -1
- package/build/plugins/highlight-signature/highlight-signature.js +0 -1
- package/build/plugins/iframe-editor/iframe-editor.es5.js +0 -1
- package/build/plugins/iframe-editor/iframe-editor.js +0 -1
- package/build/plugins/keyboard/keyboard.es5.js +0 -1
- package/build/plugins/keyboard/keyboard.js +0 -1
- package/build/plugins/mobile-view/mobile-view.css +0 -0
- package/build/plugins/mobile-view/mobile-view.es5.css +0 -0
- package/build/plugins/mobile-view/mobile-view.es5.js +0 -1
- package/build/plugins/mobile-view/mobile-view.js +0 -1
- package/build/plugins/page-break/page-break.css +0 -1
- package/build/plugins/page-break/page-break.es5.css +0 -1
- package/build/plugins/page-break/page-break.es5.js +0 -1
- package/build/plugins/page-break/page-break.js +0 -1
- package/build/plugins/paste-code/paste-code.es5.js +0 -1
- package/build/plugins/paste-code/paste-code.js +0 -1
- package/build/plugins/paste-from-word/paste-from-word.es5.js +0 -1
- package/build/plugins/paste-from-word/paste-from-word.js +0 -1
- package/build/plugins/show-blocks/show-blocks.es5.js +0 -1
- package/build/plugins/show-blocks/show-blocks.js +0 -1
- package/build/plugins/todo-list/todo-list.css +0 -1
- package/build/plugins/todo-list/todo-list.es5.css +0 -1
- package/build/plugins/todo-list/todo-list.es5.js +0 -1
- package/build/plugins/todo-list/todo-list.js +0 -1
- package/build/plugins/translate/translate.es5.js +0 -1
- package/build/plugins/translate/translate.js +0 -1
- package/build/plugins/tune-block/tune-block.es5.js +0 -1
- package/build/plugins/tune-block/tune-block.js +0 -1
- package/index.html +0 -268
- /package/{build/config.js → config.js} +0 -0
- /package/{build/plugins/autocomplete/autocomplete.css → es2015/plugins/autocomplete/autocomplete.min.css} +0 -0
- /package/{build/plugins/iframe-editor/iframe-editor.css → es2015/plugins/iframe-editor/iframe-editor.min.css} +0 -0
- /package/{build/plugins/keyboard/keyboard.css → es2015/plugins/keyboard/keyboard.min.css} +0 -0
- /package/{build/plugins/paste-code/paste-code.css → es2015/plugins/paste-code/paste-code.min.css} +0 -0
- /package/{build/plugins/translate/translate.css → es2015/plugins/translate/translate.min.css} +0 -0
- /package/{build/plugins/autocomplete/autocomplete.es5.css → es2018/plugins/autocomplete/autocomplete.min.css} +0 -0
- /package/{build/plugins/iframe-editor/iframe-editor.es5.css → es2018/plugins/iframe-editor/iframe-editor.min.css} +0 -0
- /package/{build/plugins/keyboard/keyboard.es5.css → es2018/plugins/keyboard/keyboard.min.css} +0 -0
- /package/{build/plugins/paste-code/paste-code.es5.css → es2018/plugins/paste-code/paste-code.min.css} +0 -0
- /package/{build/plugins/translate/translate.es5.css → es2018/plugins/translate/translate.min.css} +0 -0
|
@@ -0,0 +1,599 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* jodit-pro - PRO Version of Jodit Editor
|
|
3
|
+
* Author: Chupurnov Valeriy <chupurnov@gmail.com>
|
|
4
|
+
* Version: v2.0.0-beta.10
|
|
5
|
+
* Url: https://xdsoft.net/jodit/pro/
|
|
6
|
+
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
10
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
11
|
+
module.exports = factory();
|
|
12
|
+
else if(typeof define === 'function' && define.amd)
|
|
13
|
+
define([], factory);
|
|
14
|
+
else {
|
|
15
|
+
var a = factory();
|
|
16
|
+
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
17
|
+
}
|
|
18
|
+
})(self, function() {
|
|
19
|
+
return (self["webpackChunkjodit_pro"] = self["webpackChunkjodit_pro"] || []).push([[391],{
|
|
20
|
+
|
|
21
|
+
/***/ 50722:
|
|
22
|
+
/***/ (function(module) {
|
|
23
|
+
|
|
24
|
+
module.exports = "<?xml version=\"1.0\" ?><svg viewBox=\"0 0 64 64\" xmlns=\"http://www.w3.org/2000/svg\"><title/><g id=\"Upload\"><path d=\"M16,26h8V50a2,2,0,0,0,2,2H38a2,2,0,0,0,2-2V26h8a2,2,0,0,0,1.4946-3.3291l-16-18a2,2,0,0,0-2.9892,0l-16,18A2,2,0,0,0,16,26ZM32,9.0107,43.5464,22H38a2,2,0,0,0-2,2V48H28V24a2,2,0,0,0-2-2H20.4536Z\"/><path d=\"M53,42a2,2,0,0,0-2,2V54a2.0023,2.0023,0,0,1-2,2H15a2.0023,2.0023,0,0,1-2-2V44a2,2,0,0,0-4,0V54a6.0066,6.0066,0,0,0,6,6H49a6.0066,6.0066,0,0,0,6-6V44A2,2,0,0,0,53,42Z\"/></g></svg>"
|
|
25
|
+
|
|
26
|
+
/***/ }),
|
|
27
|
+
|
|
28
|
+
/***/ 32100:
|
|
29
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
30
|
+
|
|
31
|
+
"use strict";
|
|
32
|
+
__webpack_require__.r(__webpack_exports__);
|
|
33
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
34
|
+
/* harmony export */ "backup": function() { return /* binding */ backup; }
|
|
35
|
+
/* harmony export */ });
|
|
36
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(97582);
|
|
37
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19775);
|
|
38
|
+
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7324);
|
|
39
|
+
/* harmony import */ var _modules_store__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1844);
|
|
40
|
+
/* harmony import */ var _ui_box__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(71298);
|
|
41
|
+
/* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(75004);
|
|
42
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50526);
|
|
43
|
+
/* harmony import */ var _JoditPro__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(88292);
|
|
44
|
+
/*!
|
|
45
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
46
|
+
* See LICENSE.md in the project root for license information.
|
|
47
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
var backup = /** @class */ (function (_super) {
|
|
58
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__extends */ .ZT)(backup, _super);
|
|
59
|
+
function backup() {
|
|
60
|
+
var _this = this;
|
|
61
|
+
var _a;
|
|
62
|
+
_this = _super.apply(this, (0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__spreadArray */ .ev)([], (0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__read */ .CR)(arguments), false)) || this;
|
|
63
|
+
/** @override */
|
|
64
|
+
_this.hasStyle = !_JoditPro__WEBPACK_IMPORTED_MODULE_6__/* .JoditPro.fatMode */ .y.fatMode;
|
|
65
|
+
/** @override */
|
|
66
|
+
_this.buttons = [
|
|
67
|
+
{
|
|
68
|
+
name: 'backup.restore',
|
|
69
|
+
group: 'history'
|
|
70
|
+
}
|
|
71
|
+
];
|
|
72
|
+
_this.__box = new _ui_box__WEBPACK_IMPORTED_MODULE_3__/* .UIBackupBox */ .j(_this.j);
|
|
73
|
+
_this.__dialog = null;
|
|
74
|
+
_this.__storage = (_a = _this.jodit.o.backup.remoteStore) !== null && _a !== void 0 ? _a : new _modules_store__WEBPACK_IMPORTED_MODULE_2__/* .DefaultStorage */ .W(_this.jodit);
|
|
75
|
+
_this.timeout = 0;
|
|
76
|
+
return _this;
|
|
77
|
+
}
|
|
78
|
+
/** @override */
|
|
79
|
+
backup.prototype.afterInit = function (jodit) {
|
|
80
|
+
var _this = this;
|
|
81
|
+
jodit
|
|
82
|
+
.registerCommand('saveBackup', this.onSaveBackup)
|
|
83
|
+
.registerCommand('openBackupDialog', {
|
|
84
|
+
exec: this.onOpenBackupDialog,
|
|
85
|
+
hotkeys: jodit.o.backup.hotkeys
|
|
86
|
+
});
|
|
87
|
+
var startInterval = function () {
|
|
88
|
+
_this.timeout = jodit.async.setTimeout(function () {
|
|
89
|
+
_this.onSaveBackup();
|
|
90
|
+
startInterval();
|
|
91
|
+
}, jodit.o.backup.interval * 1000);
|
|
92
|
+
};
|
|
93
|
+
startInterval();
|
|
94
|
+
jodit.e
|
|
95
|
+
.on(this.__box, 'choose', this.onSelectItem)
|
|
96
|
+
.on(jodit.ow, 'beforeunload.backup', function () {
|
|
97
|
+
_this.onSaveBackup();
|
|
98
|
+
});
|
|
99
|
+
};
|
|
100
|
+
backup.prototype.prepareDialog = function () {
|
|
101
|
+
if (!this.__dialog) {
|
|
102
|
+
this.__dialog = this.j
|
|
103
|
+
.dlg({
|
|
104
|
+
minWidth: this.j.o.backup.dialogWidth,
|
|
105
|
+
buttons: ['fullsize', 'dialog.close']
|
|
106
|
+
})
|
|
107
|
+
.setContent(this.__box.container);
|
|
108
|
+
}
|
|
109
|
+
this.__dialog.setHeader(this.jodit.i18n('Restore'));
|
|
110
|
+
this.addButtonsToDialog();
|
|
111
|
+
};
|
|
112
|
+
backup.prototype.onSaveBackup = function () {
|
|
113
|
+
this.__storage.add({
|
|
114
|
+
created: new Date(),
|
|
115
|
+
html: this.j.value
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
backup.prototype.onOpenBackupDialog = function () {
|
|
119
|
+
return (0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__awaiter */ .mG)(this, void 0, Promise, function () {
|
|
120
|
+
var __dialog, items;
|
|
121
|
+
return (0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__generator */ .Jh)(this, function (_a) {
|
|
122
|
+
switch (_a.label) {
|
|
123
|
+
case 0:
|
|
124
|
+
this.prepareDialog();
|
|
125
|
+
__dialog = this.__dialog;
|
|
126
|
+
if (!__dialog) {
|
|
127
|
+
return [2 /*return*/];
|
|
128
|
+
}
|
|
129
|
+
__dialog.open().setModal(true);
|
|
130
|
+
return [4 /*yield*/, this.__storage.items()];
|
|
131
|
+
case 1:
|
|
132
|
+
items = _a.sent();
|
|
133
|
+
this.__box.build((0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__spreadArray */ .ev)([
|
|
134
|
+
{
|
|
135
|
+
created: new Date(),
|
|
136
|
+
html: this.j.value
|
|
137
|
+
}
|
|
138
|
+
], (0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__read */ .CR)(items), false));
|
|
139
|
+
__dialog.calcAutoSize();
|
|
140
|
+
__dialog.setPosition();
|
|
141
|
+
return [2 /*return*/];
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
});
|
|
145
|
+
};
|
|
146
|
+
backup.prototype.onSelectItem = function (data) {
|
|
147
|
+
var _a;
|
|
148
|
+
(_a = this.__dialog) === null || _a === void 0 ? void 0 : _a.close();
|
|
149
|
+
this.j.value = data.html;
|
|
150
|
+
this.j.s.focus();
|
|
151
|
+
};
|
|
152
|
+
backup.prototype.addButtonsToDialog = function () {
|
|
153
|
+
var _this = this;
|
|
154
|
+
var _a;
|
|
155
|
+
var jodit = this.jodit;
|
|
156
|
+
var ok = (0,jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__/* .Button */ .zx)(jodit, {
|
|
157
|
+
name: 'ok',
|
|
158
|
+
tabIndex: 0,
|
|
159
|
+
variant: 'primary',
|
|
160
|
+
text: 'Ok'
|
|
161
|
+
}), cancel = (0,jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__/* .Button */ .zx)(jodit, {
|
|
162
|
+
variant: 'secondary',
|
|
163
|
+
tabIndex: 0,
|
|
164
|
+
text: 'Cancel'
|
|
165
|
+
}), clear = (0,jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__/* .Button */ .zx)(jodit, {
|
|
166
|
+
name: 'clear',
|
|
167
|
+
tabIndex: 0,
|
|
168
|
+
variant: 'secondary',
|
|
169
|
+
text: 'Remove all'
|
|
170
|
+
});
|
|
171
|
+
ok.onAction(function () {
|
|
172
|
+
_this.__box.chooseSelected();
|
|
173
|
+
});
|
|
174
|
+
cancel.onAction(function () {
|
|
175
|
+
var _a;
|
|
176
|
+
(_a = _this.__dialog) === null || _a === void 0 ? void 0 : _a.close();
|
|
177
|
+
});
|
|
178
|
+
clear.onAction(function () {
|
|
179
|
+
jodit.confirm('Are you sure?', undefined, function (confirm) {
|
|
180
|
+
var _a;
|
|
181
|
+
if (confirm) {
|
|
182
|
+
_this.__storage.clear();
|
|
183
|
+
(_a = _this.__dialog) === null || _a === void 0 ? void 0 : _a.close();
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
});
|
|
187
|
+
var block = new jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__/* .UIBlock */ .eC(jodit, [clear, cancel, ok]);
|
|
188
|
+
block.container.style.margin = '0';
|
|
189
|
+
block.container.style.justifyContent = 'flex-end';
|
|
190
|
+
block.container.style.width = '100%';
|
|
191
|
+
(_a = this.__dialog) === null || _a === void 0 ? void 0 : _a.setFooter(block);
|
|
192
|
+
};
|
|
193
|
+
/** @override */
|
|
194
|
+
backup.prototype.beforeDestruct = function () {
|
|
195
|
+
var _a;
|
|
196
|
+
var j = this.j;
|
|
197
|
+
j.async.clearTimeout(this.timeout);
|
|
198
|
+
j.e
|
|
199
|
+
.off(this.__box, 'choose', this.onSelectItem)
|
|
200
|
+
.off(j.ow, 'beforeunload.backup');
|
|
201
|
+
this.__box.destruct();
|
|
202
|
+
(_a = this.__dialog) === null || _a === void 0 ? void 0 : _a.destruct();
|
|
203
|
+
};
|
|
204
|
+
/** @override */
|
|
205
|
+
backup.requires = ['license'];
|
|
206
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .gn)([
|
|
207
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
208
|
+
], backup.prototype, "onSaveBackup", null);
|
|
209
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .gn)([
|
|
210
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
211
|
+
], backup.prototype, "onOpenBackupDialog", null);
|
|
212
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .gn)([
|
|
213
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
214
|
+
], backup.prototype, "onSelectItem", null);
|
|
215
|
+
return backup;
|
|
216
|
+
}(jodit_core_plugin__WEBPACK_IMPORTED_MODULE_1__/* .Plugin */ .S));
|
|
217
|
+
_JoditPro__WEBPACK_IMPORTED_MODULE_6__/* .JoditPro.plugins.add */ .y.plugins.add('backup', backup);
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
/***/ }),
|
|
221
|
+
|
|
222
|
+
/***/ 19775:
|
|
223
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
224
|
+
|
|
225
|
+
"use strict";
|
|
226
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77628);
|
|
227
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10503);
|
|
228
|
+
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(81160);
|
|
229
|
+
/*!
|
|
230
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
231
|
+
* See LICENSE.md in the project root for license information.
|
|
232
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
233
|
+
*/
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config.prototype.backup */ .D.prototype.backup = {
|
|
238
|
+
interval: 30,
|
|
239
|
+
limit: 50,
|
|
240
|
+
dialogWidth: 700,
|
|
241
|
+
hotkeys: ['ctrl+shift+b', 'cmd+shift+b']
|
|
242
|
+
};
|
|
243
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config.prototype.controls.backup */ .D.prototype.controls.backup = {
|
|
244
|
+
store: {
|
|
245
|
+
command: 'saveBackup',
|
|
246
|
+
text: 'Save backup now'
|
|
247
|
+
},
|
|
248
|
+
restore: {
|
|
249
|
+
tooltip: 'Restore',
|
|
250
|
+
list: ['backup.store'],
|
|
251
|
+
exec: function (editor) {
|
|
252
|
+
editor.execCommand('openBackupDialog');
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
};
|
|
256
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon.set */ .J.set('restore', __webpack_require__(50722));
|
|
257
|
+
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .extendLang */ .xl)(__webpack_require__(10188));
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
/***/ }),
|
|
261
|
+
|
|
262
|
+
/***/ 10188:
|
|
263
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
264
|
+
|
|
265
|
+
"use strict";
|
|
266
|
+
__webpack_require__.r(__webpack_exports__);
|
|
267
|
+
/*!
|
|
268
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
269
|
+
* See LICENSE.md in the project root for license information.
|
|
270
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
271
|
+
*/
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
/***/ }),
|
|
276
|
+
|
|
277
|
+
/***/ 1844:
|
|
278
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
279
|
+
|
|
280
|
+
"use strict";
|
|
281
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
282
|
+
/* harmony export */ "W": function() { return /* binding */ DefaultStorage; }
|
|
283
|
+
/* harmony export */ });
|
|
284
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(97582);
|
|
285
|
+
/*!
|
|
286
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
287
|
+
* See LICENSE.md in the project root for license information.
|
|
288
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
289
|
+
*/
|
|
290
|
+
|
|
291
|
+
var DefaultStorage = /** @class */ (function () {
|
|
292
|
+
function DefaultStorage(jodit) {
|
|
293
|
+
this.jodit = jodit;
|
|
294
|
+
this.key = 'backup.default.storage';
|
|
295
|
+
}
|
|
296
|
+
DefaultStorage.prototype.add = function (item) {
|
|
297
|
+
return (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__awaiter */ .mG)(this, void 0, Promise, function () {
|
|
298
|
+
var items;
|
|
299
|
+
return (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__generator */ .Jh)(this, function (_a) {
|
|
300
|
+
if (!item.html.trim().length) {
|
|
301
|
+
return [2 /*return*/, false];
|
|
302
|
+
}
|
|
303
|
+
items = this.jodit.storage.get(this.key) || [];
|
|
304
|
+
if (items.find(function (elm) { return elm.html === item.html; })) {
|
|
305
|
+
return [2 /*return*/, false];
|
|
306
|
+
}
|
|
307
|
+
items.unshift(item);
|
|
308
|
+
if (items.length > this.jodit.o.backup.limit) {
|
|
309
|
+
items.length = this.jodit.o.backup.limit;
|
|
310
|
+
}
|
|
311
|
+
this.jodit.storage.set(this.key, items);
|
|
312
|
+
return [2 /*return*/, false];
|
|
313
|
+
});
|
|
314
|
+
});
|
|
315
|
+
};
|
|
316
|
+
DefaultStorage.prototype.items = function () {
|
|
317
|
+
return Promise.resolve(this.jodit.storage.get(this.key) || []);
|
|
318
|
+
};
|
|
319
|
+
DefaultStorage.prototype.clear = function () {
|
|
320
|
+
this.jodit.storage.delete(this.key);
|
|
321
|
+
return Promise.resolve(false);
|
|
322
|
+
};
|
|
323
|
+
return DefaultStorage;
|
|
324
|
+
}());
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
/***/ }),
|
|
329
|
+
|
|
330
|
+
/***/ 71298:
|
|
331
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
332
|
+
|
|
333
|
+
"use strict";
|
|
334
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
335
|
+
/* harmony export */ "j": function() { return /* binding */ UIBackupBox; }
|
|
336
|
+
/* harmony export */ });
|
|
337
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97582);
|
|
338
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(50526);
|
|
339
|
+
/* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(75004);
|
|
340
|
+
/* harmony import */ var _list__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(75696);
|
|
341
|
+
/*!
|
|
342
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
343
|
+
* See LICENSE.md in the project root for license information.
|
|
344
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
345
|
+
*/
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
var UIBackupBox = /** @class */ (function (_super) {
|
|
352
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__extends */ .ZT)(UIBackupBox, _super);
|
|
353
|
+
function UIBackupBox(jodit) {
|
|
354
|
+
var _this = _super.call(this, jodit) || this;
|
|
355
|
+
_this.list = new _list__WEBPACK_IMPORTED_MODULE_2__/* .UIBackupList */ .A(_this.j);
|
|
356
|
+
_this.preview = _this.j.c.div(_this.getFullElName('preview'));
|
|
357
|
+
_this.container.appendChild(_this.list.container);
|
|
358
|
+
_this.container.appendChild(_this.preview);
|
|
359
|
+
_this.list.container.classList.add(_this.getFullElName('list'));
|
|
360
|
+
jodit.e
|
|
361
|
+
.on(_this.list, 'select', _this.onSelectItem)
|
|
362
|
+
.on(_this.list, 'choose', _this.onChooseItem);
|
|
363
|
+
return _this;
|
|
364
|
+
}
|
|
365
|
+
/** @override */
|
|
366
|
+
UIBackupBox.prototype.className = function () {
|
|
367
|
+
return 'UIBackupBox';
|
|
368
|
+
};
|
|
369
|
+
UIBackupBox.prototype.build = function (items) {
|
|
370
|
+
this.preview.innerHTML = '';
|
|
371
|
+
this.list.build(items);
|
|
372
|
+
};
|
|
373
|
+
/** @override */
|
|
374
|
+
UIBackupBox.prototype.destruct = function () {
|
|
375
|
+
this.j.e.off(this.list, 'select', this.onSelectItem);
|
|
376
|
+
this.list.destruct();
|
|
377
|
+
return _super.prototype.destruct.call(this);
|
|
378
|
+
};
|
|
379
|
+
/**
|
|
380
|
+
* On select item inside list
|
|
381
|
+
*/
|
|
382
|
+
UIBackupBox.prototype.onSelectItem = function (item) {
|
|
383
|
+
this.latestSelected = item;
|
|
384
|
+
this.preview.innerHTML =
|
|
385
|
+
item.html ||
|
|
386
|
+
"<div class=\"".concat(this.getFullElName('empty'), "\">").concat(this.j.i18n('Empty'), "</div>");
|
|
387
|
+
};
|
|
388
|
+
/**
|
|
389
|
+
* On choose item inside list
|
|
390
|
+
*/
|
|
391
|
+
UIBackupBox.prototype.onChooseItem = function (item) {
|
|
392
|
+
this.j.e.fire(this, 'choose', item);
|
|
393
|
+
};
|
|
394
|
+
UIBackupBox.prototype.chooseSelected = function () {
|
|
395
|
+
this.onChooseItem(this.latestSelected);
|
|
396
|
+
};
|
|
397
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
|
|
398
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.autobind
|
|
399
|
+
], UIBackupBox.prototype, "onSelectItem", null);
|
|
400
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
|
|
401
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.autobind
|
|
402
|
+
], UIBackupBox.prototype, "onChooseItem", null);
|
|
403
|
+
UIBackupBox = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
|
|
404
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.component
|
|
405
|
+
], UIBackupBox);
|
|
406
|
+
return UIBackupBox;
|
|
407
|
+
}(jodit_core_ui__WEBPACK_IMPORTED_MODULE_1__/* .UIElement */ .u1));
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
/***/ }),
|
|
411
|
+
|
|
412
|
+
/***/ 64741:
|
|
413
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
414
|
+
|
|
415
|
+
"use strict";
|
|
416
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
417
|
+
/* harmony export */ "O": function() { return /* binding */ UIBackupItem; }
|
|
418
|
+
/* harmony export */ });
|
|
419
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97582);
|
|
420
|
+
/* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(75004);
|
|
421
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(95582);
|
|
422
|
+
/*!
|
|
423
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
424
|
+
* See LICENSE.md in the project root for license information.
|
|
425
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
426
|
+
*/
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
var UIBackupItem = /** @class */ (function (_super) {
|
|
432
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_2__/* .__extends */ .ZT)(UIBackupItem, _super);
|
|
433
|
+
function UIBackupItem(jodit, data) {
|
|
434
|
+
var _this = _super.call(this, jodit) || this;
|
|
435
|
+
_this.data = data;
|
|
436
|
+
_this.container.innerHTML = _this.formatDate(data.created);
|
|
437
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.attr)(_this.container, 'tabIndex', 0);
|
|
438
|
+
return _this;
|
|
439
|
+
}
|
|
440
|
+
/** @override */
|
|
441
|
+
UIBackupItem.prototype.className = function () {
|
|
442
|
+
return 'UIBackupItem';
|
|
443
|
+
};
|
|
444
|
+
UIBackupItem.prototype.formatDate = function (timestamp) {
|
|
445
|
+
var now = new Date();
|
|
446
|
+
var date = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.isString)(timestamp) ? new Date(timestamp) : timestamp, diff = (now.getTime() - date.getTime()) / 1000;
|
|
447
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.isFunction)(this.j.o.backup.formatDate)) {
|
|
448
|
+
return this.j.o.backup.formatDate(date);
|
|
449
|
+
}
|
|
450
|
+
if (diff < 0.2) {
|
|
451
|
+
return this.j.i18n('Current');
|
|
452
|
+
}
|
|
453
|
+
if (diff < 60) {
|
|
454
|
+
return this.j.i18n('Less minute');
|
|
455
|
+
}
|
|
456
|
+
if (diff <= 3600) {
|
|
457
|
+
return this.j.i18n('%s minutes ago', Math.floor(diff / 60));
|
|
458
|
+
}
|
|
459
|
+
if (diff <= 3600 * 24) {
|
|
460
|
+
return this.j.i18n('%s hours ago', Math.floor(diff / 3600));
|
|
461
|
+
}
|
|
462
|
+
return "".concat(date.toDateString(), " ").concat(date.toLocaleTimeString());
|
|
463
|
+
};
|
|
464
|
+
UIBackupItem.prototype.focus = function () {
|
|
465
|
+
this.container.focus();
|
|
466
|
+
};
|
|
467
|
+
return UIBackupItem;
|
|
468
|
+
}(jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UIElement */ .u1));
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
/***/ }),
|
|
473
|
+
|
|
474
|
+
/***/ 75696:
|
|
475
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
476
|
+
|
|
477
|
+
"use strict";
|
|
478
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
479
|
+
/* harmony export */ "A": function() { return /* binding */ UIBackupList; }
|
|
480
|
+
/* harmony export */ });
|
|
481
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(97582);
|
|
482
|
+
/* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(75004);
|
|
483
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50526);
|
|
484
|
+
/* harmony import */ var _item__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(64741);
|
|
485
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(11612);
|
|
486
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(95582);
|
|
487
|
+
/*!
|
|
488
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
489
|
+
* See LICENSE.md in the project root for license information.
|
|
490
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
491
|
+
*/
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
var UIBackupList = /** @class */ (function (_super) {
|
|
499
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__extends */ .ZT)(UIBackupList, _super);
|
|
500
|
+
function UIBackupList(jodit) {
|
|
501
|
+
var _this = _super.call(this, jodit) || this;
|
|
502
|
+
_this.elements = [];
|
|
503
|
+
_this.currentSelection = -1;
|
|
504
|
+
jodit.e.on(_this.container, 'keydown', function (e) {
|
|
505
|
+
switch (e.key) {
|
|
506
|
+
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_3__.KEY_ENTER:
|
|
507
|
+
e.preventDefault();
|
|
508
|
+
e.stopPropagation();
|
|
509
|
+
_this.onChoose(_this.currentSelection);
|
|
510
|
+
break;
|
|
511
|
+
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_3__.KEY_DOWN:
|
|
512
|
+
_this.selectNext();
|
|
513
|
+
break;
|
|
514
|
+
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_3__.KEY_UP:
|
|
515
|
+
_this.selectPrevious();
|
|
516
|
+
break;
|
|
517
|
+
}
|
|
518
|
+
});
|
|
519
|
+
return _this;
|
|
520
|
+
}
|
|
521
|
+
/** @override */
|
|
522
|
+
UIBackupList.prototype.className = function () {
|
|
523
|
+
return 'UIBackupList';
|
|
524
|
+
};
|
|
525
|
+
/** @override */
|
|
526
|
+
UIBackupList.prototype.createContainer = function (options) {
|
|
527
|
+
var div = _super.prototype.createContainer.call(this, options);
|
|
528
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(div, 'tabIndex', '-1');
|
|
529
|
+
return div;
|
|
530
|
+
};
|
|
531
|
+
UIBackupList.prototype.build = function (items) {
|
|
532
|
+
var _this = this;
|
|
533
|
+
this.clear();
|
|
534
|
+
items.forEach(function (data, index) {
|
|
535
|
+
var item = new _item__WEBPACK_IMPORTED_MODULE_2__/* .UIBackupItem */ .O(_this.jodit, data);
|
|
536
|
+
_this.append(item);
|
|
537
|
+
_this.j.e
|
|
538
|
+
.on(item.container, 'focus', function () { return _this.onSelect(index); })
|
|
539
|
+
.on(item.container, 'click', function () { return _this.onSelect(index); })
|
|
540
|
+
.on(item.container, 'dblclick', function () { return _this.onChoose(index); });
|
|
541
|
+
});
|
|
542
|
+
this.currentSelection = 0;
|
|
543
|
+
this.onChangeCurrentSelection(void 0, -1, 0);
|
|
544
|
+
};
|
|
545
|
+
UIBackupList.prototype.onChangeCurrentSelection = function (_, old, index) {
|
|
546
|
+
var _a, _b, _c;
|
|
547
|
+
(_a = this.elements[old]) === null || _a === void 0 ? void 0 : _a.setMod('active', false);
|
|
548
|
+
(_b = this.elements[index]) === null || _b === void 0 ? void 0 : _b.setMod('active', true);
|
|
549
|
+
(_c = this.elements[index]) === null || _c === void 0 ? void 0 : _c.focus();
|
|
550
|
+
this.j.e.fire(this, 'select', this.elements[index].data);
|
|
551
|
+
};
|
|
552
|
+
UIBackupList.prototype.onSelect = function (index) {
|
|
553
|
+
this.currentSelection = index;
|
|
554
|
+
};
|
|
555
|
+
UIBackupList.prototype.onChoose = function (index) {
|
|
556
|
+
this.j.e.fire(this, 'choose', this.elements[index !== null && index !== void 0 ? index : this.currentSelection].data);
|
|
557
|
+
};
|
|
558
|
+
UIBackupList.prototype.selectNext = function () {
|
|
559
|
+
if (this.currentSelection + 1 <= this.elements.length - 1) {
|
|
560
|
+
this.currentSelection += 1;
|
|
561
|
+
}
|
|
562
|
+
else {
|
|
563
|
+
this.currentSelection = 0;
|
|
564
|
+
}
|
|
565
|
+
};
|
|
566
|
+
UIBackupList.prototype.selectPrevious = function () {
|
|
567
|
+
if (this.currentSelection - 1 >= 0) {
|
|
568
|
+
this.currentSelection -= 1;
|
|
569
|
+
}
|
|
570
|
+
else {
|
|
571
|
+
this.currentSelection = this.elements.length - 1;
|
|
572
|
+
}
|
|
573
|
+
};
|
|
574
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .gn)([
|
|
575
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('currentSelection')
|
|
576
|
+
], UIBackupList.prototype, "onChangeCurrentSelection", null);
|
|
577
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .gn)([
|
|
578
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
579
|
+
], UIBackupList.prototype, "onSelect", null);
|
|
580
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .gn)([
|
|
581
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
582
|
+
], UIBackupList.prototype, "onChoose", null);
|
|
583
|
+
UIBackupList = (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .gn)([
|
|
584
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.component
|
|
585
|
+
], UIBackupList);
|
|
586
|
+
return UIBackupList;
|
|
587
|
+
}(jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UIGroup */ .qe));
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
/***/ })
|
|
591
|
+
|
|
592
|
+
},
|
|
593
|
+
/******/ function(__webpack_require__) { // webpackRuntimeModules
|
|
594
|
+
/******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
|
|
595
|
+
/******/ var __webpack_exports__ = (__webpack_exec__(32100));
|
|
596
|
+
/******/ return __webpack_exports__;
|
|
597
|
+
/******/ }
|
|
598
|
+
]);
|
|
599
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.jodit-ui-backup-box{border-bottom:1px solid var(--jd-color-border);display:flex;height:100%;justify-content:stretch;max-height:100%}.jodit-ui-backup-box__list{border-right:1px solid var(--jd-color-border);min-width:200px;overflow:auto;padding:var(--jd-padding-default);user-select:none}.jodit-ui-backup-box__preview{flex:1;overflow:auto;padding:var(--jd-padding-default)}.jodit-ui-backup-box__empty{height:30px;margin:auto;opacity:.3;position:relative;top:50%;width:100px}.jodit-ui-backup-item{cursor:pointer;padding:var(--jd-padding-default)}.jodit-ui-backup-item:hover{background-color:var(--jd-color-background-selection)}.jodit-ui-backup-item_active_true{background-color:var(--jd-color-background-selection-opacity50);outline:1px solid var(--jd-color-border-active)}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* jodit-pro - PRO Version of Jodit Editor
|
|
3
|
+
* Author: Chupurnov Valeriy <chupurnov@gmail.com>
|
|
4
|
+
* Version: v2.0.0-beta.10
|
|
5
|
+
* Url: https://xdsoft.net/jodit/pro/
|
|
6
|
+
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o=e();for(var n in o)("object"==typeof exports?exports:t)[n]=o[n]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[391],{50722:function(t){t.exports='<?xml version="1.0" ?><svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><title/><g id="Upload"><path d="M16,26h8V50a2,2,0,0,0,2,2H38a2,2,0,0,0,2-2V26h8a2,2,0,0,0,1.4946-3.3291l-16-18a2,2,0,0,0-2.9892,0l-16,18A2,2,0,0,0,16,26ZM32,9.0107,43.5464,22H38a2,2,0,0,0-2,2V48H28V24a2,2,0,0,0-2-2H20.4536Z"/><path d="M53,42a2,2,0,0,0-2,2V54a2.0023,2.0023,0,0,1-2,2H15a2.0023,2.0023,0,0,1-2-2V44a2,2,0,0,0-4,0V54a6.0066,6.0066,0,0,0,6,6H49a6.0066,6.0066,0,0,0,6-6V44A2,2,0,0,0,53,42Z"/></g></svg>'},32100:function(t,e,o){"use strict";o.r(e),o.d(e,{backup:function(){return l}});var n=o(97582),i=(o(19775),o(7324)),r=o(1844),s=o(71298),c=o(75004),a=o(50526),u=o(88292),l=function(t){function e(){var e,o=this;return(o=t.apply(this,(0,n.ev)([],(0,n.CR)(arguments),!1))||this).hasStyle=!u.y.fatMode,o.buttons=[{name:"backup.restore",group:"history"}],o.__box=new s.j(o.j),o.__dialog=null,o.__storage=null!==(e=o.jodit.o.backup.remoteStore)&&void 0!==e?e:new r.W(o.jodit),o.timeout=0,o}return(0,n.ZT)(e,t),e.prototype.afterInit=function(t){var e=this;t.registerCommand("saveBackup",this.onSaveBackup).registerCommand("openBackupDialog",{exec:this.onOpenBackupDialog,hotkeys:t.o.backup.hotkeys});var o=function(){e.timeout=t.async.setTimeout((function(){e.onSaveBackup(),o()}),1e3*t.o.backup.interval)};o(),t.e.on(this.__box,"choose",this.onSelectItem).on(t.ow,"beforeunload.backup",(function(){e.onSaveBackup()}))},e.prototype.prepareDialog=function(){this.__dialog||(this.__dialog=this.j.dlg({minWidth:this.j.o.backup.dialogWidth,buttons:["fullsize","dialog.close"]}).setContent(this.__box.container)),this.__dialog.setHeader(this.jodit.i18n("Restore")),this.addButtonsToDialog()},e.prototype.onSaveBackup=function(){this.__storage.add({created:new Date,html:this.j.value})},e.prototype.onOpenBackupDialog=function(){return(0,n.mG)(this,void 0,Promise,(function(){var t,e;return(0,n.Jh)(this,(function(o){switch(o.label){case 0:return this.prepareDialog(),(t=this.__dialog)?(t.open().setModal(!0),[4,this.__storage.items()]):[2];case 1:return e=o.sent(),this.__box.build((0,n.ev)([{created:new Date,html:this.j.value}],(0,n.CR)(e),!1)),t.calcAutoSize(),t.setPosition(),[2]}}))}))},e.prototype.onSelectItem=function(t){var e;null===(e=this.__dialog)||void 0===e||e.close(),this.j.value=t.html,this.j.s.focus()},e.prototype.addButtonsToDialog=function(){var t,e=this,o=this.jodit,n=(0,c.zx)(o,{name:"ok",tabIndex:0,variant:"primary",text:"Ok"}),i=(0,c.zx)(o,{variant:"secondary",tabIndex:0,text:"Cancel"}),r=(0,c.zx)(o,{name:"clear",tabIndex:0,variant:"secondary",text:"Remove all"});n.onAction((function(){e.__box.chooseSelected()})),i.onAction((function(){var t;null===(t=e.__dialog)||void 0===t||t.close()})),r.onAction((function(){o.confirm("Are you sure?",void 0,(function(t){var o;t&&(e.__storage.clear(),null===(o=e.__dialog)||void 0===o||o.close())}))}));var s=new c.eC(o,[r,i,n]);s.container.style.margin="0",s.container.style.justifyContent="flex-end",s.container.style.width="100%",null===(t=this.__dialog)||void 0===t||t.setFooter(s)},e.prototype.beforeDestruct=function(){var t,e=this.j;e.async.clearTimeout(this.timeout),e.e.off(this.__box,"choose",this.onSelectItem).off(e.ow,"beforeunload.backup"),this.__box.destruct(),null===(t=this.__dialog)||void 0===t||t.destruct()},e.requires=["license"],(0,n.gn)([a.autobind],e.prototype,"onSaveBackup",null),(0,n.gn)([a.autobind],e.prototype,"onOpenBackupDialog",null),(0,n.gn)([a.autobind],e.prototype,"onSelectItem",null),e}(i.S);u.y.plugins.add("backup",l)},19775:function(t,e,o){"use strict";var n=o(77628),i=o(10503),r=o(81160);n.D.prototype.backup={interval:30,limit:50,dialogWidth:700,hotkeys:["ctrl+shift+b","cmd+shift+b"]},n.D.prototype.controls.backup={store:{command:"saveBackup",text:"Save backup now"},restore:{tooltip:"Restore",list:["backup.store"],exec:function(t){t.execCommand("openBackupDialog")}}},i.J.set("restore",o(50722)),(0,r.xl)(o(10188))},10188:function(t,e,o){"use strict";o.r(e)},1844:function(t,e,o){"use strict";o.d(e,{W:function(){return i}});var n=o(97582),i=function(){function t(t){this.jodit=t,this.key="backup.default.storage"}return t.prototype.add=function(t){return(0,n.mG)(this,void 0,Promise,(function(){var e;return(0,n.Jh)(this,(function(o){return t.html.trim().length?((e=this.jodit.storage.get(this.key)||[]).find((function(e){return e.html===t.html}))||(e.unshift(t),e.length>this.jodit.o.backup.limit&&(e.length=this.jodit.o.backup.limit),this.jodit.storage.set(this.key,e)),[2,!1]):[2,!1]}))}))},t.prototype.items=function(){return Promise.resolve(this.jodit.storage.get(this.key)||[])},t.prototype.clear=function(){return this.jodit.storage.delete(this.key),Promise.resolve(!1)},t}()},71298:function(t,e,o){"use strict";o.d(e,{j:function(){return c}});var n=o(97582),i=o(50526),r=o(75004),s=o(75696),c=function(t){function e(e){var o=t.call(this,e)||this;return o.list=new s.A(o.j),o.preview=o.j.c.div(o.getFullElName("preview")),o.container.appendChild(o.list.container),o.container.appendChild(o.preview),o.list.container.classList.add(o.getFullElName("list")),e.e.on(o.list,"select",o.onSelectItem).on(o.list,"choose",o.onChooseItem),o}return(0,n.ZT)(e,t),e.prototype.className=function(){return"UIBackupBox"},e.prototype.build=function(t){this.preview.innerHTML="",this.list.build(t)},e.prototype.destruct=function(){return this.j.e.off(this.list,"select",this.onSelectItem),this.list.destruct(),t.prototype.destruct.call(this)},e.prototype.onSelectItem=function(t){this.latestSelected=t,this.preview.innerHTML=t.html||'<div class="'.concat(this.getFullElName("empty"),'">').concat(this.j.i18n("Empty"),"</div>")},e.prototype.onChooseItem=function(t){this.j.e.fire(this,"choose",t)},e.prototype.chooseSelected=function(){this.onChooseItem(this.latestSelected)},(0,n.gn)([i.autobind],e.prototype,"onSelectItem",null),(0,n.gn)([i.autobind],e.prototype,"onChooseItem",null),(0,n.gn)([i.component],e)}(r.u1)},64741:function(t,e,o){"use strict";o.d(e,{O:function(){return s}});var n=o(97582),i=o(75004),r=o(95582),s=function(t){function e(e,o){var n=t.call(this,e)||this;return n.data=o,n.container.innerHTML=n.formatDate(o.created),(0,r.attr)(n.container,"tabIndex",0),n}return(0,n.ZT)(e,t),e.prototype.className=function(){return"UIBackupItem"},e.prototype.formatDate=function(t){var e=new Date,o=(0,r.isString)(t)?new Date(t):t,n=(e.getTime()-o.getTime())/1e3;return(0,r.isFunction)(this.j.o.backup.formatDate)?this.j.o.backup.formatDate(o):.2>n?this.j.i18n("Current"):60>n?this.j.i18n("Less minute"):n>3600?n>86400?"".concat(o.toDateString()," ").concat(o.toLocaleTimeString()):this.j.i18n("%s hours ago",Math.floor(n/3600)):this.j.i18n("%s minutes ago",Math.floor(n/60))},e.prototype.focus=function(){this.container.focus()},e}(i.u1)},75696:function(t,e,o){"use strict";o.d(e,{A:function(){return u}});var n=o(97582),i=o(75004),r=o(50526),s=o(64741),c=o(11612),a=o(95582),u=function(t){function e(e){var o=t.call(this,e)||this;return o.elements=[],o.currentSelection=-1,e.e.on(o.container,"keydown",(function(t){switch(t.key){case c.KEY_ENTER:t.preventDefault(),t.stopPropagation(),o.onChoose(o.currentSelection);break;case c.KEY_DOWN:o.selectNext();break;case c.KEY_UP:o.selectPrevious()}})),o}return(0,n.ZT)(e,t),e.prototype.className=function(){return"UIBackupList"},e.prototype.createContainer=function(e){var o=t.prototype.createContainer.call(this,e);return(0,a.attr)(o,"tabIndex","-1"),o},e.prototype.build=function(t){var e=this;this.clear(),t.forEach((function(t,o){var n=new s.O(e.jodit,t);e.append(n),e.j.e.on(n.container,"focus",(function(){return e.onSelect(o)})).on(n.container,"click",(function(){return e.onSelect(o)})).on(n.container,"dblclick",(function(){return e.onChoose(o)}))})),this.currentSelection=0,this.onChangeCurrentSelection(void 0,-1,0)},e.prototype.onChangeCurrentSelection=function(t,e,o){var n,i,r;null===(n=this.elements[e])||void 0===n||n.setMod("active",!1),null===(i=this.elements[o])||void 0===i||i.setMod("active",!0),null===(r=this.elements[o])||void 0===r||r.focus(),this.j.e.fire(this,"select",this.elements[o].data)},e.prototype.onSelect=function(t){this.currentSelection=t},e.prototype.onChoose=function(t){this.j.e.fire(this,"choose",this.elements[null!=t?t:this.currentSelection].data)},e.prototype.selectNext=function(){this.currentSelection+1>this.elements.length-1?this.currentSelection=0:this.currentSelection+=1},e.prototype.selectPrevious=function(){0>this.currentSelection-1?this.currentSelection=this.elements.length-1:this.currentSelection-=1},(0,n.gn)([(0,r.watch)("currentSelection")],e.prototype,"onChangeCurrentSelection",null),(0,n.gn)([r.autobind],e.prototype,"onSelect",null),(0,n.gn)([r.autobind],e.prototype,"onChoose",null),(0,n.gn)([r.component],e)}(i.qe)}},function(t){return t(t.s=32100)}])}));
|