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,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,387 @@
|
|
|
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 jodit_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77628);
|
|
26
|
+
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8138);
|
|
27
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(95582);
|
|
28
|
+
/*!
|
|
29
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
30
|
+
* See LICENSE.md in the project root for license information.
|
|
31
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
const common = ['tune.up', 'tune.remove', 'tune.down'], header = [
|
|
37
|
+
'tune.h1',
|
|
38
|
+
'tune.h2',
|
|
39
|
+
'tune.h3',
|
|
40
|
+
'\n',
|
|
41
|
+
'tune.h4',
|
|
42
|
+
'tune.h5',
|
|
43
|
+
'tune.h6',
|
|
44
|
+
'\n',
|
|
45
|
+
...common
|
|
46
|
+
];
|
|
47
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.tuneBlock = {
|
|
48
|
+
popup: {
|
|
49
|
+
p: common,
|
|
50
|
+
table: common,
|
|
51
|
+
img: common,
|
|
52
|
+
blockquote: common,
|
|
53
|
+
div: common,
|
|
54
|
+
pre: ['tune.editPre', ...common],
|
|
55
|
+
h1: header,
|
|
56
|
+
h2: header,
|
|
57
|
+
h3: header,
|
|
58
|
+
h4: header,
|
|
59
|
+
h5: header,
|
|
60
|
+
h6: header
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
function headerControl(h) {
|
|
64
|
+
return {
|
|
65
|
+
icon: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50">' +
|
|
66
|
+
'<text dominant-baseline="text-before-edge" style="font: 45px sans-serif" x="0" y="0">' +
|
|
67
|
+
h.toUpperCase() +
|
|
68
|
+
'</text>' +
|
|
69
|
+
'</svg>',
|
|
70
|
+
isActive(editor, control, button) {
|
|
71
|
+
var _a;
|
|
72
|
+
return ((_a = button === null || button === void 0 ? void 0 : button.target) === null || _a === void 0 ? void 0 : _a.tagName.toLowerCase()) === h;
|
|
73
|
+
},
|
|
74
|
+
exec(editor, target) {
|
|
75
|
+
if (target) {
|
|
76
|
+
editor.selection.save();
|
|
77
|
+
const header = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.replace */ .i.replace(target, h, editor.createInside);
|
|
78
|
+
editor.selection.restore();
|
|
79
|
+
editor.e.fire('synchro');
|
|
80
|
+
editor.e.fire('afterExecTune.tune', header);
|
|
81
|
+
}
|
|
82
|
+
return true;
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function moveTo(up) {
|
|
87
|
+
const sibling = up ? 'previousSibling' : 'nextSibling';
|
|
88
|
+
return {
|
|
89
|
+
icon: up ? 'angle-up' : 'angle-down',
|
|
90
|
+
isDisabled(editor, control, button) {
|
|
91
|
+
var _a;
|
|
92
|
+
return !((_a = button === null || button === void 0 ? void 0 : button.target) === null || _a === void 0 ? void 0 : _a[sibling]);
|
|
93
|
+
},
|
|
94
|
+
exec(editor, target) {
|
|
95
|
+
const siblingNode = target === null || target === void 0 ? void 0 : target[sibling];
|
|
96
|
+
if (target && siblingNode) {
|
|
97
|
+
editor.selection.save();
|
|
98
|
+
(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);
|
|
99
|
+
editor.selection.restore();
|
|
100
|
+
}
|
|
101
|
+
editor.e.fire('synchro');
|
|
102
|
+
editor.e.fire('afterExecTune.tune');
|
|
103
|
+
return true;
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.tune = {
|
|
108
|
+
h1: headerControl('h1'),
|
|
109
|
+
h2: headerControl('h2'),
|
|
110
|
+
h3: headerControl('h3'),
|
|
111
|
+
h4: headerControl('h4'),
|
|
112
|
+
h5: headerControl('h5'),
|
|
113
|
+
h6: headerControl('h6'),
|
|
114
|
+
up: moveTo(true),
|
|
115
|
+
down: moveTo(false),
|
|
116
|
+
editPre: {
|
|
117
|
+
icon: 'pencil',
|
|
118
|
+
exec(editor, target) {
|
|
119
|
+
editor.e.fire('editPreInPasteCode', target);
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
remove: {
|
|
123
|
+
icon: 'bin',
|
|
124
|
+
exec(editor, target) {
|
|
125
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeRemove */ .i.safeRemove(target);
|
|
126
|
+
editor.e.fire('synchro');
|
|
127
|
+
editor.e.fire('closeTuner.tune');
|
|
128
|
+
editor.e.fire('hideTuner.tune');
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
/***/ }),
|
|
135
|
+
|
|
136
|
+
/***/ 66724:
|
|
137
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
138
|
+
|
|
139
|
+
__webpack_require__.r(__webpack_exports__);
|
|
140
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
141
|
+
/* harmony export */ "tuneBlock": function() { return /* binding */ tuneBlock; }
|
|
142
|
+
/* harmony export */ });
|
|
143
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(97582);
|
|
144
|
+
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7324);
|
|
145
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50526);
|
|
146
|
+
/* harmony import */ var _JoditPro__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(88292);
|
|
147
|
+
/* harmony import */ var _ui_tuner_tuner__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(13027);
|
|
148
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(82571);
|
|
149
|
+
/*!
|
|
150
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
151
|
+
* See LICENSE.md in the project root for license information.
|
|
152
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
153
|
+
*/
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Tune block with popup: move, align, change block tag, and another options
|
|
162
|
+
*/
|
|
163
|
+
class tuneBlock extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plugin */ .S {
|
|
164
|
+
afterInit(jodit) {
|
|
165
|
+
this.tuner = new _ui_tuner_tuner__WEBPACK_IMPORTED_MODULE_3__/* .UITuner */ .x(jodit);
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Handler: click on an element outside the editor or the keyboard closes the tuner
|
|
169
|
+
*/
|
|
170
|
+
hideTuner() {
|
|
171
|
+
this.tuner.hide();
|
|
172
|
+
}
|
|
173
|
+
onChangeSelection() {
|
|
174
|
+
if (!this.j.s.isCollapsed()) {
|
|
175
|
+
this.hideTuner();
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Handler: click on an element inside the editor
|
|
180
|
+
*/
|
|
181
|
+
onClickInBlock(_) {
|
|
182
|
+
if (this.j.s.isCollapsed()) {
|
|
183
|
+
this.tuner.show();
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
beforeDestruct(jodit) {
|
|
187
|
+
this.tuner.destruct();
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
/** @override */
|
|
191
|
+
tuneBlock.requires = ['license'];
|
|
192
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .gn)([
|
|
193
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(':outsideClick :keydown')
|
|
194
|
+
], tuneBlock.prototype, "hideTuner", null);
|
|
195
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .gn)([
|
|
196
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('j.ed:selectionchange'),
|
|
197
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.debounce)()
|
|
198
|
+
], tuneBlock.prototype, "onChangeSelection", null);
|
|
199
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .gn)([
|
|
200
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(':click')
|
|
201
|
+
], tuneBlock.prototype, "onClickInBlock", null);
|
|
202
|
+
_JoditPro__WEBPACK_IMPORTED_MODULE_2__/* .JoditPro.plugins.add */ .y.plugins.add('tune-block', tuneBlock);
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
/***/ }),
|
|
206
|
+
|
|
207
|
+
/***/ 13027:
|
|
208
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
209
|
+
|
|
210
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
211
|
+
/* harmony export */ "x": function() { return /* binding */ UITuner; }
|
|
212
|
+
/* harmony export */ });
|
|
213
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(97582);
|
|
214
|
+
/* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(75004);
|
|
215
|
+
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8138);
|
|
216
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(95582);
|
|
217
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(50526);
|
|
218
|
+
/* harmony import */ var jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(45429);
|
|
219
|
+
/*!
|
|
220
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
221
|
+
* See LICENSE.md in the project root for license information.
|
|
222
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
223
|
+
*/
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
let UITuner = class UITuner extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UIElement */ .u1 {
|
|
232
|
+
constructor() {
|
|
233
|
+
super(...arguments);
|
|
234
|
+
this.isShown = false;
|
|
235
|
+
this.toolbar = (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_4__/* .makeCollection */ .R)(this.j, this);
|
|
236
|
+
this.popup = new jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .Popup */ .GI(this.j, false);
|
|
237
|
+
}
|
|
238
|
+
className() {
|
|
239
|
+
return 'UITuner';
|
|
240
|
+
}
|
|
241
|
+
render() {
|
|
242
|
+
return `<div>
|
|
243
|
+
<div class='&__handle' title='~Click to tune~'/>
|
|
244
|
+
</div>`;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Shows the tuner, even if it is already shown - recalculates its position
|
|
248
|
+
*/
|
|
249
|
+
show() {
|
|
250
|
+
const target = this.j.s.current();
|
|
251
|
+
if (!target) {
|
|
252
|
+
return this.hide();
|
|
253
|
+
}
|
|
254
|
+
const block = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.isBlock */ .i.isBlock(target)
|
|
255
|
+
? target
|
|
256
|
+
: jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.closest */ .i.closest(target, (node) => Boolean(node &&
|
|
257
|
+
this.j.o.tuneBlock.popup[node.nodeName.toLowerCase()]), this.j.editor);
|
|
258
|
+
if (!block ||
|
|
259
|
+
block === this.j.editor ||
|
|
260
|
+
!this.j.o.tuneBlock.popup[block.tagName.toLowerCase()]) {
|
|
261
|
+
return this.hide();
|
|
262
|
+
}
|
|
263
|
+
this.currentBlock = block;
|
|
264
|
+
this.isShown = true;
|
|
265
|
+
this.closeToolbar();
|
|
266
|
+
this.calcPosition();
|
|
267
|
+
if (!this.container.parentNode) {
|
|
268
|
+
this.j.workplace.append(this.container);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Hides the tuner button
|
|
273
|
+
*/
|
|
274
|
+
hide() {
|
|
275
|
+
if (this.isShown) {
|
|
276
|
+
this.isShown = false;
|
|
277
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeRemove */ .i.safeRemove(this.container);
|
|
278
|
+
this.closeToolbar();
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Recalculates the position of the tuner button when scrolling the editor itself
|
|
283
|
+
*/
|
|
284
|
+
onEditorScroll() {
|
|
285
|
+
if (this.isShown) {
|
|
286
|
+
this.calcPosition();
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Calculates the position of the tuner in the editor so that it is always to the right of the block
|
|
291
|
+
*/
|
|
292
|
+
calcPosition() {
|
|
293
|
+
const offset = 15;
|
|
294
|
+
const marginLeft = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.css)(this.j.editor, 'marginLeft');
|
|
295
|
+
const paddingLeft = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.css)(this.j.editor, 'paddingLeft');
|
|
296
|
+
const marginTop = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.css)(this.j.editor, 'marginTop');
|
|
297
|
+
const left = this.currentBlock.offsetWidth - offset + marginLeft + paddingLeft;
|
|
298
|
+
const top = this.currentBlock.offsetTop - this.j.editor.scrollTop + marginTop;
|
|
299
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.css)(this.container, {
|
|
300
|
+
transform: `translate3d(${left}px, ${top}px, 0)`
|
|
301
|
+
});
|
|
302
|
+
if (this.popup.isOpened) {
|
|
303
|
+
this.popup.updatePosition();
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Handler: `afterExecTune.tune`
|
|
308
|
+
*/
|
|
309
|
+
onAfterExecTune(newBlock) {
|
|
310
|
+
if (newBlock) {
|
|
311
|
+
this.currentBlock = newBlock;
|
|
312
|
+
}
|
|
313
|
+
this.calcPosition();
|
|
314
|
+
this.openToolbar();
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* To prevent the editor from losing focus when clicking on the handler - we will prevent the click
|
|
318
|
+
*/
|
|
319
|
+
onClickPrevent(e) {
|
|
320
|
+
e.preventDefault();
|
|
321
|
+
e.stopPropagation();
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* Handler: click on the tuner button
|
|
325
|
+
*/
|
|
326
|
+
onTargetClick() {
|
|
327
|
+
this.toggleToolbar();
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Opens the tuner toolbar
|
|
331
|
+
*/
|
|
332
|
+
openToolbar() {
|
|
333
|
+
this.setMod('opened', true);
|
|
334
|
+
this.toolbar.build(this.j.o.tuneBlock.popup[this.currentBlock.tagName.toLowerCase()], this.currentBlock);
|
|
335
|
+
this.popup.setContent(this.toolbar.container);
|
|
336
|
+
if (!this.popup.isOpened) {
|
|
337
|
+
const handle = this.getElm('handle');
|
|
338
|
+
void 0;
|
|
339
|
+
this.popup.open(() => (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.position)(handle));
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* Closes the tuner toolbar
|
|
344
|
+
*/
|
|
345
|
+
closeToolbar() {
|
|
346
|
+
this.setMod('opened', false);
|
|
347
|
+
this.popup.close();
|
|
348
|
+
}
|
|
349
|
+
toggleToolbar() {
|
|
350
|
+
this.getMod('opened') ? this.closeToolbar() : this.openToolbar();
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .gn)([
|
|
354
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)(':hideTuner.tune')
|
|
355
|
+
], UITuner.prototype, "hide", null);
|
|
356
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .gn)([
|
|
357
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('j.editor:scroll'),
|
|
358
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.throttle)(10)
|
|
359
|
+
], UITuner.prototype, "onEditorScroll", null);
|
|
360
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .gn)([
|
|
361
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)(':afterExecTune.tune'),
|
|
362
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.idle)()
|
|
363
|
+
], UITuner.prototype, "onAfterExecTune", null);
|
|
364
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .gn)([
|
|
365
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('container:click container:mousedown')
|
|
366
|
+
], UITuner.prototype, "onClickPrevent", null);
|
|
367
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .gn)([
|
|
368
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('handle:click')
|
|
369
|
+
], UITuner.prototype, "onTargetClick", null);
|
|
370
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .gn)([
|
|
371
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)(':closeTuner.tune')
|
|
372
|
+
], UITuner.prototype, "closeToolbar", null);
|
|
373
|
+
UITuner = (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .gn)([
|
|
374
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.component
|
|
375
|
+
], UITuner);
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
/***/ })
|
|
379
|
+
|
|
380
|
+
},
|
|
381
|
+
/******/ function(__webpack_require__) { // webpackRuntimeModules
|
|
382
|
+
/******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
|
|
383
|
+
/******/ var __webpack_exports__ = (__webpack_exec__(66724));
|
|
384
|
+
/******/ return __webpack_exports__;
|
|
385
|
+
/******/ }
|
|
386
|
+
]);
|
|
387
|
+
});
|
package/{build/plugins/tune-block/tune-block.css → es2015/plugins/tune-block/tune-block.min.css}
RENAMED
|
@@ -1 +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
|
|
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(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[288],{82571:function(e,t,o){var n=o(77628),i=o(8138),s=o(95582);const r=["tune.up","tune.remove","tune.down"],c=["tune.h1","tune.h2","tune.h3","\n","tune.h4","tune.h5","tune.h6","\n",...r];function l(e){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">'+e.toUpperCase()+"</text></svg>",isActive(t,o,n){var i;return(null===(i=null==n?void 0:n.target)||void 0===i?void 0:i.tagName.toLowerCase())===e},exec(t,o){if(o){t.selection.save();const n=i.i.replace(o,e,t.createInside);t.selection.restore(),t.e.fire("synchro"),t.e.fire("afterExecTune.tune",n)}return!0}}}function h(e){const t=e?"previousSibling":"nextSibling";return{icon:e?"angle-up":"angle-down",isDisabled(e,o,n){var i;return!(null===(i=null==n?void 0:n.target)||void 0===i?void 0:i[t])},exec(o,n){const r=null==n?void 0:n[t];return n&&r&&(o.selection.save(),(0,s.call)(e?i.i.before:i.i.after,r,n),o.selection.restore()),o.e.fire("synchro"),o.e.fire("afterExecTune.tune"),!0}}}n.Config.prototype.tuneBlock={popup:{p:r,table:r,img:r,blockquote:r,div:r,pre:["tune.editPre",...r],h1:c,h2:c,h3:c,h4:c,h5:c,h6:c}},n.Config.prototype.controls.tune={h1:l("h1"),h2:l("h2"),h3:l("h3"),h4:l("h4"),h5:l("h5"),h6:l("h6"),up:h(!0),down:h(!1),editPre:{icon:"pencil",exec(e,t){e.e.fire("editPreInPasteCode",t)}},remove:{icon:"bin",exec(e,t){i.i.safeRemove(t),e.e.fire("synchro"),e.e.fire("closeTuner.tune"),e.e.fire("hideTuner.tune")}}}},66724:function(e,t,o){o.r(t),o.d(t,{tuneBlock:function(){return l}});var n=o(97582),i=o(7324),s=o(50526),r=o(88292),c=o(13027);o(82571);class l extends i.S{afterInit(e){this.tuner=new c.x(e)}hideTuner(){this.tuner.hide()}onChangeSelection(){this.j.s.isCollapsed()||this.hideTuner()}onClickInBlock(e){this.j.s.isCollapsed()&&this.tuner.show()}beforeDestruct(e){this.tuner.destruct()}}l.requires=["license"],(0,n.gn)([(0,s.watch)(":outsideClick :keydown")],l.prototype,"hideTuner",null),(0,n.gn)([(0,s.watch)("j.ed:selectionchange"),(0,s.debounce)()],l.prototype,"onChangeSelection",null),(0,n.gn)([(0,s.watch)(":click")],l.prototype,"onClickInBlock",null),r.y.plugins.add("tune-block",l)},13027:function(e,t,o){o.d(t,{x:function(){return h}});var n=o(97582),i=o(75004),s=o(8138),r=o(95582),c=o(50526),l=o(45429);let h=class e extends i.u1{constructor(){super(...arguments),this.isShown=!1,this.toolbar=(0,l.R)(this.j,this),this.popup=new i.GI(this.j,!1)}className(){return"UITuner"}render(){return"<div>\n\t\t\t<div class='&__handle' title='~Click to tune~'/>\n\t\t</div>"}show(){const e=this.j.s.current();if(!e)return this.hide();const t=s.i.isBlock(e)?e:s.i.closest(e,(e=>Boolean(e&&this.j.o.tuneBlock.popup[e.nodeName.toLowerCase()])),this.j.editor);if(!t||t===this.j.editor||!this.j.o.tuneBlock.popup[t.tagName.toLowerCase()])return this.hide();this.currentBlock=t,this.isShown=!0,this.closeToolbar(),this.calcPosition(),this.container.parentNode||this.j.workplace.append(this.container)}hide(){this.isShown&&(this.isShown=!1,s.i.safeRemove(this.container),this.closeToolbar())}onEditorScroll(){this.isShown&&this.calcPosition()}calcPosition(){const e=(0,r.css)(this.j.editor,"marginLeft"),t=(0,r.css)(this.j.editor,"paddingLeft"),o=(0,r.css)(this.j.editor,"marginTop");(0,r.css)(this.container,{transform:`translate3d(${this.currentBlock.offsetWidth-15+e+t}px, ${this.currentBlock.offsetTop-this.j.editor.scrollTop+o}px, 0)`}),this.popup.isOpened&&this.popup.updatePosition()}onAfterExecTune(e){e&&(this.currentBlock=e),this.calcPosition(),this.openToolbar()}onClickPrevent(e){e.preventDefault(),e.stopPropagation()}onTargetClick(){this.toggleToolbar()}openToolbar(){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){const e=this.getElm("handle");this.popup.open((()=>(0,r.position)(e)))}}closeToolbar(){this.setMod("opened",!1),this.popup.close()}toggleToolbar(){this.getMod("opened")?this.closeToolbar():this.openToolbar()}};(0,n.gn)([(0,c.watch)(":hideTuner.tune")],h.prototype,"hide",null),(0,n.gn)([(0,c.watch)("j.editor:scroll"),(0,c.throttle)(10)],h.prototype,"onEditorScroll",null),(0,n.gn)([(0,c.watch)(":afterExecTune.tune"),(0,c.idle)()],h.prototype,"onAfterExecTune",null),(0,n.gn)([(0,c.watch)("container:click container:mousedown")],h.prototype,"onClickPrevent",null),(0,n.gn)([(0,c.watch)("handle:click")],h.prototype,"onTargetClick",null),(0,n.gn)([(0,c.watch)(":closeTuner.tune")],h.prototype,"closeToolbar",null),h=(0,n.gn)([c.component],h)}},function(e){return e(e.s=66724)}])}));
|