jodit-pro 4.2.5 → 4.2.9
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/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +116 -97
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/autocomplete/autocomplete.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +1 -1
- package/es2015/plugins/backup/backup.min.js +1 -1
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +1 -1
- package/es2015/plugins/button-generator/button-generator.min.js +1 -1
- package/es2015/plugins/change-case/change-case.js +1 -1
- package/es2015/plugins/change-case/change-case.min.js +1 -1
- package/es2015/plugins/color-picker/color-picker.css +1 -1
- package/es2015/plugins/color-picker/color-picker.js +1 -1
- package/es2015/plugins/color-picker/color-picker.min.js +1 -1
- package/es2015/plugins/emoji/emoji.css +1 -1
- package/es2015/plugins/emoji/emoji.js +1 -1
- package/es2015/plugins/emoji/emoji.min.js +1 -1
- package/es2015/plugins/export-docs/export-docs.js +1 -1
- package/es2015/plugins/export-docs/export-docs.min.js +1 -1
- package/es2015/plugins/finder/finder.css +1 -1
- package/es2015/plugins/finder/finder.js +1 -1
- package/es2015/plugins/finder/finder.min.js +1 -1
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +1 -1
- package/es2015/plugins/google-maps/google-maps.min.js +1 -1
- package/es2015/plugins/google-search/google-search.js +1 -1
- package/es2015/plugins/google-search/google-search.min.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +1 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2015/plugins/page-break/page-break.js +1 -1
- package/es2015/plugins/page-break/page-break.min.js +1 -1
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +1 -1
- package/es2015/plugins/paste-code/paste-code.min.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +1 -1
- package/es2015/plugins/todo-list/todo-list.min.js +1 -1
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +1 -1
- package/es2015/plugins/translate/translate.min.js +1 -1
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +1 -1
- package/es2018/jodit.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +116 -97
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/autocomplete/autocomplete.js +1 -1
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.css +1 -1
- package/es2018/plugins/backup/backup.js +1 -1
- package/es2018/plugins/backup/backup.min.js +1 -1
- package/es2018/plugins/button-generator/button-generator.css +1 -1
- package/es2018/plugins/button-generator/button-generator.js +1 -1
- package/es2018/plugins/button-generator/button-generator.min.js +1 -1
- package/es2018/plugins/change-case/change-case.js +1 -1
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/color-picker/color-picker.css +1 -1
- package/es2018/plugins/color-picker/color-picker.js +1 -1
- package/es2018/plugins/color-picker/color-picker.min.js +1 -1
- package/es2018/plugins/emoji/emoji.css +1 -1
- package/es2018/plugins/emoji/emoji.js +1 -1
- package/es2018/plugins/emoji/emoji.min.js +1 -1
- package/es2018/plugins/export-docs/export-docs.js +1 -1
- package/es2018/plugins/export-docs/export-docs.min.js +1 -1
- package/es2018/plugins/finder/finder.css +1 -1
- package/es2018/plugins/finder/finder.js +1 -1
- package/es2018/plugins/finder/finder.min.js +1 -1
- package/es2018/plugins/google-maps/google-maps.css +1 -1
- package/es2018/plugins/google-maps/google-maps.js +1 -1
- package/es2018/plugins/google-maps/google-maps.min.js +1 -1
- package/es2018/plugins/google-search/google-search.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.css +1 -1
- package/es2018/plugins/keyboard/keyboard.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.css +1 -1
- package/es2018/plugins/paste-code/paste-code.js +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2018/plugins/todo-list/todo-list.css +1 -1
- package/es2018/plugins/todo-list/todo-list.js +1 -1
- package/es2018/plugins/todo-list/todo-list.min.js +1 -1
- package/es2018/plugins/translate/translate.css +1 -1
- package/es2018/plugins/translate/translate.js +1 -1
- package/es2018/plugins/translate/translate.min.js +1 -1
- package/es2018/plugins/tune-block/tune-block.css +1 -1
- package/es2018/plugins/tune-block/tune-block.js +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +116 -97
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021/plugins/backup/backup.css +1 -1
- package/es2021/plugins/backup/backup.js +1 -1
- package/es2021/plugins/backup/backup.min.js +1 -1
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +1 -1
- package/es2021/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021/plugins/change-case/change-case.js +1 -1
- package/es2021/plugins/change-case/change-case.min.js +1 -1
- package/es2021/plugins/color-picker/color-picker.css +1 -1
- package/es2021/plugins/color-picker/color-picker.js +1 -1
- package/es2021/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021/plugins/emoji/emoji.css +1 -1
- package/es2021/plugins/emoji/emoji.js +1 -1
- package/es2021/plugins/emoji/emoji.min.js +1 -1
- package/es2021/plugins/export-docs/export-docs.js +1 -1
- package/es2021/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021/plugins/finder/finder.css +1 -1
- package/es2021/plugins/finder/finder.js +1 -1
- package/es2021/plugins/finder/finder.min.js +1 -1
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +1 -1
- package/es2021/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021/plugins/google-search/google-search.js +1 -1
- package/es2021/plugins/google-search/google-search.min.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +1 -1
- package/es2021/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021/plugins/page-break/page-break.js +1 -1
- package/es2021/plugins/page-break/page-break.min.js +1 -1
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +1 -1
- package/es2021/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021/plugins/todo-list/todo-list.css +1 -1
- package/es2021/plugins/todo-list/todo-list.js +1 -1
- package/es2021/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +1 -1
- package/es2021/plugins/translate/translate.min.js +1 -1
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +1 -1
- package/es2021/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +116 -97
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021.en/plugins/backup/backup.css +1 -1
- package/es2021.en/plugins/backup/backup.js +1 -1
- package/es2021.en/plugins/backup/backup.min.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021.en/plugins/change-case/change-case.js +1 -1
- package/es2021.en/plugins/change-case/change-case.min.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.css +1 -1
- package/es2021.en/plugins/color-picker/color-picker.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021.en/plugins/emoji/emoji.css +1 -1
- package/es2021.en/plugins/emoji/emoji.js +1 -1
- package/es2021.en/plugins/emoji/emoji.min.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021.en/plugins/finder/finder.css +1 -1
- package/es2021.en/plugins/finder/finder.js +1 -1
- package/es2021.en/plugins/finder/finder.min.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021.en/plugins/google-search/google-search.js +1 -1
- package/es2021.en/plugins/google-search/google-search.min.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021.en/plugins/page-break/page-break.js +1 -1
- package/es2021.en/plugins/page-break/page-break.min.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +1 -1
- package/es2021.en/plugins/translate/translate.min.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +116 -97
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/autocomplete/autocomplete.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +1 -1
- package/es5/plugins/backup/backup.min.js +1 -1
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +1 -1
- package/es5/plugins/button-generator/button-generator.min.js +1 -1
- package/es5/plugins/change-case/change-case.js +1 -1
- package/es5/plugins/change-case/change-case.min.js +1 -1
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +1 -1
- package/es5/plugins/color-picker/color-picker.min.js +1 -1
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +1 -1
- package/es5/plugins/emoji/emoji.min.js +1 -1
- package/es5/plugins/export-docs/export-docs.js +1 -1
- package/es5/plugins/export-docs/export-docs.min.js +1 -1
- package/es5/plugins/finder/finder.css +1 -1
- package/es5/plugins/finder/finder.js +1 -1
- package/es5/plugins/finder/finder.min.js +1 -1
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +1 -1
- package/es5/plugins/google-maps/google-maps.min.js +1 -1
- package/es5/plugins/google-search/google-search.js +1 -1
- package/es5/plugins/google-search/google-search.min.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +1 -1
- package/es5/plugins/keyboard/keyboard.min.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es5/plugins/page-break/page-break.js +1 -1
- package/es5/plugins/page-break/page-break.min.js +1 -1
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +1 -1
- package/es5/plugins/paste-code/paste-code.min.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +1 -1
- package/es5/plugins/todo-list/todo-list.min.js +1 -1
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +1 -1
- package/es5/plugins/translate/translate.min.js +1 -1
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +1 -1
- package/es5/plugins/tune-block/tune-block.min.js +1 -1
- package/esm/config.js +1 -1
- package/esm/core/ui/form/range/range.d.ts +2 -2
- package/esm/core/ui/form/range/range.js +1 -1
- package/esm/index.js +1 -1
- package/esm/jodit-pro.d.ts +1 -1
- package/esm/jodit-pro.js +1 -1
- package/esm/plugins/autocomplete/autocomplete.d.ts +2 -2
- package/esm/plugins/autocomplete/autocomplete.js +1 -1
- package/esm/plugins/autocomplete/helpers.js +1 -1
- package/esm/plugins/autocomplete/interface.d.ts +1 -1
- package/esm/plugins/autocomplete/ui/autocomplete.d.ts +2 -2
- package/esm/plugins/autocomplete/ui/autocomplete.js +1 -1
- package/esm/plugins/autocomplete/ui/item.d.ts +2 -2
- package/esm/plugins/autocomplete/ui/item.js +1 -1
- package/esm/plugins/backup/backup.d.ts +2 -2
- package/esm/plugins/backup/backup.js +1 -1
- package/esm/plugins/backup/config.js +1 -1
- package/esm/plugins/backup/modules/store.d.ts +2 -2
- package/esm/plugins/backup/ui/box.d.ts +3 -3
- package/esm/plugins/backup/ui/box.js +1 -1
- package/esm/plugins/backup/ui/item.d.ts +3 -3
- package/esm/plugins/backup/ui/item.js +1 -1
- package/esm/plugins/backup/ui/list.d.ts +3 -3
- package/esm/plugins/backup/ui/list.js +1 -1
- package/esm/plugins/button-generator/button-generator.d.ts +2 -2
- package/esm/plugins/button-generator/button-generator.js +1 -1
- package/esm/plugins/button-generator/config.js +1 -1
- package/esm/plugins/button-generator/ui/button/button.d.ts +2 -2
- package/esm/plugins/button-generator/ui/button/button.js +1 -1
- package/esm/plugins/button-generator/ui/form/form.d.ts +2 -2
- package/esm/plugins/button-generator/ui/form/form.js +1 -1
- package/esm/plugins/button-generator/ui/generator/button-generator.d.ts +2 -2
- package/esm/plugins/button-generator/ui/generator/button-generator.js +1 -1
- package/esm/plugins/button-generator/ui/preview/preview.d.ts +2 -2
- package/esm/plugins/button-generator/ui/preview/preview.js +1 -1
- package/esm/plugins/change-case/change-case.d.ts +2 -2
- package/esm/plugins/change-case/change-case.js +1 -1
- package/esm/plugins/change-case/config.js +1 -1
- package/esm/plugins/color-picker/color-picker.d.ts +2 -2
- package/esm/plugins/color-picker/color-picker.js +1 -1
- package/esm/plugins/color-picker/ui/input/color-input.d.ts +2 -2
- package/esm/plugins/color-picker/ui/input/color-input.js +1 -1
- package/esm/plugins/emoji/config.js +1 -1
- package/esm/plugins/emoji/emoji.d.ts +2 -2
- package/esm/plugins/emoji/emoji.js +1 -1
- package/esm/plugins/emoji/ui/emoji.d.ts +3 -3
- package/esm/plugins/emoji/ui/emoji.js +1 -1
- package/esm/plugins/export-docs/config.d.ts +1 -1
- package/esm/plugins/export-docs/config.js +1 -1
- package/esm/plugins/export-docs/export-docs.d.ts +2 -2
- package/esm/plugins/export-docs/export-docs.js +1 -1
- package/esm/plugins/finder/browser.d.ts +4 -4
- package/esm/plugins/finder/browser.js +1 -1
- package/esm/plugins/finder/config.js +1 -1
- package/esm/plugins/finder/finder.d.ts +2 -2
- package/esm/plugins/finder/finder.js +1 -1
- package/esm/plugins/finder/helpers/context-menu.d.ts +3 -3
- package/esm/plugins/finder/helpers/context-menu.js +1 -1
- package/esm/plugins/finder/helpers/history-manager.d.ts +2 -2
- package/esm/plugins/finder/helpers/history-manager.js +1 -1
- package/esm/plugins/finder/helpers/loading-manager.d.ts +2 -2
- package/esm/plugins/finder/helpers/loading-manager.js +1 -1
- package/esm/plugins/finder/helpers/persistent-store.d.ts +2 -2
- package/esm/plugins/finder/helpers/persistent-store.js +1 -1
- package/esm/plugins/finder/helpers/state-manager.d.ts +2 -2
- package/esm/plugins/finder/helpers/state-manager.js +1 -1
- package/esm/plugins/finder/ui/assets/icons/index.js +1 -1
- package/esm/plugins/finder/ui/folder/folder.d.ts +2 -2
- package/esm/plugins/finder/ui/folder/folder.js +1 -1
- package/esm/plugins/finder/ui/header/header.d.ts +3 -3
- package/esm/plugins/finder/ui/header/header.js +1 -1
- package/esm/plugins/finder/ui/item/item.d.ts +2 -2
- package/esm/plugins/finder/ui/item/item.js +1 -1
- package/esm/plugins/finder/ui/lightboox/lightbox.d.ts +3 -3
- package/esm/plugins/finder/ui/lightboox/lightbox.js +1 -1
- package/esm/plugins/finder/ui/panel/panel.d.ts +10 -10
- package/esm/plugins/finder/ui/panel/panel.js +1 -1
- package/esm/plugins/finder/ui/preview/preview.d.ts +4 -4
- package/esm/plugins/finder/ui/preview/preview.js +1 -1
- package/esm/plugins/finder/ui/progress/progress.d.ts +3 -3
- package/esm/plugins/finder/ui/progress/progress.js +1 -1
- package/esm/plugins/finder/ui/settings/settings.d.ts +3 -3
- package/esm/plugins/finder/ui/settings/settings.js +1 -1
- package/esm/plugins/finder/ui/sidebar/sidebar.d.ts +4 -4
- package/esm/plugins/finder/ui/sidebar/sidebar.js +1 -1
- package/esm/plugins/finder/ui/source/source.d.ts +2 -2
- package/esm/plugins/finder/ui/source/source.js +1 -1
- package/esm/plugins/finder/ui/sources/sources.d.ts +2 -2
- package/esm/plugins/finder/ui/sources/sources.js +1 -1
- package/esm/plugins/finder/ui/statusbar/statusbar.d.ts +1 -1
- package/esm/plugins/finder/ui/statusbar/statusbar.js +1 -1
- package/esm/plugins/finder/ui/tree/tree.d.ts +2 -2
- package/esm/plugins/finder/ui/tree/tree.js +1 -1
- package/esm/plugins/finder/ui/virtual-scroll/virtual-scroll.d.ts +7 -7
- package/esm/plugins/finder/ui/virtual-scroll/virtual-scroll.js +1 -1
- package/esm/plugins/google-maps/assets/index.js +1 -1
- package/esm/plugins/google-maps/config.js +1 -1
- package/esm/plugins/google-maps/google-maps.d.ts +2 -2
- package/esm/plugins/google-maps/google-maps.js +1 -1
- package/esm/plugins/google-maps/helpers/generate-js-script.d.ts +2 -2
- package/esm/plugins/google-maps/helpers/generate-js-script.js +1 -1
- package/esm/plugins/google-maps/helpers/generate-static-elements.d.ts +1 -1
- package/esm/plugins/google-maps/helpers/generate-static-elements.js +1 -1
- package/esm/plugins/google-maps/helpers/static-url.d.ts +1 -1
- package/esm/plugins/google-maps/helpers/static-url.js +1 -1
- package/esm/plugins/google-maps/ui/combo-box/combo-box.d.ts +1 -1
- package/esm/plugins/google-maps/ui/combo-box/combo-box.js +1 -1
- package/esm/plugins/google-maps/ui/editors/base.d.ts +2 -2
- package/esm/plugins/google-maps/ui/editors/base.js +1 -1
- package/esm/plugins/google-maps/ui/editors/index.js +1 -1
- package/esm/plugins/google-maps/ui/editors/marker/marker.d.ts +2 -2
- package/esm/plugins/google-maps/ui/editors/marker/marker.js +1 -1
- package/esm/plugins/google-maps/ui/editors/polygon/polygon.d.ts +2 -2
- package/esm/plugins/google-maps/ui/editors/polygon/polygon.js +1 -1
- package/esm/plugins/google-maps/ui/editors/polyline/polyline.d.ts +2 -2
- package/esm/plugins/google-maps/ui/editors/polyline/polyline.js +1 -1
- package/esm/plugins/google-maps/ui/index.js +1 -1
- package/esm/plugins/google-maps/ui/map/map.d.ts +4 -4
- package/esm/plugins/google-maps/ui/map/map.js +1 -1
- package/esm/plugins/google-maps/ui/map/modules/add-new-in-state.d.ts +2 -2
- package/esm/plugins/google-maps/ui/map/modules/add-new-in-state.js +1 -1
- package/esm/plugins/google-maps/ui/map/modules/index.js +1 -1
- package/esm/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.d.ts +2 -2
- package/esm/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.js +1 -1
- package/esm/plugins/google-maps/ui/map/modules/on-change-geometries.d.ts +2 -2
- package/esm/plugins/google-maps/ui/map/modules/on-change-geometries.js +1 -1
- package/esm/plugins/google-maps/ui/map/modules/open-props-dialog.d.ts +2 -2
- package/esm/plugins/google-maps/ui/map/modules/open-props-dialog.js +1 -1
- package/esm/plugins/google-maps/ui/map/modules/remove-element.d.ts +2 -2
- package/esm/plugins/google-maps/ui/map/modules/update-state-and-gme.d.ts +2 -2
- package/esm/plugins/google-maps/ui/map/modules/update-state-and-gme.js +1 -1
- package/esm/plugins/google-maps/ui/maps-controls/maps-controls.d.ts +2 -2
- package/esm/plugins/google-maps/ui/maps-controls/maps-controls.js +1 -1
- package/esm/plugins/google-maps/ui/maps-props/maps-props.d.ts +2 -2
- package/esm/plugins/google-maps/ui/maps-props/maps-props.js +1 -1
- package/esm/plugins/google-maps/ui/wysiwyg/wysiwyg.d.ts +2 -2
- package/esm/plugins/google-maps/ui/wysiwyg/wysiwyg.js +1 -1
- package/esm/plugins/google-search/google-search.d.ts +2 -2
- package/esm/plugins/google-search/google-search.js +1 -1
- package/esm/plugins/highlight-signature/highlight-signature.d.ts +2 -2
- package/esm/plugins/highlight-signature/highlight-signature.js +1 -1
- package/esm/plugins/iframe-editor/config.js +1 -1
- package/esm/plugins/iframe-editor/iframe-editor.d.ts +2 -2
- package/esm/plugins/iframe-editor/iframe-editor.js +1 -1
- package/esm/plugins/iframe-editor/ui/iframe-editor/iframe-editor.d.ts +2 -2
- package/esm/plugins/iframe-editor/ui/iframe-editor/iframe-editor.js +1 -1
- package/esm/plugins/index.d.ts +3 -3
- package/esm/plugins/index.js +1 -1
- package/esm/plugins/keyboard/config.d.ts +1 -1
- package/esm/plugins/keyboard/config.js +1 -1
- package/esm/plugins/keyboard/keyboard.d.ts +2 -2
- package/esm/plugins/keyboard/keyboard.js +1 -1
- package/esm/plugins/keyboard/ui/keyboard/keyboard.d.ts +2 -2
- package/esm/plugins/keyboard/ui/keyboard/keyboard.js +1 -1
- package/esm/plugins/license/license.d.ts +3 -3
- package/esm/plugins/license/license.js +1 -1
- package/esm/plugins/mobile-view/config.js +1 -1
- package/esm/plugins/mobile-view/mobile-view.js +1 -1
- package/esm/plugins/page-break/config.js +1 -1
- package/esm/plugins/page-break/page-break.d.ts +2 -2
- package/esm/plugins/page-break/page-break.js +1 -1
- package/esm/plugins/paste-code/config.d.ts +1 -1
- package/esm/plugins/paste-code/config.js +1 -1
- package/esm/plugins/paste-code/paste-code.d.ts +2 -2
- package/esm/plugins/paste-code/paste-code.js +1 -1
- package/esm/plugins/paste-from-word/cases/clean-styles.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/clear-attributes.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/clear-class-name.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/clear-class-name.js +1 -1
- package/esm/plugins/paste-from-word/cases/convert-style-unit-to-pixels.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/convert-style-unit-to-pixels.js +1 -1
- package/esm/plugins/paste-from-word/cases/convert-to-list.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/convert-to-list.js +1 -1
- package/esm/plugins/paste-from-word/cases/index.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/index.js +1 -1
- package/esm/plugins/paste-from-word/cases/mark-page-break.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/normalize-image-props.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/process-image.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/process-image.js +1 -1
- package/esm/plugins/paste-from-word/cases/process-links.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/remove-extra-tags.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/remove-inside-comment.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/remove-inside-comment.js +1 -1
- package/esm/plugins/paste-from-word/cases/replace-old-tags.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/table.d.ts +1 -1
- package/esm/plugins/paste-from-word/config.js +1 -1
- package/esm/plugins/paste-from-word/element/checkers.js +1 -1
- package/esm/plugins/paste-from-word/element/element.d.ts +1 -1
- package/esm/plugins/paste-from-word/element/element.js +1 -1
- package/esm/plugins/paste-from-word/element/index.js +1 -1
- package/esm/plugins/paste-from-word/element/render.d.ts +1 -1
- package/esm/plugins/paste-from-word/element/render.js +1 -1
- package/esm/plugins/paste-from-word/element/style.d.ts +1 -1
- package/esm/plugins/paste-from-word/element/style.js +1 -1
- package/esm/plugins/paste-from-word/helpers/apply-styles-pro.d.ts +1 -1
- package/esm/plugins/paste-from-word/helpers/apply-styles-pro.js +1 -1
- package/esm/plugins/paste-from-word/helpers/calc-list-levels.d.ts +1 -1
- package/esm/plugins/paste-from-word/helpers/calc-list-levels.js +1 -1
- package/esm/plugins/paste-from-word/helpers/helpers.d.ts +2 -2
- package/esm/plugins/paste-from-word/helpers/index.js +1 -1
- package/esm/plugins/paste-from-word/helpers/transform-word-to-html.d.ts +2 -2
- package/esm/plugins/paste-from-word/helpers/transform-word-to-html.js +1 -1
- package/esm/plugins/paste-from-word/interface.d.ts +1 -1
- package/esm/plugins/paste-from-word/paste-from-word.d.ts +3 -3
- package/esm/plugins/paste-from-word/paste-from-word.js +1 -1
- package/esm/plugins/show-blocks/config.js +1 -1
- package/esm/plugins/show-blocks/show-blocks.d.ts +2 -2
- package/esm/plugins/show-blocks/show-blocks.js +1 -1
- package/esm/plugins/todo-list/config.d.ts +1 -1
- package/esm/plugins/todo-list/config.js +1 -1
- package/esm/plugins/todo-list/todo-list.d.ts +2 -2
- package/esm/plugins/todo-list/todo-list.js +1 -1
- package/esm/plugins/translate/config.js +1 -1
- package/esm/plugins/translate/interface.d.ts +1 -1
- package/esm/plugins/translate/providers/google/google.d.ts +2 -2
- package/esm/plugins/translate/providers/google/google.js +1 -1
- package/esm/plugins/translate/translate.d.ts +2 -2
- package/esm/plugins/translate/translate.js +1 -1
- package/esm/plugins/translate/ui/list/list.d.ts +2 -2
- package/esm/plugins/translate/ui/list/list.js +1 -1
- package/esm/plugins/translate/ui/settings/settings.d.ts +3 -3
- package/esm/plugins/translate/ui/settings/settings.js +1 -1
- package/esm/plugins/tune-block/config.d.ts +1 -1
- package/esm/plugins/tune-block/config.js +1 -1
- package/esm/plugins/tune-block/tune-block.d.ts +2 -2
- package/esm/plugins/tune-block/tune-block.js +1 -1
- package/esm/plugins/tune-block/ui/tuner/tuner.d.ts +2 -2
- package/esm/plugins/tune-block/ui/tuner/tuner.js +1 -1
- package/esm/traits/resize/resize.d.ts +1 -1
- package/esm/traits/resize/resize.js +1 -1
- package/esm/traits/select-items/select-items.d.ts +1 -1
- package/esm/traits/select-items/select-items.js +1 -1
- package/esm/types/view.d.ts +1 -1
- package/package.json +1 -1
- package/types/core/ui/form/range/range.d.ts +2 -2
- package/types/jodit-pro.d.ts +1 -1
- package/types/plugins/autocomplete/autocomplete.d.ts +2 -2
- package/types/plugins/autocomplete/interface.d.ts +1 -1
- package/types/plugins/autocomplete/ui/autocomplete.d.ts +2 -2
- package/types/plugins/autocomplete/ui/item.d.ts +2 -2
- package/types/plugins/backup/backup.d.ts +2 -2
- package/types/plugins/backup/modules/store.d.ts +2 -2
- package/types/plugins/backup/ui/box.d.ts +3 -3
- package/types/plugins/backup/ui/item.d.ts +3 -3
- package/types/plugins/backup/ui/list.d.ts +3 -3
- package/types/plugins/button-generator/button-generator.d.ts +2 -2
- package/types/plugins/button-generator/ui/button/button.d.ts +2 -2
- package/types/plugins/button-generator/ui/form/form.d.ts +2 -2
- package/types/plugins/button-generator/ui/generator/button-generator.d.ts +2 -2
- package/types/plugins/button-generator/ui/preview/preview.d.ts +2 -2
- package/types/plugins/change-case/change-case.d.ts +2 -2
- package/types/plugins/color-picker/color-picker.d.ts +2 -2
- package/types/plugins/color-picker/ui/input/color-input.d.ts +2 -2
- package/types/plugins/emoji/emoji.d.ts +2 -2
- package/types/plugins/emoji/ui/emoji.d.ts +3 -3
- package/types/plugins/export-docs/config.d.ts +1 -1
- package/types/plugins/export-docs/export-docs.d.ts +2 -2
- package/types/plugins/finder/browser.d.ts +4 -4
- package/types/plugins/finder/finder.d.ts +2 -2
- package/types/plugins/finder/helpers/context-menu.d.ts +3 -3
- package/types/plugins/finder/helpers/history-manager.d.ts +2 -2
- package/types/plugins/finder/helpers/loading-manager.d.ts +2 -2
- package/types/plugins/finder/helpers/persistent-store.d.ts +2 -2
- package/types/plugins/finder/helpers/state-manager.d.ts +2 -2
- package/types/plugins/finder/ui/folder/folder.d.ts +2 -2
- package/types/plugins/finder/ui/header/header.d.ts +3 -3
- package/types/plugins/finder/ui/item/item.d.ts +2 -2
- package/types/plugins/finder/ui/lightboox/lightbox.d.ts +3 -3
- package/types/plugins/finder/ui/panel/panel.d.ts +10 -10
- package/types/plugins/finder/ui/preview/preview.d.ts +4 -4
- package/types/plugins/finder/ui/progress/progress.d.ts +3 -3
- package/types/plugins/finder/ui/settings/settings.d.ts +3 -3
- package/types/plugins/finder/ui/sidebar/sidebar.d.ts +4 -4
- package/types/plugins/finder/ui/source/source.d.ts +2 -2
- package/types/plugins/finder/ui/sources/sources.d.ts +2 -2
- package/types/plugins/finder/ui/statusbar/statusbar.d.ts +1 -1
- package/types/plugins/finder/ui/tree/tree.d.ts +2 -2
- package/types/plugins/finder/ui/virtual-scroll/virtual-scroll.d.ts +7 -7
- package/types/plugins/google-maps/google-maps.d.ts +2 -2
- package/types/plugins/google-maps/helpers/generate-js-script.d.ts +2 -2
- package/types/plugins/google-maps/helpers/generate-static-elements.d.ts +1 -1
- package/types/plugins/google-maps/helpers/static-url.d.ts +1 -1
- package/types/plugins/google-maps/ui/combo-box/combo-box.d.ts +1 -1
- package/types/plugins/google-maps/ui/editors/base.d.ts +2 -2
- package/types/plugins/google-maps/ui/editors/marker/marker.d.ts +2 -2
- package/types/plugins/google-maps/ui/editors/polygon/polygon.d.ts +2 -2
- package/types/plugins/google-maps/ui/editors/polyline/polyline.d.ts +2 -2
- package/types/plugins/google-maps/ui/map/map.d.ts +4 -4
- package/types/plugins/google-maps/ui/map/modules/add-new-in-state.d.ts +2 -2
- package/types/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.d.ts +2 -2
- package/types/plugins/google-maps/ui/map/modules/on-change-geometries.d.ts +2 -2
- package/types/plugins/google-maps/ui/map/modules/open-props-dialog.d.ts +2 -2
- package/types/plugins/google-maps/ui/map/modules/remove-element.d.ts +2 -2
- package/types/plugins/google-maps/ui/map/modules/update-state-and-gme.d.ts +2 -2
- package/types/plugins/google-maps/ui/maps-controls/maps-controls.d.ts +2 -2
- package/types/plugins/google-maps/ui/maps-props/maps-props.d.ts +2 -2
- package/types/plugins/google-maps/ui/wysiwyg/wysiwyg.d.ts +2 -2
- package/types/plugins/google-search/google-search.d.ts +2 -2
- package/types/plugins/highlight-signature/highlight-signature.d.ts +2 -2
- package/types/plugins/iframe-editor/iframe-editor.d.ts +2 -2
- package/types/plugins/iframe-editor/ui/iframe-editor/iframe-editor.d.ts +2 -2
- package/types/plugins/index.d.ts +3 -3
- package/types/plugins/keyboard/config.d.ts +1 -1
- package/types/plugins/keyboard/keyboard.d.ts +2 -2
- package/types/plugins/keyboard/ui/keyboard/keyboard.d.ts +2 -2
- package/types/plugins/license/license.d.ts +3 -3
- package/types/plugins/page-break/page-break.d.ts +2 -2
- package/types/plugins/paste-code/config.d.ts +1 -1
- package/types/plugins/paste-code/paste-code.d.ts +2 -2
- package/types/plugins/paste-from-word/cases/clean-styles.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/clear-attributes.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/clear-class-name.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/convert-style-unit-to-pixels.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/convert-to-list.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/index.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/mark-page-break.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/normalize-image-props.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/process-image.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/process-links.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/remove-extra-tags.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/remove-inside-comment.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/replace-old-tags.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/table.d.ts +1 -1
- package/types/plugins/paste-from-word/element/element.d.ts +1 -1
- package/types/plugins/paste-from-word/element/render.d.ts +1 -1
- package/types/plugins/paste-from-word/element/style.d.ts +1 -1
- package/types/plugins/paste-from-word/helpers/apply-styles-pro.d.ts +1 -1
- package/types/plugins/paste-from-word/helpers/calc-list-levels.d.ts +1 -1
- package/types/plugins/paste-from-word/helpers/helpers.d.ts +2 -2
- package/types/plugins/paste-from-word/helpers/transform-word-to-html.d.ts +2 -2
- package/types/plugins/paste-from-word/interface.d.ts +1 -1
- package/types/plugins/paste-from-word/paste-from-word.d.ts +3 -3
- package/types/plugins/show-blocks/show-blocks.d.ts +2 -2
- package/types/plugins/todo-list/config.d.ts +1 -1
- package/types/plugins/todo-list/todo-list.d.ts +2 -2
- package/types/plugins/translate/interface.d.ts +1 -1
- package/types/plugins/translate/providers/google/google.d.ts +2 -2
- package/types/plugins/translate/translate.d.ts +2 -2
- package/types/plugins/translate/ui/list/list.d.ts +2 -2
- package/types/plugins/translate/ui/settings/settings.d.ts +3 -3
- package/types/plugins/tune-block/config.d.ts +1 -1
- package/types/plugins/tune-block/tune-block.d.ts +2 -2
- package/types/plugins/tune-block/ui/tuner/tuner.d.ts +2 -2
- package/types/traits/resize/resize.d.ts +1 -1
- package/types/traits/select-items/select-items.d.ts +1 -1
- package/types/types/view.d.ts +1 -1
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,t,o,r){var i,
|
|
6
|
+
var e=this&&this.__decorate||function(e,t,o,r){var i,l=arguments.length,s=l<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var n=e.length-1;n>=0;n--)(i=e[n])&&(s=(l<3?i(s):l>3?i(t,o,s):i(t,o))||s);return l>3&&s&&Object.defineProperty(t,o,s),s};import{component as t,watch as o}from"../../core/decorators.js";import{css as r,dataBind as i}from"../../core/helpers/utils.js";import{Plugin as l}from"../../core/plugin.js";import{dataBindCurrentKey as s,dataBindStoredKey as n}from"./config.js";import{JoditPro as c}from"../../jodit-pro.js";let d=class MobileView extends l{constructor(){super(...arguments),this.buttons=[{name:"mobileView",group:"state"}],this.__currentMode="default"}afterInit(e){e.registerCommand("mobileView",{exec:(t,o,l)=>{this.__currentMode===l&&(l="default"),this.__currentMode=l,i(e,s,l),"default"!==this.__currentMode&&i(e,n,l),"default"===l?r(this.jodit.workplace,{width:null,margin:null}):r(this.j.workplace,{width:l,margin:"0 auto"})}}),e.events.on("beforeSetMode",(()=>{}))}__beforeSetMode(){"default"!==this.__currentMode&&this.j.execCommand("mobileView",!1,"default")}beforeDestruct(e){}};d.requires=["license"],e([o(":beforeSetMode.mobileView")],d.prototype,"__beforeSetMode",null),d=e([t],d),c.plugins.add("mobileView",d);
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import e from"./assets/page-break.svg.js";import r from"./page-break.css.js";import{Config as
|
|
6
|
+
import e from"./assets/page-break.svg.js";import r from"./page-break.css.js";import{Config as a}from"../../config.js";a.prototype.pageBreak={separator:'<div style="page-break-before: always"></div>'},a.prototype.controls.pageBreak={tooltip:"Insert page break",icon:e,command:"insertPageBreak"},a.prototype.iframeStyle=`${a.prototype.iframeStyle};${r.replace(/[\n\t]/g,"")}`;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { IJodit } from "
|
|
7
|
-
import { Plugin } from "
|
|
6
|
+
import type { IJodit } from "../../types";
|
|
7
|
+
import { Plugin } from "../../core/plugin";
|
|
8
8
|
import "./config";
|
|
9
9
|
export declare class PageBreak extends Plugin {
|
|
10
10
|
static requires: string[];
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,t,
|
|
6
|
+
var e=this&&this.__decorate||function(e,r,t,a){var o,i=arguments.length,s=i<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,r,t,a);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(s=(i<3?o(s):i>3?o(r,t,s):o(r,t))||s);return i>3&&s&&Object.defineProperty(r,t,s),s};import{debounce as r,watch as t}from"../../core/decorators.js";import{Dom as a}from"../../core/dom.js";import{$$ as o,attr as i}from"../../core/helpers.js";import{Plugin as s}from"../../core/plugin.js";import"./config.js";import{JoditPro as n}from"../../jodit-pro.js";export class PageBreak extends s{constructor(){super(...arguments),this.styles=styles,this.buttons=[{name:"pageBreak",group:"insert"}]}afterInit(e){e.registerCommand("insertPageBreak",(()=>{const r=e.createInside.div("",{});this.decoratePageBreak(r),e.s.insertNode(r,!1,!1);let t=r.parentNode;for(;t&&t!==e.editor&&(a.after(t,r),!a.isBlock(t));)t=r.parentNode;e.s.setCursorAfter(r),e.setEditorValue()}))}decoratePageBreak(e){i(e,{"data-jodit-page-break":!0,contenteditable:!1}),e.innerText=this.j.i18n("Page break")}beforeDestruct(){}onChange(){o('[style*="page-break-after"],[style*="page-break-before"]',this.j.editor).forEach((e=>{a.isEmpty(e)&&!i(e,"data-jodit-page-break")&&this.decoratePageBreak(e)}))}onAfterGetValueFromEditor(e){e.value=e.value.replace(/<div[^>]+data-jodit-page-break[^>]+>[^]*?<\/div>/gi,this.j.o.pageBreak.separator)}}PageBreak.requires=["license"],e([t([":change",":afterSetMode"]),r()],PageBreak.prototype,"onChange",null),e([t(":afterGetValueFromEditor")],PageBreak.prototype,"onAfterGetValueFromEditor",null),n.plugins.add("pageBreak",PageBreak);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { IJodit, IUIOption } from "
|
|
6
|
+
import type { IJodit, IUIOption } from "../../types";
|
|
7
7
|
declare global {
|
|
8
8
|
const Prism: {
|
|
9
9
|
languages: {
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{htmlspecialchars as t}from"
|
|
6
|
+
import{htmlspecialchars as t}from"../../core/helpers/html/htmlspecialchars.js";import e from"./icon.svg.js";import{Config as a}from"../../config.js";a.prototype.controls.pasteCode={icon:e,tooltip:"Paste code",command:"pasteCode"},a.prototype.pasteCode={globalHighlightLib:!1,canonicalLanguageCode(t){switch(t){case"ts":return"typescript";case"js":return"javascript";case"markup":return"html"}return t},highlightLib:{highlight:(t,e)=>"undefined"!=typeof Prism?Prism.highlight(t,Prism.languages[e]||Prism.languages.plain,e):t,isLangLoaded:t=>"undefined"!=typeof Prism&&Boolean(Prism.languages[t]),js:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/prism.min.js"],langUrl:t=>`https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/components/prism-${t}.min.js`,css:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/themes/prism.min.css"]},defaultLanguage:"html",insertTemplate:(e,a,s)=>`<pre class="language-${a}">${t(s)}</pre>`,languages:[{value:"html",text:"HTML/XML"},{value:"plaintext",text:"Plain"},{value:"bash",text:"Bash"},{value:"javascript",text:"JavaScript"},{value:"css",text:"CSS"},{value:"php",text:"PHP"},{value:"ruby",text:"Ruby"},{value:"python",text:"Python"},{value:"java",text:"Java"},{value:"c",text:"C"},{value:"csharp",text:"C#"},{value:"cpp",text:"C++"}],dialog:{width:700,height:600}};
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { IJodit, IPlugin } from "
|
|
7
|
-
import { Plugin } from "
|
|
6
|
+
import type { IJodit, IPlugin } from "../../types";
|
|
7
|
+
import { Plugin } from "../../core/plugin";
|
|
8
8
|
import "./config";
|
|
9
9
|
|
|
10
10
|
export declare class pasteCode extends Plugin {
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,t,o,i){var s
|
|
6
|
+
var e=this&&this.__decorate||function(e,t,o,i){var a,s=arguments.length,r=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,o,i);else for(var n=e.length-1;n>=0;n--)(a=e[n])&&(r=(s<3?a(r):s>3?a(t,o,r):a(t,o))||r);return s>3&&r&&Object.defineProperty(t,o,r),r};import{IS_PROD as t}from"../../core/constants.js";import{autobind as o,component as i,debounce as a,watch as s}from"../../core/decorators.js";import{$$ as r,appendScriptAsync as n,attr as l,loadNext as d,loadNextStyle as c,refs as h,stripTags as g}from"../../core/helpers.js";import{isBoolean as p}from"../../core/helpers/checker/is-boolean.js";import{htmlspecialchars as u}from"../../core/helpers/html/htmlspecialchars.js";import{Plugin as _}from"../../core/plugin.js";import{Button as m,UIForm as f,UISelect as C,UITextArea as j}from"../../core/ui/index.js";import{Dialog as L,Dom as b}from"../../modules.js";import"./config.js";import{JoditPro as E}from"../../jodit-pro.js";let v=class pasteCode extends _{constructor(){super(...arguments),this.buttons=[{name:"pasteCode",group:"clipboard"}],this.__highlightLibJSIsLoaded=!1,this.__loadLanguage=new Map}afterInit(e){e.registerCommand("pasteCode",(()=>this.__openCodeEditDialog()))}__openCodeEditDialog(e,t,o){const i=this.j,a=this.__createForm(),{code:s,language:r}=h(a.container);e&&(r.value=e),t&&(s.value=t),i.async.requestIdleCallback((()=>{s.focus()})),i.s.save(),this.__createDialog((()=>{if(!a.validate())return!1;{i.s.restore();const e=i.createInside.fromHTML(i.o.pasteCode.insertTemplate(i,r.value,s.value));if(o)b.replace(o,e,i.createInside,!1,!0);else{const t=i.s.current(),o=b.up(t,b.isBlock,i.editor);o&&!b.isCell(o)?b.after(o,e):i.s.insertNode(e)}this.__imdOnChange()}}),(()=>{i.s.restore()})).setContent(a.container).open(!0)}beforeDestruct(e){}__createForm(){const{jodit:e}=this;return new f(e,[new C(e,{name:"language",label:"Language",value:e.o.pasteCode.defaultLanguage,options:e.o.pasteCode.languages,required:!0}),new j(e,{label:"Code view",resizable:!1,name:"code",required:!0,className:"jodit-paste-code__textarea"})],{className:"jodit-paste-code"})}__createDialog(e,t){const o=new L({language:this.j.o.language});return o.setHeader("Insert/Edit Code Sample").setSize(this.j.o.pasteCode.dialog.width,this.j.o.pasteCode.dialog.height).setFooter([m(o,"","Cancel","default").onAction((()=>{o.close(),t()})),m(o,"save","Save","primary").onAction((()=>{o.close(),e()}))]),o}__onChange(){this.__imdOnChange()}__imdOnChange(){r("pre",this.j.editor).forEach((e=>{l(e,"contenteditable")||(l(e,"contenteditable",!1),this.__highlightCode(e))}))}async __highlightCode(e){const{globalHighlightLib:o,highlightLib:{css:i,js:a,langUrl:s,highlight:r,isLangLoaded:l}}=this.j.o.pasteCode;this.__highlightLibJSIsLoaded||o||(this.__highlightLibJSIsLoaded=waitingPromise(this.async,Promise.all([c(this.jodit,i).catch((()=>null)),d(this.jodit,a).catch((()=>null))]))),p(this.__highlightLibJSIsLoaded)||await this.__highlightLibJSIsLoaded;const h=this.__parseLanguage(e);l(h)||o||(this.__loadLanguage.has(h)||(t||console.log("Load language",h,"for paste-code"),this.__loadLanguage.set(h,waitingPromise(this.async,n(this.jodit,s(h)).catch((()=>null))))),await this.__loadLanguage.get(h));let g=e;e.firstElementChild===e.lastElementChild&&b.isTag(e.firstElementChild,"code")&&(g=e.firstElementChild),g.innerHTML=r(g.innerText,h)}onPreEdit(e){const t=b.isNode(e)&&b.isTag(e,"pre")?e:b.closest(e.target,"pre",this.j.editor);if(t){const e=this.__parseLanguage(t);this.__openCodeEditDialog(e,t.innerText,t)}}__parseLanguage(e){let t=null;const getLang=e=>e.classList.forEach((e=>{if(/language-/.test(e)){const o=/language-(.*)/.exec(e);o&&o[1]&&(t=o[1])}}));return getLang(e),null==t&&e.firstElementChild===e.lastElementChild&&b.isTag(e.firstElementChild,"code")&&getLang(e.firstElementChild),this.jodit.o.pasteCode.canonicalLanguageCode(t||"html")}onAfterGetValueFromEditor(e){const strip=(e,t,o,i,a,s)=>`${t.trim()}${i}${u(g(a,this.j.ed,new Set(["br"])))}${s}`;e.value=e.value.replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>\s*<code[^>]*>)(.*?)(<\/code>\s*<\/pre>)/gis,strip).replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>)(.*?)(<\/pre>)/gis,strip)}};v.requires=["license"],e([o],v.prototype,"__openCodeEditDialog",null),e([s("?:change"),a()],v.prototype,"__onChange",null),e([s(["?:dblclick","?:editPreInPasteCode"])],v.prototype,"onPreEdit",null),e([s("?:afterGetValueFromEditor")],v.prototype,"onAfterGetValueFromEditor",null),v=e([i],v);export{v as pasteCode};function waitingPromise(e,t){return e.promise(((e,o)=>{t.then(e).catch(o)}))}E.plugins.add("paste-code",v);
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { JElement } from "
|
|
6
|
+
import type { JElement } from "../element/element";
|
|
7
7
|
export declare function cleanStyles(elm: JElement): JElement;
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { JElement } from "
|
|
6
|
+
import type { JElement } from "../element";
|
|
7
7
|
export declare function clearAttributes(elm: JElement): null | JElement;
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { ICaseFn } from "
|
|
6
|
+
import type { ICaseFn } from "../interface";
|
|
7
7
|
export declare const clearClassName: ICaseFn;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{trim as s}from"
|
|
6
|
+
import{trim as s}from"../../../core/helpers/string/trim.js";export const clearClassName=t=>(t.attributes.class&&(t.attributes.class=t.attributes.class.replace(/(el\d+)|(font\d+)|msonormal|msolistparagraph\w*/gi,""),s(t.attributes.class)||(t.attributes.class=null)),t);
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { ICaseFn } from "
|
|
6
|
+
import type { ICaseFn } from "../interface";
|
|
7
7
|
export declare const convertStyleUnitToPixels: ICaseFn;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{convertUnitToPx as t}from"
|
|
6
|
+
import{convertUnitToPx as t}from"../helpers/index.js";export const convertStyleUnitToPixels=(e,{jodit:o})=>{if(!o.o.pasteFromWord.convertUnitsToPixel)return e;const{style:r}=e;return r.forEach((e=>{const o=r.get(e);o&&r.set(e,o.toString().replace(/\d+(\.\d+)?(pt|cm)/g,(e=>t(e)+"px")))})),e};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { JElement } from "
|
|
6
|
+
import type { JElement } from "../element/element";
|
|
7
7
|
export declare function convertToList(elm: JElement): JElement | null;
|
|
8
8
|
/**
|
|
9
9
|
* Remove redundancy default list styles.
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{SPACE_REG_EXP as t}from"
|
|
6
|
+
import{SPACE_REG_EXP as t}from"../../../core/constants.js";import{LEVEL_KEY as e,listStyleMap as r,STYLE_CSS_KEY as n,STYLE_KEY as s,STYLE_VALID_KEY as i,TYPE_KEY as a}from"../constants.js";import{html as o,isLeaf as u,isList as p,isPseudoLeaf as c,isSameType as l}from"../element/index.js";import{calcListLevels as b,calcStartBySymbol as f}from"../helpers/index.js";export function convertToList(t){if(c(t)){t.name="li",t.style.set("text-indent",null);const o=getSymbol(t),c=/[\da-np-zA-NP-Z].?/.test(o)?"ol":"ul",m=function defineOrderedListStyle(t,e){for(const e in r)if(RegExp(e).test(t))return r[e];return"ol"===e?"decimal":"disc"}(o,c);t.attributes[a]=c,t.attributes[s]=m,b(t),function moveUp(t){for(;t;){const r=t.previousElement;if(!u(r)&&!p(r))break;if(u(r)){if(t.attributes[e]<r.attributes[e])break;if(t.attributes[e]===r.attributes[e]&&t.parent&&l(t,t.parent))break;r.append(t);continue}const n=r;if(t.attributes[e]<n.attributes[e])break;if(t.attributes[e]===n.attributes[e]&&!l(t,n))break;n.append(t)}}(t);const{parent:d}=t;if(!p(d)||!l(t,d)){const r=function wrapInNewList(t,r,a,o){const u=t.wrap(r);return u.attributes.start=f(a),u.attributes[e]=t.attributes[e],u.attributes[s]=t.attributes[s],u.attributes[i]=t.attributes[s],u.style.set(n,o),removeRedundancyStyle(u),u}(t,c,o,m);return p(d)&&(r.remove(),d.lastElement?.append(r)),t}}return t}export function removeRedundancyStyle(t){!p(t)||"li"===t.parent?.name||"disc"!==t.style.get(n)&&"decimal"!==t.style.get(n)||t.style.set(n,null)}const getSymbol=e=>e.textBetween((t=>t.isComment&&/\[if.*supportLists.*]/.test(o(t))),(t=>t.isComment&&/\[endif]/.test(o(t)))).replace(/ /g,"").replace(t(),"");
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { ICaseFn } from "
|
|
6
|
+
import type { ICaseFn } from "../interface";
|
|
7
7
|
export declare const cases: ICaseFn[];
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{cleanStyles as r}from"./clean-styles";import{clearAttributes as o}from"./clear-attributes";import{clearClassName as m}from"./clear-class-name";import{convertStyleUnitToPixels as
|
|
6
|
+
import{cleanStyles as r}from"./clean-styles.js";import{clearAttributes as o}from"./clear-attributes.js";import{clearClassName as m}from"./clear-class-name.js";import{convertStyleUnitToPixels as s}from"./convert-style-unit-to-pixels.js";import{convertToList as t}from"./convert-to-list.js";import{markPageBreakElements as e}from"./mark-page-break.js";import{normalizeImageProps as i}from"./normalize-image-props.js";import{processImage as p}from"./process-image.js";import{processLinks as a}from"./process-links.js";import{removeExtraTags as f}from"./remove-extra-tags.js";import{removeInsideComment as j}from"./remove-inside-comment.js";import{replaceOldTags as l}from"./replace-old-tags.js";import{removeWidthFromTableCell as c}from"./table.js";export const cases=[p,e,f,l,o,t,a,j,s,m,i,c,r];
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { ICaseFn } from "
|
|
6
|
+
import type { ICaseFn } from "../interface";
|
|
7
7
|
export declare const markPageBreakElements: ICaseFn;
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { ICaseFn } from "
|
|
6
|
+
import type { ICaseFn } from "../interface";
|
|
7
7
|
export declare const normalizeImageProps: ICaseFn;
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { ICaseFn } from "
|
|
6
|
+
import type { ICaseFn } from "../interface";
|
|
7
7
|
export declare const processImage: ICaseFn;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{toArray as e}from"
|
|
6
|
+
import{toArray as e}from"../../../core/helpers.js";export const processImage=(t,s)=>{if(s.rtf&&"#comment"===t.name&&t.attributes.nodeValue&&-1!==t.attributes.nodeValue.indexOf("<v:shape")){s.shapes||(s.shapes={});const i=s.jodit.create.fromHTML(t.attributes.nodeValue);return e(i.getElementsByTagName("v:shape")).forEach((e=>{s.shapes[e.id]=e.getAttribute("o:spid")})),t}if("img"!==t.name)return t;if(s.rtf&&t.attributes["v:shapes"]){const e=s.shapes?.[t.attributes["v:shapes"]];if(e){const i=s.imageMap??{};s.imageMap||(s.imageMap=i,parseImages(s.rtf,"i","\\shppict",s.imageMap),parseImages(s.rtf,"s","\\shp{",s.imageMap));const n=i[e.substring(7)];if(n){const e=[],s=n.hex.match(/[0-9a-f]{2}/gi);if(s){for(let t=0;t<s.length;t++){const i=parseInt(s[t],16);e.push(String.fromCharCode(i))}t.attributes.src="data:"+n.type+";base64,"+btoa(e.join(""))}}}}return t};function parseImages(e,t,s,i){const n=e.split(s);for(const e of n){const s=e.split("shplid");if(1<s.length){const e=s[1];let n="";for(let t=0;t<e.length&&!/[{ \r\n\\]/.test(e[t]);t++)n+=e[t];const a=e.split("bliptag");if(a&&a.length<2)continue;let p=null;if(a[0].indexOf("pngblip")?p="image/png":-1!==a[0].indexOf("jpegblip")&&(p="image/jpeg"),!p)continue;const o=a[1].split("}");if(o&&o.length<2)continue;let r;if(2<o.length&&o[0].includes("blipuid"))r=o[1].split(" ");else{if(r=o[0].split(" "),r&&r.length<2)continue;r.shift()}i[t+n]={hex:r.join(""),type:p}}}}
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { ICaseFn } from "
|
|
6
|
+
import type { ICaseFn } from "../interface";
|
|
7
7
|
export declare const processLinks: ICaseFn;
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { JElement } from "
|
|
6
|
+
import type { JElement } from "../element/element";
|
|
7
7
|
export declare function removeExtraTags(elm: JElement): JElement | null;
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { JElement } from "
|
|
6
|
+
import type { JElement } from "../element/element";
|
|
7
7
|
export declare function removeInsideComment(elm: JElement): JElement | null;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{html as e}from"
|
|
6
|
+
import{html as e}from"../element/render.js";let t=0;export function removeInsideComment(m){return m.isComment&&/\[if.*(supportLists|gte vml).*]/.test(e(m))&&(t++,m.remove()),m.isComment&&t>0&&e(m).includes("[endif]")&&(t=t>0?t-1:0,m.remove()),t&&(m.isText||"img"===m.name&&(!m.attributes.src||/^file:/.test(m.attributes.src)))?(m.remove(),null):m}
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { JElement } from "
|
|
6
|
+
import type { JElement } from "../element/element";
|
|
7
7
|
export declare function replaceOldTags(elm: JElement): JElement;
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { ICaseFn } from "
|
|
6
|
+
import type { ICaseFn } from "../interface";
|
|
7
7
|
export declare const removeWidthFromTableCell: ICaseFn;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{Config as t}from"
|
|
6
|
+
import{Config as t}from"../../config.js";t.prototype.pasteFromWord={enable:!1,convertUnitsToPixel:!1,allowedStyleProps:["background","background-color","border","border-.*","color","float","font-family","font-size","font-style","font-weight","height","line-height","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","padding","text-align","text-justify","text-decoration","text-indent","vertical-align","width"]};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{html as t}from"./render";import{LEVEL_KEY as e,STYLE_KEY as s,TYPE_KEY as
|
|
6
|
+
import{html as t}from"./render.js";import{LEVEL_KEY as e,STYLE_KEY as s,TYPE_KEY as i}from"../constants.js";export function isList(t){return Boolean(t&&("ol"===t.name||"ul"===t.name))}export function isLeaf(t){return Boolean(t&&"li"===t.name)}export function isPseudoLeaf(e){return"li"!==e.name&&/mso-list:\s*l\d+ level\d+ lfo\d+/i.test(e.attributes.style)||/msolistparagraph/i.test(e.attributes.class)&&Boolean(e.find((e=>e.isComment&&t(e).includes("supportLists"))).length)}export function isSameType(t,n){const r=t.attributes[i],o=t.attributes[s];return!(n.name!==r||n.attributes[s]!==o||t.attributes[e]!==n.attributes[e])}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { IDictionary } from "
|
|
6
|
+
import type { IDictionary } from "../../../types";
|
|
7
7
|
import { Style } from "./style";
|
|
8
8
|
export declare class JElement {
|
|
9
9
|
parent: JElement | null;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{INSEPARABLE_TAGS as t}from"
|
|
6
|
+
import{INSEPARABLE_TAGS as t}from"../../../core/constants.js";import{Dom as e}from"../../../core/dom.js";import{assert as n}from"../../../core/helpers/utils/assert.js";import{html as r}from"./render.js";import{Style as i}from"./style.js";const s=new Set(t);export class JElement{get isText(){return this.type===Node.TEXT_NODE}get isElement(){return this.type===Node.ELEMENT_NODE}get isComment(){return this.type===Node.COMMENT_NODE}get isSingle(){return s.has(this.name)}get length(){return this.children.length}constructor(t,n){this.parent=n,this.name=t.nodeName.toLowerCase(),this.type=t.nodeType,this.attributes=function readAttributes(t){const n={};if(e.isElement(t))for(let e=0,r=t.attributes;e<r.length;e+=1)n[r[e].name]=r[e].value;else n.nodeValue=t.nodeValue;return n}(t),this.style=new i(this.attributes.style),this.children=[],t.childNodes.forEach((t=>this.children.push(JElement.make(t,this))))}static make(t,e=null){return new JElement(t,e)}wrap(t){n(null!=this.parent,"You can't wrap the root element");const e=JElement.make(document.createElement(t),this.parent),r=this.parent.children.indexOf(this)??-1;return-1===r?this.parent.append(e):this.parent.children[r]=e,e.append(this),e}append(t){return n(t!==this,"Forbidden to add to yourself"),t.remove(),this.children.push(t),t.parent=this,this}get previousElement(){if(!this.parent)return null;const{children:t}=this.parent,e=t.indexOf(this);if(-1!==e)for(let n=e-1;n>=0;n-=1)if(t[n].isElement)return t[n];return null}get lastElement(){const{children:t}=this;for(let e=t.length-1;e>=0;e-=1)if(t[e].isElement)return t[e];return null}get previous(){return this.sibling(!1)??this.parent?.previous??null}get next(){return this.sibling(!0)??this.parent?.next??null}sibling(t){if(!this.parent)return null;const{children:e}=this.parent,n=e.indexOf(this);return-1!==n&&e[n+(t?1:-1)]?e[n+(t?1:-1)]:null}forEach(t,e=!1){const n=[...this.children];for(const r of n){if(!1===t(r))return!1;if(e&&!1===r.forEach(t,!0))return!1}}find(t,e=!0){const n=[];return this.forEach((e=>{t(e)&&n.push(e)}),e),n}map(t){return this.children.map(t)}remove(){const t=this.parent?.children.indexOf(this);return null!=t&&-1!==t&&this.parent?.children.splice(t,1),this}textBetween(t,e){let n=!1;const i=[];return this.forEach((s=>{if(!n&&t(s)&&(n=!0),n&&s.isText&&i.push(r(s)),n&&e(s))return!1}),!0),i.join("")}}
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
export*from"./checkers";export*from"./element";export*from"./render";
|
|
6
|
+
export*from"./checkers.js";export*from"./element.js";export*from"./render.js";
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
6
|
import type { JElement } from "./element";
|
|
7
|
-
import type { RenderFilter } from "
|
|
7
|
+
import type { RenderFilter } from "../interface";
|
|
8
8
|
export declare function html(elm: JElement, filter?: RenderFilter, removeEmpty?: boolean, allowedStyleProps?: string[]): string;
|
|
9
9
|
export declare function innerHTML(elm: JElement, filter?: RenderFilter, removeEmpty?: boolean, allowedStyleProps?: string[]): string;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{IS_PROD as e}from"
|
|
6
|
+
import{IS_PROD as e}from"../../../core/constants.js";import{isBoolean as t}from"../../../core/helpers/checker/is-boolean.js";import{trim as n}from"../../../core/helpers/string/trim.js";export function html(t,n=(()=>!0),r=!0,s){switch(!0){case t.isComment:case t.isText:{if(!n(t))return"";const{nodeValue:e}=t.attributes;return t.isComment?`\x3c!--${e}--\x3e`:e}case t.isElement:{const{attributes:e}=t,i=innerHTML(t,n,r,s);if(!t.attributes["jd-safe"]&&r&&0===i.replace(/[\n\t]/g,"").length&&!t.isSingle)return"";const o=Object.keys(e).map((t=>"style"===t||null==e[t]||/^jd-/.test(t)?"":`${t}="${htmlEntity(e[t])}"`)).filter(Boolean),{str:c}=t.style,a=htmlEntity(c((e=>keyInList(e,s))));if(a&&o.push(`style="${a}"`),r&&0===o.length&&["span","a"].includes(t.name))return i;const l=o.length?" "+o.join(" "):"";return n(t)?t.isSingle?`<${t.name}${l}/>`:`<${t.name}${l}>${i}</${t.name}>`:i}default:if(!e)throw Error("Need implementation for this type")}return""}function keyInList(e,n){if(!n)return!0;if(keyInList.cache.has(n)){const r=keyInList.cache.get(n)?.get(e);if(t(r))return r}const r=n.some((t=>new RegExp(t).test(e))),s=keyInList.cache.get(n)||new Map;return s.set(e,r),keyInList.cache.set(n,s),r}keyInList.cache=new WeakMap;export function innerHTML(e,t=(()=>!0),r=!0,s){let i=e.map((e=>html(e,t,r,s))).join("");return"p"===e.name&&0===n(i).length&&(i=" "),i}function htmlEntity(e){return e.toString().replace(/"/g,""")}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { Nullable } from "
|
|
6
|
+
import type { Nullable } from "../../../types";
|
|
7
7
|
type V = Nullable<number | string>;
|
|
8
8
|
export declare class Style {
|
|
9
9
|
private _data;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var t=this&&this.__decorate||function(t,e,r,s){var i
|
|
6
|
+
var t=this&&this.__decorate||function(t,e,r,s){var a,i=arguments.length,o=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,s);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(o=(i<3?a(o):i>3?a(e,r,o):a(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o};import{autobind as e}from"../../../core/decorators.js";import{isString as r,kebabCase as s,trim as a}from"../../../core/helpers.js";import{calcMarginParts as i}from"../helpers/index.js";let o=class Style{constructor(t){this._data=readStyles(t)}get keys(){return Object.keys(this._data)}forEach(t){this.keys.forEach((e=>t(e)))}clear(){this._data={}}set(t,e){this._data[t]=e}get(t){return this._data[t]??null}has(t){return void 0!==this._data[t]}add(t,e){return this._data=readStyles(this.str()+";"+`${t}:${e}`),this}str(t=(t=>!0)){const e=Object.keys(this._data).filter((e=>e&&!/^mso-/.test(e)&&t(e)&&null!=this.get(e))),n=t=>r(t)?/^0[a-z]+$/i.test(t)?"0":t:t.toString();return["padding","margin"].forEach((t=>{if(this._data[t]){const r=e.indexOf(t),s=i(this._data[t]);["top","right","bottom","left"].forEach(((a,i)=>{const o=`${t}-${a}`,c=this._data[o];null!=c&&(e.indexOf(o)<r||n(s[i])===n(c))&&-1!==e.indexOf(o)&&e.splice(e.indexOf(o),1)}))}})),e.length?e.map((t=>`${s(t)}:${this.get(t)}`)).join(";"):""}};o=t([e],o);export{o as Style};function readStyles(t){return function uniqueMax(t){const e={},r=[];for(let s=t.length-1;s>=0;s-=1){const a=t[s][0];e[a]||(e[a]=!0,r.unshift(t[s]))}return r}((t??"").replace(/"/g,'"').split(";").filter(Boolean).map((t=>a(t).split(":").map(a)))).reduce(((t,[e,r])=>(e&&r&&(t[e]=r),t)),{})}
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { IJodit } from "
|
|
6
|
+
import type { IJodit } from "../../../types";
|
|
7
7
|
export declare function applyStylesPro(jodit: IJodit, html: string, removeStyles: boolean, rtf?: string): string;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{Dom as e}from"
|
|
6
|
+
import{Dom as e}from"../../../core/dom/dom.js";import{$$ as t,attr as o}from"../../../core/helpers/utils.js";import{transformWordToHtml as s}from"./transform-word-to-html.js";import{JElement as r}from"../element/index.js";export function applyStylesPro(l,n,c,m=""){const y=document.createElement("iframe");y.style.display="none",document.body.appendChild(y);try{const e=y.contentDocument??y.contentWindow?.document;if(!e)return n;e.open(),e.write(n),e.close();const d="jd-style";for(let s=0;s<e.styleSheets.length;s+=1)try{const r=e.styleSheets[s].cssRules;for(let s=0;s<r.length;s+=1)r[s].selectorText&&t(r[s].selectorText,e.body).forEach((e=>{o(e,d)||(o(e,d,o(e,"style")||""),o(e,"style","")),o(e,"style",`${o(e,"style")};${r[s].style.cssText}`)}))}catch(e){}return t(`[${d}]`,e.body).forEach((e=>{o(e,"style",`${o(e,"style")};${o(e,d)}`)})),s(l,r.make(e.body),c,m)}finally{e.safeRemove(y)}return n}
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import { JElement } from "
|
|
6
|
+
import { JElement } from "../element";
|
|
7
7
|
export declare function calcListLevels(item: JElement): void;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{realPixelIndent as t}from"./helpers";import{LEVEL_KEY as e}from"
|
|
6
|
+
import{realPixelIndent as t}from"./helpers.js";import{LEVEL_KEY as e}from"../constants.js";import{isPseudoLeaf as i,JElement as s}from"../element/index.js";export function calcListLevels(s){if(void 0!==s.attributes[e])return;const r=[t(s)],n=[s];let o=s.next;for(;o;){if(o.isElement&&!o.attributes[e]&&i(o)){const e=t(o);e&&(r.push(e),n.push(o))}o=o.next}const a=Math.min(...r.filter((t=>t>0)));let m=r.map((t=>Math.ceil(t/10)));-1!==m.indexOf(0)&&(m=m.map((t=>t+1))),n.forEach(((i,s)=>{i.attributes[e]=m[s],i.style.add("margin-left",`${Math.max(t(i)-10*m[s]/a*40,0)}px`)}))}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { Nullable } from "
|
|
7
|
-
import type { JElement } from "
|
|
6
|
+
import type { Nullable } from "../../../types";
|
|
7
|
+
import type { JElement } from "../element";
|
|
8
8
|
export declare function calcMarginParts(margin: string): number[] | string[];
|
|
9
9
|
/**
|
|
10
10
|
* Convert css units to pixels, excluding percentages
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
export*from"./apply-styles-pro";export*from"./calc-list-levels";export*from"./helpers";export*from"./transform-word-to-html";
|
|
6
|
+
export*from"./apply-styles-pro.js";export*from"./calc-list-levels.js";export*from"./helpers.js";export*from"./transform-word-to-html.js";
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { IJodit } from "
|
|
7
|
-
import type { JElement } from "
|
|
6
|
+
import type { IJodit } from "../../../types";
|
|
7
|
+
import type { JElement } from "../element";
|
|
8
8
|
export declare function transformWordToHtml(jodit: IJodit, body: JElement, removeStyles: boolean, rtf: string): string;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{trim as o}from"
|
|
6
|
+
import{trim as o}from"../../../core/helpers/string/trim.js";import{cases as r}from"../cases/index.js";import{innerHTML as e}from"../element/index.js";export function transformWordToHtml(t,m,f,n){const s={jodit:t,rtf:n};return m.forEach((function eachElm(o){if(o){for(const e of r)if(null==(o=e(o,s)))break;o?.forEach(eachElm)}})),f&&m.forEach((o=>{o.style.clear()}),!0),o(e(m,(o=>!o.isComment),!0,t.o.pasteFromWord.allowedStyleProps))}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { IDictionary, IJodit } from "
|
|
6
|
+
import type { IDictionary, IJodit } from "../../types";
|
|
7
7
|
import type { JElement } from "./element";
|
|
8
8
|
export type ICaseContext = IDictionary & {
|
|
9
9
|
jodit: IJodit;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { InsertMode } from "
|
|
7
|
-
import type { PastedData, PasteEvent } from "
|
|
6
|
+
import type { InsertMode } from "../../types";
|
|
7
|
+
import type { PastedData, PasteEvent } from "../paste/interface";
|
|
8
8
|
import "./config";
|
|
9
|
-
import { pasteFromWord } from "
|
|
9
|
+
import { pasteFromWord } from "./paste-from-word";
|
|
10
10
|
export declare class PasteFromWordPro extends pasteFromWord {
|
|
11
11
|
/** @override */
|
|
12
12
|
static requires: string[];
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{INSERT_AS_HTML as r,INSERT_AS_TEXT as o}from"
|
|
6
|
+
import{INSERT_AS_HTML as r,INSERT_AS_TEXT as o}from"../../core/constants.js";import{isString as e}from"../../core/helpers/checker/is-string.js";import"./config.js";import{applyStylesPro as s}from"./helpers/index.js";import{pasteInsertHtml as t}from"../paste/helpers.js";import{pasteFromWord as i}from"./paste-from-word.js";import{JoditPro as m}from"../../jodit-pro.js";export class PasteFromWordPro extends i{insertFromWordByType(i,m,p,a){if(!this.j.o.pasteFromWord.enable||p!==r&&p!==o)return super.insertFromWordByType(i,m,p,a);if(m=s(this.j,m,p===o,a.rtf),this.j.o.beautifyHTML){const r=this.j.events?.fire("beautifyHTML",m);e(r)&&(m=r)}t(i,this.j,m)}}PasteFromWordPro.requires=["license"],m.plugins.remove("pasteFromWord"),m.plugins.add("pasteFromWordPro",PasteFromWordPro);
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{Config as o}from"
|
|
6
|
+
import{Config as o}from"../../config.js";o.prototype.showBlocks={enable:!1,color:"#ccc",tagList:["html","body","div","span","applet","object","iframe","h1","h2","h3","h4","h5","h6","p","blockquote","pre","a","abbr","acronym","address","big","cite","code","del","dfn","em","img","ins","kbd","q","s","samp","small","strike","strong","sub","sup","tt","var","b","u","i","center","dl","dt","dd","fieldset","form","label","legend","caption","th","td","li","ol","ul","article","aside","canvas","details","embed","figure","figcaption","footer","header","hgroup","menu","nav","output","ruby","section","summary","time","mark","audio","video"]},o.prototype.controls.showBlocks={isActive:o=>Boolean(o.e.fire("showBlocksEnabled")),tooltip:"Show Blocks",command:"toggleShowBlocks"};
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { IJodit, IPlugin } from "
|
|
7
|
-
import { Plugin } from "
|
|
6
|
+
import type { IJodit, IPlugin } from "../../types";
|
|
7
|
+
import { Plugin } from "../../core/plugin";
|
|
8
8
|
import "./config";
|
|
9
9
|
/**
|
|
10
10
|
* Plugin for showing special markers inside every blocks
|