opentiny 6.9.0 → 6.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -58
- package/icons/default/icons.js +198 -0
- package/icons/default/icons.min.js +1 -0
- package/license.txt +21 -0
- package/models/dom/model.js +8051 -0
- package/models/dom/model.min.js +4 -0
- package/package.json +21 -32
- package/plugins/accordion/plugin.js +1054 -0
- package/plugins/accordion/plugin.min.js +4 -0
- package/plugins/advlist/plugin.js +259 -0
- package/plugins/advlist/plugin.min.js +4 -0
- package/plugins/anchor/plugin.js +214 -0
- package/plugins/anchor/plugin.min.js +4 -0
- package/plugins/autolink/plugin.js +228 -0
- package/plugins/autolink/plugin.min.js +4 -0
- package/plugins/autoresize/plugin.js +192 -0
- package/plugins/autoresize/plugin.min.js +4 -0
- package/plugins/autosave/plugin.js +233 -0
- package/plugins/autosave/plugin.min.js +4 -0
- package/plugins/charmap/plugin.js +3063 -0
- package/plugins/charmap/plugin.min.js +4 -0
- package/plugins/code/plugin.js +85 -0
- package/plugins/code/plugin.min.js +4 -0
- package/plugins/codesample/plugin.js +2463 -0
- package/plugins/codesample/plugin.min.js +4 -0
- package/plugins/directionality/plugin.js +395 -0
- package/plugins/directionality/plugin.min.js +4 -0
- package/plugins/emoticons/js/emojiimages.js +1 -0
- package/plugins/emoticons/js/emojiimages.min.js +3 -0
- package/plugins/emoticons/js/emojis.js +1 -0
- package/plugins/emoticons/js/emojis.min.js +2 -0
- package/plugins/emoticons/plugin.js +596 -0
- package/plugins/emoticons/plugin.min.js +4 -0
- package/plugins/fullscreen/plugin.js +1250 -0
- package/plugins/fullscreen/plugin.min.js +4 -0
- package/plugins/help/js/i18n/keynav/ar.js +90 -0
- package/plugins/help/js/i18n/keynav/bg_BG.js +90 -0
- package/plugins/help/js/i18n/keynav/ca.js +90 -0
- package/plugins/help/js/i18n/keynav/cs.js +90 -0
- package/plugins/help/js/i18n/keynav/da.js +90 -0
- package/plugins/help/js/i18n/keynav/de.js +90 -0
- package/plugins/help/js/i18n/keynav/el.js +90 -0
- package/plugins/help/js/i18n/keynav/en.js +90 -0
- package/plugins/help/js/i18n/keynav/es.js +90 -0
- package/plugins/help/js/i18n/keynav/eu.js +90 -0
- package/plugins/help/js/i18n/keynav/fa.js +90 -0
- package/plugins/help/js/i18n/keynav/fi.js +90 -0
- package/plugins/help/js/i18n/keynav/fr_FR.js +90 -0
- package/plugins/help/js/i18n/keynav/he_IL.js +90 -0
- package/plugins/help/js/i18n/keynav/hi.js +90 -0
- package/plugins/help/js/i18n/keynav/hr.js +90 -0
- package/plugins/help/js/i18n/keynav/hu_HU.js +90 -0
- package/plugins/help/js/i18n/keynav/id.js +90 -0
- package/plugins/help/js/i18n/keynav/it.js +90 -0
- package/plugins/help/js/i18n/keynav/ja.js +90 -0
- package/plugins/help/js/i18n/keynav/kk.js +90 -0
- package/plugins/help/js/i18n/keynav/ko_KR.js +90 -0
- package/plugins/help/js/i18n/keynav/ms.js +90 -0
- package/plugins/help/js/i18n/keynav/nb_NO.js +90 -0
- package/plugins/help/js/i18n/keynav/nl.js +90 -0
- package/plugins/help/js/i18n/keynav/pl.js +90 -0
- package/plugins/help/js/i18n/keynav/pt_BR.js +90 -0
- package/plugins/help/js/i18n/keynav/pt_PT.js +90 -0
- package/plugins/help/js/i18n/keynav/ro.js +90 -0
- package/plugins/help/js/i18n/keynav/ru.js +90 -0
- package/plugins/help/js/i18n/keynav/sk.js +90 -0
- package/plugins/help/js/i18n/keynav/sl_SI.js +90 -0
- package/plugins/help/js/i18n/keynav/sv_SE.js +90 -0
- package/plugins/help/js/i18n/keynav/th_TH.js +90 -0
- package/plugins/help/js/i18n/keynav/tr.js +90 -0
- package/plugins/help/js/i18n/keynav/uk.js +90 -0
- package/plugins/help/js/i18n/keynav/vi.js +90 -0
- package/plugins/help/js/i18n/keynav/zh_CN.js +84 -0
- package/plugins/help/js/i18n/keynav/zh_TW.js +90 -0
- package/plugins/help/plugin.js +908 -0
- package/plugins/help/plugin.min.js +4 -0
- package/plugins/image/plugin.js +1505 -0
- package/plugins/image/plugin.min.js +4 -0
- package/plugins/importcss/plugin.js +344 -0
- package/plugins/importcss/plugin.min.js +4 -0
- package/plugins/insertdatetime/plugin.js +187 -0
- package/plugins/insertdatetime/plugin.min.js +4 -0
- package/plugins/link/plugin.js +1243 -0
- package/plugins/link/plugin.min.js +4 -0
- package/plugins/lists/plugin.js +2172 -0
- package/plugins/lists/plugin.min.js +4 -0
- package/plugins/media/plugin.js +1217 -0
- package/plugins/media/plugin.min.js +4 -0
- package/plugins/nonbreaking/plugin.js +123 -0
- package/plugins/nonbreaking/plugin.min.js +4 -0
- package/plugins/pagebreak/plugin.js +117 -0
- package/plugins/pagebreak/plugin.min.js +4 -0
- package/plugins/preview/plugin.js +97 -0
- package/plugins/preview/plugin.min.js +4 -0
- package/plugins/quickbars/plugin.js +447 -0
- package/plugins/quickbars/plugin.min.js +4 -0
- package/plugins/save/plugin.js +119 -0
- package/plugins/save/plugin.min.js +4 -0
- package/plugins/searchreplace/plugin.js +1094 -0
- package/plugins/searchreplace/plugin.min.js +4 -0
- package/plugins/table/plugin.js +3465 -0
- package/plugins/table/plugin.min.js +4 -0
- package/plugins/visualblocks/plugin.js +98 -0
- package/plugins/visualblocks/plugin.min.js +4 -0
- package/plugins/visualchars/plugin.js +560 -0
- package/plugins/visualchars/plugin.min.js +4 -0
- package/plugins/wordcount/plugin.js +405 -0
- package/plugins/wordcount/plugin.min.js +4 -0
- package/skins/content/dark/content.css +66 -0
- package/skins/content/dark/content.js +2 -0
- package/skins/content/dark/content.js.map +1 -0
- package/skins/content/dark/content.min.css +2 -0
- package/skins/content/dark/content.min.css.map +1 -0
- package/skins/content/default/content.css +61 -0
- package/skins/content/default/content.js +2 -0
- package/skins/content/default/content.js.map +1 -0
- package/skins/content/default/content.min.css +2 -0
- package/skins/content/default/content.min.css.map +1 -0
- package/skins/content/document/content.css +66 -0
- package/skins/content/document/content.js +2 -0
- package/skins/content/document/content.js.map +1 -0
- package/skins/content/document/content.min.css +2 -0
- package/skins/content/document/content.min.css.map +1 -0
- package/skins/content/tinymce-5/content.css +61 -0
- package/skins/content/tinymce-5/content.js +2 -0
- package/skins/content/tinymce-5/content.js.map +1 -0
- package/skins/content/tinymce-5/content.min.css +2 -0
- package/skins/content/tinymce-5/content.min.css.map +1 -0
- package/skins/content/tinymce-5-dark/content.css +66 -0
- package/skins/content/tinymce-5-dark/content.js +2 -0
- package/skins/content/tinymce-5-dark/content.js.map +1 -0
- package/skins/content/tinymce-5-dark/content.min.css +2 -0
- package/skins/content/tinymce-5-dark/content.min.css.map +1 -0
- package/skins/content/writer/content.css +62 -0
- package/skins/content/writer/content.js +2 -0
- package/skins/content/writer/content.js.map +1 -0
- package/skins/content/writer/content.min.css +2 -0
- package/skins/content/writer/content.min.css.map +1 -0
- package/skins/ui/oxide/content.css +785 -0
- package/skins/ui/oxide/content.inline.css +779 -0
- package/skins/ui/oxide/content.inline.js +2 -0
- package/skins/ui/oxide/content.inline.js.map +1 -0
- package/skins/ui/oxide/content.inline.min.css +2 -0
- package/skins/ui/oxide/content.inline.min.css.map +1 -0
- package/skins/ui/oxide/content.js +2 -0
- package/skins/ui/oxide/content.js.map +1 -0
- package/skins/ui/oxide/content.min.css +2 -0
- package/skins/ui/oxide/content.min.css.map +1 -0
- package/skins/ui/oxide/skin.css +4052 -0
- package/skins/ui/oxide/skin.js +2 -0
- package/skins/ui/oxide/skin.js.map +1 -0
- package/skins/ui/oxide/skin.min.css +2 -0
- package/skins/ui/oxide/skin.min.css.map +1 -0
- package/skins/ui/oxide/skin.shadowdom.css +30 -0
- package/skins/ui/oxide/skin.shadowdom.js +2 -0
- package/skins/ui/oxide/skin.shadowdom.js.map +1 -0
- package/skins/ui/oxide/skin.shadowdom.min.css +2 -0
- package/skins/ui/oxide/skin.shadowdom.min.css.map +1 -0
- package/skins/ui/oxide-dark/content.css +766 -0
- package/skins/ui/oxide-dark/content.inline.css +779 -0
- package/skins/ui/oxide-dark/content.inline.js +2 -0
- package/skins/ui/oxide-dark/content.inline.js.map +1 -0
- package/skins/ui/oxide-dark/content.inline.min.css +2 -0
- package/skins/ui/oxide-dark/content.inline.min.css.map +1 -0
- package/skins/ui/oxide-dark/content.js +2 -0
- package/skins/ui/oxide-dark/content.js.map +1 -0
- package/skins/ui/oxide-dark/content.min.css +2 -0
- package/skins/ui/oxide-dark/content.min.css.map +1 -0
- package/skins/ui/oxide-dark/skin.css +4055 -0
- package/skins/ui/oxide-dark/skin.js +2 -0
- package/skins/ui/oxide-dark/skin.js.map +1 -0
- package/skins/ui/oxide-dark/skin.min.css +2 -0
- package/skins/ui/oxide-dark/skin.min.css.map +1 -0
- package/skins/ui/oxide-dark/skin.shadowdom.css +30 -0
- package/skins/ui/oxide-dark/skin.shadowdom.js +2 -0
- package/skins/ui/oxide-dark/skin.shadowdom.js.map +1 -0
- package/skins/ui/oxide-dark/skin.shadowdom.min.css +2 -0
- package/skins/ui/oxide-dark/skin.shadowdom.min.css.map +1 -0
- package/skins/ui/tinymce-5/content.css +785 -0
- package/skins/ui/tinymce-5/content.inline.css +779 -0
- package/skins/ui/tinymce-5/content.inline.js +2 -0
- package/skins/ui/tinymce-5/content.inline.js.map +1 -0
- package/skins/ui/tinymce-5/content.inline.min.css +2 -0
- package/skins/ui/tinymce-5/content.inline.min.css.map +1 -0
- package/skins/ui/tinymce-5/content.js +2 -0
- package/skins/ui/tinymce-5/content.js.map +1 -0
- package/skins/ui/tinymce-5/content.min.css +2 -0
- package/skins/ui/tinymce-5/content.min.css.map +1 -0
- package/skins/ui/tinymce-5/skin.css +4146 -0
- package/skins/ui/tinymce-5/skin.js +2 -0
- package/skins/ui/tinymce-5/skin.js.map +1 -0
- package/skins/ui/tinymce-5/skin.min.css +2 -0
- package/skins/ui/tinymce-5/skin.min.css.map +1 -0
- package/skins/ui/tinymce-5/skin.shadowdom.css +30 -0
- package/skins/ui/tinymce-5/skin.shadowdom.js +2 -0
- package/skins/ui/tinymce-5/skin.shadowdom.js.map +1 -0
- package/skins/ui/tinymce-5/skin.shadowdom.min.css +2 -0
- package/skins/ui/tinymce-5/skin.shadowdom.min.css.map +1 -0
- package/skins/ui/tinymce-5-dark/content.css +766 -0
- package/skins/ui/tinymce-5-dark/content.inline.css +779 -0
- package/skins/ui/tinymce-5-dark/content.inline.js +2 -0
- package/skins/ui/tinymce-5-dark/content.inline.js.map +1 -0
- package/skins/ui/tinymce-5-dark/content.inline.min.css +2 -0
- package/skins/ui/tinymce-5-dark/content.inline.min.css.map +1 -0
- package/skins/ui/tinymce-5-dark/content.js +2 -0
- package/skins/ui/tinymce-5-dark/content.js.map +1 -0
- package/skins/ui/tinymce-5-dark/content.min.css +2 -0
- package/skins/ui/tinymce-5-dark/content.min.css.map +1 -0
- package/skins/ui/tinymce-5-dark/skin.css +4146 -0
- package/skins/ui/tinymce-5-dark/skin.js +2 -0
- package/skins/ui/tinymce-5-dark/skin.js.map +1 -0
- package/skins/ui/tinymce-5-dark/skin.min.css +2 -0
- package/skins/ui/tinymce-5-dark/skin.min.css.map +1 -0
- package/skins/ui/tinymce-5-dark/skin.shadowdom.css +30 -0
- package/skins/ui/tinymce-5-dark/skin.shadowdom.js +2 -0
- package/skins/ui/tinymce-5-dark/skin.shadowdom.js.map +1 -0
- package/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +2 -0
- package/skins/ui/tinymce-5-dark/skin.shadowdom.min.css.map +1 -0
- package/themes/silver/theme.js +31084 -0
- package/themes/silver/theme.min.js +4 -0
- package/tinymce.d.ts +3255 -0
- package/tinymce.js +31957 -0
- package/tinymce.min.js +4 -0
- package/.eslintrc.json +0 -11
- package/CHANGELOG.md +0 -3443
- package/Gruntfile.js +0 -966
- package/project.json +0 -32
- package/src/core/demo/css/content_editable.css +0 -47
- package/src/core/demo/html/annotations_demo.html +0 -29
- package/src/core/demo/html/commands_demo.html +0 -16
- package/src/core/demo/html/content_editable_false_demo.html +0 -61
- package/src/core/demo/html/content_security_policy.html +0 -22
- package/src/core/demo/html/custom_theme_demo.html +0 -14
- package/src/core/demo/html/fixed_toolbar_container_demo.html +0 -22
- package/src/core/demo/html/full_demo.html +0 -48
- package/src/core/demo/html/iframe_demo.html +0 -15
- package/src/core/demo/html/iframe_demo_inner.html +0 -20
- package/src/core/demo/html/inline_demo.html +0 -423
- package/src/core/demo/html/jquery_integration.html +0 -21
- package/src/core/demo/html/responsive_demo.html +0 -126
- package/src/core/demo/html/shadow_dom_closed_demo.html +0 -14
- package/src/core/demo/html/shadow_dom_open_demo.html +0 -15
- package/src/core/demo/html/shadow_dom_open_inline_demo.html +0 -14
- package/src/core/demo/html/source_dump_demo.html +0 -17
- package/src/core/demo/html/sticky_toolbar_demo.html +0 -151
- package/src/core/demo/html/tiny_demo.html +0 -13
- package/src/core/demo/html/view_demo.html +0 -24
- package/src/core/demo/ts/demo/AnnotationsDemo.ts +0 -95
- package/src/core/demo/ts/demo/CommandsDemo.ts +0 -114
- package/src/core/demo/ts/demo/ContentEditableFalseDemo.ts +0 -88
- package/src/core/demo/ts/demo/ContentSecurityPolicyDemo.ts +0 -132
- package/src/core/demo/ts/demo/CustomThemeDemo.ts +0 -59
- package/src/core/demo/ts/demo/Demos.ts +0 -35
- package/src/core/demo/ts/demo/FixedToolbarContainerDemo.ts +0 -11
- package/src/core/demo/ts/demo/FullDemo.ts +0 -171
- package/src/core/demo/ts/demo/IframeDemo.ts +0 -49
- package/src/core/demo/ts/demo/InlineDemo.ts +0 -32
- package/src/core/demo/ts/demo/ResponsiveDemo.ts +0 -125
- package/src/core/demo/ts/demo/ShadowDomDemo.ts +0 -22
- package/src/core/demo/ts/demo/ShadowDomInlineDemo.ts +0 -27
- package/src/core/demo/ts/demo/SourceDumpDemo.ts +0 -33
- package/src/core/demo/ts/demo/StickyToolbarDemo.ts +0 -86
- package/src/core/demo/ts/demo/TinyMceDemo.ts +0 -36
- package/src/core/demo/ts/demo/ViewDemo.ts +0 -113
- package/src/core/main/js/GlobalsTemplate.js +0 -4
- package/src/core/main/json/globals.json +0 -54
- package/src/core/main/ts/Deprecations.ts +0 -127
- package/src/core/main/ts/DragDropOverrides.ts +0 -472
- package/src/core/main/ts/EditorRemove.ts +0 -113
- package/src/core/main/ts/EditorView.ts +0 -60
- package/src/core/main/ts/ErrorReporter.ts +0 -84
- package/src/core/main/ts/ForceBlocks.ts +0 -141
- package/src/core/main/ts/NodeChange.ts +0 -161
- package/src/core/main/ts/Rtc.ts +0 -455
- package/src/core/main/ts/SelectionOverrides.ts +0 -393
- package/src/core/main/ts/alien/Spot.ts +0 -13
- package/src/core/main/ts/alien/TextDescent.ts +0 -32
- package/src/core/main/ts/alien/TextSearch.ts +0 -85
- package/src/core/main/ts/annotate/AnnotationChanges.ts +0 -126
- package/src/core/main/ts/annotate/AnnotationContext.ts +0 -63
- package/src/core/main/ts/annotate/AnnotationFilter.ts +0 -49
- package/src/core/main/ts/annotate/AnnotationsRegistry.ts +0 -45
- package/src/core/main/ts/annotate/Identification.ts +0 -69
- package/src/core/main/ts/annotate/Markings.ts +0 -18
- package/src/core/main/ts/annotate/Wrapping.ts +0 -188
- package/src/core/main/ts/api/AddOnManager.ts +0 -302
- package/src/core/main/ts/api/Annotator.ts +0 -135
- package/src/core/main/ts/api/Editor.ts +0 -1146
- package/src/core/main/ts/api/EditorCommands.ts +0 -203
- package/src/core/main/ts/api/EditorManager.ts +0 -744
- package/src/core/main/ts/api/EditorObservable.ts +0 -221
- package/src/core/main/ts/api/EditorOptions.ts +0 -309
- package/src/core/main/ts/api/EditorUpload.ts +0 -363
- package/src/core/main/ts/api/Env.ts +0 -130
- package/src/core/main/ts/api/EventTypes.ts +0 -265
- package/src/core/main/ts/api/Events.ts +0 -133
- package/src/core/main/ts/api/FakeClipboard.ts +0 -82
- package/src/core/main/ts/api/FocusManager.ts +0 -34
- package/src/core/main/ts/api/Formatter.ts +0 -205
- package/src/core/main/ts/api/IconManager.ts +0 -39
- package/src/core/main/ts/api/Main.ts +0 -23
- package/src/core/main/ts/api/Mode.ts +0 -97
- package/src/core/main/ts/api/ModelManager.ts +0 -21
- package/src/core/main/ts/api/NotificationManager.ts +0 -197
- package/src/core/main/ts/api/OptionTypes.ts +0 -360
- package/src/core/main/ts/api/Options.ts +0 -1100
- package/src/core/main/ts/api/PluginManager.ts +0 -15
- package/src/core/main/ts/api/PublicApi.ts +0 -137
- package/src/core/main/ts/api/Resource.ts +0 -90
- package/src/core/main/ts/api/Shortcuts.ts +0 -266
- package/src/core/main/ts/api/ThemeManager.ts +0 -27
- package/src/core/main/ts/api/Tinymce.ts +0 -268
- package/src/core/main/ts/api/UndoManager.ts +0 -177
- package/src/core/main/ts/api/WindowManager.ts +0 -202
- package/src/core/main/ts/api/commands/AlignCommands.ts +0 -52
- package/src/core/main/ts/api/commands/ClipboardCommands.ts +0 -38
- package/src/core/main/ts/api/commands/Commands.ts +0 -55
- package/src/core/main/ts/api/commands/ContentCommands.ts +0 -45
- package/src/core/main/ts/api/commands/FormatCommands.ts +0 -78
- package/src/core/main/ts/api/commands/HistoryCommands.ts +0 -21
- package/src/core/main/ts/api/commands/IndentCommands.ts +0 -18
- package/src/core/main/ts/api/commands/LinkCommands.ts +0 -45
- package/src/core/main/ts/api/commands/NewBlockCommands.ts +0 -14
- package/src/core/main/ts/api/commands/NewlineCommands.ts +0 -20
- package/src/core/main/ts/api/commands/SelectionCommands.ts +0 -32
- package/src/core/main/ts/api/dom/BookmarkManager.ts +0 -74
- package/src/core/main/ts/api/dom/ControlSelection.ts +0 -512
- package/src/core/main/ts/api/dom/DOMUtils.ts +0 -1817
- package/src/core/main/ts/api/dom/EventUtils.ts +0 -482
- package/src/core/main/ts/api/dom/RangeUtils.ts +0 -120
- package/src/core/main/ts/api/dom/ScriptLoader.ts +0 -284
- package/src/core/main/ts/api/dom/Selection.ts +0 -618
- package/src/core/main/ts/api/dom/SelectorChanged.ts +0 -98
- package/src/core/main/ts/api/dom/Serializer.ts +0 -142
- package/src/core/main/ts/api/dom/StyleSheetLoader.ts +0 -256
- package/src/core/main/ts/api/dom/TextSeeker.ts +0 -92
- package/src/core/main/ts/api/dom/TreeWalker.ts +0 -129
- package/src/core/main/ts/api/file/BlobCache.ts +0 -143
- package/src/core/main/ts/api/fmt/Format.ts +0 -16
- package/src/core/main/ts/api/fmt/StyleFormat.ts +0 -30
- package/src/core/main/ts/api/geom/Rect.ts +0 -210
- package/src/core/main/ts/api/html/DomParser.ts +0 -517
- package/src/core/main/ts/api/html/Entities.ts +0 -279
- package/src/core/main/ts/api/html/Node.ts +0 -566
- package/src/core/main/ts/api/html/Schema.ts +0 -764
- package/src/core/main/ts/api/html/Serializer.ts +0 -171
- package/src/core/main/ts/api/html/StyleUtils.ts +0 -66
- package/src/core/main/ts/api/html/Styles.ts +0 -367
- package/src/core/main/ts/api/html/Writer.ts +0 -204
- package/src/core/main/ts/api/textpatterns/TextPatterns.ts +0 -15
- package/src/core/main/ts/api/ui/Registry.ts +0 -246
- package/src/core/main/ts/api/ui/Ui.ts +0 -31
- package/src/core/main/ts/api/util/Delay.ts +0 -73
- package/src/core/main/ts/api/util/EventDispatcher.ts +0 -341
- package/src/core/main/ts/api/util/FakeStorage.ts +0 -35
- package/src/core/main/ts/api/util/I18n.ts +0 -187
- package/src/core/main/ts/api/util/ImageUploader.ts +0 -51
- package/src/core/main/ts/api/util/LocalStorage.ts +0 -28
- package/src/core/main/ts/api/util/Observable.ts +0 -164
- package/src/core/main/ts/api/util/Tools.ts +0 -296
- package/src/core/main/ts/api/util/URI.ts +0 -522
- package/src/core/main/ts/api/util/VK.ts +0 -60
- package/src/core/main/ts/autocomplete/AutocompleteContext.ts +0 -76
- package/src/core/main/ts/autocomplete/AutocompleteLookup.ts +0 -73
- package/src/core/main/ts/autocomplete/AutocompleteTypes.ts +0 -21
- package/src/core/main/ts/autocomplete/AutocompleteUtils.ts +0 -12
- package/src/core/main/ts/autocomplete/Autocompleters.ts +0 -39
- package/src/core/main/ts/bookmark/BookmarkTypes.ts +0 -52
- package/src/core/main/ts/bookmark/Bookmarks.ts +0 -25
- package/src/core/main/ts/bookmark/CaretBookmark.ts +0 -242
- package/src/core/main/ts/bookmark/GetBookmark.ts +0 -231
- package/src/core/main/ts/bookmark/ResolveBookmark.ts +0 -268
- package/src/core/main/ts/caret/BlockBoundary.ts +0 -41
- package/src/core/main/ts/caret/CaretBr.ts +0 -34
- package/src/core/main/ts/caret/CaretCandidate.ts +0 -77
- package/src/core/main/ts/caret/CaretContainer.ts +0 -185
- package/src/core/main/ts/caret/CaretContainerInline.ts +0 -76
- package/src/core/main/ts/caret/CaretContainerInput.ts +0 -50
- package/src/core/main/ts/caret/CaretContainerRemove.ts +0 -95
- package/src/core/main/ts/caret/CaretFinder.ts +0 -102
- package/src/core/main/ts/caret/CaretPosition.ts +0 -407
- package/src/core/main/ts/caret/CaretPositionPredicates.ts +0 -55
- package/src/core/main/ts/caret/CaretUtils.ts +0 -323
- package/src/core/main/ts/caret/CaretWalker.ts +0 -245
- package/src/core/main/ts/caret/ClosestCaretCandidate.ts +0 -145
- package/src/core/main/ts/caret/FakeCaret.ts +0 -230
- package/src/core/main/ts/caret/FakeCaretUtils.ts +0 -60
- package/src/core/main/ts/caret/InsertText.ts +0 -37
- package/src/core/main/ts/caret/LineReader.ts +0 -133
- package/src/core/main/ts/caret/LineUtils.ts +0 -34
- package/src/core/main/ts/caret/LineWalker.ts +0 -165
- package/src/core/main/ts/caret/TableCells.ts +0 -90
- package/src/core/main/ts/commands/Font.ts +0 -60
- package/src/core/main/ts/commands/IndentOutdent.ts +0 -81
- package/src/core/main/ts/commands/LineHeight.ts +0 -24
- package/src/core/main/ts/content/ContentCleanup.ts +0 -28
- package/src/core/main/ts/content/ContentTypes.ts +0 -54
- package/src/core/main/ts/content/EditorContent.ts +0 -11
- package/src/core/main/ts/content/GetContent.ts +0 -24
- package/src/core/main/ts/content/GetContentImpl.ts +0 -67
- package/src/core/main/ts/content/InsertContent.ts +0 -62
- package/src/core/main/ts/content/InsertContentImpl.ts +0 -378
- package/src/core/main/ts/content/InsertList.ts +0 -212
- package/src/core/main/ts/content/NbspTrim.ts +0 -30
- package/src/core/main/ts/content/Placeholder.ts +0 -115
- package/src/core/main/ts/content/PrePostProcess.ts +0 -86
- package/src/core/main/ts/content/SetContent.ts +0 -23
- package/src/core/main/ts/content/SetContentImpl.ts +0 -98
- package/src/core/main/ts/content/TransparentElements.ts +0 -168
- package/src/core/main/ts/delete/BlockBoundaryDelete.ts +0 -25
- package/src/core/main/ts/delete/BlockMergeBoundary.ts +0 -92
- package/src/core/main/ts/delete/BlockRangeDelete.ts +0 -68
- package/src/core/main/ts/delete/CaretBoundaryDelete.ts +0 -81
- package/src/core/main/ts/delete/CefDelete.ts +0 -115
- package/src/core/main/ts/delete/CefDeleteAction.ts +0 -141
- package/src/core/main/ts/delete/DeleteCommands.ts +0 -74
- package/src/core/main/ts/delete/DeleteElement.ts +0 -168
- package/src/core/main/ts/delete/DeleteUtils.ts +0 -111
- package/src/core/main/ts/delete/DetailsDelete.ts +0 -258
- package/src/core/main/ts/delete/ImageBlockDelete.ts +0 -22
- package/src/core/main/ts/delete/InlineBoundaryDelete.ts +0 -127
- package/src/core/main/ts/delete/InlineFormatDelete.ts +0 -169
- package/src/core/main/ts/delete/MediaDelete.ts +0 -47
- package/src/core/main/ts/delete/MergeBlocks.ts +0 -128
- package/src/core/main/ts/delete/MergeText.ts +0 -66
- package/src/core/main/ts/delete/Outdent.ts +0 -25
- package/src/core/main/ts/delete/TableDelete.ts +0 -293
- package/src/core/main/ts/delete/TableDeleteAction.ts +0 -214
- package/src/core/main/ts/delete/TableDeleteUtils.ts +0 -67
- package/src/core/main/ts/dom/CefUtils.ts +0 -18
- package/src/core/main/ts/dom/Dimensions.ts +0 -39
- package/src/core/main/ts/dom/DomSerializerFilters.ts +0 -230
- package/src/core/main/ts/dom/DomSerializerImpl.ts +0 -132
- package/src/core/main/ts/dom/DomSerializerPreProcess.ts +0 -58
- package/src/core/main/ts/dom/ElementType.ts +0 -44
- package/src/core/main/ts/dom/ElementUtils.ts +0 -135
- package/src/core/main/ts/dom/Empty.ts +0 -122
- package/src/core/main/ts/dom/MousePosition.ts +0 -76
- package/src/core/main/ts/dom/NodePath.ts +0 -39
- package/src/core/main/ts/dom/NodeType.ts +0 -142
- package/src/core/main/ts/dom/PaddingBr.ts +0 -62
- package/src/core/main/ts/dom/Parents.ts +0 -24
- package/src/core/main/ts/dom/Position.ts +0 -74
- package/src/core/main/ts/dom/RangePoint.ts +0 -15
- package/src/core/main/ts/dom/RemoveTrailingBr.ts +0 -85
- package/src/core/main/ts/dom/ScrollIntoView.ts +0 -193
- package/src/core/main/ts/dom/StyleSheetLoaderRegistry.ts +0 -33
- package/src/core/main/ts/dom/TextWalker.ts +0 -34
- package/src/core/main/ts/dom/TrimBody.ts +0 -107
- package/src/core/main/ts/dom/TrimNode.ts +0 -76
- package/src/core/main/ts/events/DragEvents.ts +0 -99
- package/src/core/main/ts/events/EventUtils.ts +0 -141
- package/src/core/main/ts/events/InputEvents.ts +0 -46
- package/src/core/main/ts/events/TouchEvents.ts +0 -87
- package/src/core/main/ts/file/BlobCacheUtils.ts +0 -65
- package/src/core/main/ts/file/Conversions.ts +0 -110
- package/src/core/main/ts/file/ImageScanner.ts +0 -101
- package/src/core/main/ts/file/UploadStatus.ts +0 -79
- package/src/core/main/ts/file/Uploader.ts +0 -211
- package/src/core/main/ts/fmt/ApplyFormat.ts +0 -383
- package/src/core/main/ts/fmt/CaretFormat.ts +0 -375
- package/src/core/main/ts/fmt/DefaultFormats.ts +0 -264
- package/src/core/main/ts/fmt/ExpandRange.ts +0 -373
- package/src/core/main/ts/fmt/FontInfo.ts +0 -60
- package/src/core/main/ts/fmt/FormatChanged.ts +0 -205
- package/src/core/main/ts/fmt/FormatContainer.ts +0 -24
- package/src/core/main/ts/fmt/FormatRegistry.ts +0 -92
- package/src/core/main/ts/fmt/FormatTypes.ts +0 -82
- package/src/core/main/ts/fmt/FormatUtils.ts +0 -366
- package/src/core/main/ts/fmt/Hooks.ts +0 -69
- package/src/core/main/ts/fmt/ListItemFormat.ts +0 -55
- package/src/core/main/ts/fmt/MatchFormat.ts +0 -242
- package/src/core/main/ts/fmt/MergeFormats.ts +0 -108
- package/src/core/main/ts/fmt/MergeUtils.ts +0 -128
- package/src/core/main/ts/fmt/Preview.ts +0 -336
- package/src/core/main/ts/fmt/RemoveFormat.ts +0 -679
- package/src/core/main/ts/fmt/TableFormats.ts +0 -51
- package/src/core/main/ts/fmt/ToggleFormat.ts +0 -20
- package/src/core/main/ts/focus/CefFocus.ts +0 -33
- package/src/core/main/ts/focus/EditorFocus.ts +0 -139
- package/src/core/main/ts/focus/FocusController.ts +0 -151
- package/src/core/main/ts/focus/MediaFocus.ts +0 -25
- package/src/core/main/ts/frames/Frames.ts +0 -22
- package/src/core/main/ts/frames/Navigation.ts +0 -21
- package/src/core/main/ts/frames/OuterPosition.ts +0 -26
- package/src/core/main/ts/geom/ClientRect.ts +0 -154
- package/src/core/main/ts/html/AstNodeType.ts +0 -10
- package/src/core/main/ts/html/Embed.ts +0 -55
- package/src/core/main/ts/html/FilterNode.ts +0 -111
- package/src/core/main/ts/html/FilterRegistry.ts +0 -58
- package/src/core/main/ts/html/InvalidNodes.ts +0 -189
- package/src/core/main/ts/html/LegacyFilter.ts +0 -80
- package/src/core/main/ts/html/Namespace.ts +0 -47
- package/src/core/main/ts/html/NonEditableFilter.ts +0 -108
- package/src/core/main/ts/html/ParserFilters.ts +0 -176
- package/src/core/main/ts/html/ParserUtils.ts +0 -62
- package/src/core/main/ts/html/Sanitization.ts +0 -268
- package/src/core/main/ts/init/ContentCss.ts +0 -46
- package/src/core/main/ts/init/Init.ts +0 -195
- package/src/core/main/ts/init/InitContentBody.ts +0 -509
- package/src/core/main/ts/init/InitIframe.ts +0 -127
- package/src/core/main/ts/init/LicenseKeyValidation.ts +0 -21
- package/src/core/main/ts/init/Render.ts +0 -263
- package/src/core/main/ts/keyboard/ArrowKeys.ts +0 -58
- package/src/core/main/ts/keyboard/Autocompleter.ts +0 -158
- package/src/core/main/ts/keyboard/BoundaryCaret.ts +0 -67
- package/src/core/main/ts/keyboard/BoundaryLocation.ts +0 -195
- package/src/core/main/ts/keyboard/BoundarySelection.ts +0 -139
- package/src/core/main/ts/keyboard/CefNavigation.ts +0 -124
- package/src/core/main/ts/keyboard/CefUtils.ts +0 -24
- package/src/core/main/ts/keyboard/ContentEndpointNavigation.ts +0 -46
- package/src/core/main/ts/keyboard/DeleteBackspaceKeys.ts +0 -127
- package/src/core/main/ts/keyboard/DetailsNavigation.ts +0 -50
- package/src/core/main/ts/keyboard/EnterKey.ts +0 -87
- package/src/core/main/ts/keyboard/FormatShortcuts.ts +0 -21
- package/src/core/main/ts/keyboard/HomeEndKeys.ts +0 -40
- package/src/core/main/ts/keyboard/InlineUtils.ts +0 -77
- package/src/core/main/ts/keyboard/InputKeys.ts +0 -15
- package/src/core/main/ts/keyboard/InsertSpace.ts +0 -72
- package/src/core/main/ts/keyboard/KeyboardOverrides.ts +0 -44
- package/src/core/main/ts/keyboard/MatchKeys.ts +0 -65
- package/src/core/main/ts/keyboard/MediaNavigation.ts +0 -36
- package/src/core/main/ts/keyboard/NavigationUtils.ts +0 -168
- package/src/core/main/ts/keyboard/Nbsps.ts +0 -213
- package/src/core/main/ts/keyboard/PageUpDownKeys.ts +0 -68
- package/src/core/main/ts/keyboard/PreventNoneditableInput.ts +0 -14
- package/src/core/main/ts/keyboard/SpaceKey.ts +0 -34
- package/src/core/main/ts/keyboard/TabKey.ts +0 -37
- package/src/core/main/ts/keyboard/TableNavigation.ts +0 -182
- package/src/core/main/ts/mode/EditableRoot.ts +0 -18
- package/src/core/main/ts/mode/Mode.ts +0 -69
- package/src/core/main/ts/mode/Readonly.ts +0 -179
- package/src/core/main/ts/newline/ContextSelectors.ts +0 -24
- package/src/core/main/ts/newline/InsertBlock.ts +0 -442
- package/src/core/main/ts/newline/InsertBr.ts +0 -177
- package/src/core/main/ts/newline/InsertDetailsNewLine.ts +0 -46
- package/src/core/main/ts/newline/InsertLi.ts +0 -141
- package/src/core/main/ts/newline/InsertNewLine.ts +0 -64
- package/src/core/main/ts/newline/NewBlock.ts +0 -44
- package/src/core/main/ts/newline/NewLineAction.ts +0 -121
- package/src/core/main/ts/newline/NewLineUtils.ts +0 -236
- package/src/core/main/ts/options/NormalizeOptions.ts +0 -152
- package/src/core/main/ts/paste/Clipboard.ts +0 -337
- package/src/core/main/ts/paste/Commands.ts +0 -38
- package/src/core/main/ts/paste/CutCopy.ts +0 -116
- package/src/core/main/ts/paste/DragDrop.ts +0 -159
- package/src/core/main/ts/paste/InternalHtml.ts +0 -21
- package/src/core/main/ts/paste/Newlines.ts +0 -46
- package/src/core/main/ts/paste/Paste.ts +0 -33
- package/src/core/main/ts/paste/PasteBin.ts +0 -135
- package/src/core/main/ts/paste/PasteUtils.ts +0 -150
- package/src/core/main/ts/paste/PrePostProcess.ts +0 -25
- package/src/core/main/ts/paste/ProcessFilters.ts +0 -58
- package/src/core/main/ts/paste/Quirks.ts +0 -97
- package/src/core/main/ts/paste/SmartPaste.ts +0 -81
- package/src/core/main/ts/schema/CustomElementsRuleParser.ts +0 -24
- package/src/core/main/ts/schema/GlobalAttributesSet.ts +0 -25
- package/src/core/main/ts/schema/Presets.ts +0 -27
- package/src/core/main/ts/schema/SchemaElementSets.ts +0 -70
- package/src/core/main/ts/schema/SchemaLookupTable.ts +0 -230
- package/src/core/main/ts/schema/SchemaTypes.ts +0 -80
- package/src/core/main/ts/schema/SchemaUtils.ts +0 -31
- package/src/core/main/ts/schema/ValidChildrenRuleParser.ts +0 -51
- package/src/core/main/ts/schema/ValidElementsRuleParser.ts +0 -138
- package/src/core/main/ts/selection/CaretRangeFromPoint.ts +0 -15
- package/src/core/main/ts/selection/DetailsElement.ts +0 -41
- package/src/core/main/ts/selection/EditableRange.ts +0 -9
- package/src/core/main/ts/selection/ElementSelection.ts +0 -148
- package/src/core/main/ts/selection/EventProcessRanges.ts +0 -12
- package/src/core/main/ts/selection/FragmentReader.ts +0 -87
- package/src/core/main/ts/selection/GetSelectionContent.ts +0 -11
- package/src/core/main/ts/selection/GetSelectionContentImpl.ts +0 -104
- package/src/core/main/ts/selection/MultiClickSelection.ts +0 -86
- package/src/core/main/ts/selection/MultiRange.ts +0 -33
- package/src/core/main/ts/selection/NormalizeRange.ts +0 -299
- package/src/core/main/ts/selection/RangeCompare.ts +0 -13
- package/src/core/main/ts/selection/RangeInsertNode.ts +0 -40
- package/src/core/main/ts/selection/RangeMap.ts +0 -31
- package/src/core/main/ts/selection/RangeNodes.ts +0 -40
- package/src/core/main/ts/selection/RangeNormalizer.ts +0 -38
- package/src/core/main/ts/selection/RangeTypes.ts +0 -6
- package/src/core/main/ts/selection/RangeWalk.ts +0 -107
- package/src/core/main/ts/selection/SelectionBookmark.ts +0 -107
- package/src/core/main/ts/selection/SelectionRestore.ts +0 -63
- package/src/core/main/ts/selection/SelectionUtils.ts +0 -144
- package/src/core/main/ts/selection/SetSelectionContent.ts +0 -124
- package/src/core/main/ts/selection/SimpleTableModel.ts +0 -168
- package/src/core/main/ts/selection/SplitRange.ts +0 -55
- package/src/core/main/ts/selection/TableCellSelection.ts +0 -31
- package/src/core/main/ts/selection/WordSelection.ts +0 -37
- package/src/core/main/ts/text/Bidi.ts +0 -7
- package/src/core/main/ts/text/CharType.ts +0 -18
- package/src/core/main/ts/text/ExtendingChar.ts +0 -42
- package/src/core/main/ts/text/Whitespace.ts +0 -53
- package/src/core/main/ts/text/Zwsp.ts +0 -27
- package/src/core/main/ts/textpatterns/TextPatterns.ts +0 -10
- package/src/core/main/ts/textpatterns/core/BlockPattern.ts +0 -62
- package/src/core/main/ts/textpatterns/core/BlockPatternOnSpace.ts +0 -29
- package/src/core/main/ts/textpatterns/core/BlockPatternUtils.ts +0 -90
- package/src/core/main/ts/textpatterns/core/InlinePattern.ts +0 -326
- package/src/core/main/ts/textpatterns/core/Pattern.ts +0 -141
- package/src/core/main/ts/textpatterns/core/PatternTypes.ts +0 -86
- package/src/core/main/ts/textpatterns/keyboard/KeyHandler.ts +0 -97
- package/src/core/main/ts/textpatterns/keyboard/Keyboard.ts +0 -75
- package/src/core/main/ts/textpatterns/utils/Marker.ts +0 -50
- package/src/core/main/ts/textpatterns/utils/PathRange.ts +0 -81
- package/src/core/main/ts/textpatterns/utils/Utils.ts +0 -71
- package/src/core/main/ts/ui/NotificationManagerImpl.ts +0 -13
- package/src/core/main/ts/ui/WindowManagerImpl.ts +0 -15
- package/src/core/main/ts/undo/Diff.ts +0 -151
- package/src/core/main/ts/undo/Fragments.ts +0 -89
- package/src/core/main/ts/undo/Levels.ts +0 -99
- package/src/core/main/ts/undo/Locks.ts +0 -4
- package/src/core/main/ts/undo/Operations.ts +0 -167
- package/src/core/main/ts/undo/Setup.ts +0 -157
- package/src/core/main/ts/undo/TypingState.ts +0 -22
- package/src/core/main/ts/undo/UndoManagerTypes.ts +0 -50
- package/src/core/main/ts/util/ArrUtils.ts +0 -149
- package/src/core/main/ts/util/LazyEvaluator.ts +0 -16
- package/src/core/main/ts/util/Predicate.ts +0 -29
- package/src/core/main/ts/util/Quirks.ts +0 -739
- package/src/core/main/ts/util/Uuid.ts +0 -25
- package/src/core/main/ts/view/VisualAids.ts +0 -5
- package/src/core/main/ts/view/VisualAidsImpl.ts +0 -41
- package/src/core/test/assets/icons/custom/icons.js +0 -6
- package/src/core/test/assets/js/nested.js +0 -2
- package/src/core/test/assets/js/test.js +0 -1
- package/src/core/test/assets/langs/custom.js +0 -3
- package/src/core/test/json/routes.json +0 -395
- package/src/core/test/ts/atomic/autocomplete/ParserTest.ts +0 -54
- package/src/core/test/ts/atomic/file/ConversionsTest.ts +0 -34
- package/src/core/test/ts/atomic/html/FilterNodeTest.ts +0 -57
- package/src/core/test/ts/atomic/keyboard/MatchKeysTest.ts +0 -123
- package/src/core/test/ts/atomic/keyboard/NbspsTest.ts +0 -22
- package/src/core/test/ts/atomic/paste/InternalHtmlTest.ts +0 -25
- package/src/core/test/ts/atomic/paste/NewlinesTest.ts +0 -60
- package/src/core/test/ts/atomic/schema/CustomElementsRuleParserTest.ts +0 -53
- package/src/core/test/ts/atomic/schema/GlobalAttributesSetTest.ts +0 -42
- package/src/core/test/ts/atomic/schema/PresetsTest.ts +0 -42
- package/src/core/test/ts/atomic/schema/SchemaElementSetsTest.ts +0 -122
- package/src/core/test/ts/atomic/schema/SchemaLookupTableTest.ts +0 -37
- package/src/core/test/ts/atomic/schema/ValidChildrenRuleParserTest.ts +0 -175
- package/src/core/test/ts/atomic/schema/ValidElementsRuleParserTest.ts +0 -331
- package/src/core/test/ts/atomic/text/BidiTest.ts +0 -12
- package/src/core/test/ts/atomic/text/ExtendingCharTest.ts +0 -11
- package/src/core/test/ts/atomic/text/WhitespaceTest.ts +0 -32
- package/src/core/test/ts/atomic/text/ZwspTest.ts +0 -12
- package/src/core/test/ts/atomic/textpatterns/FindBlockPatternsTest.ts +0 -47
- package/src/core/test/ts/atomic/util/LazyEvaluatorTest.ts +0 -26
- package/src/core/test/ts/atomic/util/PredicateTest.ts +0 -25
- package/src/core/test/ts/browser/AddOnManagerTest.ts +0 -90
- package/src/core/test/ts/browser/ClickContentEditableFalseTest.ts +0 -76
- package/src/core/test/ts/browser/DragDropOverridesTest.ts +0 -801
- package/src/core/test/ts/browser/EditableRootTest.ts +0 -97
- package/src/core/test/ts/browser/EditorAutoFocusTest.ts +0 -84
- package/src/core/test/ts/browser/EditorCleanupTest.ts +0 -65
- package/src/core/test/ts/browser/EditorManagerCommandsTest.ts +0 -87
- package/src/core/test/ts/browser/EditorManagerSetupTest.ts +0 -40
- package/src/core/test/ts/browser/EditorManagerTest.ts +0 -206
- package/src/core/test/ts/browser/EditorOptionsTest.ts +0 -227
- package/src/core/test/ts/browser/EditorRemoveTest.ts +0 -101
- package/src/core/test/ts/browser/EditorRemovedApiTest.ts +0 -43
- package/src/core/test/ts/browser/EditorRtlTest.ts +0 -36
- package/src/core/test/ts/browser/EditorTest.ts +0 -543
- package/src/core/test/ts/browser/EditorUploadTest.ts +0 -663
- package/src/core/test/ts/browser/EditorViewTest.ts +0 -101
- package/src/core/test/ts/browser/FakeClipboardTest.ts +0 -83
- package/src/core/test/ts/browser/FontSelectCustomTest.ts +0 -63
- package/src/core/test/ts/browser/FontSelectTest.ts +0 -172
- package/src/core/test/ts/browser/ForceBlocksTest.ts +0 -167
- package/src/core/test/ts/browser/FormatterApplyTest.ts +0 -2563
- package/src/core/test/ts/browser/FormatterCheckTest.ts +0 -358
- package/src/core/test/ts/browser/FormatterClosestTest.ts +0 -79
- package/src/core/test/ts/browser/FormatterRemoveTest.ts +0 -619
- package/src/core/test/ts/browser/FormattingCommandsTest.ts +0 -554
- package/src/core/test/ts/browser/InlineEditorRemoveTest.ts +0 -28
- package/src/core/test/ts/browser/InlineEditorSaveTest.ts +0 -27
- package/src/core/test/ts/browser/MiscCommandsTest.ts +0 -75
- package/src/core/test/ts/browser/ModeTest.ts +0 -111
- package/src/core/test/ts/browser/NotificationManagerTest.ts +0 -256
- package/src/core/test/ts/browser/PadEmptyWithBrTest.ts +0 -38
- package/src/core/test/ts/browser/ReadOnlyModeTest.ts +0 -305
- package/src/core/test/ts/browser/ResourceTest.ts +0 -86
- package/src/core/test/ts/browser/SelectionOverridesTest.ts +0 -338
- package/src/core/test/ts/browser/ShortcutsTest.ts +0 -106
- package/src/core/test/ts/browser/UndoManagerTest.ts +0 -759
- package/src/core/test/ts/browser/WindowManagerTest.ts +0 -46
- package/src/core/test/ts/browser/annotate/AnnotateBlocksTest.ts +0 -723
- package/src/core/test/ts/browser/annotate/AnnotateTest.ts +0 -209
- package/src/core/test/ts/browser/annotate/AnnotationChangedTest.ts +0 -352
- package/src/core/test/ts/browser/annotate/AnnotationPersistenceTest.ts +0 -129
- package/src/core/test/ts/browser/annotate/AnnotationRemovedTest.ts +0 -211
- package/src/core/test/ts/browser/annotate/AnnotationStylingTest.ts +0 -311
- package/src/core/test/ts/browser/api/EditorCommandsTest.ts +0 -341
- package/src/core/test/ts/browser/api/OptionsTest.ts +0 -34
- package/src/core/test/ts/browser/api/commands/ContentCommandsTest.ts +0 -91
- package/src/core/test/ts/browser/api/commands/NewBlockCommandsTest.ts +0 -251
- package/src/core/test/ts/browser/api/commands/NewlineCommandsTest.ts +0 -131
- package/src/core/test/ts/browser/api/dom/RangeExpandTest.ts +0 -77
- package/src/core/test/ts/browser/api/dom/RangeUtilsTest.ts +0 -45
- package/src/core/test/ts/browser/bookmark/BookmarksTest.ts +0 -313
- package/src/core/test/ts/browser/bookmark/CaretBookmarkTest.ts +0 -163
- package/src/core/test/ts/browser/caret/CaretCandidateTest.ts +0 -60
- package/src/core/test/ts/browser/caret/CaretContainerRemoveTest.ts +0 -63
- package/src/core/test/ts/browser/caret/CaretContainerTest.ts +0 -163
- package/src/core/test/ts/browser/caret/CaretFinderTest.ts +0 -410
- package/src/core/test/ts/browser/caret/CaretPositionPredicatesTest.ts +0 -59
- package/src/core/test/ts/browser/caret/CaretPositionTest.ts +0 -202
- package/src/core/test/ts/browser/caret/CaretUtilsTest.ts +0 -249
- package/src/core/test/ts/browser/caret/CaretWalkerTest.ts +0 -308
- package/src/core/test/ts/browser/caret/ClosestCaretCandidateTest.ts +0 -717
- package/src/core/test/ts/browser/caret/FakeCaretTest.ts +0 -143
- package/src/core/test/ts/browser/caret/FakeCaretTypeTest.ts +0 -29
- package/src/core/test/ts/browser/caret/FirefoxFakeCaretBeforeTableTypeTest.ts +0 -54
- package/src/core/test/ts/browser/caret/LineReaderTest.ts +0 -539
- package/src/core/test/ts/browser/caret/LineUtilsTest.ts +0 -22
- package/src/core/test/ts/browser/caret/LineWalkerTest.ts +0 -93
- package/src/core/test/ts/browser/caret/TableCellsTest.ts +0 -249
- package/src/core/test/ts/browser/commands/ContentLangTest.ts +0 -83
- package/src/core/test/ts/browser/commands/LineHeightTest.ts +0 -95
- package/src/core/test/ts/browser/commands/OutdentCommandTest.ts +0 -151
- package/src/core/test/ts/browser/content/CustomElementsTest.ts +0 -39
- package/src/core/test/ts/browser/content/EditorContentEventsTest.ts +0 -153
- package/src/core/test/ts/browser/content/EditorContentForcedRootBlockTest.ts +0 -20
- package/src/core/test/ts/browser/content/EditorContentNotInitializedTest.ts +0 -86
- package/src/core/test/ts/browser/content/EditorContentTest.ts +0 -704
- package/src/core/test/ts/browser/content/EditorContentWsTest.ts +0 -18
- package/src/core/test/ts/browser/content/EditorGetContentRawTest.ts +0 -86
- package/src/core/test/ts/browser/content/EditorGetContentTextFormatTest.ts +0 -35
- package/src/core/test/ts/browser/content/EditorGetContentTreeTest.ts +0 -49
- package/src/core/test/ts/browser/content/EditorResetContentTest.ts +0 -97
- package/src/core/test/ts/browser/content/HTMLDataURLsTest.ts +0 -32
- package/src/core/test/ts/browser/content/InsertContentCommandTest.ts +0 -429
- package/src/core/test/ts/browser/content/InsertContentTest.ts +0 -869
- package/src/core/test/ts/browser/content/InsertContentWebKitBugs.ts +0 -21
- package/src/core/test/ts/browser/content/InsertListTest.ts +0 -48
- package/src/core/test/ts/browser/content/InsertUnsanitizedContentTest.ts +0 -40
- package/src/core/test/ts/browser/content/PlaceholderVisuallyEmptyTest.ts +0 -54
- package/src/core/test/ts/browser/content/TransparentElementsTest.ts +0 -242
- package/src/core/test/ts/browser/delete/BlockBoundaryDeleteTest.ts +0 -494
- package/src/core/test/ts/browser/delete/BlockMergeBoundaryTest.ts +0 -113
- package/src/core/test/ts/browser/delete/BlockRangeDeleteTest.ts +0 -162
- package/src/core/test/ts/browser/delete/CaretBoundaryDeleteTest.ts +0 -123
- package/src/core/test/ts/browser/delete/CefDeleteActionTest.ts +0 -336
- package/src/core/test/ts/browser/delete/CefDeleteNoneditableTest.ts +0 -106
- package/src/core/test/ts/browser/delete/CefDeleteTest.ts +0 -321
- package/src/core/test/ts/browser/delete/DeleteBeforeInputEventTest.ts +0 -23
- package/src/core/test/ts/browser/delete/DeleteCommandsTest.ts +0 -106
- package/src/core/test/ts/browser/delete/DeleteElementTest.ts +0 -242
- package/src/core/test/ts/browser/delete/DeleteUtilsTest.ts +0 -119
- package/src/core/test/ts/browser/delete/DetailsDeleteTest.ts +0 -162
- package/src/core/test/ts/browser/delete/ImageBlockDeleteTest.ts +0 -66
- package/src/core/test/ts/browser/delete/InlineBoundaryDeleteTest.ts +0 -126
- package/src/core/test/ts/browser/delete/InlineFormatDeleteTest.ts +0 -986
- package/src/core/test/ts/browser/delete/InlineFormatPostShortcutDeleteTest.ts +0 -324
- package/src/core/test/ts/browser/delete/MediaDeleteTest.ts +0 -83
- package/src/core/test/ts/browser/delete/MergeBlocksTest.ts +0 -243
- package/src/core/test/ts/browser/delete/OutdentTest.ts +0 -43
- package/src/core/test/ts/browser/delete/TableDeleteActionTest.ts +0 -197
- package/src/core/test/ts/browser/delete/TableDeleteTest.ts +0 -671
- package/src/core/test/ts/browser/dom/ContentCssCorsTest.ts +0 -129
- package/src/core/test/ts/browser/dom/ControlSelectionTest.ts +0 -265
- package/src/core/test/ts/browser/dom/DimensionsTest.ts +0 -45
- package/src/core/test/ts/browser/dom/DomUtilsTest.ts +0 -991
- package/src/core/test/ts/browser/dom/ElementTypeTest.ts +0 -78
- package/src/core/test/ts/browser/dom/EmptyTest.ts +0 -79
- package/src/core/test/ts/browser/dom/EventUtilsTest.ts +0 -497
- package/src/core/test/ts/browser/dom/NodePathTest.ts +0 -41
- package/src/core/test/ts/browser/dom/NodeTypeTest.ts +0 -123
- package/src/core/test/ts/browser/dom/PaddingBrTest.ts +0 -59
- package/src/core/test/ts/browser/dom/ParentsTest.ts +0 -99
- package/src/core/test/ts/browser/dom/RangePointTest.ts +0 -42
- package/src/core/test/ts/browser/dom/ReferrerPolicyTest.ts +0 -45
- package/src/core/test/ts/browser/dom/ScriptLoaderTest.ts +0 -113
- package/src/core/test/ts/browser/dom/ScrollIntoViewTest.ts +0 -305
- package/src/core/test/ts/browser/dom/SelectionEventsTest.ts +0 -116
- package/src/core/test/ts/browser/dom/SelectionQuirksTest.ts +0 -84
- package/src/core/test/ts/browser/dom/SelectionTest.ts +0 -1380
- package/src/core/test/ts/browser/dom/SerializerEventsTest.ts +0 -50
- package/src/core/test/ts/browser/dom/SerializerTest.ts +0 -926
- package/src/core/test/ts/browser/dom/StyleSheetLoaderRegistryTest.ts +0 -40
- package/src/core/test/ts/browser/dom/StyleSheetLoaderTest.ts +0 -70
- package/src/core/test/ts/browser/dom/TreeWalkerTest.ts +0 -97
- package/src/core/test/ts/browser/dom/TrimBodyTest.ts +0 -188
- package/src/core/test/ts/browser/dom/TrimNodeTest.ts +0 -52
- package/src/core/test/ts/browser/file/BlobCacheTest.ts +0 -98
- package/src/core/test/ts/browser/file/ConversionsTest.ts +0 -25
- package/src/core/test/ts/browser/file/ImageScannerTest.ts +0 -71
- package/src/core/test/ts/browser/file/UploadStatusTest.ts +0 -33
- package/src/core/test/ts/browser/fmt/BlockFormatsTest.ts +0 -75
- package/src/core/test/ts/browser/fmt/CaretFormatTest.ts +0 -894
- package/src/core/test/ts/browser/fmt/DefaultFormatsWithSchemaTest.ts +0 -79
- package/src/core/test/ts/browser/fmt/ExpandRangeTest.ts +0 -311
- package/src/core/test/ts/browser/fmt/FontInfoTest.ts +0 -158
- package/src/core/test/ts/browser/fmt/FontsizeFormatTest.ts +0 -25
- package/src/core/test/ts/browser/fmt/FormatChangeSelectionTest.ts +0 -111
- package/src/core/test/ts/browser/fmt/FormatChangeVarsTest.ts +0 -191
- package/src/core/test/ts/browser/fmt/FormatEmptyLineTest.ts +0 -428
- package/src/core/test/ts/browser/fmt/FormatNoneditableTest.ts +0 -762
- package/src/core/test/ts/browser/fmt/HooksTest.ts +0 -67
- package/src/core/test/ts/browser/fmt/ListItemFormatTest.ts +0 -377
- package/src/core/test/ts/browser/fmt/MediaAlignTest.ts +0 -81
- package/src/core/test/ts/browser/fmt/PreviewTest.ts +0 -255
- package/src/core/test/ts/browser/fmt/RemoveFormatTest.ts +0 -284
- package/src/core/test/ts/browser/fmt/RemoveHighlightFormatTest.ts +0 -48
- package/src/core/test/ts/browser/fmt/RemoveTrailingWhitespaceFormatTest.ts +0 -44
- package/src/core/test/ts/browser/fmt/TableFormatsTest.ts +0 -178
- package/src/core/test/ts/browser/fmt/TextDecorationColorTest.ts +0 -197
- package/src/core/test/ts/browser/focus/CefFocusTest.ts +0 -34
- package/src/core/test/ts/browser/focus/EditorFocusTest.ts +0 -89
- package/src/core/test/ts/browser/focus/FocusControllerTest.ts +0 -83
- package/src/core/test/ts/browser/focus/HighlightOnFocusTest.ts +0 -146
- package/src/core/test/ts/browser/focus/KeyboardShortcutElementPathFocusTest.ts +0 -30
- package/src/core/test/ts/browser/focus/KeyboardShortcutMenuFocusTest.ts +0 -31
- package/src/core/test/ts/browser/focus/MediaFocusTest.ts +0 -27
- package/src/core/test/ts/browser/geom/ClientRectTest.ts +0 -118
- package/src/core/test/ts/browser/geom/RectTest.ts +0 -94
- package/src/core/test/ts/browser/html/DomParserTest.ts +0 -1702
- package/src/core/test/ts/browser/html/EntitiesTest.ts +0 -127
- package/src/core/test/ts/browser/html/NamespaceTest.ts +0 -61
- package/src/core/test/ts/browser/html/NodeTest.ts +0 -443
- package/src/core/test/ts/browser/html/NonEditableFilterTest.ts +0 -42
- package/src/core/test/ts/browser/html/ParserUtilsTest.ts +0 -78
- package/src/core/test/ts/browser/html/SanitizationTest.ts +0 -75
- package/src/core/test/ts/browser/html/SchemaTest.ts +0 -887
- package/src/core/test/ts/browser/html/SerializerTest.ts +0 -70
- package/src/core/test/ts/browser/html/StylesTest.ts +0 -269
- package/src/core/test/ts/browser/html/WriterTest.ts +0 -155
- package/src/core/test/ts/browser/init/ContentCssTest.ts +0 -49
- package/src/core/test/ts/browser/init/ContentStylePositionTest.ts +0 -28
- package/src/core/test/ts/browser/init/EditorCustomThemeTest.ts +0 -141
- package/src/core/test/ts/browser/init/EditorInitializationTest.ts +0 -245
- package/src/core/test/ts/browser/init/InitContentBodyDirectionalityTest.ts +0 -48
- package/src/core/test/ts/browser/init/InitContentBodyEditInitialContentTest.ts +0 -43
- package/src/core/test/ts/browser/init/InitContentBodyFiltersTest.ts +0 -29
- package/src/core/test/ts/browser/init/InitContentBodySelectionTest.ts +0 -47
- package/src/core/test/ts/browser/init/InitDocumentWriteTest.ts +0 -21
- package/src/core/test/ts/browser/init/InitEditorIconTest.ts +0 -41
- package/src/core/test/ts/browser/init/InitEditorLanguageTest.ts +0 -27
- package/src/core/test/ts/browser/init/InitEditorNoThemeIframeTest.ts +0 -33
- package/src/core/test/ts/browser/init/InitEditorNoThemeInlineTest.ts +0 -42
- package/src/core/test/ts/browser/init/InitEditorOnHiddenElementTest.ts +0 -16
- package/src/core/test/ts/browser/init/InitEditorPluginInitErrorTest.ts +0 -50
- package/src/core/test/ts/browser/init/InitEditorThemeFunctionIframeTest.ts +0 -41
- package/src/core/test/ts/browser/init/InitEditorThemeFunctionInlineTest.ts +0 -49
- package/src/core/test/ts/browser/init/InitEventsOrderTest.ts +0 -45
- package/src/core/test/ts/browser/init/InitIframeAriaTextTest.ts +0 -34
- package/src/core/test/ts/browser/init/InitIframeEditorCookiesTest.ts +0 -22
- package/src/core/test/ts/browser/init/InitIframeEditorWithCustomAttrsTest.ts +0 -26
- package/src/core/test/ts/browser/init/InitIframeEditorWithTabindexTest.ts +0 -29
- package/src/core/test/ts/browser/init/InitUnsanitizedContentTest.ts +0 -28
- package/src/core/test/ts/browser/init/LicenseKeyValidationTest.ts +0 -143
- package/src/core/test/ts/browser/init/RegisterFormatsBeforeSetContentTest.ts +0 -33
- package/src/core/test/ts/browser/init/ShadowDomEditorTest.ts +0 -81
- package/src/core/test/ts/browser/keyboard/ArrowKeysAnchorTest.ts +0 -251
- package/src/core/test/ts/browser/keyboard/ArrowKeysCefTest.ts +0 -208
- package/src/core/test/ts/browser/keyboard/ArrowKeysContentEndpointTest.ts +0 -80
- package/src/core/test/ts/browser/keyboard/ArrowKeysEdgeCefTest.ts +0 -322
- package/src/core/test/ts/browser/keyboard/ArrowKeysInlineBoundariesTest.ts +0 -388
- package/src/core/test/ts/browser/keyboard/ArrowKeysTableTest.ts +0 -250
- package/src/core/test/ts/browser/keyboard/AutocompleterTest.ts +0 -197
- package/src/core/test/ts/browser/keyboard/BoundaryCaretTest.ts +0 -49
- package/src/core/test/ts/browser/keyboard/BoundaryLocationTest.ts +0 -216
- package/src/core/test/ts/browser/keyboard/CaretAfterKoreanTest.ts +0 -139
- package/src/core/test/ts/browser/keyboard/EnterKeyAnchorTest.ts +0 -180
- package/src/core/test/ts/browser/keyboard/EnterKeyCeFalseTest.ts +0 -105
- package/src/core/test/ts/browser/keyboard/EnterKeyHrTest.ts +0 -66
- package/src/core/test/ts/browser/keyboard/EnterKeyListsTest.ts +0 -520
- package/src/core/test/ts/browser/keyboard/EnterKeyTest.ts +0 -684
- package/src/core/test/ts/browser/keyboard/FormatShortcutsTest.ts +0 -117
- package/src/core/test/ts/browser/keyboard/HomeEndKeysTest.ts +0 -165
- package/src/core/test/ts/browser/keyboard/InlineUtilsTest.ts +0 -199
- package/src/core/test/ts/browser/keyboard/InsertKeysTest.ts +0 -331
- package/src/core/test/ts/browser/keyboard/KeyboardCellNavigationTest.ts +0 -88
- package/src/core/test/ts/browser/keyboard/KeyboardEventTest.ts +0 -26
- package/src/core/test/ts/browser/keyboard/MediaNavigationTest.ts +0 -113
- package/src/core/test/ts/browser/keyboard/PreventNoneditableInputTest.ts +0 -92
- package/src/core/test/ts/browser/keyboard/SpaceKeyBeforeInputEventTest.ts +0 -23
- package/src/core/test/ts/browser/keyboard/SpaceKeyTest.ts +0 -144
- package/src/core/test/ts/browser/keyboard/TableNavigationTest.ts +0 -92
- package/src/core/test/ts/browser/keyboard/TableTabKeyNavigationTest.ts +0 -228
- package/src/core/test/ts/browser/keyboard/TableTabNavigationDisabledTest.ts +0 -22
- package/src/core/test/ts/browser/keyboard/TypeTextAtCefTest.ts +0 -43
- package/src/core/test/ts/browser/newline/ForcedRootBlockTest.ts +0 -172
- package/src/core/test/ts/browser/newline/InsertBrTest.ts +0 -128
- package/src/core/test/ts/browser/newline/InsertNewLineTest.ts +0 -853
- package/src/core/test/ts/browser/newline/NewlineBeforeInputEventTest.ts +0 -22
- package/src/core/test/ts/browser/options/NormalizeOptionsTest.ts +0 -254
- package/src/core/test/ts/browser/paste/CutNoneditableTest.ts +0 -26
- package/src/core/test/ts/browser/paste/DragDropImageTest.ts +0 -69
- package/src/core/test/ts/browser/paste/DragDropSummaryTest.ts +0 -60
- package/src/core/test/ts/browser/paste/DragDropTransparentsTest.ts +0 -57
- package/src/core/test/ts/browser/paste/ImagePasteTest.ts +0 -195
- package/src/core/test/ts/browser/paste/InternalClipboardTest.ts +0 -248
- package/src/core/test/ts/browser/paste/PasteBinTest.ts +0 -91
- package/src/core/test/ts/browser/paste/PasteFormatToggleTest.ts +0 -31
- package/src/core/test/ts/browser/paste/PasteOptionsTest.ts +0 -24
- package/src/core/test/ts/browser/paste/PasteStylesTest.ts +0 -79
- package/src/core/test/ts/browser/paste/PasteTest.ts +0 -580
- package/src/core/test/ts/browser/paste/PlainTextPasteTest.ts +0 -60
- package/src/core/test/ts/browser/paste/ProcessFiltersTest.ts +0 -150
- package/src/core/test/ts/browser/paste/SmartPasteTest.ts +0 -241
- package/src/core/test/ts/browser/paste/UnsanitizedPasteTest.ts +0 -38
- package/src/core/test/ts/browser/selection/DetailsElementTest.ts +0 -156
- package/src/core/test/ts/browser/selection/FragmentReaderTest.ts +0 -236
- package/src/core/test/ts/browser/selection/GetSelectionContentTest.ts +0 -151
- package/src/core/test/ts/browser/selection/InlineBoundarySelectionTest.ts +0 -42
- package/src/core/test/ts/browser/selection/MultiClickSelectionTest.ts +0 -224
- package/src/core/test/ts/browser/selection/NoneditableRootElementSelectionTest.ts +0 -100
- package/src/core/test/ts/browser/selection/NormalizeRangeTest.ts +0 -347
- package/src/core/test/ts/browser/selection/RangeInsertNodeTest.ts +0 -82
- package/src/core/test/ts/browser/selection/RangeNormalizerTest.ts +0 -98
- package/src/core/test/ts/browser/selection/RangeWalkTest.ts +0 -112
- package/src/core/test/ts/browser/selection/SelectBeforeBlockTest.ts +0 -33
- package/src/core/test/ts/browser/selection/SelectionBookmarkInlineEditorTest.ts +0 -148
- package/src/core/test/ts/browser/selection/SelectionBookmarkTest.ts +0 -189
- package/src/core/test/ts/browser/selection/SelectionUtilsTest.ts +0 -72
- package/src/core/test/ts/browser/selection/SetSelectionContentTest.ts +0 -297
- package/src/core/test/ts/browser/selection/SimpleTableModelTest.ts +0 -132
- package/src/core/test/ts/browser/selection/TableCellSelectionTest.ts +0 -46
- package/src/core/test/ts/browser/text/ZwspInsertTest.ts +0 -42
- package/src/core/test/ts/browser/textpatterns/BlockPatternsOnSpaceTest.ts +0 -288
- package/src/core/test/ts/browser/textpatterns/FindBlockPatternsTest.ts +0 -232
- package/src/core/test/ts/browser/textpatterns/FindInlinePatternTest.ts +0 -470
- package/src/core/test/ts/browser/textpatterns/ReplacementTest.ts +0 -197
- package/src/core/test/ts/browser/textpatterns/TextPatternsFalseTest.ts +0 -36
- package/src/core/test/ts/browser/textpatterns/TextPatternsLookupTest.ts +0 -38
- package/src/core/test/ts/browser/textpatterns/TextPatternsPublicApiTest.ts +0 -124
- package/src/core/test/ts/browser/textpatterns/TextPatternsTest.ts +0 -377
- package/src/core/test/ts/browser/textpatterns/TextSearchTest.ts +0 -139
- package/src/core/test/ts/browser/textpatterns/TrailingPunctuationTest.ts +0 -55
- package/src/core/test/ts/browser/textpatterns/TriggerInlinePatternBeginningTest.ts +0 -33
- package/src/core/test/ts/browser/textpatterns/UndoTextPatternsTest.ts +0 -35
- package/src/core/test/ts/browser/undo/DiffTest.ts +0 -22
- package/src/core/test/ts/browser/undo/ForcedRootBlockTest.ts +0 -48
- package/src/core/test/ts/browser/undo/FragmentsTest.ts +0 -44
- package/src/core/test/ts/browser/undo/LevelsTest.ts +0 -214
- package/src/core/test/ts/browser/undo/UndoKeyboardShortcutsTest.ts +0 -41
- package/src/core/test/ts/browser/util/DelayTest.ts +0 -51
- package/src/core/test/ts/browser/util/EventDispatcherTest.ts +0 -373
- package/src/core/test/ts/browser/util/FakeStorageTest.ts +0 -95
- package/src/core/test/ts/browser/util/I18nTest.ts +0 -124
- package/src/core/test/ts/browser/util/ImageUploaderTest.ts +0 -81
- package/src/core/test/ts/browser/util/ObservableTest.ts +0 -76
- package/src/core/test/ts/browser/util/QuirksFirefoxTest.ts +0 -101
- package/src/core/test/ts/browser/util/QuirksWebkitTest.ts +0 -360
- package/src/core/test/ts/browser/util/ToolsTest.ts +0 -11
- package/src/core/test/ts/browser/util/UriTest.ts +0 -175
- package/src/core/test/ts/browser/util/UtilsTest.ts +0 -22
- package/src/core/test/ts/module/McAgar.ts +0 -10
- package/src/core/test/ts/module/test/AnnotationAsserts.ts +0 -83
- package/src/core/test/ts/module/test/BeforeInputEventUtils.ts +0 -49
- package/src/core/test/ts/module/test/CaretAsserts.ts +0 -49
- package/src/core/test/ts/module/test/DialogUtils.ts +0 -30
- package/src/core/test/ts/module/test/DragDropUtils.ts +0 -22
- package/src/core/test/ts/module/test/ErrorHelpers.ts +0 -30
- package/src/core/test/ts/module/test/HtmlUtils.ts +0 -13
- package/src/core/test/ts/module/test/InputEventUtils.ts +0 -42
- package/src/core/test/ts/module/test/KeyUtils.ts +0 -113
- package/src/core/test/ts/module/test/PasteEventUtils.ts +0 -102
- package/src/core/test/ts/module/test/PasteStrings.ts +0 -13
- package/src/core/test/ts/module/test/SingletonUtils.ts +0 -7
- package/src/core/test/ts/module/test/TableUtils.ts +0 -21
- package/src/core/test/ts/module/test/TextPatternsUtils.ts +0 -145
- package/src/core/test/ts/module/test/ViewBlock.ts +0 -61
- package/src/core/test/ts/webdriver/content/PlaceholderTest.ts +0 -134
- package/src/core/test/ts/webdriver/delete/InlineFormatRetentionTest.ts +0 -42
- package/src/core/test/ts/webdriver/delete/ShortcutDeleteTest.ts +0 -215
- package/src/core/test/ts/webdriver/keyboard/IframeTabfocusTest.ts +0 -73
- package/src/core/test/ts/webdriver/keyboard/PageUpDownKeysTest.ts +0 -89
- package/src/core/test/ts/webdriver/keyboard/SpaceKeyTest.ts +0 -139
- package/src/core/test/ts/webdriver/paste/CopyAndPasteTest.ts +0 -275
- package/src/core/test/ts/webdriver/paste/CutTest.ts +0 -42
- package/src/core/text/build-header.js +0 -3
- package/src/models/dom/demo/html/demo/basic-demo.html +0 -28
- package/src/models/dom/demo/ts/demo/Demo.ts +0 -14
- package/src/models/dom/main/ts/Main.ts +0 -9
- package/src/models/dom/main/ts/Model.ts +0 -16
- package/src/models/dom/main/ts/table/Table.ts +0 -33
- package/src/models/dom/main/ts/table/actions/Clipboard.ts +0 -76
- package/src/models/dom/main/ts/table/actions/InsertTable.ts +0 -84
- package/src/models/dom/main/ts/table/actions/TableActions.ts +0 -213
- package/src/models/dom/main/ts/table/api/Clipboard.ts +0 -67
- package/src/models/dom/main/ts/table/api/Commands.ts +0 -253
- package/src/models/dom/main/ts/table/api/Events.ts +0 -77
- package/src/models/dom/main/ts/table/api/Options.ts +0 -181
- package/src/models/dom/main/ts/table/api/QueryCommands.ts +0 -30
- package/src/models/dom/main/ts/table/api/TableCellSelectionHandler.ts +0 -210
- package/src/models/dom/main/ts/table/api/TableResizeHandler.ts +0 -240
- package/src/models/dom/main/ts/table/core/TableUtils.ts +0 -69
- package/src/models/dom/main/ts/table/core/TableWire.ts +0 -36
- package/src/models/dom/main/ts/table/queries/TableSize.ts +0 -19
- package/src/models/dom/main/ts/table/queries/TableTargets.ts +0 -42
- package/src/models/dom/main/ts/table/selection/Ephemera.ts +0 -28
- package/src/models/dom/main/ts/table/selection/TableSelection.ts +0 -45
- package/src/models/dom/test/ts/atomic/table/TableUtilsTest.ts +0 -35
- package/src/models/dom/test/ts/browser/table/DragEditorContentsOverTableTest.ts +0 -25
- package/src/models/dom/test/ts/browser/table/DragResizeTest.ts +0 -453
- package/src/models/dom/test/ts/browser/table/DragSelectionTest.ts +0 -46
- package/src/models/dom/test/ts/browser/table/EmptyRowTableTest.ts +0 -28
- package/src/models/dom/test/ts/browser/table/FakeSelectionTest.ts +0 -279
- package/src/models/dom/test/ts/browser/table/InsertColumnTableSizeTest.ts +0 -175
- package/src/models/dom/test/ts/browser/table/InsertRowTableResizeTest.ts +0 -185
- package/src/models/dom/test/ts/browser/table/InsertTableTest.ts +0 -47
- package/src/models/dom/test/ts/browser/table/InsertTableWidthsTest.ts +0 -58
- package/src/models/dom/test/ts/browser/table/InvalidColCountTest.ts +0 -126
- package/src/models/dom/test/ts/browser/table/ModifyColumnsTableResizeTest.ts +0 -677
- package/src/models/dom/test/ts/browser/table/NestedFakeSelectionTest.ts +0 -289
- package/src/models/dom/test/ts/browser/table/NewCellRowEventsTest.ts +0 -42
- package/src/models/dom/test/ts/browser/table/PasteTableTest.ts +0 -65
- package/src/models/dom/test/ts/browser/table/ResizeTableTest.ts +0 -1035
- package/src/models/dom/test/ts/browser/table/SwitchTableSectionTest.ts +0 -352
- package/src/models/dom/test/ts/browser/table/TableNoWidthTest.ts +0 -41
- package/src/models/dom/test/ts/browser/table/TableSectionApiTest.ts +0 -406
- package/src/models/dom/test/ts/browser/table/TableSizingModeTest.ts +0 -98
- package/src/models/dom/test/ts/browser/table/TwoCellsSelectionTest.ts +0 -114
- package/src/models/dom/test/ts/browser/table/UnmergeCellTableResizeTest.ts +0 -304
- package/src/models/dom/test/ts/browser/table/command/ApplyCellStyleCommandTest.ts +0 -220
- package/src/models/dom/test/ts/browser/table/command/CommandsOnLockedColumnsTest.ts +0 -185
- package/src/models/dom/test/ts/browser/table/command/InsertCommandsTest.ts +0 -184
- package/src/models/dom/test/ts/browser/table/command/InsertTableCommandTest.ts +0 -110
- package/src/models/dom/test/ts/browser/table/command/InsertTableCommandWithColGroupsTest.ts +0 -97
- package/src/models/dom/test/ts/browser/table/command/MergeCellCommandTest.ts +0 -353
- package/src/models/dom/test/ts/browser/table/command/ModifyClassesCommandsTest.ts +0 -303
- package/src/models/dom/test/ts/browser/table/command/TableDeleteColumnTest.ts +0 -154
- package/src/models/dom/test/ts/browser/table/command/TableDeleteCommandTest.ts +0 -39
- package/src/models/dom/test/ts/browser/table/command/TableDeleteRowTest.ts +0 -152
- package/src/models/dom/test/ts/browser/table/command/TableSizingModeCommandTest.ts +0 -119
- package/src/models/dom/test/ts/browser/table/command/TableSizingModeCommandWithColGroupsTest.ts +0 -77
- package/src/models/dom/test/ts/module/table/TableSizingModeCommandUtil.ts +0 -92
- package/src/models/dom/test/ts/module/table/TableTestUtils.ts +0 -302
- package/src/plugins/accordion/demo/html/demo.html +0 -26
- package/src/plugins/accordion/demo/ts/demo/Demo.ts +0 -14
- package/src/plugins/accordion/main/ts/Main.ts +0 -9
- package/src/plugins/accordion/main/ts/Plugin.ts +0 -17
- package/src/plugins/accordion/main/ts/api/Commands.ts +0 -12
- package/src/plugins/accordion/main/ts/api/Events.ts +0 -13
- package/src/plugins/accordion/main/ts/core/Actions.ts +0 -90
- package/src/plugins/accordion/main/ts/core/FilterContent.ts +0 -153
- package/src/plugins/accordion/main/ts/core/Identifiers.ts +0 -14
- package/src/plugins/accordion/main/ts/core/Keyboard.ts +0 -27
- package/src/plugins/accordion/main/ts/core/Quirks.ts +0 -24
- package/src/plugins/accordion/main/ts/core/Utils.ts +0 -79
- package/src/plugins/accordion/main/ts/ui/Buttons.ts +0 -39
- package/src/plugins/accordion/test/ts/browser/AccordionFormattingTest.ts +0 -36
- package/src/plugins/accordion/test/ts/browser/AccordionNavigationTest.ts +0 -56
- package/src/plugins/accordion/test/ts/browser/AccordionPluginTest.ts +0 -241
- package/src/plugins/accordion/test/ts/browser/DirectionalityTest.ts +0 -58
- package/src/plugins/accordion/test/ts/browser/FilterContentTest.ts +0 -373
- package/src/plugins/accordion/test/ts/browser/QuirksTest.ts +0 -34
- package/src/plugins/accordion/test/ts/module/AccordionUtils.ts +0 -18
- package/src/plugins/accordion/test/ts/webdriver/AccordionBackspaceDeleteTest.ts +0 -649
- package/src/plugins/accordion/test/ts/webdriver/AccordionEnterTest.ts +0 -80
- package/src/plugins/advlist/demo/html/demo.html +0 -16
- package/src/plugins/advlist/demo/ts/demo/Demo.ts +0 -12
- package/src/plugins/advlist/main/ts/Main.ts +0 -9
- package/src/plugins/advlist/main/ts/Plugin.ts +0 -18
- package/src/plugins/advlist/main/ts/api/Commands.ts +0 -17
- package/src/plugins/advlist/main/ts/api/Options.ts +0 -31
- package/src/plugins/advlist/main/ts/core/Actions.ts +0 -10
- package/src/plugins/advlist/main/ts/core/ListUtils.ts +0 -58
- package/src/plugins/advlist/main/ts/ui/Buttons.ts +0 -97
- package/src/plugins/advlist/test/ts/browser/AdvlistOptionsAndToolbarTest.ts +0 -356
- package/src/plugins/advlist/test/ts/browser/AdvlistPluginTest.ts +0 -200
- package/src/plugins/advlist/test/ts/browser/ChangeListStyleTest.ts +0 -107
- package/src/plugins/advlist/test/ts/browser/ContentEditableFalseTest.ts +0 -97
- package/src/plugins/advlist/test/ts/browser/ListUtilsTest.ts +0 -22
- package/src/plugins/advlist/test/ts/browser/NoneditableRootTest.ts +0 -57
- package/src/plugins/advlist/test/ts/browser/SplitButtonTest.ts +0 -234
- package/src/plugins/anchor/demo/html/demo.html +0 -16
- package/src/plugins/anchor/demo/ts/demo/Demo.ts +0 -12
- package/src/plugins/anchor/main/ts/Main.ts +0 -9
- package/src/plugins/anchor/main/ts/Plugin.ts +0 -20
- package/src/plugins/anchor/main/ts/api/Commands.ts +0 -13
- package/src/plugins/anchor/main/ts/api/Options.ts +0 -24
- package/src/plugins/anchor/main/ts/core/Anchor.ts +0 -76
- package/src/plugins/anchor/main/ts/core/FilterContent.ts +0 -32
- package/src/plugins/anchor/main/ts/core/Formats.ts +0 -24
- package/src/plugins/anchor/main/ts/core/Utils.ts +0 -25
- package/src/plugins/anchor/main/ts/ui/Buttons.ts +0 -45
- package/src/plugins/anchor/main/ts/ui/Dialog.ts +0 -60
- package/src/plugins/anchor/test/ts/browser/AnchorAlertTest.ts +0 -32
- package/src/plugins/anchor/test/ts/browser/AnchorAllowHtmlTest.ts +0 -104
- package/src/plugins/anchor/test/ts/browser/AnchorEditTest.ts +0 -30
- package/src/plugins/anchor/test/ts/browser/AnchorFormatsTest.ts +0 -57
- package/src/plugins/anchor/test/ts/browser/AnchorInlineTest.ts +0 -26
- package/src/plugins/anchor/test/ts/browser/AnchorSanityTest.ts +0 -63
- package/src/plugins/anchor/test/ts/browser/NoneditableRootTest.ts +0 -40
- package/src/plugins/anchor/test/ts/module/Helpers.ts +0 -21
- package/src/plugins/autolink/demo/html/demo.html +0 -15
- package/src/plugins/autolink/demo/ts/demo/Demo.ts +0 -12
- package/src/plugins/autolink/main/ts/Main.ts +0 -9
- package/src/plugins/autolink/main/ts/Plugin.ts +0 -11
- package/src/plugins/autolink/main/ts/api/Options.ts +0 -42
- package/src/plugins/autolink/main/ts/core/Keys.ts +0 -151
- package/src/plugins/autolink/main/ts/core/Utils.ts +0 -50
- package/src/plugins/autolink/test/ts/browser/AutoLinkPluginTest.ts +0 -225
- package/src/plugins/autolink/test/ts/browser/ConsecutiveLinkTest.ts +0 -30
- package/src/plugins/autolink/test/ts/browser/EnterKeyTest.ts +0 -24
- package/src/plugins/autolink/test/ts/browser/FragmentedTextTest.ts +0 -60
- package/src/plugins/autolink/test/ts/module/test/KeyUtils.ts +0 -159
- package/src/plugins/autoresize/demo/html/demo.html +0 -15
- package/src/plugins/autoresize/demo/ts/demo/Demo.ts +0 -13
- package/src/plugins/autoresize/main/ts/Main.ts +0 -9
- package/src/plugins/autoresize/main/ts/Plugin.ts +0 -30
- package/src/plugins/autoresize/main/ts/api/Commands.ts +0 -15
- package/src/plugins/autoresize/main/ts/api/Events.ts +0 -9
- package/src/plugins/autoresize/main/ts/api/Options.ts +0 -35
- package/src/plugins/autoresize/main/ts/core/Resize.ts +0 -187
- package/src/plugins/autoresize/test/ts/browser/AutoresizePluginTest.ts +0 -230
- package/src/plugins/autosave/demo/html/demo.html +0 -15
- package/src/plugins/autosave/demo/ts/demo/Demo.ts +0 -16
- package/src/plugins/autosave/main/ts/Main.ts +0 -9
- package/src/plugins/autosave/main/ts/Plugin.ts +0 -30
- package/src/plugins/autosave/main/ts/api/Api.ts +0 -23
- package/src/plugins/autosave/main/ts/api/Events.ts +0 -17
- package/src/plugins/autosave/main/ts/api/Options.ts +0 -72
- package/src/plugins/autosave/main/ts/core/BeforeUnload.ts +0 -32
- package/src/plugins/autosave/main/ts/core/Storage.ts +0 -91
- package/src/plugins/autosave/main/ts/core/Time.ts +0 -13
- package/src/plugins/autosave/main/ts/ui/Buttons.ts +0 -42
- package/src/plugins/autosave/test/ts/browser/AutoSavePluginTest.ts +0 -141
- package/src/plugins/autosave/test/ts/browser/ShouldRestoreWhenEmptyTest.ts +0 -63
- package/src/plugins/charmap/demo/html/demo.html +0 -15
- package/src/plugins/charmap/demo/ts/demo/Demo.ts +0 -13
- package/src/plugins/charmap/main/ts/Main.ts +0 -9
- package/src/plugins/charmap/main/ts/Plugin.ts +0 -21
- package/src/plugins/charmap/main/ts/api/Api.ts +0 -28
- package/src/plugins/charmap/main/ts/api/Commands.ts +0 -16
- package/src/plugins/charmap/main/ts/api/Events.ts +0 -10
- package/src/plugins/charmap/main/ts/api/Options.ts +0 -36
- package/src/plugins/charmap/main/ts/core/Actions.ts +0 -12
- package/src/plugins/charmap/main/ts/core/CharMap.ts +0 -414
- package/src/plugins/charmap/main/ts/core/Scan.ts +0 -37
- package/src/plugins/charmap/main/ts/ui/Autocompletion.ts +0 -26
- package/src/plugins/charmap/main/ts/ui/Buttons.ts +0 -37
- package/src/plugins/charmap/main/ts/ui/Dialog.ts +0 -99
- package/src/plugins/charmap/test/ts/atomic/ScanTest.ts +0 -33
- package/src/plugins/charmap/test/ts/browser/CharmapAutocompletionTest.ts +0 -23
- package/src/plugins/charmap/test/ts/browser/CharmapDialogHeightTest.ts +0 -80
- package/src/plugins/charmap/test/ts/browser/CharmapPluginTest.ts +0 -108
- package/src/plugins/charmap/test/ts/browser/CharmapSearchTest.ts +0 -55
- package/src/plugins/charmap/test/ts/browser/CharmapUserDefinedTest.ts +0 -30
- package/src/plugins/charmap/test/ts/browser/InsertQuotationMarkTest.ts +0 -24
- package/src/plugins/charmap/test/ts/browser/NoneditableRootTest.ts +0 -40
- package/src/plugins/charmap/test/ts/module/Helpers.ts +0 -12
- package/src/plugins/code/demo/html/demo.html +0 -15
- package/src/plugins/code/demo/ts/demo/Demo.ts +0 -12
- package/src/plugins/code/main/ts/Main.ts +0 -9
- package/src/plugins/code/main/ts/Plugin.ts +0 -13
- package/src/plugins/code/main/ts/api/Commands.ts +0 -13
- package/src/plugins/code/main/ts/core/Content.ts +0 -24
- package/src/plugins/code/main/ts/ui/Buttons.ts +0 -22
- package/src/plugins/code/main/ts/ui/Dialog.ts +0 -45
- package/src/plugins/code/test/ts/browser/CodeSanityTest.ts +0 -51
- package/src/plugins/code/test/ts/browser/CodeTextareaTest.ts +0 -36
- package/src/plugins/codesample/demo/html/demo.html +0 -16
- package/src/plugins/codesample/demo/ts/demo/Demo.ts +0 -22
- package/src/plugins/codesample/main/ts/Main.ts +0 -9
- package/src/plugins/codesample/main/ts/Plugin.ts +0 -23
- package/src/plugins/codesample/main/ts/api/Commands.ts +0 -19
- package/src/plugins/codesample/main/ts/api/Options.ts +0 -32
- package/src/plugins/codesample/main/ts/core/CodeSample.ts +0 -44
- package/src/plugins/codesample/main/ts/core/FilterContent.ts +0 -70
- package/src/plugins/codesample/main/ts/core/Languages.ts +0 -41
- package/src/plugins/codesample/main/ts/prism/Prism.ts +0 -15
- package/src/plugins/codesample/main/ts/prism/prismjs.d.ts +0 -4
- package/src/plugins/codesample/main/ts/ui/Buttons.ts +0 -50
- package/src/plugins/codesample/main/ts/ui/Dialog.ts +0 -62
- package/src/plugins/codesample/main/ts/util/Utils.ts +0 -16
- package/src/plugins/codesample/test/ts/browser/ChangeCodeSampleTest.ts +0 -28
- package/src/plugins/codesample/test/ts/browser/CodeSampleSanityTest.ts +0 -52
- package/src/plugins/codesample/test/ts/browser/CodeSampleSelectionTest.ts +0 -46
- package/src/plugins/codesample/test/ts/browser/NoneditableRootTest.ts +0 -40
- package/src/plugins/codesample/test/ts/module/CodeSampleTestUtils.ts +0 -89
- package/src/plugins/codesample/test/ts/webdriver/CodeSampleCopyAndPasteTest.ts +0 -134
- package/src/plugins/directionality/demo/html/demo.html +0 -15
- package/src/plugins/directionality/demo/ts/demo/Demo.ts +0 -12
- package/src/plugins/directionality/main/ts/Main.ts +0 -9
- package/src/plugins/directionality/main/ts/Plugin.ts +0 -11
- package/src/plugins/directionality/main/ts/api/Commands.ts +0 -17
- package/src/plugins/directionality/main/ts/core/Direction.ts +0 -65
- package/src/plugins/directionality/main/ts/ui/Buttons.ts +0 -38
- package/src/plugins/directionality/test/ts/browser/CommandsTest.ts +0 -43
- package/src/plugins/directionality/test/ts/browser/DirectionStyleTest.ts +0 -319
- package/src/plugins/directionality/test/ts/browser/DirectionalitySanityTest.ts +0 -169
- package/src/plugins/directionality/test/ts/browser/NoneditableRootTest.ts +0 -36
- package/src/plugins/emoticons/demo/html/demo.html +0 -15
- package/src/plugins/emoticons/demo/ts/demo/Demo.ts +0 -19
- package/src/plugins/emoticons/main/ts/Main.ts +0 -9
- package/src/plugins/emoticons/main/ts/Plugin.ts +0 -34
- package/src/plugins/emoticons/main/ts/api/Commands.ts +0 -12
- package/src/plugins/emoticons/main/ts/api/Options.ts +0 -60
- package/src/plugins/emoticons/main/ts/core/Actions.ts +0 -9
- package/src/plugins/emoticons/main/ts/core/EmojiDatabase.ts +0 -150
- package/src/plugins/emoticons/main/ts/core/Filters.ts +0 -14
- package/src/plugins/emoticons/main/ts/core/Lookup.ts +0 -31
- package/src/plugins/emoticons/main/ts/ui/Autocompletion.ts +0 -28
- package/src/plugins/emoticons/main/ts/ui/Buttons.ts +0 -37
- package/src/plugins/emoticons/main/ts/ui/Dialog.ts +0 -134
- package/src/plugins/emoticons/test/js/test-emojis-alt.js +0 -717
- package/src/plugins/emoticons/test/js/test-emojis.js +0 -27
- package/src/plugins/emoticons/test/ts/browser/DifferentEmojiDatabaseTest.ts +0 -50
- package/src/plugins/emoticons/test/ts/browser/EmojiAppendTest.ts +0 -76
- package/src/plugins/emoticons/test/ts/browser/EmojiSearchTest.ts +0 -54
- package/src/plugins/emoticons/test/ts/browser/EmoticonAutocompletionTest.ts +0 -29
- package/src/plugins/emoticons/test/ts/browser/EmoticonsPluginTest.ts +0 -21
- package/src/plugins/emoticons/test/ts/browser/ImageEmojiTest.ts +0 -58
- package/src/plugins/emoticons/test/ts/browser/NoneditableRootTest.ts +0 -40
- package/src/plugins/emoticons/test/ts/module/test/Utils.ts +0 -12
- package/src/plugins/fullscreen/demo/html/demo.html +0 -18
- package/src/plugins/fullscreen/demo/ts/demo/Demo.ts +0 -20
- package/src/plugins/fullscreen/main/ts/Main.ts +0 -9
- package/src/plugins/fullscreen/main/ts/Plugin.ts +0 -27
- package/src/plugins/fullscreen/main/ts/api/Api.ts +0 -15
- package/src/plugins/fullscreen/main/ts/api/Commands.ts +0 -15
- package/src/plugins/fullscreen/main/ts/api/Events.ts +0 -10
- package/src/plugins/fullscreen/main/ts/api/Options.ts +0 -24
- package/src/plugins/fullscreen/main/ts/core/Actions.ts +0 -202
- package/src/plugins/fullscreen/main/ts/core/NativeFullscreen.ts +0 -58
- package/src/plugins/fullscreen/main/ts/core/Thor.ts +0 -68
- package/src/plugins/fullscreen/main/ts/ui/Buttons.ts +0 -38
- package/src/plugins/fullscreen/test/ts/browser/FullScreenPluginTest.ts +0 -219
- package/src/plugins/fullscreen/test/ts/browser/FullScreenSinkTest.ts +0 -27
- package/src/plugins/fullscreen/test/ts/browser/FullscreenPluginInlineEditorTest.ts +0 -22
- package/src/plugins/fullscreen/test/ts/browser/FullscreenRestoreScrollTest.ts +0 -52
- package/src/plugins/fullscreen/test/ts/webdriver/FullscreenPluginNativeModeTest.ts +0 -38
- package/src/plugins/help/demo/html/demo.html +0 -26
- package/src/plugins/help/demo/ts/demo/Demo.ts +0 -149
- package/src/plugins/help/i18n/keynav/ar.html +0 -89
- package/src/plugins/help/i18n/keynav/bg_BG.html +0 -89
- package/src/plugins/help/i18n/keynav/ca.html +0 -89
- package/src/plugins/help/i18n/keynav/cs.html +0 -89
- package/src/plugins/help/i18n/keynav/da.html +0 -89
- package/src/plugins/help/i18n/keynav/de.html +0 -89
- package/src/plugins/help/i18n/keynav/el.html +0 -89
- package/src/plugins/help/i18n/keynav/en.html +0 -89
- package/src/plugins/help/i18n/keynav/es.html +0 -89
- package/src/plugins/help/i18n/keynav/eu.html +0 -89
- package/src/plugins/help/i18n/keynav/fa.html +0 -89
- package/src/plugins/help/i18n/keynav/fi.html +0 -89
- package/src/plugins/help/i18n/keynav/fr_FR.html +0 -89
- package/src/plugins/help/i18n/keynav/he_IL.html +0 -89
- package/src/plugins/help/i18n/keynav/hi.html +0 -89
- package/src/plugins/help/i18n/keynav/hr.html +0 -89
- package/src/plugins/help/i18n/keynav/hu_HU.html +0 -89
- package/src/plugins/help/i18n/keynav/id.html +0 -89
- package/src/plugins/help/i18n/keynav/it.html +0 -89
- package/src/plugins/help/i18n/keynav/ja.html +0 -89
- package/src/plugins/help/i18n/keynav/kk.html +0 -89
- package/src/plugins/help/i18n/keynav/ko_KR.html +0 -89
- package/src/plugins/help/i18n/keynav/ms.html +0 -89
- package/src/plugins/help/i18n/keynav/nb_NO.html +0 -89
- package/src/plugins/help/i18n/keynav/nl.html +0 -89
- package/src/plugins/help/i18n/keynav/pl.html +0 -89
- package/src/plugins/help/i18n/keynav/pt_BR.html +0 -89
- package/src/plugins/help/i18n/keynav/pt_PT.html +0 -89
- package/src/plugins/help/i18n/keynav/ro.html +0 -89
- package/src/plugins/help/i18n/keynav/ru.html +0 -89
- package/src/plugins/help/i18n/keynav/sk.html +0 -89
- package/src/plugins/help/i18n/keynav/sl_SI.html +0 -89
- package/src/plugins/help/i18n/keynav/sv_SE.html +0 -89
- package/src/plugins/help/i18n/keynav/th_TH.html +0 -89
- package/src/plugins/help/i18n/keynav/tr.html +0 -89
- package/src/plugins/help/i18n/keynav/uk.html +0 -89
- package/src/plugins/help/i18n/keynav/vi.html +0 -89
- package/src/plugins/help/i18n/keynav/zh_CN.html +0 -83
- package/src/plugins/help/i18n/keynav/zh_TW.html +0 -89
- package/src/plugins/help/main/ts/Main.ts +0 -9
- package/src/plugins/help/main/ts/Plugin.ts +0 -30
- package/src/plugins/help/main/ts/alien/ConvertShortcut.ts +0 -34
- package/src/plugins/help/main/ts/api/Api.ts +0 -24
- package/src/plugins/help/main/ts/api/Commands.ts +0 -9
- package/src/plugins/help/main/ts/api/Options.ts +0 -28
- package/src/plugins/help/main/ts/data/KeyboardShortcuts.ts +0 -33
- package/src/plugins/help/main/ts/data/PluginUrls.ts +0 -92
- package/src/plugins/help/main/ts/ui/Buttons.ts +0 -20
- package/src/plugins/help/main/ts/ui/Dialog.ts +0 -98
- package/src/plugins/help/main/ts/ui/KeyboardNavTab.ts +0 -21
- package/src/plugins/help/main/ts/ui/KeyboardNavTabI18n.ts +0 -21
- package/src/plugins/help/main/ts/ui/KeyboardShortcutsTab.ts +0 -36
- package/src/plugins/help/main/ts/ui/PluginsTab.ts +0 -119
- package/src/plugins/help/main/ts/ui/VersionTab.ts +0 -27
- package/src/plugins/help/test/ts/browser/CustomTabsTest.ts +0 -146
- package/src/plugins/help/test/ts/browser/DialogKeyboardNavTest.ts +0 -106
- package/src/plugins/help/test/ts/browser/IgnoreForcedPluginsTest.ts +0 -31
- package/src/plugins/help/test/ts/browser/KeyboardNavTabI18nTest.ts +0 -59
- package/src/plugins/help/test/ts/browser/MetadataTest.ts +0 -33
- package/src/plugins/help/test/ts/browser/PluginTabsOrderTest.ts +0 -59
- package/src/plugins/help/test/ts/browser/PluginTest.ts +0 -28
- package/src/plugins/help/test/ts/module/PluginAssert.ts +0 -11
- package/src/plugins/help/test/ts/module/Selectors.ts +0 -10
- package/src/plugins/help/test/ts/module/test/FakePlugin.ts +0 -17
- package/src/plugins/help/test/ts/module/test/NoMetaFakePlugin.ts +0 -7
- package/src/plugins/image/demo/html/demo.html +0 -18
- package/src/plugins/image/demo/ts/demo/Demo.ts +0 -34
- package/src/plugins/image/main/ts/Main.ts +0 -9
- package/src/plugins/image/main/ts/Plugin.ts +0 -15
- package/src/plugins/image/main/ts/api/Commands.ts +0 -19
- package/src/plugins/image/main/ts/api/Options.ts +0 -100
- package/src/plugins/image/main/ts/core/FilterContent.ts +0 -38
- package/src/plugins/image/main/ts/core/ImageData.ts +0 -308
- package/src/plugins/image/main/ts/core/ImageSelection.ts +0 -142
- package/src/plugins/image/main/ts/core/ListUtils.ts +0 -68
- package/src/plugins/image/main/ts/core/Utils.ts +0 -179
- package/src/plugins/image/main/ts/ui/AdvTab.ts +0 -56
- package/src/plugins/image/main/ts/ui/Buttons.ts +0 -56
- package/src/plugins/image/main/ts/ui/Dialog.ts +0 -405
- package/src/plugins/image/main/ts/ui/DialogInfo.ts +0 -62
- package/src/plugins/image/main/ts/ui/DialogTypes.ts +0 -75
- package/src/plugins/image/main/ts/ui/MainTab.ts +0 -99
- package/src/plugins/image/main/ts/ui/UploadTab.ts +0 -21
- package/src/plugins/image/test/ts/browser/A11yImageTest.ts +0 -156
- package/src/plugins/image/test/ts/browser/ContextMenuTest.ts +0 -93
- package/src/plugins/image/test/ts/browser/DecorativeImageDialogTest.ts +0 -95
- package/src/plugins/image/test/ts/browser/DialogTest.ts +0 -139
- package/src/plugins/image/test/ts/browser/DialogUpdateTest.ts +0 -67
- package/src/plugins/image/test/ts/browser/FigureDeleteTest.ts +0 -39
- package/src/plugins/image/test/ts/browser/FigureResizeTest.ts +0 -66
- package/src/plugins/image/test/ts/browser/ImageListTest.ts +0 -29
- package/src/plugins/image/test/ts/browser/ImagePluginTest.ts +0 -217
- package/src/plugins/image/test/ts/browser/ImageResizeTest.ts +0 -34
- package/src/plugins/image/test/ts/browser/NoneditableRootTest.ts +0 -40
- package/src/plugins/image/test/ts/browser/UploadTabTest.ts +0 -205
- package/src/plugins/image/test/ts/browser/api/CommandsTest.ts +0 -157
- package/src/plugins/image/test/ts/browser/core/ImageAlignTest.ts +0 -207
- package/src/plugins/image/test/ts/browser/core/ImageDataTest.ts +0 -688
- package/src/plugins/image/test/ts/browser/core/ImageSelectionTest.ts +0 -290
- package/src/plugins/image/test/ts/browser/plugin/DefaultEmptyTest.ts +0 -39
- package/src/plugins/image/test/ts/browser/plugin/DimensionsFalseTest.ts +0 -31
- package/src/plugins/image/test/ts/browser/plugin/MainTabTest.ts +0 -98
- package/src/plugins/image/test/ts/browser/plugin/PrependAbsoluteTest.ts +0 -36
- package/src/plugins/image/test/ts/browser/plugin/PrependRelativeTest.ts +0 -36
- package/src/plugins/image/test/ts/module/Helpers.ts +0 -140
- package/src/plugins/importcss/demo/css/rules.css +0 -92
- package/src/plugins/importcss/demo/html/demo.html +0 -15
- package/src/plugins/importcss/demo/ts/demo/Demo.ts +0 -16
- package/src/plugins/importcss/main/ts/Main.ts +0 -9
- package/src/plugins/importcss/main/ts/Plugin.ts +0 -13
- package/src/plugins/importcss/main/ts/api/Api.ts +0 -22
- package/src/plugins/importcss/main/ts/api/Options.ts +0 -78
- package/src/plugins/importcss/main/ts/core/ImportCss.ts +0 -287
- package/src/plugins/importcss/main/ts/core/SelectorModel.ts +0 -59
- package/src/plugins/importcss/test/css/advanced.css +0 -7
- package/src/plugins/importcss/test/css/basic.css +0 -11
- package/src/plugins/importcss/test/css/clashing.css +0 -3
- package/src/plugins/importcss/test/css/internal.css +0 -18
- package/src/plugins/importcss/test/css/other-adv.css +0 -3
- package/src/plugins/importcss/test/ts/browser/ImportCssGroupsPluginTest.ts +0 -191
- package/src/plugins/importcss/test/ts/browser/ImportCssPluginTest.ts +0 -342
- package/src/plugins/importcss/test/ts/module/MenuNavigationTestUtils.ts +0 -58
- package/src/plugins/insertdatetime/demo/html/demo.html +0 -15
- package/src/plugins/insertdatetime/demo/ts/demo/Demo.ts +0 -16
- package/src/plugins/insertdatetime/main/ts/Main.ts +0 -9
- package/src/plugins/insertdatetime/main/ts/Plugin.ts +0 -13
- package/src/plugins/insertdatetime/main/ts/api/Commands.ts +0 -18
- package/src/plugins/insertdatetime/main/ts/api/Options.ts +0 -51
- package/src/plugins/insertdatetime/main/ts/core/Actions.ts +0 -76
- package/src/plugins/insertdatetime/main/ts/ui/Buttons.ts +0 -67
- package/src/plugins/insertdatetime/test/ts/browser/InsertDatetimeSanityTest.ts +0 -35
- package/src/plugins/insertdatetime/test/ts/browser/NoneditableRootTest.ts +0 -40
- package/src/plugins/link/demo/html/demo.html +0 -21
- package/src/plugins/link/demo/ts/demo/Demo.ts +0 -33
- package/src/plugins/link/main/ts/Main.ts +0 -9
- package/src/plugins/link/main/ts/Plugin.ts +0 -20
- package/src/plugins/link/main/ts/api/Commands.ts +0 -24
- package/src/plugins/link/main/ts/api/Options.ts +0 -112
- package/src/plugins/link/main/ts/api/Types.ts +0 -6
- package/src/plugins/link/main/ts/core/Actions.ts +0 -114
- package/src/plugins/link/main/ts/core/Keyboard.ts +0 -11
- package/src/plugins/link/main/ts/core/ListOptions.ts +0 -57
- package/src/plugins/link/main/ts/core/OpenUrl.ts +0 -21
- package/src/plugins/link/main/ts/core/Utils.ts +0 -333
- package/src/plugins/link/main/ts/ui/Controls.ts +0 -172
- package/src/plugins/link/main/ts/ui/Dialog.ts +0 -165
- package/src/plugins/link/main/ts/ui/DialogChanges.ts +0 -105
- package/src/plugins/link/main/ts/ui/DialogConfirms.ts +0 -64
- package/src/plugins/link/main/ts/ui/DialogInfo.ts +0 -62
- package/src/plugins/link/main/ts/ui/DialogTypes.ts +0 -81
- package/src/plugins/link/main/ts/ui/sections/AnchorListOptions.ts +0 -21
- package/src/plugins/link/main/ts/ui/sections/ClassListOptions.ts +0 -22
- package/src/plugins/link/main/ts/ui/sections/LinkListOptions.ts +0 -45
- package/src/plugins/link/main/ts/ui/sections/RelOptions.ts +0 -24
- package/src/plugins/link/main/ts/ui/sections/TargetOptions.ts +0 -31
- package/src/plugins/link/test/ts/atomic/DialogChangesTest.ts +0 -132
- package/src/plugins/link/test/ts/browser/AllowUnsafeLinkTargetTest.ts +0 -80
- package/src/plugins/link/test/ts/browser/AnchorFalseTest.ts +0 -40
- package/src/plugins/link/test/ts/browser/AssumeExternalTargetsTest.ts +0 -108
- package/src/plugins/link/test/ts/browser/ContextMenuTest.ts +0 -58
- package/src/plugins/link/test/ts/browser/ContextToolbarTest.ts +0 -73
- package/src/plugins/link/test/ts/browser/DefaultLinkProtocolTest.ts +0 -73
- package/src/plugins/link/test/ts/browser/DefaultLinkTargetTest.ts +0 -81
- package/src/plugins/link/test/ts/browser/DialogFlowTest.ts +0 -136
- package/src/plugins/link/test/ts/browser/DialogOpenTest.ts +0 -143
- package/src/plugins/link/test/ts/browser/DialogSectionsTest.ts +0 -159
- package/src/plugins/link/test/ts/browser/ImageFigureLinkTest.ts +0 -50
- package/src/plugins/link/test/ts/browser/LinkContextMenuTest.ts +0 -50
- package/src/plugins/link/test/ts/browser/LinkDialogOverrideTest.ts +0 -69
- package/src/plugins/link/test/ts/browser/LinkJustFirstFieldTest.ts +0 -40
- package/src/plugins/link/test/ts/browser/ListOptionsTest.ts +0 -140
- package/src/plugins/link/test/ts/browser/NoneditableRootTest.ts +0 -67
- package/src/plugins/link/test/ts/browser/PreventDefaultTest.ts +0 -47
- package/src/plugins/link/test/ts/browser/QuickLinkTest.ts +0 -219
- package/src/plugins/link/test/ts/browser/RemoveLinkTest.ts +0 -70
- package/src/plugins/link/test/ts/browser/SelectedImageFigureLinkTest.ts +0 -44
- package/src/plugins/link/test/ts/browser/SelectedImageLinkTest.ts +0 -72
- package/src/plugins/link/test/ts/browser/SelectedLinkTest.ts +0 -83
- package/src/plugins/link/test/ts/browser/SelectedTextLinkTest.ts +0 -174
- package/src/plugins/link/test/ts/browser/UpdateLinkTest.ts +0 -108
- package/src/plugins/link/test/ts/browser/UrlInputTest.ts +0 -50
- package/src/plugins/link/test/ts/browser/UrlProtocolTest.ts +0 -99
- package/src/plugins/link/test/ts/module/TestLinkUi.ts +0 -137
- package/src/plugins/lists/demo/html/demo.html +0 -15
- package/src/plugins/lists/demo/ts/demo/Demo.ts +0 -13
- package/src/plugins/lists/main/ts/Main.ts +0 -9
- package/src/plugins/lists/main/ts/Plugin.ts +0 -28
- package/src/plugins/lists/main/ts/actions/Indendation.ts +0 -45
- package/src/plugins/lists/main/ts/actions/ToggleList.ts +0 -420
- package/src/plugins/lists/main/ts/actions/Update.ts +0 -27
- package/src/plugins/lists/main/ts/api/Api.ts +0 -17
- package/src/plugins/lists/main/ts/api/Commands.ts +0 -65
- package/src/plugins/lists/main/ts/api/Events.ts +0 -7
- package/src/plugins/lists/main/ts/api/Options.ts +0 -28
- package/src/plugins/lists/main/ts/core/Bookmark.ts +0 -126
- package/src/plugins/lists/main/ts/core/Delete.ts +0 -317
- package/src/plugins/lists/main/ts/core/DlIndentation.ts +0 -36
- package/src/plugins/lists/main/ts/core/FilterContent.ts +0 -46
- package/src/plugins/lists/main/ts/core/Keyboard.ts +0 -33
- package/src/plugins/lists/main/ts/core/ListAction.ts +0 -15
- package/src/plugins/lists/main/ts/core/ListNumbering.ts +0 -108
- package/src/plugins/lists/main/ts/core/NodeType.ts +0 -84
- package/src/plugins/lists/main/ts/core/NormalizeLists.ts +0 -44
- package/src/plugins/lists/main/ts/core/RangeUtils.ts +0 -51
- package/src/plugins/lists/main/ts/core/Selection.ts +0 -117
- package/src/plugins/lists/main/ts/core/SplitList.ts +0 -56
- package/src/plugins/lists/main/ts/core/TextBlock.ts +0 -52
- package/src/plugins/lists/main/ts/core/Util.ts +0 -47
- package/src/plugins/lists/main/ts/listmodel/ComposeList.ts +0 -130
- package/src/plugins/lists/main/ts/listmodel/Entry.ts +0 -84
- package/src/plugins/lists/main/ts/listmodel/Indentation.ts +0 -23
- package/src/plugins/lists/main/ts/listmodel/ListsIndendation.ts +0 -65
- package/src/plugins/lists/main/ts/listmodel/NormalizeEntries.ts +0 -46
- package/src/plugins/lists/main/ts/listmodel/ParseLists.ts +0 -97
- package/src/plugins/lists/main/ts/listmodel/Util.ts +0 -24
- package/src/plugins/lists/main/ts/ui/Buttons.ts +0 -42
- package/src/plugins/lists/main/ts/ui/Dialog.ts +0 -68
- package/src/plugins/lists/main/ts/ui/MenuItems.ts +0 -35
- package/src/plugins/lists/test/ts/atomic/ListNumberingTest.ts +0 -81
- package/src/plugins/lists/test/ts/browser/ApplyDlTest.ts +0 -136
- package/src/plugins/lists/test/ts/browser/ApplyListOnCustomList.ts +0 -46
- package/src/plugins/lists/test/ts/browser/ApplyListOnParagraphWithStylesTest.ts +0 -30
- package/src/plugins/lists/test/ts/browser/ApplyTest.ts +0 -949
- package/src/plugins/lists/test/ts/browser/ApplyToDivTest.ts +0 -46
- package/src/plugins/lists/test/ts/browser/BackspaceDeleteFromBlockIntoLiTest.ts +0 -147
- package/src/plugins/lists/test/ts/browser/BackspaceDeleteInlineTest.ts +0 -59
- package/src/plugins/lists/test/ts/browser/BackspaceDeleteTest.ts +0 -1003
- package/src/plugins/lists/test/ts/browser/ChangeListStyleTest.ts +0 -86
- package/src/plugins/lists/test/ts/browser/ContentEditableFalseActionsTest.ts +0 -171
- package/src/plugins/lists/test/ts/browser/CutDeleteTest.ts +0 -44
- package/src/plugins/lists/test/ts/browser/FilterContentTest.ts +0 -41
- package/src/plugins/lists/test/ts/browser/IndentTest.ts +0 -698
- package/src/plugins/lists/test/ts/browser/InlineTest.ts +0 -43
- package/src/plugins/lists/test/ts/browser/ListModelTest.ts +0 -78
- package/src/plugins/lists/test/ts/browser/ListPropertiesTest.ts +0 -254
- package/src/plugins/lists/test/ts/browser/NoneditableRootTest.ts +0 -209
- package/src/plugins/lists/test/ts/browser/OutdentTest.ts +0 -486
- package/src/plugins/lists/test/ts/browser/RemoveForcedRootBlockAttrsTest.ts +0 -43
- package/src/plugins/lists/test/ts/browser/RemoveTest.ts +0 -431
- package/src/plugins/lists/test/ts/browser/RetainContentTest.ts +0 -164
- package/src/plugins/lists/test/ts/browser/StyleTest.ts +0 -76
- package/src/plugins/lists/test/ts/browser/TableInListTest.ts +0 -62
- package/src/plugins/lists/test/ts/browser/ToggleListInTableCell.ts +0 -91
- package/src/plugins/lists/test/ts/browser/ToggleListWithEmptyLiTest.ts +0 -24
- package/src/plugins/lists/test/ts/module/ArbList.ts +0 -204
- package/src/plugins/lists/test/ts/webdriver/ContentEditableFalseTest.ts +0 -111
- package/src/plugins/lists/test/ts/webdriver/ContextMenuTest.ts +0 -30
- package/src/plugins/lists/test/ts/webdriver/DeleteTest.ts +0 -64
- package/src/plugins/media/demo/html/demo.html +0 -16
- package/src/plugins/media/demo/ts/demo/Demo.ts +0 -28
- package/src/plugins/media/main/ts/Main.ts +0 -9
- package/src/plugins/media/main/ts/Plugin.ts +0 -21
- package/src/plugins/media/main/ts/api/Api.ts +0 -21
- package/src/plugins/media/main/ts/api/Commands.ts +0 -15
- package/src/plugins/media/main/ts/api/Options.ts +0 -79
- package/src/plugins/media/main/ts/core/DataToHtml.ts +0 -129
- package/src/plugins/media/main/ts/core/FilterContent.ts +0 -105
- package/src/plugins/media/main/ts/core/HtmlToData.ts +0 -81
- package/src/plugins/media/main/ts/core/Mime.ts +0 -19
- package/src/plugins/media/main/ts/core/Nodes.ts +0 -196
- package/src/plugins/media/main/ts/core/Parser.ts +0 -9
- package/src/plugins/media/main/ts/core/ResolveName.ts +0 -15
- package/src/plugins/media/main/ts/core/Sanitize.ts +0 -16
- package/src/plugins/media/main/ts/core/Selection.ts +0 -43
- package/src/plugins/media/main/ts/core/Service.ts +0 -59
- package/src/plugins/media/main/ts/core/Types.ts +0 -36
- package/src/plugins/media/main/ts/core/UpdateHtml.ts +0 -126
- package/src/plugins/media/main/ts/core/UrlPatterns.ts +0 -112
- package/src/plugins/media/main/ts/ui/Buttons.ts +0 -48
- package/src/plugins/media/main/ts/ui/Dialog.ts +0 -343
- package/src/plugins/media/test/ts/atomic/HtmlToDataTest.ts +0 -96
- package/src/plugins/media/test/ts/atomic/UpdateHtmlTest.ts +0 -38
- package/src/plugins/media/test/ts/atomic/UrlPatternsTest.ts +0 -66
- package/src/plugins/media/test/ts/browser/ContentFormatsTest.ts +0 -187
- package/src/plugins/media/test/ts/browser/DataAttributeTest.ts +0 -58
- package/src/plugins/media/test/ts/browser/DataToHtmlTest.ts +0 -157
- package/src/plugins/media/test/ts/browser/DataUnwrapTest.ts +0 -61
- package/src/plugins/media/test/ts/browser/DimensionsFalseEmbedTest.ts +0 -74
- package/src/plugins/media/test/ts/browser/EphoxEmbedTest.ts +0 -108
- package/src/plugins/media/test/ts/browser/IsCachedResponseTest.ts +0 -46
- package/src/plugins/media/test/ts/browser/LiveEmbedNodeTest.ts +0 -153
- package/src/plugins/media/test/ts/browser/MediaAlignmentTest.ts +0 -89
- package/src/plugins/media/test/ts/browser/MediaEmbedTest.ts +0 -40
- package/src/plugins/media/test/ts/browser/MediaPluginSanityTest.ts +0 -104
- package/src/plugins/media/test/ts/browser/NoAdvancedTabTest.ts +0 -34
- package/src/plugins/media/test/ts/browser/NoneditableRootTest.ts +0 -40
- package/src/plugins/media/test/ts/browser/PlaceholderTest.ts +0 -138
- package/src/plugins/media/test/ts/browser/ReopenResizeTest.ts +0 -52
- package/src/plugins/media/test/ts/browser/ScriptContentTest.ts +0 -22
- package/src/plugins/media/test/ts/browser/SubmitTest.ts +0 -173
- package/src/plugins/media/test/ts/browser/UpdateMediaPosterAttributeTest.ts +0 -52
- package/src/plugins/media/test/ts/module/test/Utils.ts +0 -212
- package/src/plugins/nonbreaking/demo/html/demo.html +0 -15
- package/src/plugins/nonbreaking/demo/ts/demo/Demo.ts +0 -14
- package/src/plugins/nonbreaking/main/ts/Main.ts +0 -9
- package/src/plugins/nonbreaking/main/ts/Plugin.ts +0 -22
- package/src/plugins/nonbreaking/main/ts/api/Commands.ts +0 -13
- package/src/plugins/nonbreaking/main/ts/api/Options.ts +0 -41
- package/src/plugins/nonbreaking/main/ts/core/Actions.ts +0 -29
- package/src/plugins/nonbreaking/main/ts/core/Keyboard.ts +0 -27
- package/src/plugins/nonbreaking/main/ts/ui/Buttons.ts +0 -37
- package/src/plugins/nonbreaking/test/ts/browser/NonbreakingForceTabTest.ts +0 -33
- package/src/plugins/nonbreaking/test/ts/browser/NonbreakingOptionsTest.ts +0 -32
- package/src/plugins/nonbreaking/test/ts/browser/NonbreakingSanityTest.ts +0 -37
- package/src/plugins/nonbreaking/test/ts/browser/NonbreakingVisualCharsTest.ts +0 -69
- package/src/plugins/nonbreaking/test/ts/browser/NoneditableRootTest.ts +0 -40
- package/src/plugins/nonbreaking/test/ts/webdriver/NonbreakingTypingTest.ts +0 -117
- package/src/plugins/nonbreaking/test/ts/webdriver/NonbreakingVisualCharsTypingTest.ts +0 -215
- package/src/plugins/nonbreaking/test/ts/webdriver/NonbreakingWrapTypingTest.ts +0 -216
- package/src/plugins/pagebreak/demo/html/demo.html +0 -15
- package/src/plugins/pagebreak/demo/ts/demo/Demo.ts +0 -14
- package/src/plugins/pagebreak/main/ts/Main.ts +0 -9
- package/src/plugins/pagebreak/main/ts/Plugin.ts +0 -17
- package/src/plugins/pagebreak/main/ts/api/Commands.ts +0 -14
- package/src/plugins/pagebreak/main/ts/api/Options.ts +0 -31
- package/src/plugins/pagebreak/main/ts/core/FilterContent.ts +0 -56
- package/src/plugins/pagebreak/main/ts/core/ResolveName.ts +0 -15
- package/src/plugins/pagebreak/main/ts/ui/Buttons.ts +0 -37
- package/src/plugins/pagebreak/test/ts/browser/NoneditableRootTest.ts +0 -40
- package/src/plugins/pagebreak/test/ts/browser/PageBreakSanityTest.ts +0 -34
- package/src/plugins/pagebreak/test/ts/browser/PageBreakSplitBlockTest.ts +0 -129
- package/src/plugins/preview/demo/html/demo.html +0 -34
- package/src/plugins/preview/demo/ts/demo/Demo.ts +0 -14
- package/src/plugins/preview/main/ts/Main.ts +0 -9
- package/src/plugins/preview/main/ts/Plugin.ts +0 -11
- package/src/plugins/preview/main/ts/api/Commands.ts +0 -13
- package/src/plugins/preview/main/ts/api/Options.ts +0 -20
- package/src/plugins/preview/main/ts/core/IframeContent.ts +0 -62
- package/src/plugins/preview/main/ts/ui/Buttons.ts +0 -21
- package/src/plugins/preview/main/ts/ui/Dialog.ts +0 -39
- package/src/plugins/preview/test/ts/browser/PreviewContentCssTest.ts +0 -33
- package/src/plugins/preview/test/ts/browser/PreviewContentStyleTest.ts +0 -47
- package/src/plugins/preview/test/ts/browser/PreviewSanityTest.ts +0 -40
- package/src/plugins/quickbars/demo/html/demo.html +0 -68
- package/src/plugins/quickbars/demo/ts/demo/Demo.ts +0 -56
- package/src/plugins/quickbars/main/ts/Main.ts +0 -9
- package/src/plugins/quickbars/main/ts/Plugin.ts +0 -16
- package/src/plugins/quickbars/main/ts/api/Options.ts +0 -56
- package/src/plugins/quickbars/main/ts/insert/Actions.ts +0 -20
- package/src/plugins/quickbars/main/ts/insert/Buttons.ts +0 -35
- package/src/plugins/quickbars/main/ts/insert/Conversions.ts +0 -15
- package/src/plugins/quickbars/main/ts/insert/Picker.ts +0 -56
- package/src/plugins/quickbars/main/ts/insert/Toolbars.ts +0 -34
- package/src/plugins/quickbars/main/ts/selection/Bookmark.ts +0 -122
- package/src/plugins/quickbars/main/ts/selection/Toolbars.ts +0 -39
- package/src/plugins/quickbars/test/ts/browser/ContentEditableTest.ts +0 -122
- package/src/plugins/quickbars/test/ts/browser/InsertToolbarPredicateTest.ts +0 -70
- package/src/plugins/quickbars/test/ts/browser/KeyboardShortcutContextToolbarTest.ts +0 -30
- package/src/plugins/quickbars/test/ts/browser/OptionsTest.ts +0 -84
- package/src/plugins/quickbars/test/ts/browser/SelectionToolbarTest.ts +0 -106
- package/src/plugins/quickbars/test/ts/browser/ToolbarFalseTest.ts +0 -45
- package/src/plugins/quickbars/test/ts/browser/ToolbarPositionTest.ts +0 -384
- package/src/plugins/quickbars/test/ts/module/test/Utils.ts +0 -15
- package/src/plugins/save/demo/html/demo.html +0 -18
- package/src/plugins/save/demo/ts/demo/Demo.ts +0 -15
- package/src/plugins/save/main/ts/Main.ts +0 -9
- package/src/plugins/save/main/ts/Plugin.ts +0 -13
- package/src/plugins/save/main/ts/api/Commands.ts +0 -17
- package/src/plugins/save/main/ts/api/Options.ts +0 -36
- package/src/plugins/save/main/ts/core/Actions.ts +0 -69
- package/src/plugins/save/main/ts/ui/Buttons.ts +0 -39
- package/src/plugins/save/test/ts/browser/SaveSanityTest.ts +0 -29
- package/src/plugins/searchreplace/demo/html/demo.html +0 -21
- package/src/plugins/searchreplace/demo/ts/demo/Demo.ts +0 -16
- package/src/plugins/searchreplace/main/ts/Main.ts +0 -9
- package/src/plugins/searchreplace/main/ts/Plugin.ts +0 -26
- package/src/plugins/searchreplace/main/ts/api/Api.ts +0 -47
- package/src/plugins/searchreplace/main/ts/api/Commands.ts +0 -16
- package/src/plugins/searchreplace/main/ts/core/Actions.ts +0 -280
- package/src/plugins/searchreplace/main/ts/core/FindMark.ts +0 -67
- package/src/plugins/searchreplace/main/ts/core/TextCollect.ts +0 -190
- package/src/plugins/searchreplace/main/ts/core/TextPosition.ts +0 -69
- package/src/plugins/searchreplace/main/ts/core/Types.ts +0 -21
- package/src/plugins/searchreplace/main/ts/ui/Buttons.ts +0 -32
- package/src/plugins/searchreplace/main/ts/ui/Dialog.ts +0 -263
- package/src/plugins/searchreplace/test/ts/browser/SearchReplaceDialogCyclingTest.ts +0 -109
- package/src/plugins/searchreplace/test/ts/browser/SearchReplaceDialogTest.ts +0 -144
- package/src/plugins/searchreplace/test/ts/browser/SearchReplaceInSelectionTest.ts +0 -240
- package/src/plugins/searchreplace/test/ts/browser/SearchReplaceKeyboardNavigationTest.ts +0 -100
- package/src/plugins/searchreplace/test/ts/browser/SearchReplacePluginTest.ts +0 -212
- package/src/plugins/searchreplace/test/ts/browser/SearchReplacePrevNextTest.ts +0 -64
- package/src/plugins/searchreplace/test/ts/browser/UndoReplaceSpanTest.ts +0 -35
- package/src/plugins/searchreplace/test/ts/module/test/Utils.ts +0 -77
- package/src/plugins/table/demo/html/demo.html +0 -123
- package/src/plugins/table/demo/ts/demo/Demo.ts +0 -43
- package/src/plugins/table/main/ts/Main.ts +0 -9
- package/src/plugins/table/main/ts/Plugin.ts +0 -23
- package/src/plugins/table/main/ts/actions/Styles.ts +0 -54
- package/src/plugins/table/main/ts/api/Clipboard.ts +0 -67
- package/src/plugins/table/main/ts/api/Commands.ts +0 -27
- package/src/plugins/table/main/ts/api/Events.ts +0 -34
- package/src/plugins/table/main/ts/api/Options.ts +0 -183
- package/src/plugins/table/main/ts/core/Utils.ts +0 -45
- package/src/plugins/table/main/ts/queries/TableTargets.ts +0 -33
- package/src/plugins/table/main/ts/selection/Ephemera.ts +0 -28
- package/src/plugins/table/main/ts/selection/SelectionTargets.ts +0 -194
- package/src/plugins/table/main/ts/selection/TableSelection.ts +0 -54
- package/src/plugins/table/main/ts/ui/Buttons.ts +0 -334
- package/src/plugins/table/main/ts/ui/CellAlignValues.ts +0 -22
- package/src/plugins/table/main/ts/ui/CellDialog.ts +0 -204
- package/src/plugins/table/main/ts/ui/CellDialogGeneralTab.ts +0 -70
- package/src/plugins/table/main/ts/ui/DialogAdvancedTab.ts +0 -46
- package/src/plugins/table/main/ts/ui/DomModifier.ts +0 -40
- package/src/plugins/table/main/ts/ui/Helpers.ts +0 -243
- package/src/plugins/table/main/ts/ui/MenuItems.ts +0 -374
- package/src/plugins/table/main/ts/ui/RowDialog.ts +0 -168
- package/src/plugins/table/main/ts/ui/RowDialogGeneralTab.ts +0 -52
- package/src/plugins/table/main/ts/ui/TableDialog.ts +0 -255
- package/src/plugins/table/main/ts/ui/TableDialogGeneralTab.ts +0 -92
- package/src/plugins/table/main/ts/ui/UiUtils.ts +0 -165
- package/src/plugins/table/test/ts/atomic/UtilsTest.ts +0 -30
- package/src/plugins/table/test/ts/browser/AlignedCellRowStyleChangeTest.ts +0 -71
- package/src/plugins/table/test/ts/browser/ClipboardTest.ts +0 -794
- package/src/plugins/table/test/ts/browser/HelpersTest.ts +0 -288
- package/src/plugins/table/test/ts/browser/IndentListsInTableTest.ts +0 -46
- package/src/plugins/table/test/ts/browser/InlineEditorInsideTableTest.ts +0 -119
- package/src/plugins/table/test/ts/browser/NoneditableRootTest.ts +0 -201
- package/src/plugins/table/test/ts/browser/TableCellPropsStyleTest.ts +0 -34
- package/src/plugins/table/test/ts/browser/TableRemoveTrailingBrTest.ts +0 -128
- package/src/plugins/table/test/ts/browser/settings/CustomTableToolbarTest.ts +0 -26
- package/src/plugins/table/test/ts/browser/settings/DefaultTableToolbarTest.ts +0 -25
- package/src/plugins/table/test/ts/browser/settings/TableAppearanceOptionsTest.ts +0 -57
- package/src/plugins/table/test/ts/browser/settings/TableCellClassListTest.ts +0 -125
- package/src/plugins/table/test/ts/browser/settings/TableClassListTest.ts +0 -96
- package/src/plugins/table/test/ts/browser/settings/TableDefaultAttributesTest.ts +0 -54
- package/src/plugins/table/test/ts/browser/settings/TableDefaultAttributesWithColGroupsTest.ts +0 -54
- package/src/plugins/table/test/ts/browser/settings/TableDefaultStylesTest.ts +0 -139
- package/src/plugins/table/test/ts/browser/settings/TableGridFalseTest.ts +0 -32
- package/src/plugins/table/test/ts/browser/settings/TableRowClassListTest.ts +0 -125
- package/src/plugins/table/test/ts/browser/settings/TableToolbarTest.ts +0 -51
- package/src/plugins/table/test/ts/browser/settings/ToolbarButtonDisplayTest.ts +0 -44
- package/src/plugins/table/test/ts/browser/ui/ContextMenuTest.ts +0 -210
- package/src/plugins/table/test/ts/browser/ui/ContextToolbarTest.ts +0 -153
- package/src/plugins/table/test/ts/browser/ui/LockedColumnDisabledButtonsTest.ts +0 -236
- package/src/plugins/table/test/ts/browser/ui/TableBorderStyleTest.ts +0 -72
- package/src/plugins/table/test/ts/browser/ui/TableBorderWidthTest.ts +0 -54
- package/src/plugins/table/test/ts/browser/ui/TableCaptionTest.ts +0 -199
- package/src/plugins/table/test/ts/browser/ui/TableCellBackgroundColorTest.ts +0 -48
- package/src/plugins/table/test/ts/browser/ui/TableCellBorderColorTest.ts +0 -50
- package/src/plugins/table/test/ts/browser/ui/TableCellDialogTest.ts +0 -533
- package/src/plugins/table/test/ts/browser/ui/TableClassListButtonsTest.ts +0 -116
- package/src/plugins/table/test/ts/browser/ui/TableColumnHeaderUiTest.ts +0 -89
- package/src/plugins/table/test/ts/browser/ui/TableDialogKeyboardNavTest.ts +0 -88
- package/src/plugins/table/test/ts/browser/ui/TableDialogStyleWithCssTest.ts +0 -263
- package/src/plugins/table/test/ts/browser/ui/TableDialogTest.ts +0 -632
- package/src/plugins/table/test/ts/browser/ui/TableDialogWithoutCssTest.ts +0 -85
- package/src/plugins/table/test/ts/browser/ui/TableRowDialogTest.ts +0 -667
- package/src/plugins/table/test/ts/browser/ui/TableRowHeaderUiTest.ts +0 -105
- package/src/plugins/table/test/ts/browser/ui/TableValignButtonsTest.ts +0 -96
- package/src/plugins/table/test/ts/module/test/TableModifiersTestUtils.ts +0 -242
- package/src/plugins/table/test/ts/module/test/TableTestUtils.ts +0 -273
- package/src/plugins/visualblocks/demo/html/demo.html +0 -32
- package/src/plugins/visualblocks/demo/ts/demo/Demo.ts +0 -33
- package/src/plugins/visualblocks/main/img/address.gif +0 -0
- package/src/plugins/visualblocks/main/img/article.gif +0 -0
- package/src/plugins/visualblocks/main/img/aside.gif +0 -0
- package/src/plugins/visualblocks/main/img/blockquote.gif +0 -0
- package/src/plugins/visualblocks/main/img/div.gif +0 -0
- package/src/plugins/visualblocks/main/img/dl.gif +0 -0
- package/src/plugins/visualblocks/main/img/figure.gif +0 -0
- package/src/plugins/visualblocks/main/img/h1.gif +0 -0
- package/src/plugins/visualblocks/main/img/h2.gif +0 -0
- package/src/plugins/visualblocks/main/img/h3.gif +0 -0
- package/src/plugins/visualblocks/main/img/h4.gif +0 -0
- package/src/plugins/visualblocks/main/img/h5.gif +0 -0
- package/src/plugins/visualblocks/main/img/h6.gif +0 -0
- package/src/plugins/visualblocks/main/img/hgroup.gif +0 -0
- package/src/plugins/visualblocks/main/img/ol.gif +0 -0
- package/src/plugins/visualblocks/main/img/p.gif +0 -0
- package/src/plugins/visualblocks/main/img/pre.gif +0 -0
- package/src/plugins/visualblocks/main/img/section.gif +0 -0
- package/src/plugins/visualblocks/main/img/ul.gif +0 -0
- package/src/plugins/visualblocks/main/ts/Main.ts +0 -9
- package/src/plugins/visualblocks/main/ts/Plugin.ts +0 -19
- package/src/plugins/visualblocks/main/ts/api/Commands.ts +0 -15
- package/src/plugins/visualblocks/main/ts/api/Events.ts +0 -9
- package/src/plugins/visualblocks/main/ts/api/Options.ts +0 -24
- package/src/plugins/visualblocks/main/ts/core/Bindings.ts +0 -25
- package/src/plugins/visualblocks/main/ts/core/VisualBlocks.ts +0 -18
- package/src/plugins/visualblocks/main/ts/ui/Buttons.ts +0 -34
- package/src/plugins/visualblocks/test/ts/browser/PreviewFormatTest.ts +0 -57
- package/src/plugins/visualblocks/test/ts/browser/VisualBlocksSanityTest.ts +0 -41
- package/src/plugins/visualchars/demo/html/demo.html +0 -15
- package/src/plugins/visualchars/demo/ts/demo/Demo.ts +0 -14
- package/src/plugins/visualchars/main/ts/Main.ts +0 -9
- package/src/plugins/visualchars/main/ts/Plugin.ts +0 -24
- package/src/plugins/visualchars/main/ts/api/Api.ts +0 -19
- package/src/plugins/visualchars/main/ts/api/Commands.ts +0 -15
- package/src/plugins/visualchars/main/ts/api/Events.ts +0 -10
- package/src/plugins/visualchars/main/ts/api/Options.ts +0 -24
- package/src/plugins/visualchars/main/ts/core/Actions.ts +0 -31
- package/src/plugins/visualchars/main/ts/core/Bindings.ts +0 -26
- package/src/plugins/visualchars/main/ts/core/Data.ts +0 -35
- package/src/plugins/visualchars/main/ts/core/Html.ts +0 -8
- package/src/plugins/visualchars/main/ts/core/Keyboard.ts +0 -23
- package/src/plugins/visualchars/main/ts/core/Nodes.ts +0 -68
- package/src/plugins/visualchars/main/ts/core/VisualChars.ts +0 -61
- package/src/plugins/visualchars/main/ts/ui/Buttons.ts +0 -34
- package/src/plugins/visualchars/test/ts/atomic/DataTest.ts +0 -22
- package/src/plugins/visualchars/test/ts/atomic/HtmlTest.ts +0 -23
- package/src/plugins/visualchars/test/ts/browser/DefaultStateTest.ts +0 -30
- package/src/plugins/visualchars/test/ts/browser/InlinePluginTest.ts +0 -33
- package/src/plugins/visualchars/test/ts/browser/NodesTest.ts +0 -121
- package/src/plugins/visualchars/test/ts/browser/PluginTest.ts +0 -121
- package/src/plugins/visualchars/test/ts/module/test/Utils.ts +0 -42
- package/src/plugins/wordcount/demo/html/demo.html +0 -18
- package/src/plugins/wordcount/demo/ts/demo/Demo.ts +0 -12
- package/src/plugins/wordcount/main/ts/Main.ts +0 -9
- package/src/plugins/wordcount/main/ts/Plugin.ts +0 -17
- package/src/plugins/wordcount/main/ts/api/Api.ts +0 -44
- package/src/plugins/wordcount/main/ts/api/Commands.ts +0 -12
- package/src/plugins/wordcount/main/ts/api/Events.ts +0 -17
- package/src/plugins/wordcount/main/ts/core/Count.ts +0 -38
- package/src/plugins/wordcount/main/ts/core/GetText.ts +0 -35
- package/src/plugins/wordcount/main/ts/core/WordCounter.ts +0 -28
- package/src/plugins/wordcount/main/ts/ui/Buttons.ts +0 -21
- package/src/plugins/wordcount/main/ts/ui/Dialog.ts +0 -47
- package/src/plugins/wordcount/test/ts/browser/PluginTest.ts +0 -228
- package/src/plugins/wordcount/test/ts/browser/api/ApiTest.ts +0 -88
- package/src/plugins/wordcount/test/ts/browser/core/GetTextTest.ts +0 -33
- package/src/themes/silver/demo/html/demo/demo-with-scrolling.html +0 -347
- package/src/themes/silver/demo/html/demo/demo.html +0 -125
- package/src/themes/silver/demo/html/demo/format-select-demo.html +0 -61
- package/src/themes/silver/demo/html/demo/menu-item-demo.html +0 -96
- package/src/themes/silver/demo/html/demo/sidebar-demo.html +0 -97
- package/src/themes/silver/demo/html/demo/toolbar-button-demo.html +0 -97
- package/src/themes/silver/demo/html/demo/tree-demo.html +0 -21
- package/src/themes/silver/demo/ts/demo/ButtonSetupDemo.ts +0 -247
- package/src/themes/silver/demo/ts/demo/Demos.ts +0 -19
- package/src/themes/silver/demo/ts/demo/FormatSelectDemo.ts +0 -70
- package/src/themes/silver/demo/ts/demo/MenuItemDemo.ts +0 -135
- package/src/themes/silver/demo/ts/demo/MockDemo.ts +0 -34
- package/src/themes/silver/demo/ts/demo/PlayDemo.ts +0 -142
- package/src/themes/silver/demo/ts/demo/SidebarDemo.ts +0 -49
- package/src/themes/silver/demo/ts/demo/ToolbarButtonDemo.ts +0 -97
- package/src/themes/silver/demo/ts/demo/TreeDemo.ts +0 -177
- package/src/themes/silver/main/resources/StatusbarLogo.d.ts +0 -1
- package/src/themes/silver/main/resources/StatusbarLogo.js +0 -3
- package/src/themes/silver/main/resources/statusbar-logo.svg +0 -3
- package/src/themes/silver/main/ts/Autocompleter.ts +0 -215
- package/src/themes/silver/main/ts/Channels.ts +0 -7
- package/src/themes/silver/main/ts/Events.ts +0 -153
- package/src/themes/silver/main/ts/Main.ts +0 -9
- package/src/themes/silver/main/ts/ReadOnly.ts +0 -67
- package/src/themes/silver/main/ts/Render.ts +0 -571
- package/src/themes/silver/main/ts/Theme.ts +0 -88
- package/src/themes/silver/main/ts/alien/NotificationManagerImpl.ts +0 -143
- package/src/themes/silver/main/ts/api/Events.ts +0 -82
- package/src/themes/silver/main/ts/api/Options.ts +0 -490
- package/src/themes/silver/main/ts/autocomplete/AutocompleteEditorEvents.ts +0 -78
- package/src/themes/silver/main/ts/backstage/Anchors.ts +0 -184
- package/src/themes/silver/main/ts/backstage/Backstage.ts +0 -109
- package/src/themes/silver/main/ts/backstage/ColorInputBackstage.ts +0 -31
- package/src/themes/silver/main/ts/backstage/DialogBackstage.ts +0 -13
- package/src/themes/silver/main/ts/backstage/HeaderBackstage.ts +0 -21
- package/src/themes/silver/main/ts/backstage/StyleFormatsBackstage.ts +0 -53
- package/src/themes/silver/main/ts/backstage/TooltipsBackstage.ts +0 -62
- package/src/themes/silver/main/ts/backstage/UrlInputBackstage.ts +0 -106
- package/src/themes/silver/main/ts/backstage/UrlInputHistory.ts +0 -72
- package/src/themes/silver/main/ts/modes/Iframe.ts +0 -210
- package/src/themes/silver/main/ts/modes/Inline.ts +0 -219
- package/src/themes/silver/main/ts/modes/ScrollingContext.ts +0 -70
- package/src/themes/silver/main/ts/modes/Toolbars.ts +0 -32
- package/src/themes/silver/main/ts/modes/UiReferences.ts +0 -70
- package/src/themes/silver/main/ts/ui/alien/ComposingConfigs.ts +0 -25
- package/src/themes/silver/main/ts/ui/alien/ConvertShortcut.ts +0 -36
- package/src/themes/silver/main/ts/ui/alien/DialogTabHeight.ts +0 -171
- package/src/themes/silver/main/ts/ui/alien/DisablingConfigs.ts +0 -30
- package/src/themes/silver/main/ts/ui/alien/FieldLabeller.ts +0 -56
- package/src/themes/silver/main/ts/ui/alien/FlatgridAutodetect.ts +0 -28
- package/src/themes/silver/main/ts/ui/alien/RepresentingConfigs.ts +0 -75
- package/src/themes/silver/main/ts/ui/alien/SimpleBehaviours.ts +0 -17
- package/src/themes/silver/main/ts/ui/alien/UiUtils.ts +0 -8
- package/src/themes/silver/main/ts/ui/button/ButtonSlices.ts +0 -37
- package/src/themes/silver/main/ts/ui/button/MenuButton.ts +0 -144
- package/src/themes/silver/main/ts/ui/context/ContextEditorEvents.ts +0 -10
- package/src/themes/silver/main/ts/ui/context/ContextForm.ts +0 -73
- package/src/themes/silver/main/ts/ui/context/ContextFormButtons.ts +0 -98
- package/src/themes/silver/main/ts/ui/context/ContextToolbar.ts +0 -315
- package/src/themes/silver/main/ts/ui/context/ContextToolbarAnchor.ts +0 -146
- package/src/themes/silver/main/ts/ui/context/ContextToolbarBounds.ts +0 -132
- package/src/themes/silver/main/ts/ui/context/ContextToolbarLookup.ts +0 -134
- package/src/themes/silver/main/ts/ui/context/ContextToolbarScopes.ts +0 -81
- package/src/themes/silver/main/ts/ui/context/ContextUi.ts +0 -128
- package/src/themes/silver/main/ts/ui/controls/Controls.ts +0 -40
- package/src/themes/silver/main/ts/ui/core/AlignmentButtons.ts +0 -34
- package/src/themes/silver/main/ts/ui/core/ChoiceControls.ts +0 -137
- package/src/themes/silver/main/ts/ui/core/ComplexControls.ts +0 -20
- package/src/themes/silver/main/ts/ui/core/ControlUtils.ts +0 -80
- package/src/themes/silver/main/ts/ui/core/FormatControls.ts +0 -28
- package/src/themes/silver/main/ts/ui/core/HtmlSanitizer.ts +0 -3
- package/src/themes/silver/main/ts/ui/core/IndentOutdent.ts +0 -33
- package/src/themes/silver/main/ts/ui/core/LinkTargets.ts +0 -144
- package/src/themes/silver/main/ts/ui/core/PasteControls.ts +0 -47
- package/src/themes/silver/main/ts/ui/core/SimpleControls.ts +0 -144
- package/src/themes/silver/main/ts/ui/core/UndoRedo.ts +0 -58
- package/src/themes/silver/main/ts/ui/core/VisualAid.ts +0 -34
- package/src/themes/silver/main/ts/ui/core/color/ColorCache.ts +0 -90
- package/src/themes/silver/main/ts/ui/core/color/ColorSwatch.ts +0 -303
- package/src/themes/silver/main/ts/ui/core/color/Options.ts +0 -175
- package/src/themes/silver/main/ts/ui/core/complex/AlignBespoke.ts +0 -74
- package/src/themes/silver/main/ts/ui/core/complex/BespokeNumberInput.ts +0 -239
- package/src/themes/silver/main/ts/ui/core/complex/BespokeSelect.ts +0 -245
- package/src/themes/silver/main/ts/ui/core/complex/BlocksBespoke.ts +0 -74
- package/src/themes/silver/main/ts/ui/core/complex/FontFamilyBespoke.ts +0 -125
- package/src/themes/silver/main/ts/ui/core/complex/FontSizeBespoke.ts +0 -195
- package/src/themes/silver/main/ts/ui/core/complex/SelectDatasets.ts +0 -67
- package/src/themes/silver/main/ts/ui/core/complex/StyleFormat.ts +0 -131
- package/src/themes/silver/main/ts/ui/core/complex/StylesBespoke.ts +0 -83
- package/src/themes/silver/main/ts/ui/core/complex/utils/FormatDetection.ts +0 -14
- package/src/themes/silver/main/ts/ui/core/complex/utils/FormatRegister.ts +0 -73
- package/src/themes/silver/main/ts/ui/core/complex/utils/Tooltip.ts +0 -8
- package/src/themes/silver/main/ts/ui/dialog/AlertDialog.ts +0 -65
- package/src/themes/silver/main/ts/ui/dialog/Bar.ts +0 -15
- package/src/themes/silver/main/ts/ui/dialog/BodyPanel.ts +0 -74
- package/src/themes/silver/main/ts/ui/dialog/Collection.ts +0 -195
- package/src/themes/silver/main/ts/ui/dialog/ColorInput.ts +0 -183
- package/src/themes/silver/main/ts/ui/dialog/ColorPicker.ts +0 -107
- package/src/themes/silver/main/ts/ui/dialog/ConfirmDialog.ts +0 -77
- package/src/themes/silver/main/ts/ui/dialog/CustomEditor.ts +0 -79
- package/src/themes/silver/main/ts/ui/dialog/Dialogs.ts +0 -207
- package/src/themes/silver/main/ts/ui/dialog/Dropzone.ts +0 -154
- package/src/themes/silver/main/ts/ui/dialog/Grid.ts +0 -15
- package/src/themes/silver/main/ts/ui/dialog/IFrame.ts +0 -188
- package/src/themes/silver/main/ts/ui/dialog/ImagePreview.ts +0 -156
- package/src/themes/silver/main/ts/ui/dialog/Label.ts +0 -45
- package/src/themes/silver/main/ts/ui/dialog/ListBox.ts +0 -139
- package/src/themes/silver/main/ts/ui/dialog/Panel.ts +0 -21
- package/src/themes/silver/main/ts/ui/dialog/SelectBox.ts +0 -78
- package/src/themes/silver/main/ts/ui/dialog/SizeInput.ts +0 -169
- package/src/themes/silver/main/ts/ui/dialog/Slider.ts +0 -69
- package/src/themes/silver/main/ts/ui/dialog/TabPanel.ts +0 -168
- package/src/themes/silver/main/ts/ui/dialog/Table.ts +0 -46
- package/src/themes/silver/main/ts/ui/dialog/TextField.ts +0 -161
- package/src/themes/silver/main/ts/ui/dialog/Tree.ts +0 -405
- package/src/themes/silver/main/ts/ui/dialog/UrlInput.ts +0 -296
- package/src/themes/silver/main/ts/ui/dialog/WindowManager.ts +0 -393
- package/src/themes/silver/main/ts/ui/dropdown/CommonDropdown.ts +0 -275
- package/src/themes/silver/main/ts/ui/general/AlertBanner.ts +0 -62
- package/src/themes/silver/main/ts/ui/general/Button.ts +0 -309
- package/src/themes/silver/main/ts/ui/general/Checkbox.ts +0 -110
- package/src/themes/silver/main/ts/ui/general/FormEvents.ts +0 -63
- package/src/themes/silver/main/ts/ui/general/FormValues.ts +0 -21
- package/src/themes/silver/main/ts/ui/general/HtmlPanel.ts +0 -62
- package/src/themes/silver/main/ts/ui/general/NavigableObject.ts +0 -76
- package/src/themes/silver/main/ts/ui/general/Notification.ts +0 -222
- package/src/themes/silver/main/ts/ui/general/OuterContainer.ts +0 -463
- package/src/themes/silver/main/ts/ui/general/PanelButton.ts +0 -67
- package/src/themes/silver/main/ts/ui/general/UiFactory.ts +0 -110
- package/src/themes/silver/main/ts/ui/header/CommonHeader.ts +0 -26
- package/src/themes/silver/main/ts/ui/header/InlineHeader.ts +0 -379
- package/src/themes/silver/main/ts/ui/header/StaticHeader.ts +0 -11
- package/src/themes/silver/main/ts/ui/header/StickyHeader.ts +0 -311
- package/src/themes/silver/main/ts/ui/icons/Icons.ts +0 -110
- package/src/themes/silver/main/ts/ui/menus/contextmenu/Coords.ts +0 -85
- package/src/themes/silver/main/ts/ui/menus/contextmenu/Options.ts +0 -66
- package/src/themes/silver/main/ts/ui/menus/contextmenu/SilverContextMenu.ts +0 -192
- package/src/themes/silver/main/ts/ui/menus/contextmenu/platform/DesktopContextMenu.ts +0 -44
- package/src/themes/silver/main/ts/ui/menus/contextmenu/platform/MobileContextMenu.ts +0 -169
- package/src/themes/silver/main/ts/ui/menus/item/ItemClasses.ts +0 -57
- package/src/themes/silver/main/ts/ui/menus/item/ItemEvents.ts +0 -29
- package/src/themes/silver/main/ts/ui/menus/item/ItemResponse.ts +0 -6
- package/src/themes/silver/main/ts/ui/menus/item/MenuItems.ts +0 -28
- package/src/themes/silver/main/ts/ui/menus/item/build/AutocompleteMenuItem.ts +0 -111
- package/src/themes/silver/main/ts/ui/menus/item/build/CardMenuItem.ts +0 -84
- package/src/themes/silver/main/ts/ui/menus/item/build/ChoiceItem.ts +0 -82
- package/src/themes/silver/main/ts/ui/menus/item/build/ColorSwatchItem.ts +0 -57
- package/src/themes/silver/main/ts/ui/menus/item/build/CommonMenuItem.ts +0 -99
- package/src/themes/silver/main/ts/ui/menus/item/build/FancyMenuItem.ts +0 -19
- package/src/themes/silver/main/ts/ui/menus/item/build/InsertTableMenuItem.ts +0 -142
- package/src/themes/silver/main/ts/ui/menus/item/build/NestedMenuItem.ts +0 -51
- package/src/themes/silver/main/ts/ui/menus/item/build/NormalMenuItem.ts +0 -40
- package/src/themes/silver/main/ts/ui/menus/item/build/SeparatorItem.ts +0 -17
- package/src/themes/silver/main/ts/ui/menus/item/build/ToggleMenuItem.ts +0 -62
- package/src/themes/silver/main/ts/ui/menus/item/structure/ItemSlices.ts +0 -121
- package/src/themes/silver/main/ts/ui/menus/item/structure/ItemStructure.ts +0 -149
- package/src/themes/silver/main/ts/ui/menus/menu/MenuChoice.ts +0 -61
- package/src/themes/silver/main/ts/ui/menus/menu/MenuClasses.ts +0 -31
- package/src/themes/silver/main/ts/ui/menus/menu/MenuConversion.ts +0 -131
- package/src/themes/silver/main/ts/ui/menus/menu/MenuMovement.ts +0 -63
- package/src/themes/silver/main/ts/ui/menus/menu/MenuParts.ts +0 -56
- package/src/themes/silver/main/ts/ui/menus/menu/MenuStructures.ts +0 -235
- package/src/themes/silver/main/ts/ui/menus/menu/MenuUtils.ts +0 -104
- package/src/themes/silver/main/ts/ui/menus/menu/MenuWidgets.ts +0 -55
- package/src/themes/silver/main/ts/ui/menus/menu/NestedMenus.ts +0 -82
- package/src/themes/silver/main/ts/ui/menus/menu/SingleMenu.ts +0 -228
- package/src/themes/silver/main/ts/ui/menus/menu/SingleMenuTypes.ts +0 -4
- package/src/themes/silver/main/ts/ui/menus/menu/searchable/SearchableMenu.ts +0 -164
- package/src/themes/silver/main/ts/ui/menus/menu/searchable/SearchableMenuEvents.ts +0 -32
- package/src/themes/silver/main/ts/ui/menus/menu/searchable/SearchableMenuField.ts +0 -181
- package/src/themes/silver/main/ts/ui/menus/menu/searchable/SearchableMenus.ts +0 -23
- package/src/themes/silver/main/ts/ui/menus/menubar/Integration.ts +0 -86
- package/src/themes/silver/main/ts/ui/menus/menubar/SilverMenubar.ts +0 -152
- package/src/themes/silver/main/ts/ui/promotion/Promotion.ts +0 -29
- package/src/themes/silver/main/ts/ui/selector/TableSelectorHandles.ts +0 -230
- package/src/themes/silver/main/ts/ui/sidebar/Sidebar.ts +0 -251
- package/src/themes/silver/main/ts/ui/sizeinput/SizeInputModel.ts +0 -87
- package/src/themes/silver/main/ts/ui/sizing/EditorSize.ts +0 -32
- package/src/themes/silver/main/ts/ui/sizing/Resize.ts +0 -41
- package/src/themes/silver/main/ts/ui/sizing/Utils.ts +0 -24
- package/src/themes/silver/main/ts/ui/skin/Loader.ts +0 -98
- package/src/themes/silver/main/ts/ui/skin/SkinLoaded.ts +0 -26
- package/src/themes/silver/main/ts/ui/statusbar/ElementPath.ts +0 -132
- package/src/themes/silver/main/ts/ui/statusbar/ResizeHandle.ts +0 -70
- package/src/themes/silver/main/ts/ui/statusbar/Statusbar.ts +0 -144
- package/src/themes/silver/main/ts/ui/statusbar/WordCount.ts +0 -67
- package/src/themes/silver/main/ts/ui/throbber/Throbber.ts +0 -170
- package/src/themes/silver/main/ts/ui/toolbar/CommonToolbar.ts +0 -231
- package/src/themes/silver/main/ts/ui/toolbar/Integration.ts +0 -210
- package/src/themes/silver/main/ts/ui/toolbar/button/ButtonClasses.ts +0 -17
- package/src/themes/silver/main/ts/ui/toolbar/button/ButtonEvents.ts +0 -45
- package/src/themes/silver/main/ts/ui/toolbar/button/ToolbarButtons.ts +0 -438
- package/src/themes/silver/main/ts/ui/urlinput/Completions.ts +0 -86
- package/src/themes/silver/main/ts/ui/view/View.ts +0 -160
- package/src/themes/silver/main/ts/ui/view/ViewButtons.ts +0 -88
- package/src/themes/silver/main/ts/ui/view/ViewTypes.ts +0 -3
- package/src/themes/silver/main/ts/ui/view/ViewWrapper.ts +0 -174
- package/src/themes/silver/main/ts/ui/window/DialogChannels.ts +0 -17
- package/src/themes/silver/main/ts/ui/window/SilverDialog.ts +0 -102
- package/src/themes/silver/main/ts/ui/window/SilverDialogBody.ts +0 -121
- package/src/themes/silver/main/ts/ui/window/SilverDialogCommon.ts +0 -163
- package/src/themes/silver/main/ts/ui/window/SilverDialogEvents.ts +0 -137
- package/src/themes/silver/main/ts/ui/window/SilverDialogFooter.ts +0 -94
- package/src/themes/silver/main/ts/ui/window/SilverDialogHeader.ts +0 -127
- package/src/themes/silver/main/ts/ui/window/SilverDialogInstanceApi.ts +0 -168
- package/src/themes/silver/main/ts/ui/window/SilverInlineDialog.ts +0 -184
- package/src/themes/silver/main/ts/ui/window/SilverUrlDialog.ts +0 -158
- package/src/themes/silver/main/ts/ui/window/SilverUrlDialogInstanceApi.ts +0 -52
- package/src/themes/silver/test/css/content.css +0 -4
- package/src/themes/silver/test/html/iframe.html +0 -25
- package/src/themes/silver/test/ts/atomic/components/sizeinput/SizeInputConvertTest.ts +0 -59
- package/src/themes/silver/test/ts/atomic/components/sizeinput/SizeInputConverterTest.ts +0 -73
- package/src/themes/silver/test/ts/atomic/components/sizeinput/SizeInputFormatTest.ts +0 -19
- package/src/themes/silver/test/ts/atomic/components/sizeinput/SizeInputNuTest.ts +0 -12
- package/src/themes/silver/test/ts/atomic/components/sizeinput/SizeInputParsingTest.ts +0 -75
- package/src/themes/silver/test/ts/atomic/components/sizeinput/SizeInputShared.ts +0 -5
- package/src/themes/silver/test/ts/atomic/context/ContextMenuTriggerTest.ts +0 -36
- package/src/themes/silver/test/ts/atomic/menus/MenuConversionTest.ts +0 -91
- package/src/themes/silver/test/ts/atomic/sizing/ResizeTest.ts +0 -64
- package/src/themes/silver/test/ts/browser/editor/ContextFormTest.ts +0 -228
- package/src/themes/silver/test/ts/browser/editor/DefaultHeightTest.ts +0 -54
- package/src/themes/silver/test/ts/browser/editor/DisableTest.ts +0 -57
- package/src/themes/silver/test/ts/browser/editor/EventsTest.ts +0 -90
- package/src/themes/silver/test/ts/browser/editor/ForceHexColorTest.ts +0 -131
- package/src/themes/silver/test/ts/browser/editor/MenuGroupHeadingTest.ts +0 -52
- package/src/themes/silver/test/ts/browser/editor/NotificationManagerImplTest.ts +0 -259
- package/src/themes/silver/test/ts/browser/editor/ResourceLoadingCssTest.ts +0 -41
- package/src/themes/silver/test/ts/browser/editor/ShadowDomInlineTest.ts +0 -18
- package/src/themes/silver/test/ts/browser/editor/ShowHideTest.ts +0 -93
- package/src/themes/silver/test/ts/browser/editor/SilverDialogCancelTest.ts +0 -34
- package/src/themes/silver/test/ts/browser/editor/SilverDialogCloseTest.ts +0 -34
- package/src/themes/silver/test/ts/browser/editor/SilverDialogPopupsTest.ts +0 -113
- package/src/themes/silver/test/ts/browser/editor/SilverDialogTreeTest.ts +0 -108
- package/src/themes/silver/test/ts/browser/editor/SilverEditorDirectionalityTest.ts +0 -55
- package/src/themes/silver/test/ts/browser/editor/SilverEditorTest.ts +0 -422
- package/src/themes/silver/test/ts/browser/editor/SilverFixedToolbarContainerPriorityTest.ts +0 -38
- package/src/themes/silver/test/ts/browser/editor/SilverFixedToolbarContainerTargetNotInlineTest.ts +0 -34
- package/src/themes/silver/test/ts/browser/editor/SilverFixedToolbarContainerTargetTest.ts +0 -34
- package/src/themes/silver/test/ts/browser/editor/SilverFixedToolbarContainerTest.ts +0 -117
- package/src/themes/silver/test/ts/browser/editor/SilverInlineEditorTest.ts +0 -430
- package/src/themes/silver/test/ts/browser/editor/SilverInlineEditorWidthTest.ts +0 -113
- package/src/themes/silver/test/ts/browser/editor/SilverPopupSinkBoundsTest.ts +0 -344
- package/src/themes/silver/test/ts/browser/editor/SilverRenderTest.ts +0 -64
- package/src/themes/silver/test/ts/browser/editor/SilverUiModeTest.ts +0 -218
- package/src/themes/silver/test/ts/browser/editor/ToolbarBottomTest.ts +0 -166
- package/src/themes/silver/test/ts/browser/editor/ToolbarPersistTest.ts +0 -40
- package/src/themes/silver/test/ts/browser/editor/ToxWrappingTest.ts +0 -21
- package/src/themes/silver/test/ts/browser/editor/autocomplete/AutocompleteAriaTest.ts +0 -179
- package/src/themes/silver/test/ts/browser/editor/autocomplete/AutocompleteCancelTest.ts +0 -184
- package/src/themes/silver/test/ts/browser/editor/autocomplete/AutocompleteReloadTest.ts +0 -117
- package/src/themes/silver/test/ts/browser/editor/autocomplete/AutocompleteTest.ts +0 -769
- package/src/themes/silver/test/ts/browser/editor/backstage/BackstageSinkTest.ts +0 -190
- package/src/themes/silver/test/ts/browser/editor/bespoke/BespokeSelectAriaLabelTest.ts +0 -242
- package/src/themes/silver/test/ts/browser/editor/bespoke/SilverBespokeButtonsTest.ts +0 -401
- package/src/themes/silver/test/ts/browser/editor/bespoke/StyleSelectFormatNamesTest.ts +0 -114
- package/src/themes/silver/test/ts/browser/editor/buttons/GroupToolbarButtonTest.ts +0 -148
- package/src/themes/silver/test/ts/browser/editor/buttons/UpdateToolbarButtonTextAndIconTest.ts +0 -133
- package/src/themes/silver/test/ts/browser/editor/color/ColorAriaLabelTest.ts +0 -285
- package/src/themes/silver/test/ts/browser/editor/color/ColorCacheTest.ts +0 -64
- package/src/themes/silver/test/ts/browser/editor/color/ColorPickerSanityTest.ts +0 -239
- package/src/themes/silver/test/ts/browser/editor/color/ColorSettingsTest.ts +0 -115
- package/src/themes/silver/test/ts/browser/editor/color/GetCurrentColorTest.ts +0 -32
- package/src/themes/silver/test/ts/browser/editor/color/NoneditableRootTest.ts +0 -48
- package/src/themes/silver/test/ts/browser/editor/color/TextColorCommandsTest.ts +0 -64
- package/src/themes/silver/test/ts/browser/editor/color/TextColorFormattingTest.ts +0 -167
- package/src/themes/silver/test/ts/browser/editor/color/TextColorSanityTest.ts +0 -504
- package/src/themes/silver/test/ts/browser/editor/contextmenu/ContextMenuPositionTest.ts +0 -33
- package/src/themes/silver/test/ts/browser/editor/contextmenu/ContextMenuSettingsTest.ts +0 -44
- package/src/themes/silver/test/ts/browser/editor/contextmenu/CustomContextMenuTest.ts +0 -141
- package/src/themes/silver/test/ts/browser/editor/contextmenu/DesktopContextMenuTest.ts +0 -183
- package/src/themes/silver/test/ts/browser/editor/contextmenu/MobileContextMenuTest.ts +0 -212
- package/src/themes/silver/test/ts/browser/editor/contextmenu/img/dogleft.jpg +0 -0
- package/src/themes/silver/test/ts/browser/editor/contexttoolbar/ContextToolbarBoundsTest.ts +0 -332
- package/src/themes/silver/test/ts/browser/editor/contexttoolbar/ContextToolbarDistractionFreePositionTest.ts +0 -120
- package/src/themes/silver/test/ts/browser/editor/contexttoolbar/ContextToolbarIframePositionTest.ts +0 -385
- package/src/themes/silver/test/ts/browser/editor/contexttoolbar/ContextToolbarInlinePositionTest.ts +0 -158
- package/src/themes/silver/test/ts/browser/editor/contexttoolbar/ContextToolbarLookupPositionPriorityTest.ts +0 -51
- package/src/themes/silver/test/ts/browser/editor/contexttoolbar/ContextToolbarLookupPrioritisationTest.ts +0 -76
- package/src/themes/silver/test/ts/browser/editor/contexttoolbar/ContextToolbarLookupTest.ts +0 -160
- package/src/themes/silver/test/ts/browser/editor/contexttoolbar/ContextToolbarTest.ts +0 -41
- package/src/themes/silver/test/ts/browser/editor/contexttoolbar/RemoveContextToolbarOnFocusoutTest.ts +0 -64
- package/src/themes/silver/test/ts/browser/editor/core/AlignmentButtonsTest.ts +0 -67
- package/src/themes/silver/test/ts/browser/editor/core/ChoiceControlsTest.ts +0 -397
- package/src/themes/silver/test/ts/browser/editor/core/ContentLanguageHiddenTest.ts +0 -26
- package/src/themes/silver/test/ts/browser/editor/core/PasteControlsTest.ts +0 -41
- package/src/themes/silver/test/ts/browser/editor/core/SimpleControlsTest.ts +0 -171
- package/src/themes/silver/test/ts/browser/editor/core/UndoRedoTest.ts +0 -90
- package/src/themes/silver/test/ts/browser/editor/header/HeaderLocationTest.ts +0 -56
- package/src/themes/silver/test/ts/browser/editor/header/InlineHeaderTest.ts +0 -99
- package/src/themes/silver/test/ts/browser/editor/header/PromotionTest.ts +0 -65
- package/src/themes/silver/test/ts/browser/editor/header/StickyHeaderBottomTest.ts +0 -11
- package/src/themes/silver/test/ts/browser/editor/header/StickyHeaderInitialPlacementTest.ts +0 -33
- package/src/themes/silver/test/ts/browser/editor/header/StickyHeaderScrollIntoViewTest.ts +0 -104
- package/src/themes/silver/test/ts/browser/editor/header/StickyHeaderTopTest.ts +0 -11
- package/src/themes/silver/test/ts/browser/editor/menubar/EditorMenubarOptionsTest.ts +0 -77
- package/src/themes/silver/test/ts/browser/editor/menubar/EditorMenubarRenderTest.ts +0 -41
- package/src/themes/silver/test/ts/browser/editor/scrolling/EditorInScrollingContainerTest.ts +0 -959
- package/src/themes/silver/test/ts/browser/editor/sizing/GridSinkSizingTest.ts +0 -36
- package/src/themes/silver/test/ts/browser/editor/sizing/ResizeNotInRootTest.ts +0 -37
- package/src/themes/silver/test/ts/browser/editor/sizing/ResizeTest.ts +0 -110
- package/src/themes/silver/test/ts/browser/editor/toolbar/EditorToolbarOptionsTest.ts +0 -464
- package/src/themes/silver/test/ts/browser/editor/toolbar/IndentOutdentTest.ts +0 -29
- package/src/themes/silver/test/ts/browser/editor/toolbar/InlineToolbarDrawerFloatingPositionTest.ts +0 -77
- package/src/themes/silver/test/ts/browser/editor/toolbar/InlineToolbarPositionTest.ts +0 -390
- package/src/themes/silver/test/ts/browser/editor/toolbar/MultipleInlineToolbarVisibilityTest.ts +0 -54
- package/src/themes/silver/test/ts/browser/editor/toolbar/NumberInputTest.ts +0 -462
- package/src/themes/silver/test/ts/browser/editor/toolbar/ReadonlyToolbarResizeTest.ts +0 -172
- package/src/themes/silver/test/ts/browser/editor/toolbar/SplitFloatingToolbarKeyboardNavigationTest.ts +0 -43
- package/src/themes/silver/test/ts/browser/editor/toolbar/ToolbarDrawerFloatingPositionTest.ts +0 -106
- package/src/themes/silver/test/ts/browser/editor/toolbar/ToolbarDrawerToggleTest.ts +0 -160
- package/src/themes/silver/test/ts/browser/editor/toolbar/ToolbarFocusTest.ts +0 -49
- package/src/themes/silver/test/ts/browser/editor/tooltip/AutocompleterTooltipTest.ts +0 -157
- package/src/themes/silver/test/ts/browser/editor/tooltip/CollectionTooltipTest.ts +0 -240
- package/src/themes/silver/test/ts/browser/editor/tooltip/DynamicTooltipTest.ts +0 -289
- package/src/themes/silver/test/ts/browser/editor/tooltip/TooltipShortcutTest.ts +0 -52
- package/src/themes/silver/test/ts/browser/editor/tooltip/TooltipTest.ts +0 -505
- package/src/themes/silver/test/ts/browser/icons/IconsTest.ts +0 -128
- package/src/themes/silver/test/ts/browser/sidebar/SidebarRoleAttributeTest.ts +0 -83
- package/src/themes/silver/test/ts/browser/sidebar/SidebarShowOptionTest.ts +0 -126
- package/src/themes/silver/test/ts/browser/sidebar/SidebarTest.ts +0 -115
- package/src/themes/silver/test/ts/browser/skin/OxideBlockedDialogTest.ts +0 -113
- package/src/themes/silver/test/ts/browser/skin/OxideCollectionComponentTest.ts +0 -325
- package/src/themes/silver/test/ts/browser/skin/OxideColorSwatchMenuTest.ts +0 -324
- package/src/themes/silver/test/ts/browser/skin/OxideFontFormatMenuTest.ts +0 -209
- package/src/themes/silver/test/ts/browser/skin/OxideGridCollectionMenuTest.ts +0 -79
- package/src/themes/silver/test/ts/browser/skin/OxideListCollectionMenuTest.ts +0 -151
- package/src/themes/silver/test/ts/browser/skin/OxideTablePickerMenuTest.ts +0 -124
- package/src/themes/silver/test/ts/browser/skin/OxideToolbarCollectionMenuTest.ts +0 -156
- package/src/themes/silver/test/ts/browser/statusbar/StatusbarTest.ts +0 -365
- package/src/themes/silver/test/ts/browser/throbber/ThrobberEditorTest.ts +0 -82
- package/src/themes/silver/test/ts/browser/throbber/ThrobberFocusTest.ts +0 -248
- package/src/themes/silver/test/ts/browser/throbber/ThrobberPopupTest.ts +0 -121
- package/src/themes/silver/test/ts/browser/throbber/ThrobberTest.ts +0 -93
- package/src/themes/silver/test/ts/browser/view/ViewButtonsTest.ts +0 -134
- package/src/themes/silver/test/ts/browser/view/ViewTest.ts +0 -504
- package/src/themes/silver/test/ts/browser/window/SilverDialogApiAccessTest.ts +0 -175
- package/src/themes/silver/test/ts/browser/window/SilverDialogAriaLabelTest.ts +0 -61
- package/src/themes/silver/test/ts/browser/window/SilverDialogBeforeEditorRenderedTest.ts +0 -29
- package/src/themes/silver/test/ts/browser/window/SilverDialogBlockTest.ts +0 -170
- package/src/themes/silver/test/ts/browser/window/SilverDialogFooterTest.ts +0 -87
- package/src/themes/silver/test/ts/browser/window/SilverDialogPositioningTest.ts +0 -191
- package/src/themes/silver/test/ts/browser/window/SilverInlineDialogPersistenceTest.ts +0 -173
- package/src/themes/silver/test/ts/browser/window/SilverInlineDialogPositionTest.ts +0 -451
- package/src/themes/silver/test/ts/browser/window/SilverInlineDialogTest.ts +0 -270
- package/src/themes/silver/test/ts/headless/components/alertbanner/AlertBannerTest.ts +0 -93
- package/src/themes/silver/test/ts/headless/components/checkbox/BasicCheckboxTest.ts +0 -193
- package/src/themes/silver/test/ts/headless/components/checkbox/CheckboxFormChangeTest.ts +0 -37
- package/src/themes/silver/test/ts/headless/components/colorinput/ColorInputTest.ts +0 -202
- package/src/themes/silver/test/ts/headless/components/colorpicker/ColorPickerTest.ts +0 -165
- package/src/themes/silver/test/ts/headless/components/customeditor/BasicCustomEditorTest.ts +0 -101
- package/src/themes/silver/test/ts/headless/components/customeditor/CustomEditorSchemaTest.ts +0 -92
- package/src/themes/silver/test/ts/headless/components/dialogbutton/DialogButtonTest.ts +0 -99
- package/src/themes/silver/test/ts/headless/components/dialogbutton/DialogFooterButtonTest.ts +0 -61
- package/src/themes/silver/test/ts/headless/components/dropzone/DropzoneTest.ts +0 -76
- package/src/themes/silver/test/ts/headless/components/grid/BasicGridTest.ts +0 -54
- package/src/themes/silver/test/ts/headless/components/htmlpanel/HtmlPanelTest.ts +0 -62
- package/src/themes/silver/test/ts/headless/components/iframe/IframeTest.ts +0 -343
- package/src/themes/silver/test/ts/headless/components/imagepreview/BasicImagePreviewTest.ts +0 -119
- package/src/themes/silver/test/ts/headless/components/input/InputTest.ts +0 -61
- package/src/themes/silver/test/ts/headless/components/label/LabelTest.ts +0 -117
- package/src/themes/silver/test/ts/headless/components/listbox/ListBoxTest.ts +0 -166
- package/src/themes/silver/test/ts/headless/components/selectbox/SelectboxTest.ts +0 -85
- package/src/themes/silver/test/ts/headless/components/selectbox/SelectboxWithSizeTest.ts +0 -67
- package/src/themes/silver/test/ts/headless/components/sizeinput/SizeInputTest.ts +0 -131
- package/src/themes/silver/test/ts/headless/components/slider/SliderTest.ts +0 -43
- package/src/themes/silver/test/ts/headless/components/table/TableTest.ts +0 -49
- package/src/themes/silver/test/ts/headless/components/textarea/TextareaTest.ts +0 -63
- package/src/themes/silver/test/ts/headless/components/tree/TreeTest.ts +0 -286
- package/src/themes/silver/test/ts/headless/components/urlinput/HistoryTest.ts +0 -35
- package/src/themes/silver/test/ts/headless/components/urlinput/UrlInputTest.ts +0 -301
- package/src/themes/silver/test/ts/headless/configs/ControlOnSetupTest.ts +0 -74
- package/src/themes/silver/test/ts/headless/modes/ScrollingContextTest.ts +0 -271
- package/src/themes/silver/test/ts/headless/modes/UiReferencesTest.ts +0 -73
- package/src/themes/silver/test/ts/headless/sketchers/SilverMenubarTest.ts +0 -312
- package/src/themes/silver/test/ts/headless/toolbar/SearchableMenuButtonPlaceholderTest.ts +0 -100
- package/src/themes/silver/test/ts/headless/toolbar/SearchableMenuButtonTest.ts +0 -541
- package/src/themes/silver/test/ts/headless/toolbar/ToolbarButtonsTest.ts +0 -384
- package/src/themes/silver/test/ts/headless/toolbar/ToolbarTest.ts +0 -142
- package/src/themes/silver/test/ts/headless/window/CustomDialogTest.ts +0 -271
- package/src/themes/silver/test/ts/headless/window/SilverDialogEventTest.ts +0 -145
- package/src/themes/silver/test/ts/headless/window/SilverDialogReuseTest.ts +0 -322
- package/src/themes/silver/test/ts/headless/window/SilverDialogTest.ts +0 -90
- package/src/themes/silver/test/ts/headless/window/SilverUrlDialogTest.ts +0 -80
- package/src/themes/silver/test/ts/headless/window/TabbedDialogTest.ts +0 -128
- package/src/themes/silver/test/ts/headless/window/WindowManagerAlertTest.ts +0 -225
- package/src/themes/silver/test/ts/headless/window/WindowManagerConfirmTest.ts +0 -236
- package/src/themes/silver/test/ts/headless/window/WindowManagerRedialTest.ts +0 -182
- package/src/themes/silver/test/ts/headless/window/WindowManagerTest.ts +0 -396
- package/src/themes/silver/test/ts/module/Assets.ts +0 -3
- package/src/themes/silver/test/ts/module/AutocompleterUtils.ts +0 -153
- package/src/themes/silver/test/ts/module/CommonMailMergeFetch.ts +0 -107
- package/src/themes/silver/test/ts/module/CommonMenuTestStructures.ts +0 -80
- package/src/themes/silver/test/ts/module/ContextMenuUtils.ts +0 -35
- package/src/themes/silver/test/ts/module/DialogUtils.ts +0 -33
- package/src/themes/silver/test/ts/module/DomUtils.ts +0 -21
- package/src/themes/silver/test/ts/module/MenuUtils.ts +0 -75
- package/src/themes/silver/test/ts/module/PageScroll.ts +0 -41
- package/src/themes/silver/test/ts/module/RepresentingUtils.ts +0 -28
- package/src/themes/silver/test/ts/module/StickyHeaderStep.ts +0 -226
- package/src/themes/silver/test/ts/module/StickyHeaderUtils.ts +0 -250
- package/src/themes/silver/test/ts/module/TestBackstage.ts +0 -88
- package/src/themes/silver/test/ts/module/TestExtras.ts +0 -149
- package/src/themes/silver/test/ts/module/TestProviders.ts +0 -25
- package/src/themes/silver/test/ts/module/ToolbarUtils.ts +0 -44
- package/src/themes/silver/test/ts/module/TooltipUtils.ts +0 -62
- package/src/themes/silver/test/ts/module/UiUtils.ts +0 -55
- package/src/themes/silver/test/ts/webdriver/components/urlinput/UrlInputTest.ts +0 -79
- package/src/themes/silver/test/ts/webdriver/dialogs/DialogFocusTest.ts +0 -94
- package/src/themes/silver/test/ts/webdriver/dialogs/IFrameDialogTest.ts +0 -169
- package/src/themes/silver/test/ts/webdriver/dialogs/SizeInputSpaceTest.ts +0 -50
- package/src/themes/silver/test/ts/webdriver/editor/AutocompleteDelayedResponseTest.ts +0 -101
- package/src/themes/silver/test/ts/webdriver/editor/DisabledNestedMenuItemTest.ts +0 -115
- package/src/themes/silver/test/ts/webdriver/editor/SimpleControlsInlineTest.ts +0 -30
- package/src/themes/silver/test/ts/webdriver/editor/TabbingTest.ts +0 -26
- package/src/themes/silver/test/ts/webdriver/throbber/ThrobberTabbingTest.ts +0 -120
- package/src/themes/silver/test/ts/webdriver/toolbar/SearchableMenuTypingTest.ts +0 -369
- package/src/themes/silver/test/ts/webdriver/tooltip/HtmlPanelTooltipTest.ts +0 -156
- package/tools/docs/tinymce.Editor.js +0 -122
- package/tools/docs/tinymce.EditorManager.js +0 -14
- package/tools/docs/tinymce.Env.js +0 -174
- package/tools/docs/tinymce.Event.js +0 -50
- package/tools/docs/tinymce.editor.ui.Ui.js +0 -55
- package/tools/docs/tinymce.js +0 -56
- package/tools/modules/grunt-utils.js +0 -31
- package/tools/modules/grunt-webpack.js +0 -204
- package/tools/modules/zip-helper.js +0 -42
- package/tools/nuget/build/TinyMCE.targets +0 -9
- package/tools/tasks/bundle.js +0 -79
- package/tools/tasks/globals.js +0 -97
- package/tools/tasks/html-i18n.js +0 -35
- package/tools/tasks/moxiezip.js +0 -98
- package/tools/tasks/validateVersion.js +0 -20
- package/tsconfig.json +0 -83
- /package/{src/core/main/text/readme_lang.md → langs/README.md} +0 -0
|
@@ -1,2563 +0,0 @@
|
|
|
1
|
-
import { Assertions } from '@ephox/agar';
|
|
2
|
-
import { context, describe, it } from '@ephox/bedrock-client';
|
|
3
|
-
import { Obj } from '@ephox/katamari';
|
|
4
|
-
import { Hierarchy } from '@ephox/sugar';
|
|
5
|
-
import { LegacyUnit, TinyAssertions, TinyDom, TinyHooks, TinySelections, TinyState } from '@ephox/wrap-mcagar';
|
|
6
|
-
import { assert } from 'chai';
|
|
7
|
-
|
|
8
|
-
import Editor from 'tinymce/core/api/Editor';
|
|
9
|
-
|
|
10
|
-
import * as KeyUtils from '../module/test/KeyUtils';
|
|
11
|
-
|
|
12
|
-
describe('browser.tinymce.core.FormatterApplyTest', () => {
|
|
13
|
-
const hook = TinyHooks.bddSetupLight<Editor>({
|
|
14
|
-
indent: false,
|
|
15
|
-
extended_valid_elements: 'b[id|style|title],i[id|style|title],span[id|class|style|title|contenteditable],font[face|size]',
|
|
16
|
-
entities: 'raw',
|
|
17
|
-
convert_fonts_to_spans: false,
|
|
18
|
-
valid_styles: {
|
|
19
|
-
'*': 'color,font-size,font-family,background-color,font-weight,font-style,text-decoration,float,' +
|
|
20
|
-
'margin,margin-top,margin-right,margin-bottom,margin-left,display,text-align'
|
|
21
|
-
},
|
|
22
|
-
base_url: '/project/tinymce/js/tinymce'
|
|
23
|
-
}, [], true);
|
|
24
|
-
|
|
25
|
-
const getContent = (editor: Editor) => {
|
|
26
|
-
return editor.getContent().toLowerCase().replace(/[\r]+/g, '');
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
it('apply inline to a list', () => {
|
|
30
|
-
const editor = hook.editor();
|
|
31
|
-
editor.focus();
|
|
32
|
-
editor.formatter.register('format', {
|
|
33
|
-
inline: 'b',
|
|
34
|
-
toggle: false
|
|
35
|
-
});
|
|
36
|
-
editor.getBody().innerHTML = '<p>1234</p><ul><li>first element</li><li>second element</li></ul><p>5678</p>';
|
|
37
|
-
const rng = editor.dom.createRng();
|
|
38
|
-
rng.setStart(editor.dom.select('p')[0].firstChild as Text, 0);
|
|
39
|
-
rng.setEnd(editor.dom.select('p')[1].firstChild as Text, 4);
|
|
40
|
-
editor.selection.setRng(rng);
|
|
41
|
-
editor.formatter.apply('format');
|
|
42
|
-
assert.equal(
|
|
43
|
-
getContent(editor),
|
|
44
|
-
'<p><b>1234</b></p><ul><li><b>first element</b></li><li><b>second element</b></li></ul><p><b>5678</b></p>',
|
|
45
|
-
'selection of a list'
|
|
46
|
-
);
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
it('Toggle OFF - Inline element on selected text', () => {
|
|
50
|
-
const editor = hook.editor();
|
|
51
|
-
// Toggle OFF - Inline element on selected text
|
|
52
|
-
editor.formatter.register('format', {
|
|
53
|
-
inline: 'b',
|
|
54
|
-
toggle: false
|
|
55
|
-
});
|
|
56
|
-
editor.getBody().innerHTML = '<p><b>1234</b></p>';
|
|
57
|
-
const rng = editor.dom.createRng();
|
|
58
|
-
rng.setStart(editor.dom.select('b')[0].firstChild as Text, 0);
|
|
59
|
-
rng.setEnd(editor.dom.select('b')[0].firstChild as Text, 4);
|
|
60
|
-
editor.selection.setRng(rng);
|
|
61
|
-
editor.formatter.toggle('format');
|
|
62
|
-
assert.equal(getContent(editor), '<p><b>1234</b></p>');
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
it('Toggle OFF - Inline element on partially selected text', () => {
|
|
66
|
-
const editor = hook.editor();
|
|
67
|
-
// Toggle OFF - Inline element on partially selected text
|
|
68
|
-
editor.formatter.register('format', {
|
|
69
|
-
inline: 'b',
|
|
70
|
-
toggle: false
|
|
71
|
-
});
|
|
72
|
-
editor.getBody().innerHTML = '<p>1<b>23</b>4</p>';
|
|
73
|
-
const rng = editor.dom.createRng();
|
|
74
|
-
rng.setStart(editor.dom.select('b')[0].firstChild as Text, 0);
|
|
75
|
-
rng.setEnd(editor.dom.select('b')[0].firstChild as Text, 2);
|
|
76
|
-
editor.selection.setRng(rng);
|
|
77
|
-
editor.formatter.toggle('format');
|
|
78
|
-
assert.equal(getContent(editor), '<p>1<b>23</b>4</p>');
|
|
79
|
-
});
|
|
80
|
-
|
|
81
|
-
it('Toggle OFF - Inline element on partially selected text in start/end elements', () => {
|
|
82
|
-
const editor = hook.editor();
|
|
83
|
-
// Toggle OFF - Inline element on partially selected text in start/end elements
|
|
84
|
-
editor.formatter.register('format', {
|
|
85
|
-
inline: 'b',
|
|
86
|
-
toggle: false
|
|
87
|
-
});
|
|
88
|
-
editor.getBody().innerHTML = '<p>1<b>234</b></p><p><b>123</b>4</p>'; // '<p>1234</p><p>1234</p>';
|
|
89
|
-
const rng = editor.dom.createRng();
|
|
90
|
-
rng.setStart(editor.dom.select('b')[0].firstChild as Text, 0);
|
|
91
|
-
rng.setEnd(editor.dom.select('b')[1].firstChild as Text, 3);
|
|
92
|
-
editor.selection.setRng(rng);
|
|
93
|
-
editor.formatter.toggle('format');
|
|
94
|
-
assert.equal(getContent(editor), '<p>1<b>234</b></p><p><b>123</b>4</p>');
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
it('Toggle OFF - Inline element with data attribute', () => {
|
|
98
|
-
const editor = hook.editor();
|
|
99
|
-
editor.formatter.register('format', { inline: 'b' });
|
|
100
|
-
editor.getBody().innerHTML = '<p><b data-mce-x="1">1</b></p>';
|
|
101
|
-
const rng = editor.dom.createRng();
|
|
102
|
-
rng.setStart(editor.dom.select('b')[0].firstChild as Text, 0);
|
|
103
|
-
rng.setEnd(editor.dom.select('b')[0].firstChild as Text, 1);
|
|
104
|
-
editor.selection.setRng(rng);
|
|
105
|
-
editor.formatter.toggle('format');
|
|
106
|
-
assert.equal(getContent(editor), '<p>1</p>');
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
it('Toggle ON - NO inline element on selected text', () => {
|
|
110
|
-
const editor = hook.editor();
|
|
111
|
-
// Inline element on selected text
|
|
112
|
-
editor.formatter.register('format', {
|
|
113
|
-
inline: 'b',
|
|
114
|
-
toggle: true
|
|
115
|
-
});
|
|
116
|
-
editor.getBody().innerHTML = '<p>1234</p>';
|
|
117
|
-
const rng = editor.dom.createRng();
|
|
118
|
-
rng.setStart(editor.dom.select('p')[0].firstChild as Text, 0);
|
|
119
|
-
rng.setEnd(editor.dom.select('p')[0].firstChild as Text, 4);
|
|
120
|
-
editor.selection.setRng(rng);
|
|
121
|
-
editor.formatter.apply('format');
|
|
122
|
-
assert.equal(getContent(editor), '<p><b>1234</b></p>', 'Inline element on selected text');
|
|
123
|
-
editor.formatter.toggle('format');
|
|
124
|
-
assert.equal(getContent(editor), '<p>1234</p>', 'Toggle ON - NO inline element on selected text');
|
|
125
|
-
});
|
|
126
|
-
|
|
127
|
-
it('Selection spanning from within format to outside format with toggle off', () => {
|
|
128
|
-
const editor = hook.editor();
|
|
129
|
-
editor.formatter.register('format', {
|
|
130
|
-
inline: 'b',
|
|
131
|
-
toggle: false
|
|
132
|
-
});
|
|
133
|
-
editor.getBody().innerHTML = '<p><b>12</b>34</p>';
|
|
134
|
-
const rng = editor.dom.createRng();
|
|
135
|
-
rng.setStart(editor.dom.select('b')[0].firstChild as Text, 0);
|
|
136
|
-
rng.setEnd(editor.dom.select('p')[0].lastChild as Text, 2);
|
|
137
|
-
editor.selection.setRng(rng);
|
|
138
|
-
editor.formatter.toggle('format');
|
|
139
|
-
assert.equal(getContent(editor), '<p><b>1234</b></p>', 'Extend formating if start of selection is already formatted');
|
|
140
|
-
});
|
|
141
|
-
|
|
142
|
-
it('Inline element on partially selected text', () => {
|
|
143
|
-
const editor = hook.editor();
|
|
144
|
-
editor.formatter.register('format', {
|
|
145
|
-
inline: 'b'
|
|
146
|
-
});
|
|
147
|
-
editor.getBody().innerHTML = '<p>1234</p>';
|
|
148
|
-
const rng = editor.dom.createRng();
|
|
149
|
-
rng.setStart(editor.dom.select('p')[0].firstChild as Text, 1);
|
|
150
|
-
rng.setEnd(editor.dom.select('p')[0].firstChild as Text, 3);
|
|
151
|
-
editor.selection.setRng(rng);
|
|
152
|
-
editor.formatter.apply('format');
|
|
153
|
-
assert.equal(getContent(editor), '<p>1<b>23</b>4</p>', 'Inline element on partially selected text');
|
|
154
|
-
editor.formatter.toggle('format');
|
|
155
|
-
assert.equal(getContent(editor), '<p>1234</p>', 'Toggle ON - NO inline element on partially selected text');
|
|
156
|
-
});
|
|
157
|
-
|
|
158
|
-
it('Inline element on partially selected text in start/end elements', () => {
|
|
159
|
-
const editor = hook.editor();
|
|
160
|
-
// Inline element on partially selected text in start/end elements
|
|
161
|
-
editor.formatter.register('format', {
|
|
162
|
-
inline: 'b'
|
|
163
|
-
});
|
|
164
|
-
editor.getBody().innerHTML = '<p>1234</p><p>1234</p>';
|
|
165
|
-
const rng = editor.dom.createRng();
|
|
166
|
-
rng.setStart(editor.dom.select('p')[0].firstChild as Text, 1);
|
|
167
|
-
rng.setEnd(editor.dom.select('p')[1].firstChild as Text, 3);
|
|
168
|
-
editor.selection.setRng(rng);
|
|
169
|
-
editor.formatter.apply('format');
|
|
170
|
-
assert.equal(getContent(editor), '<p>1<b>234</b></p><p><b>123</b>4</p>');
|
|
171
|
-
});
|
|
172
|
-
|
|
173
|
-
it('Inline element on selected element', () => {
|
|
174
|
-
const editor = hook.editor();
|
|
175
|
-
editor.formatter.register('format', {
|
|
176
|
-
inline: 'b'
|
|
177
|
-
});
|
|
178
|
-
editor.getBody().innerHTML = '<p>1234</p>';
|
|
179
|
-
const rng = editor.dom.createRng();
|
|
180
|
-
rng.setStart(editor.getBody(), 0);
|
|
181
|
-
rng.setEnd(editor.getBody(), 1);
|
|
182
|
-
editor.selection.setRng(rng);
|
|
183
|
-
editor.formatter.apply('format');
|
|
184
|
-
assert.equal(getContent(editor), '<p><b>1234</b></p>', 'Inline element on selected element');
|
|
185
|
-
});
|
|
186
|
-
|
|
187
|
-
it('Inline element on multiple selected elements', () => {
|
|
188
|
-
const editor = hook.editor();
|
|
189
|
-
editor.formatter.register('format', {
|
|
190
|
-
inline: 'b'
|
|
191
|
-
});
|
|
192
|
-
editor.getBody().innerHTML = '<p>1234</p><p>1234</p>';
|
|
193
|
-
const rng = editor.dom.createRng();
|
|
194
|
-
rng.setStart(editor.getBody(), 0);
|
|
195
|
-
rng.setEnd(editor.getBody(), 2);
|
|
196
|
-
editor.selection.setRng(rng);
|
|
197
|
-
editor.formatter.apply('format');
|
|
198
|
-
assert.equal(getContent(editor), '<p><b>1234</b></p><p><b>1234</b></p>', 'Inline element on multiple selected elements');
|
|
199
|
-
});
|
|
200
|
-
|
|
201
|
-
it('Inline element on multiple selected elements with various childnodes', () => {
|
|
202
|
-
const editor = hook.editor();
|
|
203
|
-
editor.formatter.register('format', {
|
|
204
|
-
inline: 'b'
|
|
205
|
-
});
|
|
206
|
-
editor.getBody().innerHTML = '<p><em>1234</em>5678<span>9</span></p><p><em>1234</em>5678<span>9</span></p>';
|
|
207
|
-
const rng = editor.dom.createRng();
|
|
208
|
-
rng.setStart(editor.getBody(), 0);
|
|
209
|
-
rng.setEnd(editor.getBody(), 2);
|
|
210
|
-
editor.selection.setRng(rng);
|
|
211
|
-
editor.formatter.apply('format');
|
|
212
|
-
assert.equal(
|
|
213
|
-
getContent(editor),
|
|
214
|
-
'<p><b><em>1234</em>5678<span>9</span></b></p><p><b><em>1234</em>5678<span>9</span></b></p>',
|
|
215
|
-
'Inline element on multiple selected elements with various childnodes'
|
|
216
|
-
);
|
|
217
|
-
});
|
|
218
|
-
|
|
219
|
-
it('Inline element with attributes', () => {
|
|
220
|
-
const editor = hook.editor();
|
|
221
|
-
editor.formatter.register('format', {
|
|
222
|
-
inline: 'b',
|
|
223
|
-
attributes: {
|
|
224
|
-
title: 'value1',
|
|
225
|
-
id: 'value2'
|
|
226
|
-
}
|
|
227
|
-
});
|
|
228
|
-
editor.getBody().innerHTML = '<p>1234</p>';
|
|
229
|
-
const rng = editor.dom.createRng();
|
|
230
|
-
rng.setStart(editor.dom.select('p')[0].firstChild as Text, 0);
|
|
231
|
-
rng.setEnd(editor.dom.select('p')[0].firstChild as Text, 4);
|
|
232
|
-
editor.selection.setRng(rng);
|
|
233
|
-
editor.formatter.apply('format');
|
|
234
|
-
assert.equal(getContent(editor), '<p><b id="value2" title="value1">1234</b></p>', 'Inline element with attributes');
|
|
235
|
-
});
|
|
236
|
-
|
|
237
|
-
it('Inline element with styles', () => {
|
|
238
|
-
const editor = hook.editor();
|
|
239
|
-
editor.formatter.register('format', {
|
|
240
|
-
inline: 'b',
|
|
241
|
-
styles: {
|
|
242
|
-
color: '#ff0000',
|
|
243
|
-
fontSize: '10px'
|
|
244
|
-
}
|
|
245
|
-
});
|
|
246
|
-
editor.getBody().innerHTML = '<p>1234</p>';
|
|
247
|
-
const rng = editor.dom.createRng();
|
|
248
|
-
rng.setStart(editor.dom.select('p')[0].firstChild as Text, 0);
|
|
249
|
-
rng.setEnd(editor.dom.select('p')[0].firstChild as Text, 4);
|
|
250
|
-
editor.selection.setRng(rng);
|
|
251
|
-
editor.formatter.apply('format');
|
|
252
|
-
assert.equal(getContent(editor), '<p><b style="color: rgb(255, 0, 0); font-size: 10px;">1234</b></p>', 'Inline element with styles');
|
|
253
|
-
});
|
|
254
|
-
|
|
255
|
-
it('Inline element with attributes and styles', () => {
|
|
256
|
-
const editor = hook.editor();
|
|
257
|
-
editor.formatter.register('format', {
|
|
258
|
-
inline: 'b',
|
|
259
|
-
attributes: {
|
|
260
|
-
title: 'value1',
|
|
261
|
-
id: 'value2'
|
|
262
|
-
},
|
|
263
|
-
styles: {
|
|
264
|
-
color: '#ff0000',
|
|
265
|
-
fontSize: '10px'
|
|
266
|
-
}
|
|
267
|
-
});
|
|
268
|
-
editor.getBody().innerHTML = '<p>1234</p>';
|
|
269
|
-
const rng = editor.dom.createRng();
|
|
270
|
-
rng.setStart(editor.dom.select('p')[0].firstChild as Text, 0);
|
|
271
|
-
rng.setEnd(editor.dom.select('p')[0].firstChild as Text, 4);
|
|
272
|
-
editor.selection.setRng(rng);
|
|
273
|
-
editor.formatter.apply('format');
|
|
274
|
-
assert.equal(
|
|
275
|
-
getContent(editor),
|
|
276
|
-
'<p><b id="value2" style="color: rgb(255, 0, 0); font-size: 10px;" title="value1">1234</b></p>',
|
|
277
|
-
'Inline element with attributes and styles'
|
|
278
|
-
);
|
|
279
|
-
});
|
|
280
|
-
|
|
281
|
-
it('Inline element with wrapable parents', () => {
|
|
282
|
-
const editor = hook.editor();
|
|
283
|
-
editor.formatter.register('format', {
|
|
284
|
-
inline: 'b'
|
|
285
|
-
});
|
|
286
|
-
editor.getBody().innerHTML = '<p>x<em><span>1234</span></em>y</p>';
|
|
287
|
-
const rng = editor.dom.createRng();
|
|
288
|
-
rng.setStart(editor.dom.select('span')[0].firstChild as Text, 0);
|
|
289
|
-
rng.setEnd(editor.dom.select('span')[0].firstChild as Text, 4);
|
|
290
|
-
editor.selection.setRng(rng);
|
|
291
|
-
editor.formatter.apply('format');
|
|
292
|
-
assert.equal(getContent(editor), '<p>x<b><em><span>1234</span></em></b>y</p>', 'Inline element with wrapable parents');
|
|
293
|
-
});
|
|
294
|
-
|
|
295
|
-
it('Inline element with redundant child', () => {
|
|
296
|
-
const editor = hook.editor();
|
|
297
|
-
editor.formatter.register('format', {
|
|
298
|
-
inline: 'b'
|
|
299
|
-
});
|
|
300
|
-
editor.getBody().innerHTML = '<p><b>1234</b></p>';
|
|
301
|
-
const rng = editor.dom.createRng();
|
|
302
|
-
rng.setStart(editor.dom.select('p')[0], 0);
|
|
303
|
-
rng.setEnd(editor.dom.select('p')[0], 1);
|
|
304
|
-
editor.selection.setRng(rng);
|
|
305
|
-
editor.formatter.apply('format');
|
|
306
|
-
assert.equal(getContent(editor), '<p><b>1234</b></p>', 'Inline element with redundant child');
|
|
307
|
-
});
|
|
308
|
-
|
|
309
|
-
it('Inline element with redundant parent', () => {
|
|
310
|
-
const editor = hook.editor();
|
|
311
|
-
editor.formatter.register('format', {
|
|
312
|
-
inline: 'b'
|
|
313
|
-
});
|
|
314
|
-
editor.getBody().innerHTML = '<p><b>a<em>1234</em>b</b></p>';
|
|
315
|
-
const rng = editor.dom.createRng();
|
|
316
|
-
rng.setStart(editor.dom.select('em')[0].firstChild as Text, 0);
|
|
317
|
-
rng.setEnd(editor.dom.select('em')[0].firstChild as Text, 4);
|
|
318
|
-
editor.selection.setRng(rng);
|
|
319
|
-
editor.formatter.apply('format');
|
|
320
|
-
assert.equal(getContent(editor), '<p><b>a<em>1234</em>b</b></p>', 'Inline element with redundant parent');
|
|
321
|
-
});
|
|
322
|
-
|
|
323
|
-
it('Inline element with redundant child of similar type 1', () => {
|
|
324
|
-
const editor = hook.editor();
|
|
325
|
-
editor.formatter.register('format', [{
|
|
326
|
-
inline: 'b'
|
|
327
|
-
}, {
|
|
328
|
-
inline: 'strong'
|
|
329
|
-
}]);
|
|
330
|
-
editor.getBody().innerHTML = '<p>a<strong>1234</strong>b</p>';
|
|
331
|
-
const rng = editor.dom.createRng();
|
|
332
|
-
rng.setStart(editor.dom.select('p')[0], 0);
|
|
333
|
-
rng.setEnd(editor.dom.select('p')[0], 3);
|
|
334
|
-
editor.selection.setRng(rng);
|
|
335
|
-
editor.formatter.apply('format');
|
|
336
|
-
assert.equal(getContent(editor), '<p><b>a1234b</b></p>', 'Inline element with redundant child of similar type 1');
|
|
337
|
-
});
|
|
338
|
-
|
|
339
|
-
it('Inline element with redundant child of similar type 2', () => {
|
|
340
|
-
const editor = hook.editor();
|
|
341
|
-
editor.formatter.register('format', [{
|
|
342
|
-
inline: 'b'
|
|
343
|
-
}, {
|
|
344
|
-
inline: 'span',
|
|
345
|
-
styles: {
|
|
346
|
-
fontWeight: 'bold'
|
|
347
|
-
}
|
|
348
|
-
}]);
|
|
349
|
-
editor.getBody().innerHTML = '<p><span style="font-weight:bold">1234</span></p>';
|
|
350
|
-
const rng = editor.dom.createRng();
|
|
351
|
-
rng.setStart(editor.dom.select('p')[0], 0);
|
|
352
|
-
rng.setEnd(editor.dom.select('p')[0], 1);
|
|
353
|
-
editor.selection.setRng(rng);
|
|
354
|
-
editor.formatter.apply('format');
|
|
355
|
-
assert.equal(getContent(editor), '<p><b>1234</b></p>', 'Inline element with redundant child of similar type 2');
|
|
356
|
-
});
|
|
357
|
-
|
|
358
|
-
it('Inline element with redundant children of similar types', () => {
|
|
359
|
-
const editor = hook.editor();
|
|
360
|
-
editor.formatter.register('format', [{
|
|
361
|
-
inline: 'b'
|
|
362
|
-
}, {
|
|
363
|
-
inline: 'strong'
|
|
364
|
-
}, {
|
|
365
|
-
inline: 'span',
|
|
366
|
-
styles: {
|
|
367
|
-
fontWeight: 'bold'
|
|
368
|
-
}
|
|
369
|
-
}]);
|
|
370
|
-
editor.getBody().innerHTML = '<p><span style="font-weight:bold">a<strong>1234</strong><b>5678</b>b</span></p>';
|
|
371
|
-
const rng = editor.dom.createRng();
|
|
372
|
-
rng.setStart(editor.dom.select('p')[0], 0);
|
|
373
|
-
rng.setEnd(editor.dom.select('p')[0], 1);
|
|
374
|
-
editor.selection.setRng(rng);
|
|
375
|
-
editor.formatter.apply('format');
|
|
376
|
-
assert.equal(getContent(editor), '<p><b>a12345678b</b></p>', 'Inline element with redundant children of similar types');
|
|
377
|
-
});
|
|
378
|
-
|
|
379
|
-
it('Inline element with redundant parent 1', () => {
|
|
380
|
-
const editor = hook.editor();
|
|
381
|
-
editor.formatter.register('format', [{
|
|
382
|
-
inline: 'b'
|
|
383
|
-
}, {
|
|
384
|
-
inline: 'strong'
|
|
385
|
-
}]);
|
|
386
|
-
editor.getBody().innerHTML = '<p><strong>a<em>1234</em>b</strong></p>';
|
|
387
|
-
const rng = editor.dom.createRng();
|
|
388
|
-
rng.setStart(editor.dom.select('em')[0].firstChild as Text, 0);
|
|
389
|
-
rng.setEnd(editor.dom.select('em')[0].firstChild as Text, 4);
|
|
390
|
-
editor.selection.setRng(rng);
|
|
391
|
-
editor.formatter.apply('format');
|
|
392
|
-
assert.equal(getContent(editor), '<p><strong>a<em>1234</em>b</strong></p>', 'Inline element with redundant parent 1');
|
|
393
|
-
});
|
|
394
|
-
|
|
395
|
-
it('Inline element with redundant parent 2', () => {
|
|
396
|
-
const editor = hook.editor();
|
|
397
|
-
editor.formatter.register('format', [{
|
|
398
|
-
inline: 'b'
|
|
399
|
-
}, {
|
|
400
|
-
inline: 'span',
|
|
401
|
-
styles: {
|
|
402
|
-
fontWeight: 'bold'
|
|
403
|
-
}
|
|
404
|
-
}]);
|
|
405
|
-
editor.getBody().innerHTML = '<p><span style="font-weight:bold">a<em>1234</em>b</span></p>';
|
|
406
|
-
const rng = editor.dom.createRng();
|
|
407
|
-
rng.setStart(editor.dom.select('em')[0].firstChild as Text, 0);
|
|
408
|
-
rng.setEnd(editor.dom.select('em')[0].firstChild as Text, 4);
|
|
409
|
-
editor.selection.setRng(rng);
|
|
410
|
-
editor.formatter.apply('format');
|
|
411
|
-
assert.equal(getContent(editor), '<p><span style="font-weight: bold;">a<em>1234</em>b</span></p>', 'Inline element with redundant parent 2');
|
|
412
|
-
});
|
|
413
|
-
|
|
414
|
-
it('Inline element with redundant parents of similar types', () => {
|
|
415
|
-
const editor = hook.editor();
|
|
416
|
-
editor.formatter.register('format', [{
|
|
417
|
-
inline: 'b'
|
|
418
|
-
}, {
|
|
419
|
-
inline: 'strong'
|
|
420
|
-
}, {
|
|
421
|
-
inline: 'span',
|
|
422
|
-
styles: {
|
|
423
|
-
fontWeight: 'bold'
|
|
424
|
-
}
|
|
425
|
-
}]);
|
|
426
|
-
editor.getBody().innerHTML = '<p><span style="font-weight:bold"><strong><b>a<em>1234</em>b</b></strong></span></p>';
|
|
427
|
-
const rng = editor.dom.createRng();
|
|
428
|
-
rng.setStart(editor.dom.select('em')[0].firstChild as Text, 0);
|
|
429
|
-
rng.setEnd(editor.dom.select('em')[0].firstChild as Text, 4);
|
|
430
|
-
editor.selection.setRng(rng);
|
|
431
|
-
editor.formatter.apply('format');
|
|
432
|
-
assert.equal(
|
|
433
|
-
getContent(editor),
|
|
434
|
-
'<p><span style="font-weight: bold;"><strong><b>a<em>1234</em>b</b></strong></span></p>',
|
|
435
|
-
'Inline element with redundant parents of similar types'
|
|
436
|
-
);
|
|
437
|
-
});
|
|
438
|
-
|
|
439
|
-
it('Inline element merged with parent and child', () => {
|
|
440
|
-
const editor = hook.editor();
|
|
441
|
-
editor.formatter.register('format', {
|
|
442
|
-
inline: 'b'
|
|
443
|
-
});
|
|
444
|
-
editor.getBody().innerHTML = '<p>a<b>12<b>34</b>56</b>b</p>';
|
|
445
|
-
const rng = editor.dom.createRng();
|
|
446
|
-
rng.setStart(editor.dom.select('b')[0].firstChild as Text, 1);
|
|
447
|
-
rng.setEnd(editor.dom.select('b')[0].lastChild as Text, 1);
|
|
448
|
-
editor.selection.setRng(rng);
|
|
449
|
-
editor.formatter.apply('format');
|
|
450
|
-
assert.equal(getContent(editor), '<p>a<b>123456</b>b</p>', 'Inline element merged with parent and child');
|
|
451
|
-
});
|
|
452
|
-
|
|
453
|
-
it('Inline element merged with child 1', () => {
|
|
454
|
-
const editor = hook.editor();
|
|
455
|
-
editor.formatter.register('format', {
|
|
456
|
-
inline: 'span',
|
|
457
|
-
styles: {
|
|
458
|
-
fontWeight: 'bold'
|
|
459
|
-
}
|
|
460
|
-
});
|
|
461
|
-
editor.getBody().innerHTML = '<p>a<span style="font-weight:bold">1234</span>b</p>';
|
|
462
|
-
const rng = editor.dom.createRng();
|
|
463
|
-
rng.setStart(editor.getBody(), 0);
|
|
464
|
-
rng.setEnd(editor.getBody(), 1);
|
|
465
|
-
editor.selection.setRng(rng);
|
|
466
|
-
editor.formatter.apply('format');
|
|
467
|
-
assert.equal(getContent(editor), '<p><span style="font-weight: bold;">a1234b</span></p>', 'Inline element merged with child 1');
|
|
468
|
-
});
|
|
469
|
-
|
|
470
|
-
it('Inline element merged with child 2', () => {
|
|
471
|
-
const editor = hook.editor();
|
|
472
|
-
editor.formatter.register('format', {
|
|
473
|
-
inline: 'span',
|
|
474
|
-
styles: {
|
|
475
|
-
fontWeight: 'bold'
|
|
476
|
-
}
|
|
477
|
-
});
|
|
478
|
-
editor.getBody().innerHTML = '<p>a<span style="font-weight:bold; color:#ff0000">1234</span>b</p>';
|
|
479
|
-
const rng = editor.dom.createRng();
|
|
480
|
-
rng.setStart(editor.getBody(), 0);
|
|
481
|
-
rng.setEnd(editor.getBody(), 1);
|
|
482
|
-
editor.selection.setRng(rng);
|
|
483
|
-
editor.formatter.apply('format');
|
|
484
|
-
assert.equal(
|
|
485
|
-
getContent(editor),
|
|
486
|
-
'<p><span style="font-weight: bold;">a<span style="color: rgb(255, 0, 0);">1234</span>b</span></p>',
|
|
487
|
-
'Inline element merged with child 2'
|
|
488
|
-
);
|
|
489
|
-
});
|
|
490
|
-
|
|
491
|
-
it('Inline element merged with child 3', () => {
|
|
492
|
-
const editor = hook.editor();
|
|
493
|
-
editor.formatter.register('format', {
|
|
494
|
-
inline: 'span',
|
|
495
|
-
styles: {
|
|
496
|
-
fontWeight: 'bold'
|
|
497
|
-
}
|
|
498
|
-
});
|
|
499
|
-
editor.getBody().innerHTML = '<p>a<span id="test-id" style="font-weight:bold">1234</span>b</p>';
|
|
500
|
-
const rng = editor.dom.createRng();
|
|
501
|
-
rng.setStart(editor.getBody(), 0);
|
|
502
|
-
rng.setEnd(editor.getBody(), 1);
|
|
503
|
-
editor.selection.setRng(rng);
|
|
504
|
-
editor.formatter.apply('format');
|
|
505
|
-
assert.equal(
|
|
506
|
-
getContent(editor),
|
|
507
|
-
'<p><span style=\"font-weight: bold;\">a<span id=\"test-id\">1234</span>b</span></p>',
|
|
508
|
-
'Inline element merged with child 3'
|
|
509
|
-
);
|
|
510
|
-
});
|
|
511
|
-
|
|
512
|
-
it('Inline element merged with child 4', () => {
|
|
513
|
-
const editor = hook.editor();
|
|
514
|
-
editor.formatter.register('format', {
|
|
515
|
-
inline: 'span',
|
|
516
|
-
styles: {
|
|
517
|
-
fontWeight: 'bold'
|
|
518
|
-
}
|
|
519
|
-
});
|
|
520
|
-
editor.getBody().innerHTML = '<p><span style="color:#ff0000">1234</span></p>';
|
|
521
|
-
const rng = editor.dom.createRng();
|
|
522
|
-
rng.setStart(editor.getBody(), 0);
|
|
523
|
-
rng.setEnd(editor.getBody(), 1);
|
|
524
|
-
editor.selection.setRng(rng);
|
|
525
|
-
editor.formatter.apply('format');
|
|
526
|
-
assert.equal(getContent(editor), '<p><span style="color: rgb(255, 0, 0); font-weight: bold;">1234</span></p>');
|
|
527
|
-
});
|
|
528
|
-
|
|
529
|
-
it('Inline element merged with child 5', () => {
|
|
530
|
-
const editor = hook.editor();
|
|
531
|
-
editor.formatter.register('format', {
|
|
532
|
-
inline: 'span',
|
|
533
|
-
styles: {
|
|
534
|
-
color: '#00ff00'
|
|
535
|
-
}
|
|
536
|
-
});
|
|
537
|
-
editor.getBody().innerHTML = '<p><span style="color:#ff0000">1234</span></p>';
|
|
538
|
-
const rng = editor.dom.createRng();
|
|
539
|
-
rng.setStart(editor.getBody(), 0);
|
|
540
|
-
rng.setEnd(editor.getBody(), 1);
|
|
541
|
-
editor.selection.setRng(rng);
|
|
542
|
-
editor.formatter.apply('format');
|
|
543
|
-
assert.equal(getContent(editor), '<p><span style="color: rgb(0, 255, 0);">1234</span></p>', 'Inline element merged with child 5');
|
|
544
|
-
});
|
|
545
|
-
|
|
546
|
-
it('Inline element with attributes merged with child 1', () => {
|
|
547
|
-
const editor = hook.editor();
|
|
548
|
-
editor.formatter.register('format', {
|
|
549
|
-
inline: 'font',
|
|
550
|
-
attributes: {
|
|
551
|
-
face: 'arial'
|
|
552
|
-
}
|
|
553
|
-
});
|
|
554
|
-
editor.getBody().innerHTML = '<p><font size="7">1234</font></p>';
|
|
555
|
-
const rng = editor.dom.createRng();
|
|
556
|
-
rng.setStart(editor.getBody(), 0);
|
|
557
|
-
rng.setEnd(editor.getBody(), 1);
|
|
558
|
-
editor.selection.setRng(rng);
|
|
559
|
-
editor.formatter.apply('format');
|
|
560
|
-
assert.equal(getContent(editor), '<p><font face="arial" size="7">1234</font></p>', 'Inline element with attributes merged with child 1');
|
|
561
|
-
});
|
|
562
|
-
|
|
563
|
-
it('Inline element with attributes merged with child 2', () => {
|
|
564
|
-
const editor = hook.editor();
|
|
565
|
-
editor.formatter.register('format', {
|
|
566
|
-
inline: 'font',
|
|
567
|
-
attributes: {
|
|
568
|
-
size: '7'
|
|
569
|
-
}
|
|
570
|
-
});
|
|
571
|
-
editor.getBody().innerHTML = '<p>a<font size="7">1234</font>b</p>';
|
|
572
|
-
const rng = editor.dom.createRng();
|
|
573
|
-
rng.setStart(editor.getBody(), 0);
|
|
574
|
-
rng.setEnd(editor.getBody(), 1);
|
|
575
|
-
editor.selection.setRng(rng);
|
|
576
|
-
editor.formatter.apply('format');
|
|
577
|
-
assert.equal(getContent(editor), '<p><font size="7">a1234b</font></p>', 'Inline element with attributes merged with child 2');
|
|
578
|
-
});
|
|
579
|
-
|
|
580
|
-
it('Inline element merged with left sibling', () => {
|
|
581
|
-
const editor = hook.editor();
|
|
582
|
-
editor.formatter.register('format', {
|
|
583
|
-
inline: 'b'
|
|
584
|
-
});
|
|
585
|
-
editor.getBody().innerHTML = '<p><b>1234</b>5678</p>';
|
|
586
|
-
const rng = editor.dom.createRng();
|
|
587
|
-
rng.setStart(editor.dom.select('p')[0].lastChild as Text, 0);
|
|
588
|
-
rng.setEnd(editor.dom.select('p')[0].lastChild as Text, 4);
|
|
589
|
-
editor.selection.setRng(rng);
|
|
590
|
-
editor.formatter.apply('format');
|
|
591
|
-
assert.equal(getContent(editor), '<p><b>12345678</b></p>', 'Inline element merged with left sibling');
|
|
592
|
-
});
|
|
593
|
-
|
|
594
|
-
it('Inline element merged with right sibling', () => {
|
|
595
|
-
const editor = hook.editor();
|
|
596
|
-
editor.formatter.register('format', {
|
|
597
|
-
inline: 'b'
|
|
598
|
-
});
|
|
599
|
-
editor.getBody().innerHTML = '<p>1234<b>5678</b></p>';
|
|
600
|
-
const rng = editor.dom.createRng();
|
|
601
|
-
rng.setStart(editor.dom.select('p')[0].firstChild as Text, 0);
|
|
602
|
-
rng.setEnd(editor.dom.select('p')[0].firstChild as Text, 4);
|
|
603
|
-
editor.selection.setRng(rng);
|
|
604
|
-
editor.formatter.apply('format');
|
|
605
|
-
assert.equal(getContent(editor), '<p><b>12345678</b></p>', 'Inline element merged with right sibling');
|
|
606
|
-
});
|
|
607
|
-
|
|
608
|
-
it('Inline element merged with left and right siblings', () => {
|
|
609
|
-
const editor = hook.editor();
|
|
610
|
-
editor.formatter.register('format', {
|
|
611
|
-
inline: 'b'
|
|
612
|
-
});
|
|
613
|
-
editor.getBody().innerHTML = '<p><b>12</b>34<b>56</b></p>';
|
|
614
|
-
const rng = editor.dom.createRng();
|
|
615
|
-
rng.setStart(editor.dom.select('p')[0].childNodes[1], 0);
|
|
616
|
-
rng.setEnd(editor.dom.select('p')[0].childNodes[1], 2);
|
|
617
|
-
editor.selection.setRng(rng);
|
|
618
|
-
editor.formatter.apply('format');
|
|
619
|
-
assert.equal(getContent(editor), '<p><b>123456</b></p>', 'Inline element merged with left and right siblings');
|
|
620
|
-
});
|
|
621
|
-
|
|
622
|
-
it('Inline element merged with data attributed left sibling', () => {
|
|
623
|
-
const editor = hook.editor();
|
|
624
|
-
editor.formatter.register('format', {
|
|
625
|
-
inline: 'b'
|
|
626
|
-
});
|
|
627
|
-
editor.getBody().innerHTML = '<p><b data-mce-x="1">1234</b>5678</p>';
|
|
628
|
-
const rng = editor.dom.createRng();
|
|
629
|
-
rng.setStart(editor.dom.select('p')[0].lastChild as Text, 0);
|
|
630
|
-
rng.setEnd(editor.dom.select('p')[0].lastChild as Text, 4);
|
|
631
|
-
editor.selection.setRng(rng);
|
|
632
|
-
editor.formatter.apply('format');
|
|
633
|
-
assert.equal(getContent(editor), '<p><b data-mce-x="1">12345678</b></p>', 'Inline element merged with left sibling');
|
|
634
|
-
});
|
|
635
|
-
|
|
636
|
-
it(`Don't merge siblings with whitespace between 1`, () => {
|
|
637
|
-
const editor = hook.editor();
|
|
638
|
-
editor.formatter.register('format', {
|
|
639
|
-
inline: 'b'
|
|
640
|
-
});
|
|
641
|
-
editor.getBody().innerHTML = '<p><b>a</b> b</p>';
|
|
642
|
-
const rng = editor.dom.createRng();
|
|
643
|
-
rng.setStart(editor.dom.select('p')[0].lastChild as Text, 1);
|
|
644
|
-
rng.setEnd(editor.dom.select('p')[0].lastChild as Text, 2);
|
|
645
|
-
editor.selection.setRng(rng);
|
|
646
|
-
editor.formatter.apply('format');
|
|
647
|
-
assert.equal(getContent(editor), '<p><b>a</b> <b>b</b></p>', `Don't merge siblings with whitespace between 1`);
|
|
648
|
-
});
|
|
649
|
-
|
|
650
|
-
it(`Don't merge siblings with whitespace between 2`, () => {
|
|
651
|
-
const editor = hook.editor();
|
|
652
|
-
editor.formatter.register('format', {
|
|
653
|
-
inline: 'b'
|
|
654
|
-
});
|
|
655
|
-
editor.getBody().innerHTML = '<p>a <b>b</b></p>';
|
|
656
|
-
const rng = editor.dom.createRng();
|
|
657
|
-
rng.setStart(editor.dom.select('p')[0].firstChild as Text, 0);
|
|
658
|
-
rng.setEnd(editor.dom.select('p')[0].firstChild as Text, 1);
|
|
659
|
-
editor.selection.setRng(rng);
|
|
660
|
-
editor.formatter.apply('format');
|
|
661
|
-
assert.equal(getContent(editor), '<p><b>a</b> <b>b</b></p>', `Don't merge siblings with whitespace between 2`);
|
|
662
|
-
});
|
|
663
|
-
|
|
664
|
-
it('Inline element not merged in exact mode', () => {
|
|
665
|
-
const editor = hook.editor();
|
|
666
|
-
editor.formatter.register('format', {
|
|
667
|
-
inline: 'span',
|
|
668
|
-
styles: {
|
|
669
|
-
color: '#00ff00'
|
|
670
|
-
},
|
|
671
|
-
exact: true
|
|
672
|
-
});
|
|
673
|
-
editor.getBody().innerHTML = '<p><span style="color:#ff0000">1234</span></p>';
|
|
674
|
-
const rng = editor.dom.createRng();
|
|
675
|
-
rng.setStart(editor.getBody(), 0);
|
|
676
|
-
rng.setEnd(editor.getBody(), 1);
|
|
677
|
-
editor.selection.setRng(rng);
|
|
678
|
-
editor.formatter.apply('format');
|
|
679
|
-
assert.equal(
|
|
680
|
-
getContent(editor),
|
|
681
|
-
'<p><span style="color: rgb(0, 255, 0);"><span style="color: #ff0000;">1234</span></span></p>',
|
|
682
|
-
'Inline element not merged in exact mode'
|
|
683
|
-
);
|
|
684
|
-
});
|
|
685
|
-
|
|
686
|
-
it('Inline element merged in exact mode', () => {
|
|
687
|
-
const editor = hook.editor();
|
|
688
|
-
editor.formatter.register('format', {
|
|
689
|
-
inline: 'span',
|
|
690
|
-
styles: {
|
|
691
|
-
color: '#ff0000'
|
|
692
|
-
},
|
|
693
|
-
exact: true
|
|
694
|
-
});
|
|
695
|
-
editor.getBody().innerHTML = '<p><span style="color:#ff0000">1234</span></p>';
|
|
696
|
-
const rng = editor.dom.createRng();
|
|
697
|
-
rng.setStart(editor.getBody(), 0);
|
|
698
|
-
rng.setEnd(editor.getBody(), 1);
|
|
699
|
-
editor.selection.setRng(rng);
|
|
700
|
-
editor.formatter.apply('format');
|
|
701
|
-
assert.equal(getContent(editor), '<p><span style="color: rgb(255, 0, 0);">1234</span></p>');
|
|
702
|
-
});
|
|
703
|
-
|
|
704
|
-
it('Deep left branch', () => {
|
|
705
|
-
const editor = hook.editor();
|
|
706
|
-
editor.formatter.register('format', {
|
|
707
|
-
inline: 'b'
|
|
708
|
-
});
|
|
709
|
-
editor.getBody().innerHTML = '<p><em><i><ins>1234</ins></i></em><em>text1</em><em>text2</em></p><p><em>5678</em></p><p>9012</p>';
|
|
710
|
-
const rng = editor.dom.createRng();
|
|
711
|
-
rng.setStart(editor.dom.select('ins')[0].firstChild as Text, 1);
|
|
712
|
-
rng.setEnd(editor.dom.select('p')[2].firstChild as Text, 4);
|
|
713
|
-
editor.selection.setRng(rng);
|
|
714
|
-
editor.formatter.apply('format');
|
|
715
|
-
assert.equal(
|
|
716
|
-
getContent(editor),
|
|
717
|
-
'<p><em><i><ins>1<b>234</b></ins></i></em><b><em>text1</em><em>text2</em></b></p><p><b><em>5678</em></b></p><p><b>9012</b></p>',
|
|
718
|
-
'Deep left branch'
|
|
719
|
-
);
|
|
720
|
-
});
|
|
721
|
-
|
|
722
|
-
it('Deep right branch', () => {
|
|
723
|
-
const editor = hook.editor();
|
|
724
|
-
editor.formatter.register('format', {
|
|
725
|
-
inline: 'b'
|
|
726
|
-
});
|
|
727
|
-
editor.getBody().innerHTML = '<p>9012</p><p><em>5678</em></p><p><em><i><ins>1234</ins></i></em><em>text1</em><em>text2</em></p>';
|
|
728
|
-
const rng = editor.dom.createRng();
|
|
729
|
-
rng.setStart(editor.dom.select('p')[0].firstChild as Text, 0);
|
|
730
|
-
rng.setEnd(editor.dom.select('em')[3].firstChild as Text, 4);
|
|
731
|
-
editor.selection.setRng(rng);
|
|
732
|
-
editor.formatter.apply('format');
|
|
733
|
-
assert.equal(
|
|
734
|
-
getContent(editor),
|
|
735
|
-
'<p><b>9012</b></p><p><b><em>5678</em></b></p><p><b><em><i><ins>1234</ins></i></em><em>text1</em></b><em><b>text</b>2</em></p>',
|
|
736
|
-
'Deep right branch'
|
|
737
|
-
);
|
|
738
|
-
});
|
|
739
|
-
|
|
740
|
-
it('Full element text selection on two elements with a table in the middle', () => {
|
|
741
|
-
const editor = hook.editor();
|
|
742
|
-
editor.formatter.register('format', {
|
|
743
|
-
inline: 'b'
|
|
744
|
-
});
|
|
745
|
-
editor.getBody().innerHTML = '<p>1234</p><table><tbody><tr><td>123</td></tr></tbody></table><p>5678</p>';
|
|
746
|
-
const rng = editor.dom.createRng();
|
|
747
|
-
rng.setStart(editor.dom.select('p')[0].firstChild as Text, 0);
|
|
748
|
-
rng.setEnd(editor.dom.select('p')[1].firstChild as Text, 4);
|
|
749
|
-
editor.selection.setRng(rng);
|
|
750
|
-
editor.formatter.apply('format');
|
|
751
|
-
assert.equal(
|
|
752
|
-
getContent(editor),
|
|
753
|
-
'<p><b>1234</b></p><table><tbody><tr><td><b>123</b></td></tr></tbody></table><p><b>5678</b></p>',
|
|
754
|
-
'Full element text selection on two elements with a table in the middle'
|
|
755
|
-
);
|
|
756
|
-
});
|
|
757
|
-
|
|
758
|
-
it('Inline element on selected text with variables', () => {
|
|
759
|
-
const editor = hook.editor();
|
|
760
|
-
editor.formatter.register('format', {
|
|
761
|
-
inline: 'b',
|
|
762
|
-
styles: {
|
|
763
|
-
color: '%color'
|
|
764
|
-
},
|
|
765
|
-
attributes: {
|
|
766
|
-
title: '%title'
|
|
767
|
-
}
|
|
768
|
-
});
|
|
769
|
-
editor.getBody().innerHTML = '<p>1234</p>';
|
|
770
|
-
const rng = editor.dom.createRng();
|
|
771
|
-
rng.setStart(editor.dom.select('p')[0].firstChild as Text, 0);
|
|
772
|
-
rng.setEnd(editor.dom.select('p')[0].firstChild as Text, 4);
|
|
773
|
-
editor.selection.setRng(rng);
|
|
774
|
-
editor.formatter.apply('format', {
|
|
775
|
-
color: '#ff0000',
|
|
776
|
-
title: 'title'
|
|
777
|
-
});
|
|
778
|
-
assert.equal(getContent(editor), '<p><b style="color: rgb(255, 0, 0);" title="title">1234</b></p>', 'Inline element on selected text');
|
|
779
|
-
});
|
|
780
|
-
|
|
781
|
-
it('Remove redundant children', () => {
|
|
782
|
-
const editor = hook.editor();
|
|
783
|
-
editor.formatter.register('format', {
|
|
784
|
-
inline: 'span',
|
|
785
|
-
styles: {
|
|
786
|
-
fontFamily: 'arial'
|
|
787
|
-
}
|
|
788
|
-
});
|
|
789
|
-
editor.getBody().innerHTML = (
|
|
790
|
-
'<p><span style="font-family: sans-serif;"><span style="font-family: palatino;">1</span>2<span style="font-family: verdana;">3</span>4</span></p>'
|
|
791
|
-
);
|
|
792
|
-
const rng = editor.dom.createRng();
|
|
793
|
-
rng.setStart(editor.dom.select('p')[0], 0);
|
|
794
|
-
rng.setEnd(editor.dom.select('p')[0], 1);
|
|
795
|
-
editor.selection.setRng(rng);
|
|
796
|
-
editor.formatter.apply('format');
|
|
797
|
-
assert.equal(getContent(editor), '<p><span style=\"font-family: arial;\">1234</span></p>', 'Remove redundant children');
|
|
798
|
-
});
|
|
799
|
-
|
|
800
|
-
it('Inline element on selected text with function values', () => {
|
|
801
|
-
const editor = hook.editor();
|
|
802
|
-
editor.formatter.register('format', {
|
|
803
|
-
inline: 'b',
|
|
804
|
-
styles: {
|
|
805
|
-
color: (vars) => {
|
|
806
|
-
return vars?.color + '00ff';
|
|
807
|
-
}
|
|
808
|
-
},
|
|
809
|
-
attributes: {
|
|
810
|
-
title: (vars) => {
|
|
811
|
-
return vars?.title + '2';
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
-
});
|
|
815
|
-
editor.getBody().innerHTML = '<p>1234</p>';
|
|
816
|
-
const rng = editor.dom.createRng();
|
|
817
|
-
rng.setStart(editor.dom.select('p')[0].firstChild as Text, 0);
|
|
818
|
-
rng.setEnd(editor.dom.select('p')[0].firstChild as Text, 4);
|
|
819
|
-
editor.selection.setRng(rng);
|
|
820
|
-
editor.formatter.apply('format', {
|
|
821
|
-
color: '#ff',
|
|
822
|
-
title: 'title'
|
|
823
|
-
});
|
|
824
|
-
assert.equal(getContent(editor), '<p><b style="color: rgb(255, 0, 255);" title="title2">1234</b></p>', 'Inline element on selected text with function values');
|
|
825
|
-
});
|
|
826
|
-
|
|
827
|
-
it('Block element on selected text', () => {
|
|
828
|
-
const editor = hook.editor();
|
|
829
|
-
editor.formatter.register('format', {
|
|
830
|
-
block: 'div'
|
|
831
|
-
});
|
|
832
|
-
editor.getBody().innerHTML = '<p>1234</p>';
|
|
833
|
-
const rng = editor.dom.createRng();
|
|
834
|
-
rng.setStart(editor.dom.select('p')[0].firstChild as Text, 0);
|
|
835
|
-
rng.setEnd(editor.dom.select('p')[0].firstChild as Text, 4);
|
|
836
|
-
editor.selection.setRng(rng);
|
|
837
|
-
editor.formatter.apply('format');
|
|
838
|
-
assert.equal(getContent(editor), '<div>1234</div>', 'Block element on selected text');
|
|
839
|
-
});
|
|
840
|
-
|
|
841
|
-
it('Block element on partially selected text', () => {
|
|
842
|
-
const editor = hook.editor();
|
|
843
|
-
editor.formatter.register('format', {
|
|
844
|
-
block: 'div'
|
|
845
|
-
});
|
|
846
|
-
editor.getBody().innerHTML = '<p>1234</p>';
|
|
847
|
-
const rng = editor.dom.createRng();
|
|
848
|
-
rng.setStart(editor.dom.select('p')[0].firstChild as Text, 1);
|
|
849
|
-
rng.setEnd(editor.dom.select('p')[0].firstChild as Text, 3);
|
|
850
|
-
editor.selection.setRng(rng);
|
|
851
|
-
editor.formatter.apply('format');
|
|
852
|
-
assert.equal(getContent(editor), '<div>1234</div>', 'Block element on partially selected text');
|
|
853
|
-
});
|
|
854
|
-
|
|
855
|
-
it('Block element on selected element', () => {
|
|
856
|
-
const editor = hook.editor();
|
|
857
|
-
editor.formatter.register('format', {
|
|
858
|
-
block: 'div'
|
|
859
|
-
});
|
|
860
|
-
editor.getBody().innerHTML = '<p>1234</p>';
|
|
861
|
-
const rng = editor.dom.createRng();
|
|
862
|
-
rng.setStart(editor.getBody(), 0);
|
|
863
|
-
rng.setEnd(editor.getBody(), 1);
|
|
864
|
-
editor.selection.setRng(rng);
|
|
865
|
-
editor.formatter.apply('format');
|
|
866
|
-
assert.equal(getContent(editor), '<div>1234</div>', 'Block element on selected element');
|
|
867
|
-
});
|
|
868
|
-
|
|
869
|
-
it('Block element on selected elements', () => {
|
|
870
|
-
const editor = hook.editor();
|
|
871
|
-
editor.formatter.register('format', {
|
|
872
|
-
block: 'div'
|
|
873
|
-
});
|
|
874
|
-
editor.getBody().innerHTML = '<p>1234</p><p>5678</p>';
|
|
875
|
-
const rng = editor.dom.createRng();
|
|
876
|
-
rng.setStart(editor.getBody(), 0);
|
|
877
|
-
rng.setEnd(editor.getBody(), 2);
|
|
878
|
-
editor.selection.setRng(rng);
|
|
879
|
-
editor.formatter.apply('format');
|
|
880
|
-
assert.equal(getContent(editor), '<div>1234</div><div>5678</div>', 'Block element on selected elements');
|
|
881
|
-
});
|
|
882
|
-
|
|
883
|
-
it('Block element on selected elements with attributes', () => {
|
|
884
|
-
const editor = hook.editor();
|
|
885
|
-
editor.formatter.register('format', {
|
|
886
|
-
block: 'div',
|
|
887
|
-
attributes: {
|
|
888
|
-
title: 'test'
|
|
889
|
-
}
|
|
890
|
-
});
|
|
891
|
-
editor.getBody().innerHTML = '<p>1234</p><p>5678</p>';
|
|
892
|
-
const rng = editor.dom.createRng();
|
|
893
|
-
rng.setStart(editor.getBody(), 0);
|
|
894
|
-
rng.setEnd(editor.getBody(), 2);
|
|
895
|
-
editor.selection.setRng(rng);
|
|
896
|
-
editor.formatter.apply('format');
|
|
897
|
-
assert.equal(getContent(editor), '<div title="test">1234</div><div title="test">5678</div>', 'Block element on selected elements with attributes');
|
|
898
|
-
});
|
|
899
|
-
|
|
900
|
-
it('Block element on nested element', () => {
|
|
901
|
-
const editor = hook.editor();
|
|
902
|
-
editor.formatter.register('format', {
|
|
903
|
-
block: 'p'
|
|
904
|
-
});
|
|
905
|
-
editor.getBody().innerHTML = '<div><h1>1234</h1></div>';
|
|
906
|
-
const rng = editor.dom.createRng();
|
|
907
|
-
rng.setStart(editor.dom.select('h1')[0].firstChild as Text, 0);
|
|
908
|
-
rng.setEnd(editor.dom.select('h1')[0].firstChild as Text, 4);
|
|
909
|
-
editor.selection.setRng(rng);
|
|
910
|
-
editor.formatter.apply('format');
|
|
911
|
-
assert.equal(getContent(editor), '<div><p>1234</p></div>', 'Block element on nested element');
|
|
912
|
-
});
|
|
913
|
-
|
|
914
|
-
it('Block element on selected non wrapped text 1', () => {
|
|
915
|
-
const editor = hook.editor();
|
|
916
|
-
editor.formatter.register('format', {
|
|
917
|
-
block: 'div'
|
|
918
|
-
});
|
|
919
|
-
editor.getBody().innerHTML = '1234';
|
|
920
|
-
const rng = editor.dom.createRng();
|
|
921
|
-
rng.setStart(editor.getBody().firstChild as Text, 0);
|
|
922
|
-
rng.setEnd(editor.getBody().firstChild as Text, 4);
|
|
923
|
-
editor.selection.setRng(rng);
|
|
924
|
-
editor.formatter.apply('format');
|
|
925
|
-
assert.equal(getContent(editor), '<div>1234</div>', 'Block element on selected non wrapped text 1');
|
|
926
|
-
});
|
|
927
|
-
|
|
928
|
-
it('Block element on selected non wrapped text 2', () => {
|
|
929
|
-
const editor = hook.editor();
|
|
930
|
-
editor.formatter.register('format', {
|
|
931
|
-
block: 'div'
|
|
932
|
-
});
|
|
933
|
-
editor.getBody().innerHTML = '1234<br />4567<br />8910';
|
|
934
|
-
const rng = editor.dom.createRng();
|
|
935
|
-
rng.setStart(editor.getBody().firstChild as Text, 0);
|
|
936
|
-
rng.setEnd(editor.getBody().lastChild as Text, 4);
|
|
937
|
-
editor.selection.setRng(rng);
|
|
938
|
-
editor.formatter.apply('format');
|
|
939
|
-
assert.equal(getContent(editor), '<div>1234</div><div>4567</div><div>8910</div>', 'Block element on selected non wrapped text 2');
|
|
940
|
-
});
|
|
941
|
-
|
|
942
|
-
it('Block element on selected non wrapped text 3', () => {
|
|
943
|
-
const editor = hook.editor();
|
|
944
|
-
editor.formatter.register('format', {
|
|
945
|
-
block: 'div'
|
|
946
|
-
});
|
|
947
|
-
editor.getBody().innerHTML = '<br />1234<br /><br />4567<br />8910<br />';
|
|
948
|
-
const rng = editor.dom.createRng();
|
|
949
|
-
rng.setStart(editor.getBody(), 0);
|
|
950
|
-
rng.setEnd(editor.getBody(), 7);
|
|
951
|
-
editor.selection.setRng(rng);
|
|
952
|
-
editor.formatter.apply('format');
|
|
953
|
-
assert.equal(getContent(editor), '<div>1234</div><div>4567</div><div>8910</div>', 'Block element on selected non wrapped text 3');
|
|
954
|
-
});
|
|
955
|
-
|
|
956
|
-
it('Block element wrapper 1', () => {
|
|
957
|
-
const editor = hook.editor();
|
|
958
|
-
editor.formatter.register('format', {
|
|
959
|
-
block: 'blockquote',
|
|
960
|
-
wrapper: true
|
|
961
|
-
});
|
|
962
|
-
editor.getBody().innerHTML = '<h1>1234</h1><p>5678</p>';
|
|
963
|
-
const rng = editor.dom.createRng();
|
|
964
|
-
rng.setStart(editor.dom.select('h1')[0].firstChild as Text, 0);
|
|
965
|
-
rng.setEnd(editor.dom.select('p')[0].firstChild as Text, 4);
|
|
966
|
-
editor.selection.setRng(rng);
|
|
967
|
-
editor.formatter.apply('format');
|
|
968
|
-
assert.equal(getContent(editor), '<blockquote><h1>1234</h1><p>5678</p></blockquote>', 'Block element wrapper 1');
|
|
969
|
-
});
|
|
970
|
-
|
|
971
|
-
it('Block element wrapper 2', () => {
|
|
972
|
-
const editor = hook.editor();
|
|
973
|
-
editor.formatter.register('format', {
|
|
974
|
-
block: 'blockquote',
|
|
975
|
-
wrapper: true
|
|
976
|
-
});
|
|
977
|
-
editor.getBody().innerHTML = '<h1>1234</h1>';
|
|
978
|
-
const rng = editor.dom.createRng();
|
|
979
|
-
rng.setStart(editor.dom.select('h1')[0].firstChild as Text, 0);
|
|
980
|
-
rng.setEnd(editor.dom.select('h1')[0].firstChild as Text, 4);
|
|
981
|
-
editor.selection.setRng(rng);
|
|
982
|
-
editor.formatter.apply('format');
|
|
983
|
-
assert.equal(getContent(editor), '<blockquote><h1>1234</h1></blockquote>', 'Block element wrapper 2');
|
|
984
|
-
});
|
|
985
|
-
|
|
986
|
-
it('Block element wrapper 3', () => {
|
|
987
|
-
const editor = hook.editor();
|
|
988
|
-
editor.formatter.register('format', {
|
|
989
|
-
block: 'blockquote',
|
|
990
|
-
wrapper: true
|
|
991
|
-
});
|
|
992
|
-
editor.getBody().innerHTML = '<br /><h1>1234</h1><br />';
|
|
993
|
-
const rng = editor.dom.createRng();
|
|
994
|
-
rng.setStart(editor.getBody(), 0);
|
|
995
|
-
rng.setEnd(editor.getBody(), 3);
|
|
996
|
-
editor.selection.setRng(rng);
|
|
997
|
-
editor.formatter.apply('format');
|
|
998
|
-
assert.equal(getContent(editor), '<blockquote><h1>1234</h1></blockquote>', 'Block element wrapper 3');
|
|
999
|
-
});
|
|
1000
|
-
|
|
1001
|
-
it('Apply format on single element that matches a selector 1', () => {
|
|
1002
|
-
const editor = hook.editor();
|
|
1003
|
-
editor.formatter.register('format', {
|
|
1004
|
-
selector: 'p',
|
|
1005
|
-
attributes: {
|
|
1006
|
-
title: 'test'
|
|
1007
|
-
},
|
|
1008
|
-
styles: {
|
|
1009
|
-
color: '#ff0000'
|
|
1010
|
-
},
|
|
1011
|
-
classes: 'a b c'
|
|
1012
|
-
});
|
|
1013
|
-
editor.getBody().innerHTML = '<p>1234</p>';
|
|
1014
|
-
const rng = editor.dom.createRng();
|
|
1015
|
-
rng.setStart(editor.dom.select('p')[0].firstChild as Text, 0);
|
|
1016
|
-
rng.setEnd(editor.dom.select('p')[0].firstChild as Text, 4);
|
|
1017
|
-
editor.selection.setRng(rng);
|
|
1018
|
-
editor.formatter.apply('format');
|
|
1019
|
-
assert.equal(
|
|
1020
|
-
getContent(editor),
|
|
1021
|
-
'<p class="a b c" style="color: rgb(255, 0, 0);" title="test">1234</p>',
|
|
1022
|
-
'Apply format on single element that matches a selector'
|
|
1023
|
-
);
|
|
1024
|
-
});
|
|
1025
|
-
|
|
1026
|
-
it('Apply format on single element parent that matches a selector 2', () => {
|
|
1027
|
-
const editor = hook.editor();
|
|
1028
|
-
editor.formatter.register('format', {
|
|
1029
|
-
selector: 'div',
|
|
1030
|
-
attributes: {
|
|
1031
|
-
title: 'test'
|
|
1032
|
-
},
|
|
1033
|
-
styles: {
|
|
1034
|
-
color: '#ff0000'
|
|
1035
|
-
},
|
|
1036
|
-
classes: 'a b c'
|
|
1037
|
-
});
|
|
1038
|
-
editor.getBody().innerHTML = '<div><p>1234</p><p>test</p><p>1234</p></div>';
|
|
1039
|
-
const rng = editor.dom.createRng();
|
|
1040
|
-
rng.setStart(editor.dom.select('div')[0], 1);
|
|
1041
|
-
rng.setEnd(editor.dom.select('div')[0], 2);
|
|
1042
|
-
editor.selection.setRng(rng);
|
|
1043
|
-
editor.formatter.apply('format');
|
|
1044
|
-
assert.equal(
|
|
1045
|
-
getContent(editor),
|
|
1046
|
-
'<div class="a b c" style="color: rgb(255, 0, 0);" title="test"><p>1234</p><p>test</p><p>1234</p></div>',
|
|
1047
|
-
'Apply format on single element parent that matches a selector'
|
|
1048
|
-
);
|
|
1049
|
-
});
|
|
1050
|
-
|
|
1051
|
-
it('Apply format on multiple elements that matches a selector 2', () => {
|
|
1052
|
-
const editor = hook.editor();
|
|
1053
|
-
editor.formatter.register('format', {
|
|
1054
|
-
selector: 'p',
|
|
1055
|
-
attributes: {
|
|
1056
|
-
title: 'test'
|
|
1057
|
-
},
|
|
1058
|
-
styles: {
|
|
1059
|
-
color: '#ff0000'
|
|
1060
|
-
},
|
|
1061
|
-
classes: 'a b c'
|
|
1062
|
-
});
|
|
1063
|
-
editor.getBody().innerHTML = '<p>1234</p><div>test</div><p>1234</p>';
|
|
1064
|
-
const rng = editor.dom.createRng();
|
|
1065
|
-
rng.setStart(editor.dom.select('p')[0].firstChild as Text, 0);
|
|
1066
|
-
rng.setEnd(editor.dom.select('p')[1].firstChild as Text, 4);
|
|
1067
|
-
editor.selection.setRng(rng);
|
|
1068
|
-
editor.formatter.apply('format');
|
|
1069
|
-
assert.equal(
|
|
1070
|
-
getContent(editor),
|
|
1071
|
-
'<p class="a b c" style="color: rgb(255, 0, 0);" title="test">1234</p><div>test</div><p class="a b c" style="color: rgb(255, 0, 0);" title="test">1234</p>',
|
|
1072
|
-
'Apply format on multiple elements that matches a selector'
|
|
1073
|
-
);
|
|
1074
|
-
});
|
|
1075
|
-
|
|
1076
|
-
it('Apply format on top of existing selector element', () => {
|
|
1077
|
-
const editor = hook.editor();
|
|
1078
|
-
editor.formatter.register('format', {
|
|
1079
|
-
selector: 'p',
|
|
1080
|
-
attributes: {
|
|
1081
|
-
title: 'test2'
|
|
1082
|
-
},
|
|
1083
|
-
styles: {
|
|
1084
|
-
color: '#00ff00'
|
|
1085
|
-
},
|
|
1086
|
-
classes: 'a b c'
|
|
1087
|
-
});
|
|
1088
|
-
editor.getBody().innerHTML = '<p class=\"c d\" title=\"test\">1234</p>';
|
|
1089
|
-
const rng = editor.dom.createRng();
|
|
1090
|
-
rng.setStart(editor.dom.select('p')[0].firstChild as Text, 0);
|
|
1091
|
-
rng.setEnd(editor.dom.select('p')[0].firstChild as Text, 4);
|
|
1092
|
-
editor.selection.setRng(rng);
|
|
1093
|
-
editor.formatter.apply('format');
|
|
1094
|
-
assert.equal(
|
|
1095
|
-
getContent(editor),
|
|
1096
|
-
'<p class="c d a b" style="color: rgb(0, 255, 0);" title="test2">1234</p>',
|
|
1097
|
-
'Apply format on top of existing selector element'
|
|
1098
|
-
);
|
|
1099
|
-
});
|
|
1100
|
-
|
|
1101
|
-
it('Format on single li that matches a selector', () => {
|
|
1102
|
-
const editor = hook.editor();
|
|
1103
|
-
editor.formatter.register('format', {
|
|
1104
|
-
inline: 'span',
|
|
1105
|
-
selector: 'li',
|
|
1106
|
-
attributes: {
|
|
1107
|
-
title: 'test'
|
|
1108
|
-
},
|
|
1109
|
-
styles: {
|
|
1110
|
-
color: '#ff0000'
|
|
1111
|
-
},
|
|
1112
|
-
classes: 'a b c'
|
|
1113
|
-
});
|
|
1114
|
-
editor.getBody().innerHTML = '<div>text</div>';
|
|
1115
|
-
const rng = editor.dom.createRng();
|
|
1116
|
-
rng.setStart(editor.dom.select('div')[0], 0);
|
|
1117
|
-
rng.setEnd(editor.dom.select('div')[0], 1);
|
|
1118
|
-
editor.selection.setRng(rng);
|
|
1119
|
-
editor.formatter.apply('format');
|
|
1120
|
-
assert.equal(
|
|
1121
|
-
getContent(editor),
|
|
1122
|
-
'<div><span class="a b c" style="color: rgb(255, 0, 0);" title="test">text</span></div>',
|
|
1123
|
-
'Apply format on single element that matches a selector'
|
|
1124
|
-
);
|
|
1125
|
-
});
|
|
1126
|
-
|
|
1127
|
-
it('Format on single div that matches a selector', () => {
|
|
1128
|
-
const editor = hook.editor();
|
|
1129
|
-
editor.formatter.register('format', {
|
|
1130
|
-
inline: 'span',
|
|
1131
|
-
selector: 'div',
|
|
1132
|
-
attributes: {
|
|
1133
|
-
title: 'test'
|
|
1134
|
-
},
|
|
1135
|
-
styles: {
|
|
1136
|
-
color: '#ff0000'
|
|
1137
|
-
},
|
|
1138
|
-
classes: 'a b c'
|
|
1139
|
-
});
|
|
1140
|
-
editor.getBody().innerHTML = '<div>text</div>';
|
|
1141
|
-
const rng = editor.dom.createRng();
|
|
1142
|
-
rng.setStart(editor.dom.select('div')[0], 0);
|
|
1143
|
-
rng.setEnd(editor.dom.select('div')[0], 1);
|
|
1144
|
-
editor.selection.setRng(rng);
|
|
1145
|
-
editor.formatter.apply('format');
|
|
1146
|
-
assert.equal(
|
|
1147
|
-
getContent(editor),
|
|
1148
|
-
'<div class="a b c" style="color: rgb(255, 0, 0);" title="test">text</div>',
|
|
1149
|
-
'Apply format on single element that matches a selector'
|
|
1150
|
-
);
|
|
1151
|
-
});
|
|
1152
|
-
|
|
1153
|
-
it('Bold and italics is applied to text that is not highlighted', () => {
|
|
1154
|
-
const editor = hook.editor();
|
|
1155
|
-
const rng = editor.dom.createRng();
|
|
1156
|
-
editor.setContent('<p><span style="font-family: Arial;"><strong>test1 test2</strong> test3 test4 test5 test6</span></p>');
|
|
1157
|
-
rng.setStart(editor.dom.select('strong')[0].firstChild as Text, 6);
|
|
1158
|
-
rng.setEnd(editor.dom.select('strong')[0].firstChild as Text, 11);
|
|
1159
|
-
editor.focus();
|
|
1160
|
-
editor.selection.setRng(rng);
|
|
1161
|
-
editor.execCommand('Italic');
|
|
1162
|
-
assert.equal(
|
|
1163
|
-
editor.getContent(),
|
|
1164
|
-
'<p><span style="font-family: Arial;"><strong>test1 <em>test2</em></strong> test3 test4 test5 test6</span></p>',
|
|
1165
|
-
'Selected text should be bold.'
|
|
1166
|
-
);
|
|
1167
|
-
});
|
|
1168
|
-
|
|
1169
|
-
it('Apply color format to links as well', () => {
|
|
1170
|
-
const editor = hook.editor();
|
|
1171
|
-
editor.setContent('<p>123<a href="#">abc</a>456</p>');
|
|
1172
|
-
const rng = editor.dom.createRng();
|
|
1173
|
-
rng.setStart(editor.dom.select('p')[0].firstChild as Text, 0);
|
|
1174
|
-
rng.setEnd(editor.dom.select('p')[0].lastChild as Text, 3);
|
|
1175
|
-
editor.selection.setRng(rng);
|
|
1176
|
-
|
|
1177
|
-
editor.formatter.register('format', {
|
|
1178
|
-
inline: 'span',
|
|
1179
|
-
styles: {
|
|
1180
|
-
color: '#FF0000'
|
|
1181
|
-
},
|
|
1182
|
-
links: true
|
|
1183
|
-
});
|
|
1184
|
-
editor.formatter.apply('format');
|
|
1185
|
-
|
|
1186
|
-
assert.equal(
|
|
1187
|
-
editor.getContent(),
|
|
1188
|
-
'<p><span style="color: rgb(255, 0, 0);">123<a style="color: rgb(255, 0, 0);" href="#">abc</a>456</span></p>',
|
|
1189
|
-
`Link should have it's own color.`
|
|
1190
|
-
);
|
|
1191
|
-
});
|
|
1192
|
-
|
|
1193
|
-
it('Color on link element', () => {
|
|
1194
|
-
const editor = hook.editor();
|
|
1195
|
-
editor.setContent('<p><span style="font-size: 10px;">123<a href="#">abc</a>456</span></p>');
|
|
1196
|
-
const rng = editor.dom.createRng();
|
|
1197
|
-
rng.setStart(editor.dom.select('span')[0].firstChild as Text, 0);
|
|
1198
|
-
rng.setEnd(editor.dom.select('span')[0].lastChild as Text, 3);
|
|
1199
|
-
editor.selection.setRng(rng);
|
|
1200
|
-
|
|
1201
|
-
editor.formatter.register('format', {
|
|
1202
|
-
inline: 'span',
|
|
1203
|
-
styles: {
|
|
1204
|
-
color: '#FF0000'
|
|
1205
|
-
},
|
|
1206
|
-
links: true
|
|
1207
|
-
});
|
|
1208
|
-
editor.formatter.apply('format');
|
|
1209
|
-
|
|
1210
|
-
assert.equal(
|
|
1211
|
-
editor.getContent(),
|
|
1212
|
-
'<p><span style="color: rgb(255, 0, 0); font-size: 10px;">123<a style="color: rgb(255, 0, 0);" href="#">abc</a>456</span></p>',
|
|
1213
|
-
`Link should have it's own color.`
|
|
1214
|
-
);
|
|
1215
|
-
});
|
|
1216
|
-
|
|
1217
|
-
it('Applying formats in lists', () => {
|
|
1218
|
-
const editor = hook.editor();
|
|
1219
|
-
editor.setContent('<ul><li>text<ul><li>nested</li></ul></li></ul>');
|
|
1220
|
-
const rng = editor.dom.createRng();
|
|
1221
|
-
rng.setStart(editor.dom.select('li')[0].firstChild as Text, 0);
|
|
1222
|
-
rng.setEnd(editor.dom.select('li')[0].firstChild as Text, 1);
|
|
1223
|
-
editor.selection.setRng(rng);
|
|
1224
|
-
editor.formatter.apply('h1');
|
|
1225
|
-
assert.equal(
|
|
1226
|
-
editor.getContent(),
|
|
1227
|
-
'<ul><li><h1>text</h1><ul><li>nested</li></ul></li></ul>',
|
|
1228
|
-
'heading should not automatically apply to sublists'
|
|
1229
|
-
);
|
|
1230
|
-
});
|
|
1231
|
-
|
|
1232
|
-
it('Applying block format to first character in li', () => {
|
|
1233
|
-
const editor = hook.editor();
|
|
1234
|
-
editor.setContent('<ul><li>ab</li><li>cd</li>');
|
|
1235
|
-
LegacyUnit.setSelection(editor, 'li:nth-child(1)', 0, 'li:nth-child(1)', 0);
|
|
1236
|
-
editor.formatter.apply('h1');
|
|
1237
|
-
assert.equal(
|
|
1238
|
-
editor.getContent(),
|
|
1239
|
-
'<ul><li><h1>ab</h1></li><li>cd</li></ul>',
|
|
1240
|
-
'heading should be applied to first li'
|
|
1241
|
-
);
|
|
1242
|
-
});
|
|
1243
|
-
|
|
1244
|
-
it('Applying block format to li wrapped in block', () => {
|
|
1245
|
-
const editor = hook.editor();
|
|
1246
|
-
editor.setContent('<div><ul><li>ab</li><li>cd</li></ul></div>');
|
|
1247
|
-
LegacyUnit.setSelection(editor, 'li:nth-child(1)', 1, 'li:nth-child(1)', 1);
|
|
1248
|
-
editor.formatter.apply('h1');
|
|
1249
|
-
assert.equal(
|
|
1250
|
-
editor.getContent(),
|
|
1251
|
-
'<div><ul><li><h1>ab</h1></li><li>cd</li></ul></div>',
|
|
1252
|
-
'heading should be applied to first li only'
|
|
1253
|
-
);
|
|
1254
|
-
});
|
|
1255
|
-
|
|
1256
|
-
it('Applying formats on a list including child nodes', () => {
|
|
1257
|
-
const editor = hook.editor();
|
|
1258
|
-
editor.formatter.register('format', { inline: 'strong' });
|
|
1259
|
-
editor.setContent('<ol><li>a</li><li>b<ul><li>c</li><li>d<br /><ol><li>e</li><li>f</li></ol></li></ul></li><li>g</li></ol>');
|
|
1260
|
-
const rng = editor.dom.createRng();
|
|
1261
|
-
rng.setStart(editor.dom.select('li')[0].firstChild as Text, 0);
|
|
1262
|
-
rng.setEnd(editor.dom.select('li')[6].firstChild as Text, 1);
|
|
1263
|
-
editor.selection.setRng(rng);
|
|
1264
|
-
editor.formatter.apply('format');
|
|
1265
|
-
assert.equal(
|
|
1266
|
-
editor.getContent(),
|
|
1267
|
-
'<ol><li><strong>a</strong></li><li><strong>b</strong><ul><li><strong>c</strong></li><li><strong>d</strong>' +
|
|
1268
|
-
'<br><ol><li><strong>e</strong></li><li><strong>f</strong></li></ol></li></ul></li><li><strong>g</strong>' +
|
|
1269
|
-
'</li></ol>',
|
|
1270
|
-
'should be applied to all sublists'
|
|
1271
|
-
);
|
|
1272
|
-
});
|
|
1273
|
-
|
|
1274
|
-
it('Block format on li element', () => {
|
|
1275
|
-
const editor = hook.editor();
|
|
1276
|
-
editor.setContent('<ul><li>text<ul><li>nested</li></ul></li></ul>');
|
|
1277
|
-
const rng = editor.dom.createRng();
|
|
1278
|
-
rng.setStart(editor.dom.select('li')[0].firstChild as Text, 0);
|
|
1279
|
-
rng.setEnd(editor.dom.select('li')[1].firstChild as Text, 1);
|
|
1280
|
-
editor.selection.setRng(rng);
|
|
1281
|
-
editor.formatter.apply('h1');
|
|
1282
|
-
assert.equal(
|
|
1283
|
-
editor.getContent(),
|
|
1284
|
-
'<ul><li><h1>text</h1><ul><li><h1>nested</h1></li></ul></li></ul>',
|
|
1285
|
-
'heading should automatically apply to sublists, when selection spans the sublist'
|
|
1286
|
-
);
|
|
1287
|
-
});
|
|
1288
|
-
|
|
1289
|
-
it('Block on li element 2', () => {
|
|
1290
|
-
const editor = hook.editor();
|
|
1291
|
-
editor.setContent('<ul><li>before<ul><li>nested</li></ul>after</li></ul>');
|
|
1292
|
-
const rng = editor.dom.createRng();
|
|
1293
|
-
rng.setStart(editor.dom.select('li')[0].lastChild as Text, 1);
|
|
1294
|
-
rng.setEnd(editor.dom.select('li')[0].lastChild as Text, 2);
|
|
1295
|
-
editor.selection.setRng(rng);
|
|
1296
|
-
editor.formatter.apply('h1');
|
|
1297
|
-
assert.equal(
|
|
1298
|
-
editor.getContent(),
|
|
1299
|
-
'<ul><li>before<ul><li>nested</li></ul><h1>after</h1></li></ul>',
|
|
1300
|
-
'heading should automatically apply to sublists, when selection spans the sublist'
|
|
1301
|
-
);
|
|
1302
|
-
});
|
|
1303
|
-
|
|
1304
|
-
it('Block on li element 3', () => {
|
|
1305
|
-
const editor = hook.editor();
|
|
1306
|
-
editor.setContent('<ul><li>before<ul><li>nested</li></ul>after</li></ul>');
|
|
1307
|
-
const rng = editor.dom.createRng();
|
|
1308
|
-
rng.setStart(editor.dom.select('li')[1].firstChild as Text, 0);
|
|
1309
|
-
rng.setEnd(editor.dom.select('li')[0].lastChild as Text, 1);
|
|
1310
|
-
editor.selection.setRng(rng);
|
|
1311
|
-
editor.formatter.apply('h1');
|
|
1312
|
-
assert.equal(
|
|
1313
|
-
editor.getContent(),
|
|
1314
|
-
'<ul><li>before<ul><li><h1>nested</h1></li></ul><h1>after</h1></li></ul>',
|
|
1315
|
-
'heading should automatically apply to sublists, when selection spans the sublist'
|
|
1316
|
-
);
|
|
1317
|
-
});
|
|
1318
|
-
|
|
1319
|
-
it('Block on li element 4', () => {
|
|
1320
|
-
const editor = hook.editor();
|
|
1321
|
-
editor.setContent('<ul><li>before<ul><li>nested</li></ul>after</li></ul>');
|
|
1322
|
-
const rng = editor.dom.createRng();
|
|
1323
|
-
rng.setStart(editor.dom.select('li')[0].firstChild as Text, 0);
|
|
1324
|
-
rng.setEnd(editor.dom.select('li')[0].lastChild as Text, 1);
|
|
1325
|
-
editor.selection.setRng(rng);
|
|
1326
|
-
editor.formatter.apply('h1');
|
|
1327
|
-
assert.equal(
|
|
1328
|
-
editor.getContent(),
|
|
1329
|
-
'<ul><li><h1>before</h1><ul><li><h1>nested</h1></li></ul><h1>after</h1></li></ul>',
|
|
1330
|
-
'heading should apply correctly when selection is after a sublist'
|
|
1331
|
-
);
|
|
1332
|
-
});
|
|
1333
|
-
|
|
1334
|
-
it('Underline colors 1', () => {
|
|
1335
|
-
const editor = hook.editor();
|
|
1336
|
-
editor.formatter.register('format', {
|
|
1337
|
-
inline: 'span',
|
|
1338
|
-
styles: {
|
|
1339
|
-
color: '#ff0000'
|
|
1340
|
-
}
|
|
1341
|
-
});
|
|
1342
|
-
editor.setContent(`<p><span style="font-family: 'arial black'; text-decoration: underline;">test</span></p>`);
|
|
1343
|
-
editor.execCommand('SelectAll');
|
|
1344
|
-
editor.formatter.apply('format');
|
|
1345
|
-
assert.equal(
|
|
1346
|
-
editor.getContent(),
|
|
1347
|
-
`<p><span style="color: rgb(255, 0, 0); font-family: 'arial black'; text-decoration: underline;">test</span></p>`,
|
|
1348
|
-
'Coloring an underlined text should result in a colored underline'
|
|
1349
|
-
);
|
|
1350
|
-
});
|
|
1351
|
-
|
|
1352
|
-
it('Underline colors 2', () => {
|
|
1353
|
-
const editor = hook.editor();
|
|
1354
|
-
editor.formatter.register('format', {
|
|
1355
|
-
inline: 'span',
|
|
1356
|
-
exact: true,
|
|
1357
|
-
styles: {
|
|
1358
|
-
textDecoration: 'underline'
|
|
1359
|
-
}
|
|
1360
|
-
});
|
|
1361
|
-
editor.setContent(`<p><span style="font-family: 'arial black'; color: rgb(255, 0, 0);">test</span></p>`);
|
|
1362
|
-
editor.execCommand('SelectAll');
|
|
1363
|
-
editor.formatter.apply('format');
|
|
1364
|
-
assert.equal(
|
|
1365
|
-
editor.getContent(),
|
|
1366
|
-
'<p><span style="text-decoration: underline;"><span style="color: rgb(255, 0, 0); font-family: ' +
|
|
1367
|
-
`'arial black'; text-decoration: underline;">test</span></span></p>`,
|
|
1368
|
-
'Underlining colored text should result in a colored underline'
|
|
1369
|
-
);
|
|
1370
|
-
});
|
|
1371
|
-
|
|
1372
|
-
it('Underline colors 3', () => {
|
|
1373
|
-
const editor = hook.editor();
|
|
1374
|
-
editor.formatter.register('format', {
|
|
1375
|
-
inline: 'span',
|
|
1376
|
-
exact: true,
|
|
1377
|
-
styles: {
|
|
1378
|
-
textDecoration: 'underline'
|
|
1379
|
-
}
|
|
1380
|
-
});
|
|
1381
|
-
editor.setContent(
|
|
1382
|
-
`<p><span style="font-family: 'arial black'; text-decoration: underline;"><em><strong>This is some ` +
|
|
1383
|
-
'<span style="color: rgb(255, 0, 0);">example</span></strong></em> text</span></p>'
|
|
1384
|
-
);
|
|
1385
|
-
editor.execCommand('SelectAll');
|
|
1386
|
-
editor.formatter.apply('format');
|
|
1387
|
-
assert.equal(
|
|
1388
|
-
editor.getContent(),
|
|
1389
|
-
`<p><span style="text-decoration: underline;"><span style="font-family: 'arial black';"><em>` +
|
|
1390
|
-
'<strong>This is some <span style="color: rgb(255, 0, 0); text-decoration: underline;">example</span></strong>' +
|
|
1391
|
-
'</em> text</span></span></p>', 'Underlining colored and underlined text should result in a colored underline'
|
|
1392
|
-
);
|
|
1393
|
-
});
|
|
1394
|
-
|
|
1395
|
-
it('Underline colors 4', () => {
|
|
1396
|
-
const editor = hook.editor();
|
|
1397
|
-
editor.formatter.register('format', {
|
|
1398
|
-
inline: 'span',
|
|
1399
|
-
styles: {
|
|
1400
|
-
color: '#ff0000'
|
|
1401
|
-
}
|
|
1402
|
-
});
|
|
1403
|
-
editor.setContent(
|
|
1404
|
-
'<p style="font-size: 22pt;"><span style=\"text-decoration: underline;\"><span style=\"color: yellow; ' +
|
|
1405
|
-
'text-decoration: underline;\">yellowredyellow</span></span></p>'
|
|
1406
|
-
);
|
|
1407
|
-
const rng = editor.dom.createRng();
|
|
1408
|
-
rng.setStart(editor.dom.select('span')[1].firstChild as Text, 6);
|
|
1409
|
-
rng.setEnd(editor.dom.select('span')[1].firstChild as Text, 9);
|
|
1410
|
-
editor.selection.setRng(rng);
|
|
1411
|
-
editor.formatter.apply('format');
|
|
1412
|
-
assert.equal(getContent(editor), '<p style="font-size: 22pt;"><span style="text-decoration: underline;"><span style="color: yellow;' +
|
|
1413
|
-
' text-decoration: underline;">yellow<span style="color: rgb(255, 0, 0); text-decoration: underline;">red</span>yellow</span></span></p>',
|
|
1414
|
-
'Coloring an colored underdlined text should result in newly colored underline'
|
|
1415
|
-
);
|
|
1416
|
-
});
|
|
1417
|
-
|
|
1418
|
-
it('Underline colors 5', () => {
|
|
1419
|
-
const editor = hook.editor();
|
|
1420
|
-
editor.formatter.register('format', {
|
|
1421
|
-
inline: 'span',
|
|
1422
|
-
exact: true,
|
|
1423
|
-
styles: {
|
|
1424
|
-
textDecoration: 'underline'
|
|
1425
|
-
}
|
|
1426
|
-
});
|
|
1427
|
-
editor.setContent(
|
|
1428
|
-
`<p><span style="font-family: 'arial black','avant garde';"><em><strong>This is some <span style="color: ` +
|
|
1429
|
-
`rgb(255, 0, 0);">example</span></strong></em> text</span></p><p><span style="font-family: 'arial black',` +
|
|
1430
|
-
`'avant garde';"><em><strong>This is some <span style="color: rgb(255, 0, 0);">example</span></strong>` +
|
|
1431
|
-
`</em> text</span></p><p><span style="font-family: 'arial black', 'avant garde';"><em><strong>This is` +
|
|
1432
|
-
` some <span style="color: rgb(255, 0, 0);">example</span></strong></em> text</span></p>`
|
|
1433
|
-
);
|
|
1434
|
-
const rng = editor.dom.createRng();
|
|
1435
|
-
rng.setStart(editor.dom.select('strong')[0].firstChild as Text, 0);
|
|
1436
|
-
rng.setEnd(editor.dom.select('span')[4].lastChild as Text, 5);
|
|
1437
|
-
editor.selection.setRng(rng);
|
|
1438
|
-
editor.formatter.apply('format');
|
|
1439
|
-
assert.equal(
|
|
1440
|
-
editor.getContent(),
|
|
1441
|
-
`<p><span style="text-decoration: underline;"><span style="font-family: 'arial black','avant garde';"` +
|
|
1442
|
-
`><em><strong>This is some <span style="color: rgb(255, 0, 0); text-decoration: underline;">example</span></strong` +
|
|
1443
|
-
`></em> text</span></span></p><p><span style="text-decoration: underline;"><span style="font-family: ` +
|
|
1444
|
-
`'arial black','avant garde';"><em><strong>This is some <span style="color: rgb(255, 0, 0); text-decoration:` +
|
|
1445
|
-
` underline;">example</span></strong></em> text</span></span></p><p><span style="text-decoration: underline;` +
|
|
1446
|
-
`"><span style="font-family: 'arial black', 'avant garde';"><em><strong>This is some <span style="color:` +
|
|
1447
|
-
` rgb(255, 0, 0); text-decoration: underline;">example</span></strong></em> text</span></span></p>`,
|
|
1448
|
-
`Colored elements should be underlined when selection is across multiple paragraphs`
|
|
1449
|
-
);
|
|
1450
|
-
});
|
|
1451
|
-
|
|
1452
|
-
it('Underline colors 6', () => {
|
|
1453
|
-
const editor = hook.editor();
|
|
1454
|
-
editor.formatter.register('format', {
|
|
1455
|
-
inline: 'span',
|
|
1456
|
-
exact: true,
|
|
1457
|
-
styles: {
|
|
1458
|
-
color: '#ff0000'
|
|
1459
|
-
}
|
|
1460
|
-
});
|
|
1461
|
-
editor.setContent('<p><span style="text-decoration: underline;">This is some text.</span></p>');
|
|
1462
|
-
const rng = editor.dom.createRng();
|
|
1463
|
-
rng.setStart(editor.dom.select('span')[0].firstChild as Text, 8);
|
|
1464
|
-
rng.setEnd(editor.dom.select('span')[0].firstChild as Text, 12);
|
|
1465
|
-
editor.selection.setRng(rng);
|
|
1466
|
-
editor.formatter.apply('format');
|
|
1467
|
-
editor.formatter.remove('format');
|
|
1468
|
-
assert.equal(
|
|
1469
|
-
editor.getContent(),
|
|
1470
|
-
'<p><span style="text-decoration: underline;">This is some text.</span></p>',
|
|
1471
|
-
'Children nodes that are underlined should be removed if their parent nodes are underlined'
|
|
1472
|
-
);
|
|
1473
|
-
});
|
|
1474
|
-
|
|
1475
|
-
it('Underline colors 7', () => {
|
|
1476
|
-
const editor = hook.editor();
|
|
1477
|
-
editor.formatter.register('format', {
|
|
1478
|
-
inline: 'span',
|
|
1479
|
-
exact: true,
|
|
1480
|
-
styles: {
|
|
1481
|
-
color: '#ff0000'
|
|
1482
|
-
}
|
|
1483
|
-
});
|
|
1484
|
-
editor.setContent(
|
|
1485
|
-
'<p><span style="text-decoration: underline;">This is <span style="color: #ff0000; text-decoration: underline; ' +
|
|
1486
|
-
'background-color: #ff0000">some</span> text.</span></p>'
|
|
1487
|
-
);
|
|
1488
|
-
const rng = editor.dom.createRng();
|
|
1489
|
-
rng.setStart(editor.dom.select('span')[1].firstChild as Text, 0);
|
|
1490
|
-
rng.setEnd(editor.dom.select('span')[1].firstChild as Text, 4);
|
|
1491
|
-
editor.selection.setRng(rng);
|
|
1492
|
-
editor.formatter.remove('format');
|
|
1493
|
-
assert.equal(
|
|
1494
|
-
editor.getContent(),
|
|
1495
|
-
'<p><span style=\"text-decoration: underline;\">This is <span style=\"background-color: rgb(255, 0, 0);\">' +
|
|
1496
|
-
'some</span> text.</span></p>',
|
|
1497
|
-
'Children nodes that are underlined should be removed if their parent nodes are underlined'
|
|
1498
|
-
);
|
|
1499
|
-
});
|
|
1500
|
-
|
|
1501
|
-
it('Caret format inside single block word', () => {
|
|
1502
|
-
const editor = hook.editor();
|
|
1503
|
-
editor.setContent('<p>abc</p>');
|
|
1504
|
-
editor.formatter.register('format', {
|
|
1505
|
-
inline: 'b'
|
|
1506
|
-
});
|
|
1507
|
-
LegacyUnit.setSelection(editor, 'p', 2, 'p', 2);
|
|
1508
|
-
editor.formatter.apply('format');
|
|
1509
|
-
TinyAssertions.assertContent(editor, '<p><b>abc</b></p>');
|
|
1510
|
-
});
|
|
1511
|
-
|
|
1512
|
-
it('Caret format inside non-ascii single block word', () => {
|
|
1513
|
-
const editor = hook.editor();
|
|
1514
|
-
editor.setContent('<p>noël</p>');
|
|
1515
|
-
editor.formatter.register('format', {
|
|
1516
|
-
inline: 'b'
|
|
1517
|
-
});
|
|
1518
|
-
LegacyUnit.setSelection(editor, 'p', 2, 'p', 2);
|
|
1519
|
-
editor.formatter.apply('format');
|
|
1520
|
-
TinyAssertions.assertContent(editor, '<p><b>noël</b></p>');
|
|
1521
|
-
});
|
|
1522
|
-
|
|
1523
|
-
it('Caret format inside first block word', () => {
|
|
1524
|
-
const editor = hook.editor();
|
|
1525
|
-
editor.setContent('<p>abc 123</p>');
|
|
1526
|
-
editor.formatter.register('format', {
|
|
1527
|
-
inline: 'b'
|
|
1528
|
-
});
|
|
1529
|
-
LegacyUnit.setSelection(editor, 'p', 2, 'p', 2);
|
|
1530
|
-
editor.formatter.apply('format');
|
|
1531
|
-
TinyAssertions.assertContent(editor, '<p><b>abc</b> 123</p>');
|
|
1532
|
-
});
|
|
1533
|
-
|
|
1534
|
-
it('Caret format inside last block word', () => {
|
|
1535
|
-
const editor = hook.editor();
|
|
1536
|
-
editor.setContent('<p>abc 123</p>');
|
|
1537
|
-
editor.formatter.register('format', {
|
|
1538
|
-
inline: 'b'
|
|
1539
|
-
});
|
|
1540
|
-
LegacyUnit.setSelection(editor, 'p', 5, 'p', 5);
|
|
1541
|
-
editor.formatter.apply('format');
|
|
1542
|
-
TinyAssertions.assertContent(editor, '<p>abc <b>123</b></p>');
|
|
1543
|
-
});
|
|
1544
|
-
|
|
1545
|
-
it('Caret format inside middle block word', () => {
|
|
1546
|
-
const editor = hook.editor();
|
|
1547
|
-
editor.setContent('<p>abc 123 456</p>');
|
|
1548
|
-
editor.formatter.register('format', {
|
|
1549
|
-
inline: 'b'
|
|
1550
|
-
});
|
|
1551
|
-
LegacyUnit.setSelection(editor, 'p', 5, 'p', 5);
|
|
1552
|
-
editor.formatter.apply('format');
|
|
1553
|
-
TinyAssertions.assertContent(editor, '<p>abc <b>123</b> 456</p>');
|
|
1554
|
-
});
|
|
1555
|
-
|
|
1556
|
-
it('Caret format on word separated by non breaking space', () => {
|
|
1557
|
-
const editor = hook.editor();
|
|
1558
|
-
editor.setContent('<p>one two</p>');
|
|
1559
|
-
editor.formatter.register('format', {
|
|
1560
|
-
inline: 'b'
|
|
1561
|
-
});
|
|
1562
|
-
LegacyUnit.setSelection(editor, 'p', 1, 'p', 1);
|
|
1563
|
-
editor.formatter.apply('format');
|
|
1564
|
-
TinyAssertions.assertContent(editor, '<p><b>one</b>\u00a0two</p>');
|
|
1565
|
-
});
|
|
1566
|
-
|
|
1567
|
-
it('Caret format inside single inline wrapped word', () => {
|
|
1568
|
-
const editor = hook.editor();
|
|
1569
|
-
editor.setContent('<p>abc <em>123</em> 456</p>');
|
|
1570
|
-
editor.formatter.register('format', {
|
|
1571
|
-
inline: 'b'
|
|
1572
|
-
});
|
|
1573
|
-
LegacyUnit.setSelection(editor, 'em', 1, 'em', 1);
|
|
1574
|
-
editor.formatter.apply('format');
|
|
1575
|
-
TinyAssertions.assertContent(editor, '<p>abc <b><em>123</em></b> 456</p>');
|
|
1576
|
-
});
|
|
1577
|
-
|
|
1578
|
-
it('Caret format inside word before similar format', () => {
|
|
1579
|
-
const editor = hook.editor();
|
|
1580
|
-
editor.setContent('<p>abc 123 <b>456</b></p>');
|
|
1581
|
-
editor.formatter.register('format', {
|
|
1582
|
-
inline: 'b'
|
|
1583
|
-
});
|
|
1584
|
-
LegacyUnit.setSelection(editor, 'p', 1, 'p', 1);
|
|
1585
|
-
editor.formatter.apply('format');
|
|
1586
|
-
TinyAssertions.assertContent(editor, '<p><b>abc</b> 123 <b>456</b></p>');
|
|
1587
|
-
});
|
|
1588
|
-
|
|
1589
|
-
it('Caret format inside last inline wrapped word', () => {
|
|
1590
|
-
const editor = hook.editor();
|
|
1591
|
-
editor.setContent('<p>abc <em>abc 123</em> 456</p>');
|
|
1592
|
-
editor.formatter.register('format', {
|
|
1593
|
-
inline: 'b'
|
|
1594
|
-
});
|
|
1595
|
-
LegacyUnit.setSelection(editor, 'em', 5, 'em', 5);
|
|
1596
|
-
editor.formatter.apply('format');
|
|
1597
|
-
TinyAssertions.assertContent(editor, '<p>abc <em>abc <b>123</b></em> 456</p>');
|
|
1598
|
-
});
|
|
1599
|
-
|
|
1600
|
-
it('Caret format before text', () => {
|
|
1601
|
-
const editor = hook.editor();
|
|
1602
|
-
editor.setContent('<p>a</p>');
|
|
1603
|
-
editor.formatter.register('format', {
|
|
1604
|
-
inline: 'b'
|
|
1605
|
-
});
|
|
1606
|
-
LegacyUnit.setSelection(editor, 'p', 0, 'p', 0);
|
|
1607
|
-
editor.formatter.apply('format');
|
|
1608
|
-
KeyUtils.type(editor, 'b');
|
|
1609
|
-
TinyAssertions.assertContent(editor, '<p><b>b</b>a</p>');
|
|
1610
|
-
});
|
|
1611
|
-
|
|
1612
|
-
it('Caret format after text', () => {
|
|
1613
|
-
const editor = hook.editor();
|
|
1614
|
-
editor.setContent('<p>a</p>');
|
|
1615
|
-
editor.formatter.register('format', {
|
|
1616
|
-
inline: 'b'
|
|
1617
|
-
});
|
|
1618
|
-
LegacyUnit.setSelection(editor, 'p', 1, 'p', 1);
|
|
1619
|
-
editor.formatter.apply('format');
|
|
1620
|
-
KeyUtils.type(editor, 'b');
|
|
1621
|
-
TinyAssertions.assertContent(editor, '<p>a<b>b</b></p>');
|
|
1622
|
-
});
|
|
1623
|
-
|
|
1624
|
-
it('Caret format and no key press', () => {
|
|
1625
|
-
const editor = hook.editor();
|
|
1626
|
-
editor.setContent('<p>a</p>');
|
|
1627
|
-
editor.formatter.register('format', {
|
|
1628
|
-
inline: 'b'
|
|
1629
|
-
});
|
|
1630
|
-
LegacyUnit.setSelection(editor, 'p', 0, 'p', 0);
|
|
1631
|
-
editor.formatter.apply('format');
|
|
1632
|
-
TinyAssertions.assertContent(editor, '<p>a</p>');
|
|
1633
|
-
});
|
|
1634
|
-
|
|
1635
|
-
it('Caret format and arrow left', () => {
|
|
1636
|
-
const editor = hook.editor();
|
|
1637
|
-
editor.setContent('<p>a</p>');
|
|
1638
|
-
editor.formatter.register('format', {
|
|
1639
|
-
inline: 'b'
|
|
1640
|
-
});
|
|
1641
|
-
LegacyUnit.setSelection(editor, 'p', 0, 'p', 0);
|
|
1642
|
-
editor.formatter.apply('format');
|
|
1643
|
-
KeyUtils.type(editor, {
|
|
1644
|
-
keyCode: 37
|
|
1645
|
-
});
|
|
1646
|
-
TinyAssertions.assertContent(editor, '<p>a</p>');
|
|
1647
|
-
});
|
|
1648
|
-
|
|
1649
|
-
it('Caret format and arrow right', () => {
|
|
1650
|
-
const editor = hook.editor();
|
|
1651
|
-
editor.setContent('<p>a</p>');
|
|
1652
|
-
editor.formatter.register('format', {
|
|
1653
|
-
inline: 'b'
|
|
1654
|
-
});
|
|
1655
|
-
LegacyUnit.setSelection(editor, 'p', 0, 'p', 0);
|
|
1656
|
-
editor.formatter.apply('format');
|
|
1657
|
-
KeyUtils.type(editor, {
|
|
1658
|
-
keyCode: 39
|
|
1659
|
-
});
|
|
1660
|
-
TinyAssertions.assertContent(editor, '<p>a</p>');
|
|
1661
|
-
});
|
|
1662
|
-
|
|
1663
|
-
it('Caret format and backspace', () => {
|
|
1664
|
-
const editor = hook.editor();
|
|
1665
|
-
editor.formatter.register('format', {
|
|
1666
|
-
inline: 'b'
|
|
1667
|
-
});
|
|
1668
|
-
|
|
1669
|
-
editor.setContent('<p>abc</p>');
|
|
1670
|
-
const rng = editor.dom.createRng();
|
|
1671
|
-
rng.setStart(editor.dom.select('p')[0].firstChild as Text, 3);
|
|
1672
|
-
rng.setEnd(editor.dom.select('p')[0].firstChild as Text, 3);
|
|
1673
|
-
editor.selection.setRng(rng);
|
|
1674
|
-
|
|
1675
|
-
editor.formatter.apply('format');
|
|
1676
|
-
KeyUtils.type(editor, '\b');
|
|
1677
|
-
TinyAssertions.assertContent(editor, '<p>ab</p>');
|
|
1678
|
-
});
|
|
1679
|
-
|
|
1680
|
-
it('Caret format on word in li with word in parent li before it', () => {
|
|
1681
|
-
const editor = hook.editor();
|
|
1682
|
-
editor.setContent('<ul><li>one<ul><li>two</li></ul></li></ul>');
|
|
1683
|
-
editor.formatter.register('format', {
|
|
1684
|
-
inline: 'b'
|
|
1685
|
-
});
|
|
1686
|
-
LegacyUnit.setSelection(editor, 'ul li li', 1, 'ul li li', 1);
|
|
1687
|
-
editor.formatter.apply('format');
|
|
1688
|
-
TinyAssertions.assertContent(editor, '<ul><li>one<ul><li><b>two</b></li></ul></li></ul>');
|
|
1689
|
-
});
|
|
1690
|
-
|
|
1691
|
-
it('Format caret with multiple formats', () => {
|
|
1692
|
-
const editor = hook.editor();
|
|
1693
|
-
editor.getBody().innerHTML = '<p><br></p>';
|
|
1694
|
-
editor.formatter.register('format1', { inline: 'b' });
|
|
1695
|
-
editor.formatter.register('format2', { inline: 'i' });
|
|
1696
|
-
editor.selection.setCursorLocation(editor.getBody().firstChild as HTMLParagraphElement, 0);
|
|
1697
|
-
editor.formatter.apply('format1');
|
|
1698
|
-
editor.formatter.apply('format2');
|
|
1699
|
-
assert.equal(1, editor.dom.select('b').length, 'Should be one b element');
|
|
1700
|
-
assert.equal(1, editor.dom.select('i').length, 'Should be one i element');
|
|
1701
|
-
});
|
|
1702
|
-
|
|
1703
|
-
it('Selector format on whole contents', () => {
|
|
1704
|
-
const editor = hook.editor();
|
|
1705
|
-
editor.setContent('<p>a</p>');
|
|
1706
|
-
editor.formatter.register('format', {
|
|
1707
|
-
inline: 'span',
|
|
1708
|
-
selector: '*',
|
|
1709
|
-
classes: 'test'
|
|
1710
|
-
});
|
|
1711
|
-
LegacyUnit.setSelection(editor, 'p', 0, 'p', 1);
|
|
1712
|
-
editor.formatter.apply('format');
|
|
1713
|
-
TinyAssertions.assertContent(editor, '<p class="test">a</p>');
|
|
1714
|
-
});
|
|
1715
|
-
|
|
1716
|
-
it('format inline on contentEditable: false block', () => {
|
|
1717
|
-
const editor = hook.editor();
|
|
1718
|
-
editor.formatter.register('format', {
|
|
1719
|
-
inline: 'b'
|
|
1720
|
-
});
|
|
1721
|
-
editor.setContent('<p>abc</p><p contenteditable="false">def</p>');
|
|
1722
|
-
editor.selection.select(editor.getBody().childNodes[1]);
|
|
1723
|
-
editor.formatter.apply('format');
|
|
1724
|
-
assert.equal(editor.getContent(), '<p>abc</p><p contenteditable="false">def</p>', 'Text is not bold');
|
|
1725
|
-
});
|
|
1726
|
-
|
|
1727
|
-
it('format block on contentEditable: false block', () => {
|
|
1728
|
-
const editor = hook.editor();
|
|
1729
|
-
editor.formatter.register('format', {
|
|
1730
|
-
block: 'h1'
|
|
1731
|
-
});
|
|
1732
|
-
editor.setContent('<p>abc</p><p contenteditable="false">def</p>');
|
|
1733
|
-
editor.selection.select(editor.getBody().childNodes[1]);
|
|
1734
|
-
editor.formatter.apply('format');
|
|
1735
|
-
assert.equal(editor.getContent(), '<p>abc</p><p contenteditable="false">def</p>', 'P is not h1');
|
|
1736
|
-
});
|
|
1737
|
-
|
|
1738
|
-
it('contentEditable: false on start and contentEditable: true on end', () => {
|
|
1739
|
-
const editor = hook.editor();
|
|
1740
|
-
editor.formatter.register('format', {
|
|
1741
|
-
inline: 'b'
|
|
1742
|
-
});
|
|
1743
|
-
editor.setContent('<p>abc</p><p contenteditable="false">def</p><p>ghi</p>');
|
|
1744
|
-
const rng = editor.dom.createRng();
|
|
1745
|
-
rng.setStart(editor.dom.select('p')[2].firstChild as Text, 0);
|
|
1746
|
-
rng.setEnd(editor.dom.select('p')[2].firstChild as Text, 3);
|
|
1747
|
-
editor.selection.setRng(rng);
|
|
1748
|
-
editor.formatter.apply('format');
|
|
1749
|
-
assert.equal(editor.getContent(), '<p>abc</p><p contenteditable="false">def</p><p><b>ghi</b></p>', 'Text in last paragraph is bold');
|
|
1750
|
-
});
|
|
1751
|
-
|
|
1752
|
-
it('contentEditable: true inside contentEditable: false', () => {
|
|
1753
|
-
const editor = hook.editor();
|
|
1754
|
-
editor.formatter.register('format', {
|
|
1755
|
-
inline: 'b'
|
|
1756
|
-
});
|
|
1757
|
-
editor.setContent('<p>abc</p><p contenteditable="false"><span contenteditable="true">def</span></p>');
|
|
1758
|
-
LegacyUnit.setSelection(editor, 'span', 0, 'span', 3);
|
|
1759
|
-
editor.formatter.apply('format');
|
|
1760
|
-
assert.equal(editor.getContent(), '<p>abc</p><p contenteditable="false"><span contenteditable="true"><b>def</b></span></p>', 'Text is bold');
|
|
1761
|
-
});
|
|
1762
|
-
|
|
1763
|
-
it('Div element wrapping blocks', () => {
|
|
1764
|
-
const editor = hook.editor();
|
|
1765
|
-
editor.setContent('<p>a</p>');
|
|
1766
|
-
LegacyUnit.setSelection(editor, 'p', 0, 'p', 1);
|
|
1767
|
-
editor.formatter.register('format', {
|
|
1768
|
-
block: 'div',
|
|
1769
|
-
wrapper: true
|
|
1770
|
-
});
|
|
1771
|
-
editor.formatter.apply('format');
|
|
1772
|
-
assert.equal(getContent(editor), '<div><p>a</p></div>');
|
|
1773
|
-
});
|
|
1774
|
-
|
|
1775
|
-
it('Del element as inline', () => {
|
|
1776
|
-
const editor = hook.editor();
|
|
1777
|
-
editor.setContent('<p>a</p>');
|
|
1778
|
-
LegacyUnit.setSelection(editor, 'p', 0, 'p', 1);
|
|
1779
|
-
editor.formatter.register('format', {
|
|
1780
|
-
inline: 'del'
|
|
1781
|
-
});
|
|
1782
|
-
editor.formatter.apply('format');
|
|
1783
|
-
assert.equal(getContent(editor), '<p><del>a</del></p>');
|
|
1784
|
-
});
|
|
1785
|
-
|
|
1786
|
-
it('Align specified table element with collapsed: false and selection collapsed', () => {
|
|
1787
|
-
const editor = hook.editor();
|
|
1788
|
-
editor.setContent('<table><tr><td>a</td></tr></table>');
|
|
1789
|
-
LegacyUnit.setSelection(editor, 'td', 0, 'td', 0);
|
|
1790
|
-
editor.formatter.register('format', {
|
|
1791
|
-
selector: 'table',
|
|
1792
|
-
collapsed: false,
|
|
1793
|
-
styles: {
|
|
1794
|
-
float: 'right'
|
|
1795
|
-
}
|
|
1796
|
-
});
|
|
1797
|
-
editor.formatter.apply('format', {}, editor.getBody().firstChild);
|
|
1798
|
-
assert.equal(getContent(editor), '<table style="float: right;"><tbody><tr><td>a</td></tr></tbody></table>');
|
|
1799
|
-
});
|
|
1800
|
-
|
|
1801
|
-
it('Align nested table cell to same as parent', () => {
|
|
1802
|
-
const editor = hook.editor();
|
|
1803
|
-
editor.setContent(
|
|
1804
|
-
'<table>' +
|
|
1805
|
-
'<tbody>' +
|
|
1806
|
-
'<tr>' +
|
|
1807
|
-
'<td style="text-align: right;">a' +
|
|
1808
|
-
'<table>' +
|
|
1809
|
-
'<tbody>' +
|
|
1810
|
-
'<tr>' +
|
|
1811
|
-
'<td><b>b</b></td>' +
|
|
1812
|
-
'</tr>' +
|
|
1813
|
-
'</tbody>' +
|
|
1814
|
-
'</table>' +
|
|
1815
|
-
'</td>' +
|
|
1816
|
-
'</tr>' +
|
|
1817
|
-
'</tbody>' +
|
|
1818
|
-
'</table>'
|
|
1819
|
-
);
|
|
1820
|
-
|
|
1821
|
-
LegacyUnit.setSelection(editor, 'b', 0);
|
|
1822
|
-
|
|
1823
|
-
editor.formatter.register('format', {
|
|
1824
|
-
selector: 'td',
|
|
1825
|
-
styles: {
|
|
1826
|
-
'text-align': 'right'
|
|
1827
|
-
}
|
|
1828
|
-
});
|
|
1829
|
-
|
|
1830
|
-
editor.formatter.apply('format', {}, editor.dom.select('td td')[0]);
|
|
1831
|
-
|
|
1832
|
-
assert.equal(
|
|
1833
|
-
getContent(editor),
|
|
1834
|
-
'<table>' +
|
|
1835
|
-
'<tbody>' +
|
|
1836
|
-
'<tr>' +
|
|
1837
|
-
'<td style="text-align: right;">a' +
|
|
1838
|
-
'<table>' +
|
|
1839
|
-
'<tbody>' +
|
|
1840
|
-
'<tr>' +
|
|
1841
|
-
'<td style="text-align: right;"><b>b</b></td>' +
|
|
1842
|
-
'</tr>' +
|
|
1843
|
-
'</tbody>' +
|
|
1844
|
-
'</table>' +
|
|
1845
|
-
'</td>' +
|
|
1846
|
-
'</tr>' +
|
|
1847
|
-
'</tbody>' +
|
|
1848
|
-
'</table>'
|
|
1849
|
-
);
|
|
1850
|
-
});
|
|
1851
|
-
|
|
1852
|
-
it('Apply ID format to around existing bookmark node', () => {
|
|
1853
|
-
const editor = hook.editor();
|
|
1854
|
-
editor.getBody().innerHTML = '<p>a<span id="b" data-mce-type="bookmark"></span>b</p>';
|
|
1855
|
-
|
|
1856
|
-
const rng = editor.dom.createRng();
|
|
1857
|
-
rng.setStart(editor.dom.select('p')[0].firstChild as Text, 0);
|
|
1858
|
-
rng.setEnd(editor.dom.select('p')[0].lastChild as Text, 1);
|
|
1859
|
-
editor.selection.setRng(rng);
|
|
1860
|
-
|
|
1861
|
-
editor.formatter.register('format', {
|
|
1862
|
-
inline: 'span',
|
|
1863
|
-
attributes: {
|
|
1864
|
-
id: 'custom-id'
|
|
1865
|
-
}
|
|
1866
|
-
});
|
|
1867
|
-
editor.formatter.apply('format');
|
|
1868
|
-
|
|
1869
|
-
TinyAssertions.assertRawContent(editor, '<p><span id="custom-id">a<span id="b" data-mce-type="bookmark"></span>b</span></p>');
|
|
1870
|
-
});
|
|
1871
|
-
|
|
1872
|
-
it('Bug #5134 - TinyMCE removes formatting tags in the getContent', () => {
|
|
1873
|
-
const editor = hook.editor();
|
|
1874
|
-
editor.setContent('');
|
|
1875
|
-
editor.formatter.register('format', {
|
|
1876
|
-
inline: 'strong',
|
|
1877
|
-
toggle: false
|
|
1878
|
-
});
|
|
1879
|
-
editor.formatter.apply('format');
|
|
1880
|
-
assert.equal(getContent(editor), '', 'empty TinyMCE');
|
|
1881
|
-
editor.selection.setContent('a');
|
|
1882
|
-
assert.equal(getContent(editor), '<p><strong>a</strong></p>', 'bold text inside TinyMCE');
|
|
1883
|
-
});
|
|
1884
|
-
|
|
1885
|
-
it('Bug #5134 - TinyMCE removes formatting tags in the getContent - typing', () => {
|
|
1886
|
-
const editor = hook.editor();
|
|
1887
|
-
editor.setContent('');
|
|
1888
|
-
editor.formatter.register('format', {
|
|
1889
|
-
inline: 'strong',
|
|
1890
|
-
toggle: false
|
|
1891
|
-
});
|
|
1892
|
-
editor.formatter.apply('format');
|
|
1893
|
-
assert.equal(getContent(editor), '', 'empty TinyMCE');
|
|
1894
|
-
KeyUtils.type(editor, 'a');
|
|
1895
|
-
assert.equal(getContent(editor), '<p><strong>a</strong></p>', 'bold text inside TinyMCE');
|
|
1896
|
-
});
|
|
1897
|
-
|
|
1898
|
-
it('Bug #5453 - TD contents with BR gets wrapped in block format', () => {
|
|
1899
|
-
const editor = hook.editor();
|
|
1900
|
-
editor.setContent('<table><tr><td>abc<br />123</td></tr></table>');
|
|
1901
|
-
LegacyUnit.setSelection(editor, 'td', 1, 'td', 1);
|
|
1902
|
-
editor.formatter.register('format', {
|
|
1903
|
-
block: 'h1'
|
|
1904
|
-
});
|
|
1905
|
-
editor.formatter.apply('format');
|
|
1906
|
-
assert.equal(getContent(editor), '<table><tbody><tr><td><h1>abc</h1>123</td></tr></tbody></table>');
|
|
1907
|
-
});
|
|
1908
|
-
|
|
1909
|
-
it('Bug #6471 - Merge left/right style properties', () => {
|
|
1910
|
-
const editor = hook.editor();
|
|
1911
|
-
editor.formatter.register('format', {
|
|
1912
|
-
inline: 'span',
|
|
1913
|
-
styles: {
|
|
1914
|
-
fontWeight: 'bold'
|
|
1915
|
-
}
|
|
1916
|
-
});
|
|
1917
|
-
editor.setContent('<p>abc</p>');
|
|
1918
|
-
LegacyUnit.setSelection(editor, 'p', 2, 'p', 3);
|
|
1919
|
-
editor.formatter.apply('format');
|
|
1920
|
-
LegacyUnit.setSelection(editor, 'p', 1, 'p', 2);
|
|
1921
|
-
editor.formatter.apply('format');
|
|
1922
|
-
LegacyUnit.setSelection(editor, 'p', 0, 'p', 1);
|
|
1923
|
-
editor.formatter.apply('format');
|
|
1924
|
-
TinyAssertions.assertContent(editor, '<p><span style="font-weight: bold;">abc</span></p>');
|
|
1925
|
-
});
|
|
1926
|
-
|
|
1927
|
-
it('merge_with_parents', () => {
|
|
1928
|
-
const editor = hook.editor();
|
|
1929
|
-
editor.formatter.register('format', {
|
|
1930
|
-
inline: 'span',
|
|
1931
|
-
styles: {
|
|
1932
|
-
fontWeight: 'bold'
|
|
1933
|
-
},
|
|
1934
|
-
merge_with_parents: true
|
|
1935
|
-
});
|
|
1936
|
-
editor.setContent('<p><span style="color: red">a</span></p>');
|
|
1937
|
-
LegacyUnit.setSelection(editor, 'span', 0, 'span', 1);
|
|
1938
|
-
editor.formatter.apply('format');
|
|
1939
|
-
TinyAssertions.assertContent(editor, '<p><span style="color: red; font-weight: bold;">a</span></p>');
|
|
1940
|
-
});
|
|
1941
|
-
|
|
1942
|
-
it('Format selection from with end at beginning of block', () => {
|
|
1943
|
-
const editor = hook.editor();
|
|
1944
|
-
editor.setContent(`<div id='a'>one</div><div id='b'>two</div>`);
|
|
1945
|
-
editor.focus();
|
|
1946
|
-
LegacyUnit.setSelection(editor, '#a', 0, '#b', 0);
|
|
1947
|
-
editor.execCommand('formatBlock', false, 'h1');
|
|
1948
|
-
assert.equal(getContent(editor), '<h1 id="a">one</h1><div id="b">two</div>');
|
|
1949
|
-
});
|
|
1950
|
-
|
|
1951
|
-
it('Format selection over fragments', () => {
|
|
1952
|
-
const editor = hook.editor();
|
|
1953
|
-
editor.setContent('<p><strong>a</strong>bc<em>d</em></p>');
|
|
1954
|
-
LegacyUnit.setSelection(editor, 'strong', 1, 'em', 0);
|
|
1955
|
-
editor.formatter.apply('underline');
|
|
1956
|
-
assert.equal(getContent(editor), '<p><strong>a</strong><span style="text-decoration: underline;">bc</span><em>d</em></p>');
|
|
1957
|
-
});
|
|
1958
|
-
|
|
1959
|
-
it(`Child wrapper having the same format as the immediate parent, shouldn't be removed if it also has other formats merged`, () => {
|
|
1960
|
-
const editor = hook.editor();
|
|
1961
|
-
editor.getBody().innerHTML = '<p><span style="font-family: verdana;">a <span style="color: #ff0000;">b</span>c</span></p>';
|
|
1962
|
-
LegacyUnit.setSelection(editor, 'span span', 0, 'span span', 1);
|
|
1963
|
-
editor.formatter.apply('fontname', { value: 'verdana' });
|
|
1964
|
-
assert.equal(getContent(editor), '<p><span style="font-family: verdana;">a <span style="color: rgb(255, 0, 0);">b</span>c</span></p>');
|
|
1965
|
-
});
|
|
1966
|
-
|
|
1967
|
-
it('FontName should not toggle', () => {
|
|
1968
|
-
const editor = hook.editor();
|
|
1969
|
-
editor.getBody().innerHTML = '<p>abc</p>';
|
|
1970
|
-
LegacyUnit.setSelection(editor, 'p', 0, 'p', 3);
|
|
1971
|
-
editor.formatter.toggle('fontname', { value: 'arial' });
|
|
1972
|
-
assert.equal(getContent(editor), '<p><span style="font-family: arial;">abc</span></p>');
|
|
1973
|
-
LegacyUnit.setSelection(editor, 'span', 0, 'span', 3);
|
|
1974
|
-
editor.formatter.toggle('fontname', { value: 'arial' });
|
|
1975
|
-
assert.equal(getContent(editor), '<p><span style="font-family: arial;">abc</span></p>');
|
|
1976
|
-
});
|
|
1977
|
-
|
|
1978
|
-
it('FontSize should not toggle', () => {
|
|
1979
|
-
const editor = hook.editor();
|
|
1980
|
-
editor.getBody().innerHTML = '<p>abc</p>';
|
|
1981
|
-
LegacyUnit.setSelection(editor, 'p', 0, 'p', 3);
|
|
1982
|
-
editor.formatter.toggle('fontsize', { value: '14pt' });
|
|
1983
|
-
assert.equal(getContent(editor), '<p><span style="font-size: 14pt;">abc</span></p>');
|
|
1984
|
-
LegacyUnit.setSelection(editor, 'span', 0, 'span', 3);
|
|
1985
|
-
editor.formatter.toggle('fontsize', { value: '14pt' });
|
|
1986
|
-
assert.equal(getContent(editor), '<p><span style="font-size: 14pt;">abc</span></p>');
|
|
1987
|
-
});
|
|
1988
|
-
|
|
1989
|
-
it('All the nested childNodes having fontSize should receive backgroundColor as well', () => {
|
|
1990
|
-
const editor = hook.editor();
|
|
1991
|
-
editor.getBody().innerHTML = '<p>a <span style="font-size: 36pt;">b</span> c</p>';
|
|
1992
|
-
editor.selection.select(editor.dom.select('p')[0]);
|
|
1993
|
-
|
|
1994
|
-
editor.formatter.apply('hilitecolor', { value: '#ff0000' });
|
|
1995
|
-
assert.equal(
|
|
1996
|
-
getContent(editor),
|
|
1997
|
-
'<p><span style="background-color: rgb(255, 0, 0);">a <span style="font-size: 36pt; background-color: rgb(255, 0, 0);">b</span> c</span></p>'
|
|
1998
|
-
);
|
|
1999
|
-
|
|
2000
|
-
editor.formatter.remove('hilitecolor', { value: '#ff0000' });
|
|
2001
|
-
assert.equal(getContent(editor), '<p>a <span style="font-size: 36pt;">b</span> c</p>');
|
|
2002
|
-
});
|
|
2003
|
-
|
|
2004
|
-
it('Formatter should wrap elements that have data-mce-bogus attribute, rather then attempt to inject styles into it', () => {
|
|
2005
|
-
const editor = hook.editor();
|
|
2006
|
-
// add a class to retain bogus element
|
|
2007
|
-
editor.getBody().innerHTML = '<p>That is a <span class="mce-spellchecker-word" data-mce-bogus="1">misespelled</span> text</p>';
|
|
2008
|
-
editor.selection.select(editor.dom.select('span')[0]);
|
|
2009
|
-
|
|
2010
|
-
editor.formatter.apply('fontname', { value: 'verdana' });
|
|
2011
|
-
|
|
2012
|
-
TinyAssertions.assertRawContent(editor,
|
|
2013
|
-
'<p>That is a <span style="font-family: verdana;" data-mce-style="font-family: verdana;"><span class="mce-spellchecker-word" data-mce-bogus="1">misespelled</span></span> text</p>');
|
|
2014
|
-
|
|
2015
|
-
assert.equal(getContent(editor),
|
|
2016
|
-
'<p>that is a <span style="font-family: verdana;">misespelled</span> text</p>');
|
|
2017
|
-
|
|
2018
|
-
editor.selection.select(editor.dom.select('span')[0]);
|
|
2019
|
-
editor.formatter.remove('fontname', { value: 'verdana' });
|
|
2020
|
-
|
|
2021
|
-
TinyAssertions.assertRawContent(editor,
|
|
2022
|
-
'<p>That is a <span class="mce-spellchecker-word" data-mce-bogus="1">misespelled</span> text</p>');
|
|
2023
|
-
|
|
2024
|
-
assert.equal(getContent(editor),
|
|
2025
|
-
'<p>that is a misespelled text</p>');
|
|
2026
|
-
});
|
|
2027
|
-
|
|
2028
|
-
it('TINY-1180: Formatting gets applied outside the currently selected range', () => {
|
|
2029
|
-
const editor = hook.editor();
|
|
2030
|
-
editor.getBody().innerHTML = '<p>a <em><em>em</em> </em></p>';
|
|
2031
|
-
LegacyUnit.setSelection(editor, 'p', 0, 'em em', 0);
|
|
2032
|
-
editor.formatter.apply('strikethrough');
|
|
2033
|
-
assert.equal(getContent(editor), '<p><s>a </s><em><em>em</em> </em></p>');
|
|
2034
|
-
});
|
|
2035
|
-
|
|
2036
|
-
it('Superscript on subscript removes the subscript element', () => {
|
|
2037
|
-
const editor = hook.editor();
|
|
2038
|
-
editor.getBody().innerHTML = '<p><sub>a</sub></p>';
|
|
2039
|
-
LegacyUnit.setSelection(editor, 'sub', 0, 'sub', 1);
|
|
2040
|
-
editor.formatter.apply('superscript');
|
|
2041
|
-
assert.equal(getContent(editor), '<p><sup>a</sup></p>');
|
|
2042
|
-
});
|
|
2043
|
-
|
|
2044
|
-
it('Subscript on superscript removes the superscript element', () => {
|
|
2045
|
-
const editor = hook.editor();
|
|
2046
|
-
editor.getBody().innerHTML = '<p><sup>a</sup></p>';
|
|
2047
|
-
LegacyUnit.setSelection(editor, 'sup', 0, 'sup', 1);
|
|
2048
|
-
editor.formatter.apply('subscript');
|
|
2049
|
-
assert.equal(getContent(editor), '<p><sub>a</sub></p>');
|
|
2050
|
-
});
|
|
2051
|
-
|
|
2052
|
-
it(`TINY-782: Can't apply sub/sup to word on own line with large font`, () => {
|
|
2053
|
-
const editor = hook.editor();
|
|
2054
|
-
editor.getBody().innerHTML = '<p><span style="font-size: 18px;">abc</span></p>';
|
|
2055
|
-
LegacyUnit.setSelection(editor, 'span', 0, 'span', 3);
|
|
2056
|
-
editor.formatter.apply('superscript');
|
|
2057
|
-
assert.equal(getContent(editor), '<p><sup>abc</sup></p>');
|
|
2058
|
-
});
|
|
2059
|
-
|
|
2060
|
-
it('TINY-782: Apply sub/sup to range with multiple font sizes', () => {
|
|
2061
|
-
const editor = hook.editor();
|
|
2062
|
-
editor.getBody().innerHTML = '<p>a<span style="font-size: 18px;">b</span><span style="font-size: 24px;">c</span></p>';
|
|
2063
|
-
LegacyUnit.setSelection(editor, 'p', 0, 'span:nth-child(2)', 1);
|
|
2064
|
-
editor.formatter.apply('superscript');
|
|
2065
|
-
assert.equal(getContent(editor), '<p><sup>abc</sup></p>');
|
|
2066
|
-
});
|
|
2067
|
-
|
|
2068
|
-
it('TINY-671: Background color on nested font size bug', () => {
|
|
2069
|
-
const editor = hook.editor();
|
|
2070
|
-
editor.getBody().innerHTML = '<p><strong><span style="font-size: 18px;">abc</span></strong></p>';
|
|
2071
|
-
LegacyUnit.setSelection(editor, 'span', 0, 'span', 3);
|
|
2072
|
-
editor.formatter.apply('hilitecolor', { value: '#ff0000' });
|
|
2073
|
-
assert.equal(getContent(editor), '<p><span style="background-color: rgb(255, 0, 0);"><strong><span style="font-size: 18px; background-color: rgb(255, 0, 0);">abc</span></strong></span></p>');
|
|
2074
|
-
});
|
|
2075
|
-
|
|
2076
|
-
it('Background color over range of font sizes', () => {
|
|
2077
|
-
const editor = hook.editor();
|
|
2078
|
-
editor.getBody().innerHTML = '<p>a<span style="font-size: 18px;">b</span><span style="font-size: 24px;">c</span></p>';
|
|
2079
|
-
LegacyUnit.setSelection(editor, 'p', 0, 'span:nth-child(2)', 1);
|
|
2080
|
-
editor.formatter.apply('hilitecolor', { value: '#ff0000' });
|
|
2081
|
-
assert.equal(
|
|
2082
|
-
getContent(editor),
|
|
2083
|
-
'<p><span style="background-color: rgb(255, 0, 0);">a<span style="font-size: 18px; background-color: rgb(255, 0, 0);">b</span><span style="font-size: 24px; background-color: rgb(255, 0, 0);">c</span></span></p>'
|
|
2084
|
-
);
|
|
2085
|
-
});
|
|
2086
|
-
|
|
2087
|
-
it('TINY-865: Font size removed when changing background color', () => {
|
|
2088
|
-
const editor = hook.editor();
|
|
2089
|
-
editor.getBody().innerHTML = (
|
|
2090
|
-
'<p><span style="background-color: #ffff00;"><span style="font-size: 8pt;">a</span> ' +
|
|
2091
|
-
'<span style="font-size: 36pt;">b</span> <span style="font-size: 8pt;">c</span></span></p>'
|
|
2092
|
-
);
|
|
2093
|
-
LegacyUnit.setSelection(editor, 'span span:nth-child(2)', 0, 'span span:nth-child(2)', 1);
|
|
2094
|
-
editor.formatter.apply('hilitecolor', { value: '#ff0000' });
|
|
2095
|
-
assert.equal(
|
|
2096
|
-
getContent(editor),
|
|
2097
|
-
'<p><span style="background-color: #ffff00;"><span style="font-size: 8pt;">a</span> <span ' +
|
|
2098
|
-
'style="font-size: 36pt; background-color: rgb(255, 0, 0);">b</span> <span style="font-size: 8pt;">c</span></span></p>'
|
|
2099
|
-
);
|
|
2100
|
-
});
|
|
2101
|
-
|
|
2102
|
-
it(`TINY-935: Text color, then size, then change color wraps span doesn't change color`, () => {
|
|
2103
|
-
const editor = hook.editor();
|
|
2104
|
-
editor.getBody().innerHTML = '<p><span style="color: #00ff00; font-size: 14pt;">text</span></p>';
|
|
2105
|
-
LegacyUnit.setSelection(editor, 'span', 0, 'span', 4);
|
|
2106
|
-
editor.formatter.apply('forecolor', { value: '#ff0000' });
|
|
2107
|
-
assert.equal(getContent(editor), '<p><span style="color: rgb(255, 0, 0); font-size: 14pt;">text</span></p>');
|
|
2108
|
-
});
|
|
2109
|
-
|
|
2110
|
-
it('GH-3519: Font family selection does not work after changing font size', () => {
|
|
2111
|
-
const editor = hook.editor();
|
|
2112
|
-
editor.getBody().innerHTML = `<p><span style="font-size: 14pt; font-family: 'comic sans ms', sans-serif;">text</span></p>`;
|
|
2113
|
-
LegacyUnit.setSelection(editor, 'span', 0, 'span', 4);
|
|
2114
|
-
editor.formatter.apply('fontname', { value: 'verdana' });
|
|
2115
|
-
assert.equal(getContent(editor), '<p><span style="font-size: 14pt; font-family: verdana;">text</span></p>');
|
|
2116
|
-
});
|
|
2117
|
-
|
|
2118
|
-
it('Formatter should remove similar styles when clear_child_styles is set to true', () => {
|
|
2119
|
-
const editor = hook.editor();
|
|
2120
|
-
editor.getBody().innerHTML = (
|
|
2121
|
-
'<p><span style="font-family: Arial; font-size: 13px">a</span>' +
|
|
2122
|
-
'<del style="font-family: Arial; font-size: 13px">b</del>' +
|
|
2123
|
-
'<span style="font-size: 13px">c</span></p>'
|
|
2124
|
-
);
|
|
2125
|
-
|
|
2126
|
-
editor.selection.select(editor.dom.select('p')[0]);
|
|
2127
|
-
|
|
2128
|
-
editor.formatter.register('format', { inline: 'span', styles: { fontSize: '14px' }, clear_child_styles: true });
|
|
2129
|
-
editor.formatter.apply('format');
|
|
2130
|
-
|
|
2131
|
-
assert.equal(
|
|
2132
|
-
getContent(editor),
|
|
2133
|
-
'<p><span style="font-size: 14px;"><span style="font-family: arial;">a</span><del style="font-family: arial;">b</del>c</span></p>'
|
|
2134
|
-
);
|
|
2135
|
-
});
|
|
2136
|
-
|
|
2137
|
-
it(`If links=true, formatter shouldn't remove similar styles from links even if clear_child_styles=true`, () => {
|
|
2138
|
-
const editor = hook.editor();
|
|
2139
|
-
editor.getBody().innerHTML = '<p>a<a href="#">b</a>c</p>';
|
|
2140
|
-
|
|
2141
|
-
editor.selection.select(editor.dom.select('p')[0]);
|
|
2142
|
-
|
|
2143
|
-
editor.formatter.register('format', { inline: 'span', styles: { fontSize: '14px' }, links: true, clear_child_styles: true });
|
|
2144
|
-
editor.formatter.apply('format');
|
|
2145
|
-
|
|
2146
|
-
assert.equal(
|
|
2147
|
-
getContent(editor),
|
|
2148
|
-
'<p><span style="font-size: 14px;">a<a style="font-size: 14px;" href="#">b</a>c</span></p>'
|
|
2149
|
-
);
|
|
2150
|
-
});
|
|
2151
|
-
|
|
2152
|
-
it(`Formatter should remove similar styles when clear_child_styles isn't defined`, () => {
|
|
2153
|
-
const editor = hook.editor();
|
|
2154
|
-
editor.getBody().innerHTML = (
|
|
2155
|
-
'<p><span style="font-family: Arial; font-size: 13px">a</span>' +
|
|
2156
|
-
'<del style="font-family: Arial; font-size: 13px">b</del>' +
|
|
2157
|
-
'<span style="font-size: 13px">c</span></p>'
|
|
2158
|
-
);
|
|
2159
|
-
|
|
2160
|
-
editor.selection.select(editor.dom.select('p')[0]);
|
|
2161
|
-
|
|
2162
|
-
editor.formatter.register('format', { inline: 'span', styles: { fontSize: '14px' }});
|
|
2163
|
-
editor.formatter.apply('format');
|
|
2164
|
-
|
|
2165
|
-
assert.equal(
|
|
2166
|
-
getContent(editor),
|
|
2167
|
-
'<p><span style="font-size: 14px;"><span style="font-family: arial;">a</span><del style="font-size: 13px; font-family: arial;">b</del>c</span></p>'
|
|
2168
|
-
);
|
|
2169
|
-
});
|
|
2170
|
-
|
|
2171
|
-
it('register/unregister', () => {
|
|
2172
|
-
const editor = hook.editor();
|
|
2173
|
-
editor.formatter.register('format', { inline: 'span' });
|
|
2174
|
-
Assertions.assertEq('Should have format', true, !!editor.formatter.get('format'));
|
|
2175
|
-
editor.formatter.unregister('format');
|
|
2176
|
-
Assertions.assertEq('Should not have format', false, !!editor.formatter.get('format'));
|
|
2177
|
-
});
|
|
2178
|
-
|
|
2179
|
-
it('Get all formats', () => {
|
|
2180
|
-
const editor = hook.editor();
|
|
2181
|
-
Assertions.assertEq('Should have a bunch of formats', true, Obj.keys(editor.formatter.get()).length > 0);
|
|
2182
|
-
});
|
|
2183
|
-
|
|
2184
|
-
it('Apply ceFalseOverride format', () => {
|
|
2185
|
-
const editor = hook.editor();
|
|
2186
|
-
editor.setContent('<p contenteditable="false">a</p><div contenteditable="false">b</div>');
|
|
2187
|
-
editor.formatter.register('format', { selector: 'div', classes: [ 'a' ], ceFalseOverride: true });
|
|
2188
|
-
|
|
2189
|
-
editor.selection.select(editor.dom.select('p')[0]);
|
|
2190
|
-
editor.formatter.apply('format');
|
|
2191
|
-
assert.equal(
|
|
2192
|
-
getContent(editor),
|
|
2193
|
-
'<p contenteditable="false">a</p><div contenteditable="false">b</div>'
|
|
2194
|
-
);
|
|
2195
|
-
|
|
2196
|
-
editor.selection.select(editor.dom.select('div')[0]);
|
|
2197
|
-
editor.formatter.apply('format');
|
|
2198
|
-
assert.equal(
|
|
2199
|
-
getContent(editor),
|
|
2200
|
-
'<p contenteditable="false">a</p><div class="a" contenteditable="false">b</div>'
|
|
2201
|
-
);
|
|
2202
|
-
});
|
|
2203
|
-
|
|
2204
|
-
it('Apply format including trailing space', () => {
|
|
2205
|
-
const editor = hook.editor();
|
|
2206
|
-
editor.setContent('<p>a b</p>');
|
|
2207
|
-
editor.formatter.register('format', { inline: 'b' });
|
|
2208
|
-
LegacyUnit.setSelection(editor, 'p', 0, 'p', 2);
|
|
2209
|
-
editor.formatter.apply('format');
|
|
2210
|
-
assert.equal(getContent(editor), '<p><b>a </b>b</p>');
|
|
2211
|
-
});
|
|
2212
|
-
|
|
2213
|
-
it('Apply format on single space', () => {
|
|
2214
|
-
const editor = hook.editor();
|
|
2215
|
-
editor.setContent('<p>a b</p>');
|
|
2216
|
-
editor.formatter.register('format', { inline: 'b' });
|
|
2217
|
-
LegacyUnit.setSelection(editor, 'p', 2, 'p', 3);
|
|
2218
|
-
editor.formatter.apply('format');
|
|
2219
|
-
assert.equal(getContent(editor), '<p>a\u00a0<b> </b>\u00a0 \u00a0b</p>');
|
|
2220
|
-
});
|
|
2221
|
-
|
|
2222
|
-
it('Apply format on multiple spaces', () => {
|
|
2223
|
-
const editor = hook.editor();
|
|
2224
|
-
editor.setContent('<p>a b</p>');
|
|
2225
|
-
editor.formatter.register('format', { inline: 'b' });
|
|
2226
|
-
LegacyUnit.setSelection(editor, 'p', 2, 'p', 5);
|
|
2227
|
-
editor.formatter.apply('format');
|
|
2228
|
-
assert.equal(getContent(editor), '<p>a\u00a0<b> \u00a0 </b>\u00a0b</p>');
|
|
2229
|
-
});
|
|
2230
|
-
|
|
2231
|
-
it('Apply format with onformat handler', () => {
|
|
2232
|
-
const editor = hook.editor();
|
|
2233
|
-
editor.setContent('<p>a</p>');
|
|
2234
|
-
editor.formatter.register('format', {
|
|
2235
|
-
inline: 'span',
|
|
2236
|
-
onformat: (elm: Element) => {
|
|
2237
|
-
elm.className = 'x';
|
|
2238
|
-
}
|
|
2239
|
-
});
|
|
2240
|
-
LegacyUnit.setSelection(editor, 'p', 0, 'p', 1);
|
|
2241
|
-
editor.formatter.apply('format');
|
|
2242
|
-
assert.equal(getContent(editor), '<p><span class="x">a</span></p>');
|
|
2243
|
-
});
|
|
2244
|
-
|
|
2245
|
-
it('Apply format to triple clicked selection (webkit)', () => {
|
|
2246
|
-
const editor = hook.editor();
|
|
2247
|
-
editor.setContent('<p>a</p><ul><li>a</li><li>b</li></ul>');
|
|
2248
|
-
editor.formatter.register('format', { inline: 'b' });
|
|
2249
|
-
|
|
2250
|
-
const rng = editor.dom.createRng();
|
|
2251
|
-
rng.setStart(editor.dom.select('p')[0].firstChild as Text, 0);
|
|
2252
|
-
rng.setEnd(editor.dom.select('li')[0], 0);
|
|
2253
|
-
editor.selection.setRng(rng);
|
|
2254
|
-
|
|
2255
|
-
editor.formatter.apply('format');
|
|
2256
|
-
assert.equal(getContent(editor), '<p><b>a</b></p><ul><li>a</li><li>b</li></ul>');
|
|
2257
|
-
});
|
|
2258
|
-
|
|
2259
|
-
it('Applying background color to partially selected contents', () => {
|
|
2260
|
-
const editor = hook.editor();
|
|
2261
|
-
editor.setContent('<p><span style="background-color: #ff0000;">ab<span style="font-size: 32px;">cd</span><strong>ef</strong></span></p>');
|
|
2262
|
-
LegacyUnit.setSelection(editor, 'span span', 1, 'strong', 1);
|
|
2263
|
-
editor.formatter.apply('hilitecolor', { value: '#00ff00' });
|
|
2264
|
-
assert.equal(getContent(editor),
|
|
2265
|
-
'<p>' +
|
|
2266
|
-
'<span style="background-color: #ff0000;">ab<span style="font-size: 32px;">c<span style="background-color: rgb(0, 255, 0);">d</span></span><strong><span style="background-color: rgb(0, 255, 0);">e</span>f</strong></span>' +
|
|
2267
|
-
'</p>');
|
|
2268
|
-
});
|
|
2269
|
-
|
|
2270
|
-
it('Apply format to node outside fake table selection', () => {
|
|
2271
|
-
const editor = hook.editor();
|
|
2272
|
-
editor.setContent('<p>test</p><table><tbody><tr><td data-mce-selected="1">cell 1</td><td>cell 2</td></tr><tr><td data-mce-selected="1">cell 3</td><td>cell 4</td></tr></tbody></table>');
|
|
2273
|
-
LegacyUnit.setSelection(editor, 'td', 0, 'td', 0);
|
|
2274
|
-
const para = editor.dom.select('p')[0];
|
|
2275
|
-
// Apply to custom node
|
|
2276
|
-
editor.formatter.apply('bold', { }, para);
|
|
2277
|
-
assert.equal(getContent(editor), '<p><strong>test</strong></p><table><tbody><tr><td>cell 1</td><td>cell 2</td></tr><tr><td>cell 3</td><td>cell 4</td></tr></tbody></table>');
|
|
2278
|
-
// Apply to current fake table selection
|
|
2279
|
-
editor.formatter.apply('bold');
|
|
2280
|
-
assert.equal(getContent(editor), '<p><strong>test</strong></p><table><tbody><tr><td><strong>cell 1</strong></td><td>cell 2</td></tr><tr><td><strong>cell 3</strong></td><td>cell 4</td></tr></tbody></table>');
|
|
2281
|
-
});
|
|
2282
|
-
|
|
2283
|
-
it('TINY-6567: Apply format including the final bullet point in the list', () => {
|
|
2284
|
-
const editor = hook.editor();
|
|
2285
|
-
editor.setContent(
|
|
2286
|
-
'<ul>' +
|
|
2287
|
-
'<li>a</li>' +
|
|
2288
|
-
'<li>b<br />' +
|
|
2289
|
-
'<ul>' +
|
|
2290
|
-
'<li>c</li>' +
|
|
2291
|
-
'<li>d</li>' +
|
|
2292
|
-
'</ul>' +
|
|
2293
|
-
'</li>' +
|
|
2294
|
-
'</ul>'
|
|
2295
|
-
);
|
|
2296
|
-
TinySelections.setSelection(editor, [ 0, 0 ], 0, [ 0, 1, 2, 1 ], 1);
|
|
2297
|
-
editor.formatter.apply('aligncenter');
|
|
2298
|
-
assert.equal(getContent(editor),
|
|
2299
|
-
'<ul>' +
|
|
2300
|
-
'<li style="text-align: center;">a</li>' +
|
|
2301
|
-
'<li style="text-align: center;">b<br>' +
|
|
2302
|
-
'<ul>' +
|
|
2303
|
-
'<li style="text-align: center;">c</li>' +
|
|
2304
|
-
'<li style="text-align: center;">d</li>' +
|
|
2305
|
-
'</ul>' +
|
|
2306
|
-
'</li>' +
|
|
2307
|
-
'</ul>'
|
|
2308
|
-
);
|
|
2309
|
-
});
|
|
2310
|
-
|
|
2311
|
-
it('TINY-6567: Apply aligncenter to a partially select child list', () => {
|
|
2312
|
-
const editor = hook.editor();
|
|
2313
|
-
editor.setContent(
|
|
2314
|
-
'<ol>' +
|
|
2315
|
-
'<li>a</li>' +
|
|
2316
|
-
'<li>b<br />' +
|
|
2317
|
-
'<ol>' +
|
|
2318
|
-
'<li>c</li>' +
|
|
2319
|
-
'<li>d</li>' +
|
|
2320
|
-
'</ol>' +
|
|
2321
|
-
'</li>' +
|
|
2322
|
-
'</ol>'
|
|
2323
|
-
);
|
|
2324
|
-
TinySelections.setSelection(editor, [ 0, 0 ], 0, [ 0, 1, 2, 0 ], 1);
|
|
2325
|
-
editor.formatter.apply('aligncenter');
|
|
2326
|
-
assert.equal(getContent(editor),
|
|
2327
|
-
'<ol>' +
|
|
2328
|
-
'<li style="text-align: center;">a</li>' +
|
|
2329
|
-
'<li style="text-align: center;">b<br>' +
|
|
2330
|
-
'<ol>' +
|
|
2331
|
-
'<li style="text-align: center;">c</li>' +
|
|
2332
|
-
'<li>d</li>' +
|
|
2333
|
-
'</ol>' +
|
|
2334
|
-
'</li>' +
|
|
2335
|
-
'</ol>'
|
|
2336
|
-
);
|
|
2337
|
-
});
|
|
2338
|
-
|
|
2339
|
-
it('TINY-7393: Apply aligncenter to lists with other formatting', () => {
|
|
2340
|
-
const editor = hook.editor();
|
|
2341
|
-
editor.setContent(
|
|
2342
|
-
'<ul>' +
|
|
2343
|
-
'<li>a</li>' +
|
|
2344
|
-
'<li><strong>b</strong><br />' +
|
|
2345
|
-
'<ul>' +
|
|
2346
|
-
'<li>c</li>' +
|
|
2347
|
-
'<li>d</li>' +
|
|
2348
|
-
'</ul>' +
|
|
2349
|
-
'</li>' +
|
|
2350
|
-
'</ul>'
|
|
2351
|
-
);
|
|
2352
|
-
TinySelections.setSelection(editor, [ 0, 0 ], 0, [ 0, 1, 2, 1 ], 1);
|
|
2353
|
-
editor.formatter.apply('aligncenter');
|
|
2354
|
-
assert.equal(getContent(editor),
|
|
2355
|
-
'<ul>' +
|
|
2356
|
-
'<li style="text-align: center;">a</li>' +
|
|
2357
|
-
'<li style="text-align: center;"><strong>b</strong><br>' +
|
|
2358
|
-
'<ul>' +
|
|
2359
|
-
'<li style="text-align: center;">c</li>' +
|
|
2360
|
-
'<li style="text-align: center;">d</li>' +
|
|
2361
|
-
'</ul>' +
|
|
2362
|
-
'</li>' +
|
|
2363
|
-
'</ul>'
|
|
2364
|
-
);
|
|
2365
|
-
});
|
|
2366
|
-
|
|
2367
|
-
it('TINY-6567: Apply alignright to the last li but not to its children', () => {
|
|
2368
|
-
const editor = hook.editor();
|
|
2369
|
-
editor.setContent(
|
|
2370
|
-
'<ul>' +
|
|
2371
|
-
'<li>a</li>' +
|
|
2372
|
-
'<li>b<br />' +
|
|
2373
|
-
'<ul>' +
|
|
2374
|
-
'<li>c</li>' +
|
|
2375
|
-
'</ul>' +
|
|
2376
|
-
'</li>' +
|
|
2377
|
-
'</ul>'
|
|
2378
|
-
);
|
|
2379
|
-
TinySelections.setSelection(editor, [ 0, 0 ], 0, [ 0, 1 ], 1);
|
|
2380
|
-
editor.formatter.apply('alignright');
|
|
2381
|
-
assert.equal(getContent(editor),
|
|
2382
|
-
'<ul>' +
|
|
2383
|
-
'<li style="text-align: right;">a</li>' +
|
|
2384
|
-
'<li style="text-align: right;">b<br>' +
|
|
2385
|
-
'<ul>' +
|
|
2386
|
-
'<li>c</li>' +
|
|
2387
|
-
'</ul>' +
|
|
2388
|
-
'</li>' +
|
|
2389
|
-
'</ul>'
|
|
2390
|
-
);
|
|
2391
|
-
});
|
|
2392
|
-
|
|
2393
|
-
it('TINY-6567: Apply h1 to nested list with multiple levels', () => {
|
|
2394
|
-
const editor = hook.editor();
|
|
2395
|
-
editor.setContent(
|
|
2396
|
-
'<ul>' +
|
|
2397
|
-
'<li>1</li>' +
|
|
2398
|
-
'<li>2' +
|
|
2399
|
-
'<ul>' +
|
|
2400
|
-
'<li>a</li>' +
|
|
2401
|
-
'<li>b' +
|
|
2402
|
-
'<ul>' +
|
|
2403
|
-
'<li>i</li>' +
|
|
2404
|
-
'<li>ii</li>' +
|
|
2405
|
-
'</ul>' +
|
|
2406
|
-
'</li>' +
|
|
2407
|
-
'</ul>' +
|
|
2408
|
-
'</li>' +
|
|
2409
|
-
'</ul>'
|
|
2410
|
-
);
|
|
2411
|
-
TinySelections.setSelection(editor, [ 0, 0 ], 0, [ 0, 1, 1, 1, 1, 1 ], 0);
|
|
2412
|
-
editor.formatter.apply('h1');
|
|
2413
|
-
assert.equal(getContent(editor),
|
|
2414
|
-
'<ul>' +
|
|
2415
|
-
'<li><h1>1</h1></li>' +
|
|
2416
|
-
'<li><h1>2</h1>' +
|
|
2417
|
-
'<ul>' +
|
|
2418
|
-
'<li><h1>a</h1></li>' +
|
|
2419
|
-
'<li><h1>b</h1>' +
|
|
2420
|
-
'<ul>' +
|
|
2421
|
-
'<li><h1>i</h1></li>' +
|
|
2422
|
-
'<li><h1>ii</h1></li>' +
|
|
2423
|
-
'</ul>' +
|
|
2424
|
-
'</li>' +
|
|
2425
|
-
'</ul>' +
|
|
2426
|
-
'</li>' +
|
|
2427
|
-
'</ul>'
|
|
2428
|
-
);
|
|
2429
|
-
});
|
|
2430
|
-
|
|
2431
|
-
it('TINY-6567: Apply align center to a div structure', () => {
|
|
2432
|
-
const editor = hook.editor();
|
|
2433
|
-
editor.setContent(
|
|
2434
|
-
'<div>' +
|
|
2435
|
-
'<div>a</div>' +
|
|
2436
|
-
'<div><br />b' +
|
|
2437
|
-
'<div>1</div>' +
|
|
2438
|
-
'</div>' +
|
|
2439
|
-
'<div>c</div>' +
|
|
2440
|
-
'<div>d</div>' +
|
|
2441
|
-
'</div>'
|
|
2442
|
-
);
|
|
2443
|
-
TinySelections.setSelection(editor, [ 0, 0 ], 0, [ 0, 1, 2, 0 ], 0);
|
|
2444
|
-
editor.formatter.apply('aligncenter');
|
|
2445
|
-
assert.equal(getContent(editor),
|
|
2446
|
-
'<div>' +
|
|
2447
|
-
'<div style="text-align: center;">a</div>' +
|
|
2448
|
-
'<div style="text-align: center;"><br>b' +
|
|
2449
|
-
'<div style="text-align: center;">1</div>' +
|
|
2450
|
-
'</div>' +
|
|
2451
|
-
'<div>c</div>' +
|
|
2452
|
-
'<div>d</div>' +
|
|
2453
|
-
'</div>'
|
|
2454
|
-
);
|
|
2455
|
-
});
|
|
2456
|
-
|
|
2457
|
-
it('TINY-6567: Apply inline element with font size to a div structure with a partial selection', () => {
|
|
2458
|
-
const editor = hook.editor();
|
|
2459
|
-
editor.setContent(
|
|
2460
|
-
'<div>' +
|
|
2461
|
-
'<div>a</div>' +
|
|
2462
|
-
'<div>b' +
|
|
2463
|
-
'<div>c</div>' +
|
|
2464
|
-
'<div>d</div>' +
|
|
2465
|
-
'<div>e</div>' +
|
|
2466
|
-
'</div>' +
|
|
2467
|
-
'</div>'
|
|
2468
|
-
);
|
|
2469
|
-
TinySelections.setSelection(editor, [ 0, 0 ], 0, [ 0, 1, 1 ], 1);
|
|
2470
|
-
editor.formatter.register('formatTest', {
|
|
2471
|
-
inline: 'b',
|
|
2472
|
-
styles: {
|
|
2473
|
-
fontSize: '14px'
|
|
2474
|
-
}
|
|
2475
|
-
});
|
|
2476
|
-
editor.formatter.apply('formatTest');
|
|
2477
|
-
assert.equal(getContent(editor),
|
|
2478
|
-
'<div>' +
|
|
2479
|
-
'<div><b style="font-size: 14px;">a</b></div>' +
|
|
2480
|
-
'<div><b style="font-size: 14px;">b</b>' +
|
|
2481
|
-
'<div><b style="font-size: 14px;">c</b></div>' +
|
|
2482
|
-
'<div>d</div>' +
|
|
2483
|
-
'<div>e</div>' +
|
|
2484
|
-
'</div>' +
|
|
2485
|
-
'</div>'
|
|
2486
|
-
);
|
|
2487
|
-
});
|
|
2488
|
-
|
|
2489
|
-
it('TINY-7227: Apply classes with variables', () => {
|
|
2490
|
-
const editor = hook.editor();
|
|
2491
|
-
editor.focus();
|
|
2492
|
-
editor.formatter.register('formatA', { selector: 'p', classes: [ '%value' ] });
|
|
2493
|
-
|
|
2494
|
-
editor.setContent('<p>test</p>');
|
|
2495
|
-
LegacyUnit.setSelection(editor, 'p', 0, 'p', 0);
|
|
2496
|
-
|
|
2497
|
-
editor.formatter.apply('formatA', { value: 'a' });
|
|
2498
|
-
editor.formatter.apply('formatA', { value: 'b' });
|
|
2499
|
-
assert.equal(getContent(editor), '<p class="a b">test</p>');
|
|
2500
|
-
});
|
|
2501
|
-
|
|
2502
|
-
it('TINY-8036: Apply blockquote with multiple words and collapsed selection', () => {
|
|
2503
|
-
const editor = hook.editor();
|
|
2504
|
-
editor.setContent('<p>test test</p>');
|
|
2505
|
-
TinySelections.setCursor(editor, [ 0, 0 ], 7);
|
|
2506
|
-
editor.formatter.apply('blockquote');
|
|
2507
|
-
TinyAssertions.assertContent(editor, '<blockquote><p>test test</p></blockquote>');
|
|
2508
|
-
});
|
|
2509
|
-
|
|
2510
|
-
it('TINY-9678: Should be a noop if selection is not in an editable context', () => {
|
|
2511
|
-
TinyState.withNoneditableRootEditor(hook.editor(), (editor) => {
|
|
2512
|
-
const initialContent = '<p>test</p><p contenteditable="true">editable</p>';
|
|
2513
|
-
editor.setContent(initialContent);
|
|
2514
|
-
TinySelections.setSelection(editor, [ 0, 0 ], 0, [ 0, 0 ], 4);
|
|
2515
|
-
editor.formatter.apply('bold');
|
|
2516
|
-
TinyAssertions.assertContent(editor, initialContent);
|
|
2517
|
-
});
|
|
2518
|
-
});
|
|
2519
|
-
|
|
2520
|
-
it('TINY-9887: Should not be noop if selection is not in an editable context but a custom editable node is specified', () => {
|
|
2521
|
-
TinyState.withNoneditableRootEditor(hook.editor(), (editor) => {
|
|
2522
|
-
editor.setContent('<p>test</p><p contenteditable="true">editable</p>');
|
|
2523
|
-
TinySelections.setSelection(editor, [ 0, 0 ], 0, [ 0, 0 ], 4);
|
|
2524
|
-
editor.formatter.apply('bold', {}, Hierarchy.follow(TinyDom.body(editor), [ 1 ]).getOrDie().dom);
|
|
2525
|
-
TinyAssertions.assertContent(editor, '<p>test</p><p contenteditable="true"><strong>editable</strong></p>');
|
|
2526
|
-
});
|
|
2527
|
-
});
|
|
2528
|
-
|
|
2529
|
-
it('TINY-10154: should apply heading formatting to summary content', () => {
|
|
2530
|
-
const editor = hook.editor();
|
|
2531
|
-
editor.setContent('<details><summary>hello<em>world</em></summary>body</details>');
|
|
2532
|
-
TinySelections.setCursor(editor, [ 0, 0 ], 1);
|
|
2533
|
-
editor.formatter.apply('h1');
|
|
2534
|
-
TinyAssertions.assertContent(editor, '<details><summary><h1>hello<em>world</em></h1></summary>body</details>');
|
|
2535
|
-
});
|
|
2536
|
-
|
|
2537
|
-
context('TINY-10312: should not partially apply block format when caret is positioned between words', () => {
|
|
2538
|
-
it('TINY-10312: should apply heading formatting to whole `summary` content', () => {
|
|
2539
|
-
const editor = hook.editor();
|
|
2540
|
-
editor.setContent('<details><summary>a bc d</summary>body</details>');
|
|
2541
|
-
TinySelections.setCursor(editor, [ 0, 0, 0 ], 1);
|
|
2542
|
-
editor.formatter.apply('h1');
|
|
2543
|
-
TinyAssertions.assertContent(editor, '<details><summary><h1>a bc d</h1></summary>body</details>');
|
|
2544
|
-
});
|
|
2545
|
-
|
|
2546
|
-
it('TINY-10312: should apply `pre` formatting to whole table cell content', () => {
|
|
2547
|
-
const editor = hook.editor();
|
|
2548
|
-
editor.setContent('<table><tbody><tr><td>a bc d</td></tr></tbody></table>');
|
|
2549
|
-
TinySelections.setCursor(editor, [ 0, 0, 0, 0, 0 ], 2);
|
|
2550
|
-
editor.formatter.apply('pre');
|
|
2551
|
-
TinyAssertions.assertContent(editor, '<table><tbody><tr><td><pre>a bc d</pre></td></tr></tbody></table>');
|
|
2552
|
-
});
|
|
2553
|
-
|
|
2554
|
-
it('TINY-10312: should apply `blockquote` formatting to whole list item content', () => {
|
|
2555
|
-
const editor = hook.editor();
|
|
2556
|
-
editor.setContent('<ul><li>a bc d</li></ul>');
|
|
2557
|
-
TinySelections.setCursor(editor, [ 0, 0, 0 ], 4);
|
|
2558
|
-
editor.formatter.apply('blockquote');
|
|
2559
|
-
TinyAssertions.assertContent(editor, '<ul><li><blockquote>a bc d</blockquote></li></ul>');
|
|
2560
|
-
});
|
|
2561
|
-
});
|
|
2562
|
-
|
|
2563
|
-
});
|