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,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 n=e();for(var a in n)("object"==typeof exports?exports:t)[a]=n[a]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[81],{9026:function(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M13.98 22L6 30l7.98 8v-6H28v-4H13.98v-6zM42 18l-7.98-8v6H20v4h14.02v6L42 18z"/> <path d="M0 0h48v48H0z" fill="none"/> </svg>'},70134:function(t){t.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"> <path d="M4.545 6.714 4.11 8H3l1.862-5h1.284L8 8H6.833l-.435-1.286H4.545zm1.634-.736L5.5 3.956h-.049l-.679 2.022H6.18z"/> <path d="M0 2a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v3h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2a2 2 0 0 1-2-2V2zm2-1a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2zm7.138 9.995c.193.301.402.583.63.846-.748.575-1.673 1.001-2.768 1.292.178.217.451.635.555.867 1.125-.359 2.08-.844 2.886-1.494.777.665 1.739 1.165 2.93 1.472.133-.254.414-.673.629-.89-1.125-.253-2.057-.694-2.82-1.284.681-.747 1.222-1.651 1.621-2.757H14V8h-3v1.047h.765c-.318.844-.74 1.546-1.272 2.13a6.066 6.066 0 0 1-.415-.492 1.988 1.988 0 0 1-.94.31z"/> </svg>'},50461:function(t,e,n){"use strict";var a=n(77628),i=n(10503);a.D.prototype.translate={hotkeys:{translateSelection:["ctrl+shift+o","cmd+shift+o"],translateOptions:["ctrl+shift+p","cmd+shift+p"]},provider:"google",googleProviderOptions:{url:"https://translation.googleapis.com/language/translate/v2",key:""},defaultSourceLang:"",defaultTargetLang:"de"},a.D.prototype.controls.translate={translate:{tooltip:"Translate selected text",icon:"translate",command:"translate",exec:function(t){t.execCommand("translate")},list:["Options"],childExec:function(t,e,n){t.execCommand("translate"+n.control.name)},mods:{stroke:!1}}},i.J.set("translate",n(70134)).set("translate-swap",n(9026))},88987:function(t,e,n){"use strict";n.d(e,{A:function(){return o}});var a=n(97582),i=(n(52378),n(11612),n(89569)),o=function(){function t(t){this.jodit=t}return t.prototype.__fetch=function(t,e){var n=this;void 0===e&&(e={});var i=this.jodit.o.translate.googleProviderOptions;return this.jodit.fetch(i.url+"?key="+i.key,{method:"POST",data:(0,a.pi)((0,a.pi)({},e),{ui:this.jodit.o.language}),contentType:"application/json; charset=utf-8",withCredentials:!1}).then((function(t){return t.json()})).catch((function(t){try{n.jodit.message.error(t.json().message)}catch(t){}}))},t.prototype.translate=function(t,e,n){return this.__fetch("translate",{q:t,source:e,target:n,format:"html"}).then((function(t){return{text:t.data.translations[0].translatedText}}))},t.prototype.supportedLanguages=function(){return Promise.resolve({langs:i.M})},t}()},89569:function(t,e,n){"use strict";n.d(e,{M:function(){return a}});var a={Afrikaans:"af",Albanian:"sq",Amharic:"am",Arabic:"ar",Armenian:"hy","Assamese*":"as","Aymara*":"ay",Azerbaijani:"az","Bambara*":"bm",Basque:"eu",Belarusian:"be",Bengali:"bn","Bhojpuri*":"bho",Bosnian:"bs",Bulgarian:"bg",Catalan:"ca",Cebuano:"ceb","Chinese (Simplified)":"zh-CN","Chinese (Traditional)":"zh-TW",Corsican:"co",Croatian:"hr",Czech:"cs",Danish:"da","Dhivehi*":"dv","Dogri*":"doi",Dutch:"nl",English:"en",Esperanto:"eo",Estonian:"et","Ewe*":"ee","Filipino (Tagalog)":"fil",Finnish:"fi",French:"fr",Frisian:"fy",Galician:"gl",Georgian:"ka",German:"de",Greek:"el","Guarani*":"gn",Gujarati:"gu","Haitian Creole":"ht",Hausa:"ha",Hawaiian:"haw",Hebrew:"he",Hindi:"hi",Hmong:"hmn",Hungarian:"hu",Icelandic:"is",Igbo:"ig","Ilocano*":"ilo",Indonesian:"id",Irish:"ga",Italian:"it",Japanese:"ja",Kannada:"kn",Kazakh:"kk",Khmer:"km",Kinyarwanda:"rw","Konkani*":"gom",Korean:"ko","Krio*":"kri",Kurdish:"ku","Kurdish (Sorani)*":"ckb",Kyrgyz:"ky",Lao:"lo",Latin:"la",Latvian:"lv","Lingala*":"ln",Lithuanian:"lt","Luganda*":"lg",Luxembourgish:"lb",Macedonian:"mk","Maithili*":"mai",Malagasy:"mg",Malay:"ms",Malayalam:"ml",Maltese:"mt",Maori:"mi",Marathi:"mr","Meiteilon (Manipuri)*":"mni-Mtei",Mizo:"lus",Mongolian:"mn","Myanmar (Burmese)":"my",Nepali:"ne",Norwegian:"no","Nyanja (Chichewa)":"ny","Odia (Oriya)":"or","Oromo*":"om",Pashto:"ps",Persian:"fa",Polish:"pl",Portuguese:"pt",Punjabi:"pa","Quechua*":"qu",Romanian:"ro",Russian:"ru",Samoan:"sm","Sanskrit*":"sa","Scots Gaelic":"gd","Sepedi*":"nso",Serbian:"sr",Sesotho:"st",Shona:"sn",Sindhi:"sd","Sinhala (Sinhalese)":"si",Slovak:"sk",Slovenian:"sl",Somali:"so",Spanish:"es",Sundanese:"su",Swahili:"sw",Swedish:"sv","Tagalog (Filipino)":"tl",Tajik:"tg",Tamil:"ta",Tatar:"tt",Telugu:"te",Thai:"th","Tigrinya*":"ti","Tsonga*":"ts",Turkish:"tr",Turkmen:"tk","Twi (Akan)*":"ak",Ukrainian:"uk",Urdu:"ur",Uyghur:"ug",Uzbek:"uz",Vietnamese:"vi",Welsh:"cy",Xhosa:"xh",Yiddish:"yi",Yoruba:"yo",Zulu:"zu"}},46753:function(t,e,n){"use strict";n.r(e),n.d(e,{Translate:function(){return g}});var a=n(97582),i=n(7324),o=n(88292),r=(n(52378),n(4682)),s=n(3262),l=n(50526),c=n(88987),u=(n(50461),n(16874)),h=n(53025),g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttons=[{name:"translate.translate",group:"insert"}],e.state={sourceLang:e.jodit.o.translate.defaultSourceLang||"en",targetLang:e.jodit.o.translate.defaultTargetLang},e}return(0,a.ZT)(e,t),e.prototype.__getProvider=function(){var t=this.jodit.options.translate.provider;if((0,r.H)(t)){if("google"===t)return new c.A(this.j);throw new Error("Unknown provider")}return t(this.jodit)},e.prototype.afterInit=function(t){var e=this,n=(0,s.X)(t.o.language,o.y.defaultOptions.language),i=(0,s.X)(t.o.language,n),l=this.__getProvider();t.registerCommand("translateOptions",{exec:function(){return(0,a.mG)(e,void 0,void 0,(function(){var e,n,i,o,r=this;return(0,a.Jh)(this,(function(a){switch(a.label){case 0:return e=this.state,(n=t.dlg()).setHeader("Translate options"),[4,l.supportedLanguages()];case 1:return i=a.sent(),o=new u.h(n,this.state,{sourceList:i.langs,targetList:i.langs,onChange:function(t){e=t}}),n.setContent(o),n.setFooter([(0,h.zx)(t,"cancel","Cancel").onAction((function(){return n.close()})),(0,h.zx)(t,"ok","Save","primary").onAction((function(){r.state=e,n.close()}))]),o.bindDestruct(n),n.setSize(500,400).open(!0),[2]}}))}))},hotkeys:t.o.translate.hotkeys.translateOptions}).registerCommand("translate",{exec:function(){var n=t.s.html;if(n)return l.translate(n,e.state.sourceLang&&"auto"!==e.state.sourceLang?e.state.sourceLang:i,e.state.targetLang).then((function(e){t.s.range.deleteContents(),t.s.insertNode(t.createInside.text(e.text))})).catch((function(e){t.message.error((0,r.H)(e)?e:e.message)}));t.message.error("Select text for translate")},hotkeys:t.o.translate.hotkeys.translateSelection})},e.prototype.beforeDestruct=function(t){},e.requires=["license"],(0,a.gn)([l.persistent],e.prototype,"state",void 0),e}(i.S);o.y.plugins.add("translate",g)},48458:function(t,e,n){"use strict";n.d(e,{r:function(){return h}});var a=n(97582),i=n(84789),o=n(50526),r=n(44913),s=n(77233),l=n(77902),c=n(95582),u=n(11612),h=function(t){function e(e,n){var a,i=this;(i=t.call(this,e,n)||this).options=n,i.state={active:""},i.state.active=n.active;var o=new l.u(e,{placeholder:e.i18n("Filter"),icon:"search",onChange:i.__onChangeFilter,clearButton:!0});return null===(a=i.getElm("input"))||void 0===a||a.appendChild(o.container),i.__onActiveChange(),i}return(0,a.ZT)(e,t),e.prototype.className=function(){return"UITranslateList"},Object.defineProperty(e.prototype,"items",{get:function(){return this.getElms("item")},enumerable:!1,configurable:!0}),e.prototype.render=function(t){var e=this,n=[];return Object.keys(t.list).sort().forEach((function(a){var i=t.list[a];n.push("<a role='button' tabindex='0' class='&__item' data-lang='".concat(i,"'>\n\t\t\t\t\t\t<span class='&__item-key'>").concat(i,"</span>\n\t\t\t\t\t\t<span class='&__item-title'>").concat(e.j.i18n(a),"</span>\n\t\t\t\t\t</a>"))})),"<div class='&'>\n\t\t\t<div class='&__input'></div>\n\t\t\t<div class='&__list'>".concat(n.join(""),"</div>\n\t\t</div>")},e.prototype.__onChangeFilter=function(t){this.items.forEach((function(e){var n,a,i=null!==(a=null===(n=e.textContent)||void 0===n?void 0:n.toLowerCase())&&void 0!==a?a:"";(0,s.L)(e,"data-hidden","true"!==(0,s.L)(e,"data-active")&&!i.includes(t.toLowerCase()))}))},e.prototype.__scrollToActive=function(){var t=this.container.querySelector('[data-active="true"]'),e=this.getElm("list");t&&e&&(0,c.scrollIntoViewIfNeeded)(t,e,this.j.od)},e.prototype.onClickItem=function(t){if("keydown"!==t.type||!("key"in t)||t.key===u.KEY_ENTER){var e=t.target;if(r.i.isHTMLElement(e)&&e.getAttribute("data-lang")){var n=(0,s.L)(e,"data-lang");this.options.onChange(n),this.state.active=n}}},e.prototype.__onActiveChange=function(){var t=this;this.items.forEach((function(e){return(0,s.L)(e,"data-active",(0,s.L)(e,"data-lang")===t.state.active)})),this.__scrollToActive()},(0,a.gn)([(0,o.debounce)()],e.prototype,"__onChangeFilter",null),(0,a.gn)([(0,o.watch)(":afterOpen")],e.prototype,"__scrollToActive",null),(0,a.gn)([(0,o.watch)(["container:click","container:keydown"])],e.prototype,"onClickItem",null),(0,a.gn)([(0,o.watch)("state.active"),(0,o.debounce)()],e.prototype,"__onActiveChange",null),(0,a.gn)([o.component],e)}(i.u)},16874:function(t,e,n){"use strict";n.d(e,{h:function(){return s}});var a=n(97582),i=n(75004),o=n(50526),r=n(48458),s=function(t){function e(e,n,i){var o,s,l=this;return(l=t.call(this,e)||this).state=n,l.options=i,l.__sourceList=new r.r(e,{list:i.sourceList,active:n.sourceLang,onChange:function(t){l.state.sourceLang=t,l.options.onChange((0,a.pi)({},l.state))}}),null===(o=l.getElm("source-list"))||void 0===o||o.appendChild(l.__sourceList.container),l.__targetList=new r.r(e,{list:i.targetList,active:n.targetLang,onChange:function(t){l.state.targetLang=t,l.options.onChange((0,a.pi)({},l.state))}}),null===(s=l.getElm("target-list"))||void 0===s||s.appendChild(l.__targetList.container),l}return(0,a.ZT)(e,t),e.prototype.className=function(){return"UITranslateSettings"},e.prototype.render=function(){return"<div>\n\t\t\t<div class='&__list &__source-list'></div>\n\t\t\t<div class='&__arrow'>\n\t\t\t\t<a class='&__arrow-swap'>*translate-swap*</a>\n\t\t\t</div>\n\t\t\t<div class='&__list &__target-list'></div>\n\t\t</div>"},e.prototype.__onSwap=function(){var t=this.state.sourceLang;this.state.sourceLang=this.state.targetLang,this.state.targetLang=t,this.__sourceList.state.active=this.state.sourceLang,this.__targetList.state.active=this.state.targetLang,this.options.onChange((0,a.pi)({},this.state))},(0,a.gn)([(0,o.watch)("arrow-swap:click")],e.prototype,"__onSwap",null),(0,a.gn)([o.component],e)}(i.u1)}},function(t){return t(t.s=46753)}])}));
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
.jodit-ui-tuner {
|
|
10
|
+
position: absolute;
|
|
11
|
+
z-index: 1;
|
|
12
|
+
top: 0;
|
|
13
|
+
right: 0;
|
|
14
|
+
left: 0;
|
|
15
|
+
}
|
|
16
|
+
.jodit-ui-tuner__handle {
|
|
17
|
+
width: 18px;
|
|
18
|
+
height: 18px;
|
|
19
|
+
background-color: var(--jd-color-background-gray);
|
|
20
|
+
background-image: url("data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%208%208%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22%23606673%22%3E%0A%09%3Ccircle%20cx%3D%226.5%22%20cy%3D%221.5%22%20r%3D%221.5%22%2F%3E%0A%09%3Ccircle%20cx%3D%226.5%22%20cy%3D%226.5%22%20r%3D%221.5%22%2F%3E%0A%09%3Ccircle%20cx%3D%221.5%22%20cy%3D%221.5%22%20r%3D%221.5%22%2F%3E%0A%09%3Ccircle%20cx%3D%221.5%22%20cy%3D%226.5%22%20r%3D%221.5%22%2F%3E%0A%3C%2Fsvg%3E%0A");
|
|
21
|
+
background-position: center;
|
|
22
|
+
background-repeat: no-repeat;
|
|
23
|
+
background-size: 8px;
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
opacity: 0.5;
|
|
26
|
+
}
|
|
27
|
+
.jodit-ui-tuner_opened_true .jodit-ui-tuner__handle,
|
|
28
|
+
.jodit-ui-tuner__handle:hover {
|
|
29
|
+
opacity: 1;
|
|
30
|
+
}
|
|
31
|
+
.jodit-ui-tuner__toolbar {
|
|
32
|
+
display: none;
|
|
33
|
+
}
|
|
34
|
+
.jodit-ui-tuner_opened_true .jodit-ui-tuner__toolbar {
|
|
35
|
+
display: block;
|
|
36
|
+
}
|
|
37
|
+
|
|
@@ -0,0 +1,397 @@
|
|
|
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
|
+
"use strict";
|
|
10
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
11
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
12
|
+
module.exports = factory();
|
|
13
|
+
else if(typeof define === 'function' && define.amd)
|
|
14
|
+
define([], factory);
|
|
15
|
+
else {
|
|
16
|
+
var a = factory();
|
|
17
|
+
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
18
|
+
}
|
|
19
|
+
})(self, function() {
|
|
20
|
+
return (self["webpackChunkjodit_pro"] = self["webpackChunkjodit_pro"] || []).push([[288],{
|
|
21
|
+
|
|
22
|
+
/***/ 82571:
|
|
23
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
24
|
+
|
|
25
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97582);
|
|
26
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77628);
|
|
27
|
+
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8138);
|
|
28
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(95582);
|
|
29
|
+
/*!
|
|
30
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
31
|
+
* See LICENSE.md in the project root for license information.
|
|
32
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
var common = ['tune.up', 'tune.remove', 'tune.down'], header = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__spreadArray */ .ev)([
|
|
39
|
+
'tune.h1',
|
|
40
|
+
'tune.h2',
|
|
41
|
+
'tune.h3',
|
|
42
|
+
'\n',
|
|
43
|
+
'tune.h4',
|
|
44
|
+
'tune.h5',
|
|
45
|
+
'tune.h6',
|
|
46
|
+
'\n'
|
|
47
|
+
], (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__read */ .CR)(common), false);
|
|
48
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config.prototype.tuneBlock */ .D.prototype.tuneBlock = {
|
|
49
|
+
popup: {
|
|
50
|
+
p: common,
|
|
51
|
+
table: common,
|
|
52
|
+
img: common,
|
|
53
|
+
blockquote: common,
|
|
54
|
+
div: common,
|
|
55
|
+
pre: (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__spreadArray */ .ev)(['tune.editPre'], (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__read */ .CR)(common), false),
|
|
56
|
+
h1: header,
|
|
57
|
+
h2: header,
|
|
58
|
+
h3: header,
|
|
59
|
+
h4: header,
|
|
60
|
+
h5: header,
|
|
61
|
+
h6: header
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
function headerControl(h) {
|
|
65
|
+
return {
|
|
66
|
+
icon: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50">' +
|
|
67
|
+
'<text dominant-baseline="text-before-edge" style="font: 45px sans-serif" x="0" y="0">' +
|
|
68
|
+
h.toUpperCase() +
|
|
69
|
+
'</text>' +
|
|
70
|
+
'</svg>',
|
|
71
|
+
isActive: function (editor, control, button) {
|
|
72
|
+
var _a;
|
|
73
|
+
return ((_a = button === null || button === void 0 ? void 0 : button.target) === null || _a === void 0 ? void 0 : _a.tagName.toLowerCase()) === h;
|
|
74
|
+
},
|
|
75
|
+
exec: function (editor, target) {
|
|
76
|
+
if (target) {
|
|
77
|
+
editor.selection.save();
|
|
78
|
+
var header_1 = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.replace */ .i.replace(target, h, editor.createInside);
|
|
79
|
+
editor.selection.restore();
|
|
80
|
+
editor.e.fire('synchro');
|
|
81
|
+
editor.e.fire('afterExecTune.tune', header_1);
|
|
82
|
+
}
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
function moveTo(up) {
|
|
88
|
+
var sibling = up ? 'previousSibling' : 'nextSibling';
|
|
89
|
+
return {
|
|
90
|
+
icon: up ? 'angle-up' : 'angle-down',
|
|
91
|
+
isDisabled: function (editor, control, button) {
|
|
92
|
+
var _a;
|
|
93
|
+
return !((_a = button === null || button === void 0 ? void 0 : button.target) === null || _a === void 0 ? void 0 : _a[sibling]);
|
|
94
|
+
},
|
|
95
|
+
exec: function (editor, target) {
|
|
96
|
+
var siblingNode = target === null || target === void 0 ? void 0 : target[sibling];
|
|
97
|
+
if (target && siblingNode) {
|
|
98
|
+
editor.selection.save();
|
|
99
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.call)(up ? jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.before */ .i.before : jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.after */ .i.after, siblingNode, target);
|
|
100
|
+
editor.selection.restore();
|
|
101
|
+
}
|
|
102
|
+
editor.e.fire('synchro');
|
|
103
|
+
editor.e.fire('afterExecTune.tune');
|
|
104
|
+
return true;
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config.prototype.controls.tune */ .D.prototype.controls.tune = {
|
|
109
|
+
h1: headerControl('h1'),
|
|
110
|
+
h2: headerControl('h2'),
|
|
111
|
+
h3: headerControl('h3'),
|
|
112
|
+
h4: headerControl('h4'),
|
|
113
|
+
h5: headerControl('h5'),
|
|
114
|
+
h6: headerControl('h6'),
|
|
115
|
+
up: moveTo(true),
|
|
116
|
+
down: moveTo(false),
|
|
117
|
+
editPre: {
|
|
118
|
+
icon: 'pencil',
|
|
119
|
+
exec: function (editor, target) {
|
|
120
|
+
editor.e.fire('editPreInPasteCode', target);
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
remove: {
|
|
124
|
+
icon: 'bin',
|
|
125
|
+
exec: function (editor, target) {
|
|
126
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeRemove */ .i.safeRemove(target);
|
|
127
|
+
editor.e.fire('synchro');
|
|
128
|
+
editor.e.fire('closeTuner.tune');
|
|
129
|
+
editor.e.fire('hideTuner.tune');
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
/***/ }),
|
|
136
|
+
|
|
137
|
+
/***/ 66724:
|
|
138
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
139
|
+
|
|
140
|
+
__webpack_require__.r(__webpack_exports__);
|
|
141
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
142
|
+
/* harmony export */ "tuneBlock": function() { return /* binding */ tuneBlock; }
|
|
143
|
+
/* harmony export */ });
|
|
144
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(97582);
|
|
145
|
+
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7324);
|
|
146
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50526);
|
|
147
|
+
/* harmony import */ var _JoditPro__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(88292);
|
|
148
|
+
/* harmony import */ var _ui_tuner_tuner__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(13027);
|
|
149
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(82571);
|
|
150
|
+
/*!
|
|
151
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
152
|
+
* See LICENSE.md in the project root for license information.
|
|
153
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
154
|
+
*/
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Tune block with popup: move, align, change block tag, and another options
|
|
163
|
+
*/
|
|
164
|
+
var tuneBlock = /** @class */ (function (_super) {
|
|
165
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__extends */ .ZT)(tuneBlock, _super);
|
|
166
|
+
function tuneBlock() {
|
|
167
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
168
|
+
}
|
|
169
|
+
tuneBlock.prototype.afterInit = function (jodit) {
|
|
170
|
+
this.tuner = new _ui_tuner_tuner__WEBPACK_IMPORTED_MODULE_3__/* .UITuner */ .x(jodit);
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* Handler: click on an element outside the editor or the keyboard closes the tuner
|
|
174
|
+
*/
|
|
175
|
+
tuneBlock.prototype.hideTuner = function () {
|
|
176
|
+
this.tuner.hide();
|
|
177
|
+
};
|
|
178
|
+
tuneBlock.prototype.onChangeSelection = function () {
|
|
179
|
+
if (!this.j.s.isCollapsed()) {
|
|
180
|
+
this.hideTuner();
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* Handler: click on an element inside the editor
|
|
185
|
+
*/
|
|
186
|
+
tuneBlock.prototype.onClickInBlock = function (_) {
|
|
187
|
+
if (this.j.s.isCollapsed()) {
|
|
188
|
+
this.tuner.show();
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
tuneBlock.prototype.beforeDestruct = function (jodit) {
|
|
192
|
+
this.tuner.destruct();
|
|
193
|
+
};
|
|
194
|
+
/** @override */
|
|
195
|
+
tuneBlock.requires = ['license'];
|
|
196
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .gn)([
|
|
197
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(':outsideClick :keydown')
|
|
198
|
+
], tuneBlock.prototype, "hideTuner", null);
|
|
199
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .gn)([
|
|
200
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('j.ed:selectionchange'),
|
|
201
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.debounce)()
|
|
202
|
+
], tuneBlock.prototype, "onChangeSelection", null);
|
|
203
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .gn)([
|
|
204
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(':click')
|
|
205
|
+
], tuneBlock.prototype, "onClickInBlock", null);
|
|
206
|
+
return tuneBlock;
|
|
207
|
+
}(jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plugin */ .S));
|
|
208
|
+
_JoditPro__WEBPACK_IMPORTED_MODULE_2__/* .JoditPro.plugins.add */ .y.plugins.add('tune-block', tuneBlock);
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
/***/ }),
|
|
212
|
+
|
|
213
|
+
/***/ 13027:
|
|
214
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
215
|
+
|
|
216
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
217
|
+
/* harmony export */ "x": function() { return /* binding */ UITuner; }
|
|
218
|
+
/* harmony export */ });
|
|
219
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(97582);
|
|
220
|
+
/* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(75004);
|
|
221
|
+
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8138);
|
|
222
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(95582);
|
|
223
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(50526);
|
|
224
|
+
/* harmony import */ var jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(45429);
|
|
225
|
+
/*!
|
|
226
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
227
|
+
* See LICENSE.md in the project root for license information.
|
|
228
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
229
|
+
*/
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
var UITuner = /** @class */ (function (_super) {
|
|
238
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__extends */ .ZT)(UITuner, _super);
|
|
239
|
+
function UITuner() {
|
|
240
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
241
|
+
_this.isShown = false;
|
|
242
|
+
_this.toolbar = (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_4__/* .makeCollection */ .R)(_this.j, _this);
|
|
243
|
+
_this.popup = new jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .Popup */ .GI(_this.j, false);
|
|
244
|
+
return _this;
|
|
245
|
+
}
|
|
246
|
+
UITuner.prototype.className = function () {
|
|
247
|
+
return 'UITuner';
|
|
248
|
+
};
|
|
249
|
+
UITuner.prototype.render = function () {
|
|
250
|
+
return "<div>\n\t\t\t<div class='&__handle' title='~Click to tune~'/>\n\t\t</div>";
|
|
251
|
+
};
|
|
252
|
+
/**
|
|
253
|
+
* Shows the tuner, even if it is already shown - recalculates its position
|
|
254
|
+
*/
|
|
255
|
+
UITuner.prototype.show = function () {
|
|
256
|
+
var _this = this;
|
|
257
|
+
var target = this.j.s.current();
|
|
258
|
+
if (!target) {
|
|
259
|
+
return this.hide();
|
|
260
|
+
}
|
|
261
|
+
var block = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.isBlock */ .i.isBlock(target)
|
|
262
|
+
? target
|
|
263
|
+
: jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.closest */ .i.closest(target, function (node) {
|
|
264
|
+
return Boolean(node &&
|
|
265
|
+
_this.j.o.tuneBlock.popup[node.nodeName.toLowerCase()]);
|
|
266
|
+
}, this.j.editor);
|
|
267
|
+
if (!block ||
|
|
268
|
+
block === this.j.editor ||
|
|
269
|
+
!this.j.o.tuneBlock.popup[block.tagName.toLowerCase()]) {
|
|
270
|
+
return this.hide();
|
|
271
|
+
}
|
|
272
|
+
this.currentBlock = block;
|
|
273
|
+
this.isShown = true;
|
|
274
|
+
this.closeToolbar();
|
|
275
|
+
this.calcPosition();
|
|
276
|
+
if (!this.container.parentNode) {
|
|
277
|
+
this.j.workplace.append(this.container);
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
/**
|
|
281
|
+
* Hides the tuner button
|
|
282
|
+
*/
|
|
283
|
+
UITuner.prototype.hide = function () {
|
|
284
|
+
if (this.isShown) {
|
|
285
|
+
this.isShown = false;
|
|
286
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeRemove */ .i.safeRemove(this.container);
|
|
287
|
+
this.closeToolbar();
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
/**
|
|
291
|
+
* Recalculates the position of the tuner button when scrolling the editor itself
|
|
292
|
+
*/
|
|
293
|
+
UITuner.prototype.onEditorScroll = function () {
|
|
294
|
+
if (this.isShown) {
|
|
295
|
+
this.calcPosition();
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
/**
|
|
299
|
+
* Calculates the position of the tuner in the editor so that it is always to the right of the block
|
|
300
|
+
*/
|
|
301
|
+
UITuner.prototype.calcPosition = function () {
|
|
302
|
+
var offset = 15;
|
|
303
|
+
var marginLeft = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.css)(this.j.editor, 'marginLeft');
|
|
304
|
+
var paddingLeft = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.css)(this.j.editor, 'paddingLeft');
|
|
305
|
+
var marginTop = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.css)(this.j.editor, 'marginTop');
|
|
306
|
+
var left = this.currentBlock.offsetWidth - offset + marginLeft + paddingLeft;
|
|
307
|
+
var top = this.currentBlock.offsetTop - this.j.editor.scrollTop + marginTop;
|
|
308
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.css)(this.container, {
|
|
309
|
+
transform: "translate3d(".concat(left, "px, ").concat(top, "px, 0)")
|
|
310
|
+
});
|
|
311
|
+
if (this.popup.isOpened) {
|
|
312
|
+
this.popup.updatePosition();
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
/**
|
|
316
|
+
* Handler: `afterExecTune.tune`
|
|
317
|
+
*/
|
|
318
|
+
UITuner.prototype.onAfterExecTune = function (newBlock) {
|
|
319
|
+
if (newBlock) {
|
|
320
|
+
this.currentBlock = newBlock;
|
|
321
|
+
}
|
|
322
|
+
this.calcPosition();
|
|
323
|
+
this.openToolbar();
|
|
324
|
+
};
|
|
325
|
+
/**
|
|
326
|
+
* To prevent the editor from losing focus when clicking on the handler - we will prevent the click
|
|
327
|
+
*/
|
|
328
|
+
UITuner.prototype.onClickPrevent = function (e) {
|
|
329
|
+
e.preventDefault();
|
|
330
|
+
e.stopPropagation();
|
|
331
|
+
};
|
|
332
|
+
/**
|
|
333
|
+
* Handler: click on the tuner button
|
|
334
|
+
*/
|
|
335
|
+
UITuner.prototype.onTargetClick = function () {
|
|
336
|
+
this.toggleToolbar();
|
|
337
|
+
};
|
|
338
|
+
/**
|
|
339
|
+
* Opens the tuner toolbar
|
|
340
|
+
*/
|
|
341
|
+
UITuner.prototype.openToolbar = function () {
|
|
342
|
+
this.setMod('opened', true);
|
|
343
|
+
this.toolbar.build(this.j.o.tuneBlock.popup[this.currentBlock.tagName.toLowerCase()], this.currentBlock);
|
|
344
|
+
this.popup.setContent(this.toolbar.container);
|
|
345
|
+
if (!this.popup.isOpened) {
|
|
346
|
+
var handle_1 = this.getElm('handle');
|
|
347
|
+
void 0;
|
|
348
|
+
this.popup.open(function () { return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.position)(handle_1); });
|
|
349
|
+
}
|
|
350
|
+
};
|
|
351
|
+
/**
|
|
352
|
+
* Closes the tuner toolbar
|
|
353
|
+
*/
|
|
354
|
+
UITuner.prototype.closeToolbar = function () {
|
|
355
|
+
this.setMod('opened', false);
|
|
356
|
+
this.popup.close();
|
|
357
|
+
};
|
|
358
|
+
UITuner.prototype.toggleToolbar = function () {
|
|
359
|
+
this.getMod('opened') ? this.closeToolbar() : this.openToolbar();
|
|
360
|
+
};
|
|
361
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .gn)([
|
|
362
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)(':hideTuner.tune')
|
|
363
|
+
], UITuner.prototype, "hide", null);
|
|
364
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .gn)([
|
|
365
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('j.editor:scroll'),
|
|
366
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.throttle)(10)
|
|
367
|
+
], UITuner.prototype, "onEditorScroll", null);
|
|
368
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .gn)([
|
|
369
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)(':afterExecTune.tune'),
|
|
370
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.idle)()
|
|
371
|
+
], UITuner.prototype, "onAfterExecTune", null);
|
|
372
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .gn)([
|
|
373
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('container:click container:mousedown')
|
|
374
|
+
], UITuner.prototype, "onClickPrevent", null);
|
|
375
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .gn)([
|
|
376
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('handle:click')
|
|
377
|
+
], UITuner.prototype, "onTargetClick", null);
|
|
378
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .gn)([
|
|
379
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)(':closeTuner.tune')
|
|
380
|
+
], UITuner.prototype, "closeToolbar", null);
|
|
381
|
+
UITuner = (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .gn)([
|
|
382
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.component
|
|
383
|
+
], UITuner);
|
|
384
|
+
return UITuner;
|
|
385
|
+
}(jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UIElement */ .u1));
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
/***/ })
|
|
389
|
+
|
|
390
|
+
},
|
|
391
|
+
/******/ function(__webpack_require__) { // webpackRuntimeModules
|
|
392
|
+
/******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
|
|
393
|
+
/******/ var __webpack_exports__ = (__webpack_exec__(66724));
|
|
394
|
+
/******/ return __webpack_exports__;
|
|
395
|
+
/******/ }
|
|
396
|
+
]);
|
|
397
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.jodit-ui-tuner{left:0;position:absolute;right:0;top:0;z-index:1}.jodit-ui-tuner__handle{background-color:var(--jd-color-background-gray);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23606673' viewBox='0 0 8 8'%3E%3Ccircle cx='6.5' cy='1.5' r='1.5'/%3E%3Ccircle cx='6.5' cy='6.5' r='1.5'/%3E%3Ccircle cx='1.5' cy='1.5' r='1.5'/%3E%3Ccircle cx='1.5' cy='6.5' r='1.5'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:8px;cursor:pointer;height:18px;opacity:.5;width:18px}.jodit-ui-tuner__handle:hover,.jodit-ui-tuner_opened_true .jodit-ui-tuner__handle{opacity:1}.jodit-ui-tuner__toolbar{display:none}.jodit-ui-tuner_opened_true .jodit-ui-tuner__toolbar{display:block}
|
|
@@ -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
|
+
"use strict";!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([[288],{82571:function(t,e,o){var n=o(97582),i=o(77628),r=o(8138),s=o(95582),c=["tune.up","tune.remove","tune.down"],u=(0,n.ev)(["tune.h1","tune.h2","tune.h3","\n","tune.h4","tune.h5","tune.h6","\n"],(0,n.CR)(c),!1);function p(t){return{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><text dominant-baseline="text-before-edge" style="font: 45px sans-serif" x="0" y="0">'+t.toUpperCase()+"</text></svg>",isActive:function(e,o,n){var i;return(null===(i=null==n?void 0:n.target)||void 0===i?void 0:i.tagName.toLowerCase())===t},exec:function(e,o){if(o){e.selection.save();var n=r.i.replace(o,t,e.createInside);e.selection.restore(),e.e.fire("synchro"),e.e.fire("afterExecTune.tune",n)}return!0}}}function l(t){var e=t?"previousSibling":"nextSibling";return{icon:t?"angle-up":"angle-down",isDisabled:function(t,o,n){var i;return!(null===(i=null==n?void 0:n.target)||void 0===i?void 0:i[e])},exec:function(o,n){var i=null==n?void 0:n[e];return n&&i&&(o.selection.save(),(0,s.call)(t?r.i.before:r.i.after,i,n),o.selection.restore()),o.e.fire("synchro"),o.e.fire("afterExecTune.tune"),!0}}}i.D.prototype.tuneBlock={popup:{p:c,table:c,img:c,blockquote:c,div:c,pre:(0,n.ev)(["tune.editPre"],(0,n.CR)(c),!1),h1:u,h2:u,h3:u,h4:u,h5:u,h6:u}},i.D.prototype.controls.tune={h1:p("h1"),h2:p("h2"),h3:p("h3"),h4:p("h4"),h5:p("h5"),h6:p("h6"),up:l(!0),down:l(!1),editPre:{icon:"pencil",exec:function(t,e){t.e.fire("editPreInPasteCode",e)}},remove:{icon:"bin",exec:function(t,e){r.i.safeRemove(e),t.e.fire("synchro"),t.e.fire("closeTuner.tune"),t.e.fire("hideTuner.tune")}}}},66724:function(t,e,o){o.r(e),o.d(e,{tuneBlock:function(){return u}});var n=o(97582),i=o(7324),r=o(50526),s=o(88292),c=o(13027),u=(o(82571),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,n.ZT)(e,t),e.prototype.afterInit=function(t){this.tuner=new c.x(t)},e.prototype.hideTuner=function(){this.tuner.hide()},e.prototype.onChangeSelection=function(){this.j.s.isCollapsed()||this.hideTuner()},e.prototype.onClickInBlock=function(t){this.j.s.isCollapsed()&&this.tuner.show()},e.prototype.beforeDestruct=function(t){this.tuner.destruct()},e.requires=["license"],(0,n.gn)([(0,r.watch)(":outsideClick :keydown")],e.prototype,"hideTuner",null),(0,n.gn)([(0,r.watch)("j.ed:selectionchange"),(0,r.debounce)()],e.prototype,"onChangeSelection",null),(0,n.gn)([(0,r.watch)(":click")],e.prototype,"onClickInBlock",null),e}(i.S));s.y.plugins.add("tune-block",u)},13027:function(t,e,o){o.d(e,{x:function(){return p}});var n=o(97582),i=o(75004),r=o(8138),s=o(95582),c=o(50526),u=o(45429),p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isShown=!1,e.toolbar=(0,u.R)(e.j,e),e.popup=new i.GI(e.j,!1),e}return(0,n.ZT)(e,t),e.prototype.className=function(){return"UITuner"},e.prototype.render=function(){return"<div>\n\t\t\t<div class='&__handle' title='~Click to tune~'/>\n\t\t</div>"},e.prototype.show=function(){var t=this,e=this.j.s.current();if(!e)return this.hide();var o=r.i.isBlock(e)?e:r.i.closest(e,(function(e){return Boolean(e&&t.j.o.tuneBlock.popup[e.nodeName.toLowerCase()])}),this.j.editor);if(!o||o===this.j.editor||!this.j.o.tuneBlock.popup[o.tagName.toLowerCase()])return this.hide();this.currentBlock=o,this.isShown=!0,this.closeToolbar(),this.calcPosition(),this.container.parentNode||this.j.workplace.append(this.container)},e.prototype.hide=function(){this.isShown&&(this.isShown=!1,r.i.safeRemove(this.container),this.closeToolbar())},e.prototype.onEditorScroll=function(){this.isShown&&this.calcPosition()},e.prototype.calcPosition=function(){var t=(0,s.css)(this.j.editor,"marginLeft"),e=(0,s.css)(this.j.editor,"paddingLeft"),o=(0,s.css)(this.j.editor,"marginTop"),n=this.currentBlock.offsetTop-this.j.editor.scrollTop+o;(0,s.css)(this.container,{transform:"translate3d(".concat(this.currentBlock.offsetWidth-15+t+e,"px, ").concat(n,"px, 0)")}),this.popup.isOpened&&this.popup.updatePosition()},e.prototype.onAfterExecTune=function(t){t&&(this.currentBlock=t),this.calcPosition(),this.openToolbar()},e.prototype.onClickPrevent=function(t){t.preventDefault(),t.stopPropagation()},e.prototype.onTargetClick=function(){this.toggleToolbar()},e.prototype.openToolbar=function(){if(this.setMod("opened",!0),this.toolbar.build(this.j.o.tuneBlock.popup[this.currentBlock.tagName.toLowerCase()],this.currentBlock),this.popup.setContent(this.toolbar.container),!this.popup.isOpened){var t=this.getElm("handle");this.popup.open((function(){return(0,s.position)(t)}))}},e.prototype.closeToolbar=function(){this.setMod("opened",!1),this.popup.close()},e.prototype.toggleToolbar=function(){this.getMod("opened")?this.closeToolbar():this.openToolbar()},(0,n.gn)([(0,c.watch)(":hideTuner.tune")],e.prototype,"hide",null),(0,n.gn)([(0,c.watch)("j.editor:scroll"),(0,c.throttle)(10)],e.prototype,"onEditorScroll",null),(0,n.gn)([(0,c.watch)(":afterExecTune.tune"),(0,c.idle)()],e.prototype,"onAfterExecTune",null),(0,n.gn)([(0,c.watch)("container:click container:mousedown")],e.prototype,"onClickPrevent",null),(0,n.gn)([(0,c.watch)("handle:click")],e.prototype,"onTargetClick",null),(0,n.gn)([(0,c.watch)(":closeTuner.tune")],e.prototype,"closeToolbar",null),(0,n.gn)([c.component],e)}(i.u1)}},function(t){return t(t.s=66724)}])}));
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
<ul class="container">
|
|
19
19
|
<li><a href="https://xdsoft.net/jodit/">Jodit homepage</a></li>
|
|
20
20
|
<li><a href="https://xdsoft.net/jodit/play.html">Playground</a></li>
|
|
21
|
-
<li><a href="https://xdsoft.net/jodit/
|
|
21
|
+
<li><a href="https://xdsoft.net/jodit/docs/">Documentation</a></li>
|
|
22
22
|
<li><a href="https://github.com/xdan/jodit/">Github</a></li>
|
|
23
|
-
<li><a href="https://github.com/xdan/jodit/blob/
|
|
23
|
+
<li><a href="https://github.com/xdan/jodit/blob/main/CHANGELOG.md">Changelog</a></li>
|
|
24
24
|
<li>
|
|
25
25
|
<a href="#examples">Examples</a>
|
|
26
26
|
<ul id="examples"><!-- see app.js--></ul>
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
</code></pre>
|
|
38
38
|
<h3>JavaScript</h3>
|
|
39
39
|
<pre><code class="language-javascript">
|
|
40
|
-
|
|
40
|
+
const editor = Jodit.make('#editor', {
|
|
41
41
|
direction: 'rtl',
|
|
42
42
|
language: 'ar'
|
|
43
43
|
});
|
|
@@ -52,23 +52,23 @@
|
|
|
52
52
|
<ul class="container">
|
|
53
53
|
<li><a href="https://xdsoft.net/jodit/">Jodit homepage</a></li>
|
|
54
54
|
<li><a href="https://xdsoft.net/jodit/play.html">Playground</a></li>
|
|
55
|
-
<li><a href="https://xdsoft.net/jodit/
|
|
55
|
+
<li><a href="https://xdsoft.net/jodit/docs/">Documentation</a></li>
|
|
56
56
|
<li><a href="https://github.com/xdan/jodit/">Github</a></li>
|
|
57
|
-
<li><a href="https://github.com/xdan/jodit/blob/
|
|
57
|
+
<li><a href="https://github.com/xdan/jodit/blob/main/CHANGELOG.md">Changelog</a></li>
|
|
58
58
|
<li style="float:right"><a href="https://github.com/xdan/jodit/releases/latest">Download</a></li>
|
|
59
59
|
</ul>
|
|
60
60
|
</nav>
|
|
61
61
|
</footer>
|
|
62
62
|
</body>
|
|
63
|
-
<link rel="stylesheet" href="
|
|
63
|
+
<link rel="stylesheet" href="./es2015/jodit.min.css"/>
|
|
64
64
|
<link rel="stylesheet" href="assets/app.css"/>
|
|
65
65
|
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300i,400,400i,700,700i" rel="stylesheet">
|
|
66
66
|
|
|
67
|
-
<script src="
|
|
67
|
+
<script src="./es2015/jodit.min.js"></script>
|
|
68
68
|
<script src="assets/prism.js"></script>
|
|
69
69
|
<script src="assets/app.js"></script>
|
|
70
70
|
<script>
|
|
71
|
-
|
|
71
|
+
const editor = Jodit.make('#area_editor', {
|
|
72
72
|
direction: 'rtl',
|
|
73
73
|
language: 'ar'
|
|
74
74
|
});
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
<ul class="container">
|
|
19
19
|
<li><a href="https://xdsoft.net/jodit/">Jodit homepage</a></li>
|
|
20
20
|
<li><a href="https://xdsoft.net/jodit/play.html">Playground</a></li>
|
|
21
|
-
<li><a href="https://xdsoft.net/jodit/
|
|
21
|
+
<li><a href="https://xdsoft.net/jodit/docs/">Documentation</a></li>
|
|
22
22
|
<li><a href="https://github.com/xdan/jodit/">Github</a></li>
|
|
23
|
-
<li><a href="https://github.com/xdan/jodit/blob/
|
|
23
|
+
<li><a href="https://github.com/xdan/jodit/blob/main/CHANGELOG.md">Changelog</a></li>
|
|
24
24
|
<li>
|
|
25
25
|
<a href="#examples">Examples</a>
|
|
26
26
|
<ul id="examples"><!-- see app.js--></ul>
|
|
@@ -86,19 +86,19 @@ editor.e.on('afterGenerateColorPicker', (form, extra) => {
|
|
|
86
86
|
<ul class="container">
|
|
87
87
|
<li><a href="https://xdsoft.net/jodit/">Jodit homepage</a></li>
|
|
88
88
|
<li><a href="https://xdsoft.net/jodit/play.html">Playground</a></li>
|
|
89
|
-
<li><a href="https://xdsoft.net/jodit/
|
|
89
|
+
<li><a href="https://xdsoft.net/jodit/docs/">Documentation</a></li>
|
|
90
90
|
<li><a href="https://github.com/xdan/jodit/">Github</a></li>
|
|
91
|
-
<li><a href="https://github.com/xdan/jodit/blob/
|
|
91
|
+
<li><a href="https://github.com/xdan/jodit/blob/main/CHANGELOG.md">Changelog</a></li>
|
|
92
92
|
<li style="float:right"><a href="https://github.com/xdan/jodit/releases/latest">Download</a></li>
|
|
93
93
|
</ul>
|
|
94
94
|
</nav>
|
|
95
95
|
</footer>
|
|
96
96
|
</body>
|
|
97
|
-
<link rel="stylesheet" href="
|
|
97
|
+
<link rel="stylesheet" href="./es2015/jodit.min.css"/>
|
|
98
98
|
<link rel="stylesheet" href="assets/app.css"/>
|
|
99
99
|
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300i,400,400i,700,700i" rel="stylesheet">
|
|
100
100
|
<script src="https://cdn.jsdelivr.net/npm/a-color-picker@1.2.1/dist/acolorpicker.min.js"></script>
|
|
101
|
-
<script src="
|
|
101
|
+
<script src="./es2015/jodit.min.js"></script>
|
|
102
102
|
<script src="assets/prism.js"></script>
|
|
103
103
|
<script src="assets/app.js"></script>
|
|
104
104
|
<script>
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
<ul class="container">
|
|
19
19
|
<li><a href="https://xdsoft.net/jodit/">Jodit homepage</a></li>
|
|
20
20
|
<li><a href="https://xdsoft.net/jodit/play.html">Playground</a></li>
|
|
21
|
-
<li><a href="https://xdsoft.net/jodit/
|
|
21
|
+
<li><a href="https://xdsoft.net/jodit/docs/">Documentation</a></li>
|
|
22
22
|
<li><a href="https://github.com/xdan/jodit/">Github</a></li>
|
|
23
|
-
<li><a href="https://github.com/xdan/jodit/blob/
|
|
23
|
+
<li><a href="https://github.com/xdan/jodit/blob/main/CHANGELOG.md">Changelog</a></li>
|
|
24
24
|
<li>
|
|
25
25
|
<a href="#examples">Examples</a>
|
|
26
26
|
<ul id="examples"><!-- see app.js--></ul>
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
</code></pre>
|
|
39
39
|
<h3>JavaScript</h3>
|
|
40
40
|
<pre><code class="language-javascript">
|
|
41
|
-
|
|
41
|
+
const editor = Jodit.make('#editor', {
|
|
42
42
|
events: {
|
|
43
43
|
getIcon: function (name, control, clearName) {
|
|
44
44
|
var code = clearName;
|
|
@@ -101,24 +101,24 @@
|
|
|
101
101
|
<ul class="container">
|
|
102
102
|
<li><a href="https://xdsoft.net/jodit/">Jodit homepage</a></li>
|
|
103
103
|
<li><a href="https://xdsoft.net/jodit/play.html">Playground</a></li>
|
|
104
|
-
<li><a href="https://xdsoft.net/jodit/
|
|
104
|
+
<li><a href="https://xdsoft.net/jodit/docs/">Documentation</a></li>
|
|
105
105
|
<li><a href="https://github.com/xdan/jodit/">Github</a></li>
|
|
106
|
-
<li><a href="https://github.com/xdan/jodit/blob/
|
|
106
|
+
<li><a href="https://github.com/xdan/jodit/blob/main/CHANGELOG.md">Changelog</a></li>
|
|
107
107
|
<li style="float:right"><a href="https://github.com/xdan/jodit/releases/latest">Download</a></li>
|
|
108
108
|
</ul>
|
|
109
109
|
</nav>
|
|
110
110
|
</footer>
|
|
111
111
|
</body>
|
|
112
|
-
<link rel="stylesheet" href="
|
|
112
|
+
<link rel="stylesheet" href="./es2015/jodit.min.css"/>
|
|
113
113
|
<link rel="stylesheet" href="assets/app.css"/>
|
|
114
114
|
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300i,400,400i,700,700i" rel="stylesheet">
|
|
115
115
|
<script src="https://use.fontawesome.com/c1f20c2bd7.js"></script>
|
|
116
116
|
|
|
117
|
-
<script src="
|
|
117
|
+
<script src="./es2015/jodit.min.js"></script>
|
|
118
118
|
<script src="assets/prism.js"></script>
|
|
119
119
|
<script src="assets/app.js"></script>
|
|
120
120
|
<script>
|
|
121
|
-
|
|
121
|
+
const editor = Jodit.make('#area_editor', {
|
|
122
122
|
events: {
|
|
123
123
|
getIcon: function (name, control, clearName) {
|
|
124
124
|
var code = clearName;
|