eztech-core-components 1.0.0
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/assets/css/index.css +405 -0
- package/ckeditor/CHANGES.md +2339 -0
- package/ckeditor/LICENSE.md +1444 -0
- package/ckeditor/MongolianScript.ttf +0 -0
- package/ckeditor/README.md +39 -0
- package/ckeditor/SECURITY.md +10 -0
- package/ckeditor/adapters/jquery.js +10 -0
- package/ckeditor/bender-runner.config.json +16 -0
- package/ckeditor/build-config.js +193 -0
- package/ckeditor/ckcontent.css +71 -0
- package/ckeditor/ckeditor.js +1446 -0
- package/ckeditor/cmdashitseden.ttf +0 -0
- package/ckeditor/config.js +21 -0
- package/ckeditor/contents.css +220 -0
- package/ckeditor/lang/af.js +5 -0
- package/ckeditor/lang/ar.js +5 -0
- package/ckeditor/lang/az.js +5 -0
- package/ckeditor/lang/bg.js +5 -0
- package/ckeditor/lang/bn.js +5 -0
- package/ckeditor/lang/bs.js +5 -0
- package/ckeditor/lang/ca.js +5 -0
- package/ckeditor/lang/cs.js +5 -0
- package/ckeditor/lang/cy.js +5 -0
- package/ckeditor/lang/da.js +5 -0
- package/ckeditor/lang/de-ch.js +5 -0
- package/ckeditor/lang/de.js +5 -0
- package/ckeditor/lang/el.js +5 -0
- package/ckeditor/lang/en-au.js +5 -0
- package/ckeditor/lang/en-ca.js +5 -0
- package/ckeditor/lang/en-gb.js +5 -0
- package/ckeditor/lang/en.js +5 -0
- package/ckeditor/lang/eo.js +5 -0
- package/ckeditor/lang/es-mx.js +5 -0
- package/ckeditor/lang/es.js +5 -0
- package/ckeditor/lang/et.js +5 -0
- package/ckeditor/lang/eu.js +5 -0
- package/ckeditor/lang/fa.js +5 -0
- package/ckeditor/lang/fi.js +5 -0
- package/ckeditor/lang/fo.js +5 -0
- package/ckeditor/lang/fr-ca.js +5 -0
- package/ckeditor/lang/fr.js +5 -0
- package/ckeditor/lang/gl.js +5 -0
- package/ckeditor/lang/gu.js +5 -0
- package/ckeditor/lang/he.js +5 -0
- package/ckeditor/lang/hi.js +5 -0
- package/ckeditor/lang/hr.js +5 -0
- package/ckeditor/lang/hu.js +5 -0
- package/ckeditor/lang/id.js +5 -0
- package/ckeditor/lang/is.js +5 -0
- package/ckeditor/lang/it.js +5 -0
- package/ckeditor/lang/ja.js +5 -0
- package/ckeditor/lang/ka.js +5 -0
- package/ckeditor/lang/km.js +5 -0
- package/ckeditor/lang/ko.js +5 -0
- package/ckeditor/lang/ku.js +5 -0
- package/ckeditor/lang/lt.js +5 -0
- package/ckeditor/lang/lv.js +5 -0
- package/ckeditor/lang/mk.js +5 -0
- package/ckeditor/lang/mn.js +5 -0
- package/ckeditor/lang/ms.js +5 -0
- package/ckeditor/lang/nb.js +5 -0
- package/ckeditor/lang/nl.js +5 -0
- package/ckeditor/lang/no.js +5 -0
- package/ckeditor/lang/oc.js +5 -0
- package/ckeditor/lang/pl.js +5 -0
- package/ckeditor/lang/pt-br.js +5 -0
- package/ckeditor/lang/pt.js +5 -0
- package/ckeditor/lang/ro.js +5 -0
- package/ckeditor/lang/ru.js +5 -0
- package/ckeditor/lang/si.js +5 -0
- package/ckeditor/lang/sk.js +5 -0
- package/ckeditor/lang/sl.js +5 -0
- package/ckeditor/lang/sq.js +5 -0
- package/ckeditor/lang/sr-latn.js +5 -0
- package/ckeditor/lang/sr.js +5 -0
- package/ckeditor/lang/sv.js +5 -0
- package/ckeditor/lang/th.js +5 -0
- package/ckeditor/lang/tr.js +5 -0
- package/ckeditor/lang/tt.js +5 -0
- package/ckeditor/lang/ug.js +5 -0
- package/ckeditor/lang/uk.js +5 -0
- package/ckeditor/lang/vi.js +5 -0
- package/ckeditor/lang/zh-cn.js +5 -0
- package/ckeditor/lang/zh.js +5 -0
- package/ckeditor/monbaiti.ttf +0 -0
- package/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +10 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +25 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/af.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/az.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/de-ch.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/en-au.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/en-gb.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/es-mx.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/eu.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/fo.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/gl.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/id.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +9 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js +10 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/oc.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/si.js +10 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/tt.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +9 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js +9 -0
- package/ckeditor/plugins/about/dialogs/about.js +8 -0
- package/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
- package/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- package/ckeditor/plugins/clipboard/dialogs/paste.js +11 -0
- package/ckeditor/plugins/colordialog/dialogs/colordialog.css +20 -0
- package/ckeditor/plugins/colordialog/dialogs/colordialog.js +14 -0
- package/ckeditor/plugins/copyformatting/cursors/cursor-disabled.svg +25 -0
- package/ckeditor/plugins/copyformatting/cursors/cursor.svg +14 -0
- package/ckeditor/plugins/copyformatting/styles/copyformatting.css +45 -0
- package/ckeditor/plugins/dialog/dialogDefinition.js +4 -0
- package/ckeditor/plugins/dialog/styles/dialog.css +18 -0
- package/ckeditor/plugins/div/dialogs/div.js +10 -0
- package/ckeditor/plugins/find/dialogs/find.js +26 -0
- package/ckeditor/plugins/forms/dialogs/button.js +8 -0
- package/ckeditor/plugins/forms/dialogs/checkbox.js +9 -0
- package/ckeditor/plugins/forms/dialogs/form.js +8 -0
- package/ckeditor/plugins/forms/dialogs/hiddenfield.js +7 -0
- package/ckeditor/plugins/forms/dialogs/radio.js +9 -0
- package/ckeditor/plugins/forms/dialogs/select.js +21 -0
- package/ckeditor/plugins/forms/dialogs/textarea.js +9 -0
- package/ckeditor/plugins/forms/dialogs/textfield.js +11 -0
- package/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
- package/ckeditor/plugins/icons.png +0 -0
- package/ckeditor/plugins/icons_hidpi.png +0 -0
- package/ckeditor/plugins/iframe/dialogs/iframe.js +11 -0
- package/ckeditor/plugins/iframe/images/placeholder.png +0 -0
- package/ckeditor/plugins/image/dialogs/image.js +44 -0
- package/ckeditor/plugins/image/images/noimage.png +0 -0
- package/ckeditor/plugins/indent/dev/indent.html +285 -0
- package/ckeditor/plugins/indent/icons/hidpi/indent-rtl.png +0 -0
- package/ckeditor/plugins/indent/icons/hidpi/indent.png +0 -0
- package/ckeditor/plugins/indent/icons/hidpi/outdent-rtl.png +0 -0
- package/ckeditor/plugins/indent/icons/hidpi/outdent.png +0 -0
- package/ckeditor/plugins/indent/icons/indent-rtl.png +0 -0
- package/ckeditor/plugins/indent/icons/indent.png +0 -0
- package/ckeditor/plugins/indent/icons/outdent-rtl.png +0 -0
- package/ckeditor/plugins/indent/icons/outdent.png +0 -0
- package/ckeditor/plugins/indent/lang/af.js +8 -0
- package/ckeditor/plugins/indent/lang/ar.js +8 -0
- package/ckeditor/plugins/indent/lang/az.js +8 -0
- package/ckeditor/plugins/indent/lang/bg.js +8 -0
- package/ckeditor/plugins/indent/lang/bn.js +8 -0
- package/ckeditor/plugins/indent/lang/bs.js +8 -0
- package/ckeditor/plugins/indent/lang/ca.js +8 -0
- package/ckeditor/plugins/indent/lang/cs.js +8 -0
- package/ckeditor/plugins/indent/lang/cy.js +8 -0
- package/ckeditor/plugins/indent/lang/da.js +8 -0
- package/ckeditor/plugins/indent/lang/de-ch.js +8 -0
- package/ckeditor/plugins/indent/lang/de.js +8 -0
- package/ckeditor/plugins/indent/lang/el.js +8 -0
- package/ckeditor/plugins/indent/lang/en-au.js +8 -0
- package/ckeditor/plugins/indent/lang/en-ca.js +8 -0
- package/ckeditor/plugins/indent/lang/en-gb.js +8 -0
- package/ckeditor/plugins/indent/lang/en.js +8 -0
- package/ckeditor/plugins/indent/lang/eo.js +8 -0
- package/ckeditor/plugins/indent/lang/es-mx.js +8 -0
- package/ckeditor/plugins/indent/lang/es.js +8 -0
- package/ckeditor/plugins/indent/lang/et.js +8 -0
- package/ckeditor/plugins/indent/lang/eu.js +8 -0
- package/ckeditor/plugins/indent/lang/fa.js +8 -0
- package/ckeditor/plugins/indent/lang/fi.js +8 -0
- package/ckeditor/plugins/indent/lang/fo.js +8 -0
- package/ckeditor/plugins/indent/lang/fr-ca.js +8 -0
- package/ckeditor/plugins/indent/lang/fr.js +8 -0
- package/ckeditor/plugins/indent/lang/gl.js +8 -0
- package/ckeditor/plugins/indent/lang/gu.js +8 -0
- package/ckeditor/plugins/indent/lang/he.js +8 -0
- package/ckeditor/plugins/indent/lang/hi.js +8 -0
- package/ckeditor/plugins/indent/lang/hr.js +8 -0
- package/ckeditor/plugins/indent/lang/hu.js +8 -0
- package/ckeditor/plugins/indent/lang/id.js +8 -0
- package/ckeditor/plugins/indent/lang/is.js +8 -0
- package/ckeditor/plugins/indent/lang/it.js +8 -0
- package/ckeditor/plugins/indent/lang/ja.js +8 -0
- package/ckeditor/plugins/indent/lang/ka.js +8 -0
- package/ckeditor/plugins/indent/lang/km.js +8 -0
- package/ckeditor/plugins/indent/lang/ko.js +8 -0
- package/ckeditor/plugins/indent/lang/ku.js +8 -0
- package/ckeditor/plugins/indent/lang/lt.js +8 -0
- package/ckeditor/plugins/indent/lang/lv.js +8 -0
- package/ckeditor/plugins/indent/lang/mk.js +8 -0
- package/ckeditor/plugins/indent/lang/mn.js +8 -0
- package/ckeditor/plugins/indent/lang/ms.js +8 -0
- package/ckeditor/plugins/indent/lang/nb.js +8 -0
- package/ckeditor/plugins/indent/lang/nl.js +8 -0
- package/ckeditor/plugins/indent/lang/no.js +8 -0
- package/ckeditor/plugins/indent/lang/oc.js +8 -0
- package/ckeditor/plugins/indent/lang/pl.js +8 -0
- package/ckeditor/plugins/indent/lang/pt-br.js +8 -0
- package/ckeditor/plugins/indent/lang/pt.js +8 -0
- package/ckeditor/plugins/indent/lang/ro.js +8 -0
- package/ckeditor/plugins/indent/lang/ru.js +8 -0
- package/ckeditor/plugins/indent/lang/si.js +8 -0
- package/ckeditor/plugins/indent/lang/sk.js +8 -0
- package/ckeditor/plugins/indent/lang/sl.js +8 -0
- package/ckeditor/plugins/indent/lang/sq.js +8 -0
- package/ckeditor/plugins/indent/lang/sr-latn.js +8 -0
- package/ckeditor/plugins/indent/lang/sr.js +8 -0
- package/ckeditor/plugins/indent/lang/sv.js +8 -0
- package/ckeditor/plugins/indent/lang/th.js +8 -0
- package/ckeditor/plugins/indent/lang/tr.js +8 -0
- package/ckeditor/plugins/indent/lang/tt.js +8 -0
- package/ckeditor/plugins/indent/lang/ug.js +8 -0
- package/ckeditor/plugins/indent/lang/uk.js +8 -0
- package/ckeditor/plugins/indent/lang/vi.js +8 -0
- package/ckeditor/plugins/indent/lang/zh-cn.js +8 -0
- package/ckeditor/plugins/indent/lang/zh.js +8 -0
- package/ckeditor/plugins/indent/plugin.js +461 -0
- package/ckeditor/plugins/justify/icons/hidpi/justifyblock.png +0 -0
- package/ckeditor/plugins/justify/icons/hidpi/justifycenter.png +0 -0
- package/ckeditor/plugins/justify/icons/hidpi/justifyleft.png +0 -0
- package/ckeditor/plugins/justify/icons/hidpi/justifyright.png +0 -0
- package/ckeditor/plugins/justify/icons/justifyblock.png +0 -0
- package/ckeditor/plugins/justify/icons/justifycenter.png +0 -0
- package/ckeditor/plugins/justify/icons/justifyleft.png +0 -0
- package/ckeditor/plugins/justify/icons/justifyright.png +0 -0
- package/ckeditor/plugins/justify/plugin.js +269 -0
- package/ckeditor/plugins/lineheight/LICENSE +22 -0
- package/ckeditor/plugins/lineheight/README.md +2 -0
- package/ckeditor/plugins/lineheight/lang/LANG.js +3 -0
- package/ckeditor/plugins/lineheight/lang/ar.js +3 -0
- package/ckeditor/plugins/lineheight/lang/de.js +3 -0
- package/ckeditor/plugins/lineheight/lang/en.js +3 -0
- package/ckeditor/plugins/lineheight/lang/es.js +3 -0
- package/ckeditor/plugins/lineheight/lang/fr.js +3 -0
- package/ckeditor/plugins/lineheight/lang/ko.js +3 -0
- package/ckeditor/plugins/lineheight/lang/pt.js +3 -0
- package/ckeditor/plugins/lineheight/plugin.js +81 -0
- package/ckeditor/plugins/lineheight/readme.txt +30 -0
- package/ckeditor/plugins/link/dialogs/anchor.js +9 -0
- package/ckeditor/plugins/link/dialogs/link.js +30 -0
- package/ckeditor/plugins/link/images/anchor.png +0 -0
- package/ckeditor/plugins/link/images/hidpi/anchor.png +0 -0
- package/ckeditor/plugins/liststyle/dialogs/liststyle.js +10 -0
- package/ckeditor/plugins/magicline/images/hidpi/icon-rtl.png +0 -0
- package/ckeditor/plugins/magicline/images/hidpi/icon.png +0 -0
- package/ckeditor/plugins/magicline/images/icon-rtl.png +0 -0
- package/ckeditor/plugins/magicline/images/icon.png +0 -0
- package/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
- package/ckeditor/plugins/pastefromgdocs/filter/default.js +8 -0
- package/ckeditor/plugins/pastefromlibreoffice/filter/default.js +11 -0
- package/ckeditor/plugins/pastefromword/filter/default.js +43 -0
- package/ckeditor/plugins/pastetools/filter/common.js +24 -0
- package/ckeditor/plugins/pastetools/filter/image.js +12 -0
- package/ckeditor/plugins/preview/images/pagebreak.gif +0 -0
- package/ckeditor/plugins/preview/preview.html +13 -0
- package/ckeditor/plugins/preview/styles/screen.css +10 -0
- package/ckeditor/plugins/scayt/CHANGELOG.md +4 -0
- package/ckeditor/plugins/scayt/LICENSE.md +28 -0
- package/ckeditor/plugins/scayt/README.md +81 -0
- package/ckeditor/plugins/scayt/dialogs/dialog.css +23 -0
- package/ckeditor/plugins/scayt/dialogs/options.js +32 -0
- package/ckeditor/plugins/scayt/dialogs/toolbar.css +71 -0
- package/ckeditor/plugins/scayt/skins/moono-lisa/scayt.css +25 -0
- package/ckeditor/plugins/showblocks/images/block_address.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_div.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_p.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
- package/ckeditor/plugins/simage/LICENSE +674 -0
- package/ckeditor/plugins/simage/README.md +73 -0
- package/ckeditor/plugins/simage/icons/simage.png +0 -0
- package/ckeditor/plugins/simage/plugin.js +154 -0
- package/ckeditor/plugins/smiley/dialogs/smiley.js +11 -0
- package/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/angel_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/angry_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
- package/ckeditor/plugins/smiley/images/broken_heart.png +0 -0
- package/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/confused_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/cry_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/devil_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/embarrassed_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/embarrassed_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/envelope.gif +0 -0
- package/ckeditor/plugins/smiley/images/envelope.png +0 -0
- package/ckeditor/plugins/smiley/images/heart.gif +0 -0
- package/ckeditor/plugins/smiley/images/heart.png +0 -0
- package/ckeditor/plugins/smiley/images/kiss.gif +0 -0
- package/ckeditor/plugins/smiley/images/kiss.png +0 -0
- package/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
- package/ckeditor/plugins/smiley/images/lightbulb.png +0 -0
- package/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/omg_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/regular_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/sad_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/shades_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/teeth_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
- package/ckeditor/plugins/smiley/images/thumbs_down.png +0 -0
- package/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
- package/ckeditor/plugins/smiley/images/thumbs_up.png +0 -0
- package/ckeditor/plugins/smiley/images/tongue_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/tongue_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/wink_smile.png +0 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt +20 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/af.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/ar.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/az.js +10 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/bg.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/ca.js +14 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/cs.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/cy.js +14 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/da.js +11 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/de-ch.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/de.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/el.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/en-au.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/en-ca.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/en-gb.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/en.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/eo.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/es-mx.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/es.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/et.js +11 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/eu.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/fa.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/fi.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js +10 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/fr.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/gl.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/he.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/hr.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/hu.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/id.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/it.js +14 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/ja.js +9 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/km.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/ko.js +10 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/ku.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/lt.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/lv.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/nb.js +11 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/nl.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/no.js +11 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/oc.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/pl.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +11 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/pt.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/ro.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/ru.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/si.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/sk.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/sl.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/sq.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/sr-latn.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/sr.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/sv.js +11 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/th.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/tr.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/tt.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/ug.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/uk.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/vi.js +14 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +9 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/zh.js +9 -0
- package/ckeditor/plugins/specialchar/dialogs/specialchar.js +14 -0
- package/ckeditor/plugins/table/dialogs/table.js +22 -0
- package/ckeditor/plugins/tableselection/styles/tableselection.css +36 -0
- package/ckeditor/plugins/tabletools/dialogs/tableCell.js +18 -0
- package/ckeditor/plugins/templates/dialogs/templates.css +84 -0
- package/ckeditor/plugins/templates/dialogs/templates.js +11 -0
- package/ckeditor/plugins/templates/templatedefinition.js +4 -0
- package/ckeditor/plugins/templates/templates/default.js +7 -0
- package/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
- package/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
- package/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
- package/ckeditor/plugins/textindent/icons/hidpi/textindent.png +0 -0
- package/ckeditor/plugins/textindent/icons/textindent.png +0 -0
- package/ckeditor/plugins/textindent/lang/en.js +3 -0
- package/ckeditor/plugins/textindent/lang/pt-br.js +3 -0
- package/ckeditor/plugins/textindent/plugin.js +99 -0
- package/ckeditor/plugins/widget/images/handle.png +0 -0
- package/ckeditor/samples/css/samples.css +1637 -0
- package/ckeditor/samples/img/github-top.png +0 -0
- package/ckeditor/samples/img/header-bg.png +0 -0
- package/ckeditor/samples/img/header-separator.png +0 -0
- package/ckeditor/samples/img/logo.png +0 -0
- package/ckeditor/samples/img/logo.svg +13 -0
- package/ckeditor/samples/img/navigation-tip.png +0 -0
- package/ckeditor/samples/index.html +130 -0
- package/ckeditor/samples/js/sample.js +53 -0
- package/ckeditor/samples/js/sf.js +17 -0
- package/ckeditor/samples/old/ajax.html +85 -0
- package/ckeditor/samples/old/api.html +210 -0
- package/ckeditor/samples/old/appendto.html +59 -0
- package/ckeditor/samples/old/assets/inlineall/logo.png +0 -0
- package/ckeditor/samples/old/assets/outputxhtml/outputxhtml.css +204 -0
- package/ckeditor/samples/old/assets/posteddata.php +60 -0
- package/ckeditor/samples/old/assets/sample.jpg +0 -0
- package/ckeditor/samples/old/assets/uilanguages/languages.js +7 -0
- package/ckeditor/samples/old/datafiltering.html +508 -0
- package/ckeditor/samples/old/dialog/assets/my_dialog.js +48 -0
- package/ckeditor/samples/old/dialog/dialog.html +190 -0
- package/ckeditor/samples/old/divreplace.html +144 -0
- package/ckeditor/samples/old/enterkey/enterkey.html +106 -0
- package/ckeditor/samples/old/htmlwriter/outputhtml.html +224 -0
- package/ckeditor/samples/old/index.html +129 -0
- package/ckeditor/samples/old/inlineall.html +314 -0
- package/ckeditor/samples/old/inlinebycode.html +124 -0
- package/ckeditor/samples/old/inlinetextarea.html +113 -0
- package/ckeditor/samples/old/jquery.html +103 -0
- package/ckeditor/samples/old/magicline/magicline.html +209 -0
- package/ckeditor/samples/old/readonly.html +76 -0
- package/ckeditor/samples/old/replacebyclass.html +60 -0
- package/ckeditor/samples/old/replacebycode.html +59 -0
- package/ckeditor/samples/old/sample.css +357 -0
- package/ckeditor/samples/old/sample.js +50 -0
- package/ckeditor/samples/old/sample_posteddata.php +16 -0
- package/ckeditor/samples/old/tabindex.html +78 -0
- package/ckeditor/samples/old/toolbar/toolbar.html +235 -0
- package/ckeditor/samples/old/uicolor.html +72 -0
- package/ckeditor/samples/old/uilanguages.html +122 -0
- package/ckeditor/samples/old/wysiwygarea/fullpage.html +80 -0
- package/ckeditor/samples/old/xhtmlstyle.html +234 -0
- package/ckeditor/samples/toolbarconfigurator/css/fontello.css +55 -0
- package/ckeditor/samples/toolbarconfigurator/font/LICENSE.txt +10 -0
- package/ckeditor/samples/toolbarconfigurator/font/config.json +28 -0
- package/ckeditor/samples/toolbarconfigurator/font/fontello.eot +0 -0
- package/ckeditor/samples/toolbarconfigurator/font/fontello.svg +14 -0
- package/ckeditor/samples/toolbarconfigurator/font/fontello.ttf +0 -0
- package/ckeditor/samples/toolbarconfigurator/font/fontello.woff +0 -0
- package/ckeditor/samples/toolbarconfigurator/index.html +447 -0
- package/ckeditor/samples/toolbarconfigurator/js/abstracttoolbarmodifier.js +13 -0
- package/ckeditor/samples/toolbarconfigurator/js/fulltoolbareditor.js +9 -0
- package/ckeditor/samples/toolbarconfigurator/js/toolbarmodifier.js +33 -0
- package/ckeditor/samples/toolbarconfigurator/js/toolbartextmodifier.js +14 -0
- package/ckeditor/samples/toolbarconfigurator/lib/codemirror/LICENSE +19 -0
- package/ckeditor/samples/toolbarconfigurator/lib/codemirror/codemirror.css +325 -0
- package/ckeditor/samples/toolbarconfigurator/lib/codemirror/codemirror.js +288 -0
- package/ckeditor/samples/toolbarconfigurator/lib/codemirror/javascript.js +25 -0
- package/ckeditor/samples/toolbarconfigurator/lib/codemirror/neo.css +36 -0
- package/ckeditor/samples/toolbarconfigurator/lib/codemirror/show-hint.css +38 -0
- package/ckeditor/samples/toolbarconfigurator/lib/codemirror/show-hint.js +16 -0
- package/ckeditor/skins/moono-lisa/dialog.css +5 -0
- package/ckeditor/skins/moono-lisa/dialog_ie.css +5 -0
- package/ckeditor/skins/moono-lisa/dialog_ie8.css +5 -0
- package/ckeditor/skins/moono-lisa/dialog_iequirks.css +5 -0
- package/ckeditor/skins/moono-lisa/editor.css +5 -0
- package/ckeditor/skins/moono-lisa/editor_gecko.css +5 -0
- package/ckeditor/skins/moono-lisa/editor_ie.css +5 -0
- package/ckeditor/skins/moono-lisa/editor_ie8.css +5 -0
- package/ckeditor/skins/moono-lisa/editor_iequirks.css +5 -0
- package/ckeditor/skins/moono-lisa/icons.png +0 -0
- package/ckeditor/skins/moono-lisa/icons_hidpi.png +0 -0
- package/ckeditor/skins/moono-lisa/images/arrow.png +0 -0
- package/ckeditor/skins/moono-lisa/images/close.png +0 -0
- package/ckeditor/skins/moono-lisa/images/hidpi/close.png +0 -0
- package/ckeditor/skins/moono-lisa/images/hidpi/lock-open.png +0 -0
- package/ckeditor/skins/moono-lisa/images/hidpi/lock.png +0 -0
- package/ckeditor/skins/moono-lisa/images/hidpi/refresh.png +0 -0
- package/ckeditor/skins/moono-lisa/images/lock-open.png +0 -0
- package/ckeditor/skins/moono-lisa/images/lock.png +0 -0
- package/ckeditor/skins/moono-lisa/images/refresh.png +0 -0
- package/ckeditor/skins/moono-lisa/images/spinner.gif +0 -0
- package/ckeditor/skins/moono-lisa/readme.md +46 -0
- package/ckeditor/styles.js +137 -0
- package/ckeditor/vendor/promise.js +13 -0
- package/comps/Animation/Checkbox.vue +37 -0
- package/comps/Animation/Radio.vue +30 -0
- package/comps/BooleanLabel.vue +40 -0
- package/comps/CardButton.vue +18 -0
- package/comps/CardImage.vue +40 -0
- package/comps/CardItem.vue +63 -0
- package/comps/CardList.vue +57 -0
- package/comps/CardNumber.vue +27 -0
- package/comps/Config/SelectColumns.vue +137 -0
- package/comps/CoreAgeMonth.vue +44 -0
- package/comps/CoreAppPassword.vue +31 -0
- package/comps/CoreAutocomplete.vue +93 -0
- package/comps/CoreCascader.vue +129 -0
- package/comps/CoreCascaderChildOrg.vue +165 -0
- package/comps/CoreCascaderChildPosition.vue +186 -0
- package/comps/CoreCkeditor.vue +324 -0
- package/comps/CoreColorPicker.vue +35 -0
- package/comps/CoreContextMenu.vue +81 -0
- package/comps/CoreDate.vue +56 -0
- package/comps/CoreDateRange.vue +34 -0
- package/comps/CoreDatetime.vue +34 -0
- package/comps/CoreDeepLink.vue +53 -0
- package/comps/CoreDurationJustified.vue +23 -0
- package/comps/CoreFiles.vue +497 -0
- package/comps/CoreFooter.vue +100 -0
- package/comps/CoreForm.vue +499 -0
- package/comps/CoreFormDialog.vue +140 -0
- package/comps/CoreFormFields.vue +306 -0
- package/comps/CoreFormItem.vue +114 -0
- package/comps/CoreFormItemCopy.vue +155 -0
- package/comps/CoreFormSub.vue +118 -0
- package/comps/CoreFormTable.vue +197 -0
- package/comps/CoreFormTableInline.vue +300 -0
- package/comps/CoreFormTableList.vue +268 -0
- package/comps/CoreIcon.vue +5 -0
- package/comps/CoreImage.vue +37 -0
- package/comps/CoreInlineNumber.vue +54 -0
- package/comps/CoreInputNumber.vue +49 -0
- package/comps/CoreInputSearch.vue +44 -0
- package/comps/CoreJson.vue +10 -0
- package/comps/CoreLoader.vue +153 -0
- package/comps/CoreLocked.vue +151 -0
- package/comps/CoreMergeConfirm.vue +59 -0
- package/comps/CoreMultipleInput.vue +51 -0
- package/comps/CorePanel.vue +33 -0
- package/comps/CorePdfDialog.vue +84 -0
- package/comps/CorePdfView.vue +52 -0
- package/comps/CoreRegexp.vue +41 -0
- package/comps/CoreSelect.vue +249 -0
- package/comps/CoreSelectEnum.vue +103 -0
- package/comps/CoreSelectGroup.vue +237 -0
- package/comps/CoreSelectGroupItem.vue +168 -0
- package/comps/CoreSelectGroupList.vue +386 -0
- package/comps/CoreSelectOrgEmp.vue +319 -0
- package/comps/CoreSelectTable.vue +277 -0
- package/comps/CoreSelectTree.vue +183 -0
- package/comps/CoreSelectTreeItem.vue +129 -0
- package/comps/CoreSelectTreeList.vue +149 -0
- package/comps/CoreSelectYear.vue +42 -0
- package/comps/CoreSignCertificate.vue +129 -0
- package/comps/CoreSpan.vue +31 -0
- package/comps/CoreStatus.vue +29 -0
- package/comps/CoreSwitch.vue +28 -0
- package/comps/CoreTable.vue +852 -0
- package/comps/CoreTableColumn.vue +78 -0
- package/comps/CoreTableColumnHeader.vue +25 -0
- package/comps/CoreTableColumnRow.vue +234 -0
- package/comps/CoreTableConfig.vue +248 -0
- package/comps/CoreTableImage.vue +89 -0
- package/comps/CoreTableSearch.vue +267 -0
- package/comps/CoreTableSearchDetail.vue +89 -0
- package/comps/CoreTableStatus.vue +71 -0
- package/comps/CoreUploadImage.vue +542 -0
- package/comps/CoreVideo.vue +44 -0
- package/comps/CoreVimeo.vue +135 -0
- package/comps/CoreVimeoLabel.vue +32 -0
- package/comps/CoreVueEditor.vue +106 -0
- package/comps/CoreXypService.vue +233 -0
- package/comps/CoreZoomImage.vue +99 -0
- package/comps/Custom/CrimeDescription.vue +195 -0
- package/comps/Custom/CrimeNum.vue +41 -0
- package/comps/Custom/EmployeeSelect.vue +243 -0
- package/comps/Custom/EmployeeText.vue +7 -0
- package/comps/Custom/EmployeeWorkFamilies.vue +36 -0
- package/comps/Custom/NationalLangSkills.vue +137 -0
- package/comps/Custom/TableLogs.vue +86 -0
- package/comps/Custom/UserClotheRow.vue +105 -0
- package/comps/Custom/UserClothes.vue +470 -0
- package/comps/Custom/UserRoles.vue +169 -0
- package/comps/Custom/UserSelect.vue +423 -0
- package/comps/Custom/UserSkills.vue +98 -0
- package/comps/MomentAddCode.vue +91 -0
- package/comps/SclHandbook.vue +135 -0
- package/comps/Sign/Dialog.vue +321 -0
- package/comps/Sign/Info.vue +43 -0
- package/comps/Sign/InfoDialog.vue +78 -0
- package/directives/el-dragDialog/drag.js +34 -0
- package/index.js +7 -0
- package/middleware/auth.js +28 -0
- package/middleware/confirm-leave.js +15 -0
- package/middleware/login.js +6 -0
- package/middleware/router.js +5 -0
- package/package.json +48 -0
- package/plugins/axios.js +51 -0
- package/plugins/chart.js +134 -0
- package/plugins/ckeditor.js +3 -0
- package/plugins/idle-logout.js +33 -0
- package/store/settings.js +236 -0
- package/store/user.js +215 -0
- package/utils/component-helper.js +336 -0
- package/utils/data-helper.js +236 -0
- package/utils/default-nuxt-config.js +116 -0
- package/utils/eslint-rules.js +12 -0
- package/utils/helpers.js +67 -0
- package/utils/message-helper.js +19 -0
- package/utils/number-helper.js +166 -0
- package/utils/number-texts.js +217 -0
- package/utils/regexps.js +86 -0
- package/utils/role-helper.js +52 -0
- package/utils/social-helper.js +58 -0
- package/utils/table-helper.js +1612 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<!--
|
|
3
|
+
Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
|
+
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
5
|
+
-->
|
|
6
|
+
<html lang="en">
|
|
7
|
+
<head>
|
|
8
|
+
<meta charset="utf-8">
|
|
9
|
+
<title>Using API to Customize Dialog Windows — CKEditor Sample</title>
|
|
10
|
+
<script src="../../../ckeditor.js"></script>
|
|
11
|
+
<link rel="stylesheet" href="../../../samples/old/sample.css">
|
|
12
|
+
<meta name="ckeditor-sample-name" content="Using the JavaScript API to customize dialog windows">
|
|
13
|
+
<meta name="ckeditor-sample-group" content="Advanced Samples">
|
|
14
|
+
<meta name="ckeditor-sample-description" content="Using the dialog windows API to customize dialog windows without changing the original editor code.">
|
|
15
|
+
<meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
|
|
16
|
+
<style>
|
|
17
|
+
|
|
18
|
+
.cke_button__mybutton_icon
|
|
19
|
+
{
|
|
20
|
+
display: none !important;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.cke_button__mybutton_label
|
|
24
|
+
{
|
|
25
|
+
display: inline !important;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
</style>
|
|
29
|
+
<script>
|
|
30
|
+
|
|
31
|
+
CKEDITOR.on( 'instanceCreated', function( ev ){
|
|
32
|
+
var editor = ev.editor;
|
|
33
|
+
|
|
34
|
+
// Listen for the "pluginsLoaded" event, so we are sure that the
|
|
35
|
+
// "dialog" plugin has been loaded and we are able to do our
|
|
36
|
+
// customizations.
|
|
37
|
+
editor.on( 'pluginsLoaded', function() {
|
|
38
|
+
|
|
39
|
+
// If our custom dialog has not been registered, do that now.
|
|
40
|
+
if ( !CKEDITOR.dialog.exists( 'myDialog' ) ) {
|
|
41
|
+
// We need to do the following trick to find out the dialog
|
|
42
|
+
// definition file URL path. In the real world, you would simply
|
|
43
|
+
// point to an absolute path directly, like "/mydir/mydialog.js".
|
|
44
|
+
var href = document.location.href.split( '/' );
|
|
45
|
+
href.pop();
|
|
46
|
+
href.push( 'assets/my_dialog.js' );
|
|
47
|
+
href = href.join( '/' );
|
|
48
|
+
|
|
49
|
+
// Finally, register the dialog.
|
|
50
|
+
CKEDITOR.dialog.add( 'myDialog', href );
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// Register the command used to open the dialog.
|
|
54
|
+
editor.addCommand( 'myDialogCmd', new CKEDITOR.dialogCommand( 'myDialog' ) );
|
|
55
|
+
|
|
56
|
+
// Add the a custom toolbar buttons, which fires the above
|
|
57
|
+
// command..
|
|
58
|
+
editor.ui.add( 'MyButton', CKEDITOR.UI_BUTTON, {
|
|
59
|
+
label: 'My Dialog',
|
|
60
|
+
command: 'myDialogCmd'
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
// When opening a dialog, its "definition" is created for it, for
|
|
66
|
+
// each editor instance. The "dialogDefinition" event is then
|
|
67
|
+
// fired. We should use this event to make customizations to the
|
|
68
|
+
// definition of existing dialogs.
|
|
69
|
+
CKEDITOR.on( 'dialogDefinition', function( ev ) {
|
|
70
|
+
// Take the dialog name and its definition from the event data.
|
|
71
|
+
var dialogName = ev.data.name;
|
|
72
|
+
var dialogDefinition = ev.data.definition;
|
|
73
|
+
|
|
74
|
+
// Check if the definition is from the dialog we're
|
|
75
|
+
// interested on (the "Link" dialog).
|
|
76
|
+
if ( dialogName == 'myDialog' && ev.editor.name == 'editor2' ) {
|
|
77
|
+
// Get a reference to the "Link Info" tab.
|
|
78
|
+
var infoTab = dialogDefinition.getContents( 'tab1' );
|
|
79
|
+
|
|
80
|
+
// Add a new text field to the "tab1" tab page.
|
|
81
|
+
infoTab.add( {
|
|
82
|
+
type: 'text',
|
|
83
|
+
label: 'My Custom Field',
|
|
84
|
+
id: 'customField',
|
|
85
|
+
'default': 'Sample!',
|
|
86
|
+
validate: function() {
|
|
87
|
+
if ( ( /\d/ ).test( this.getValue() ) )
|
|
88
|
+
return 'My Custom Field must not contain digits';
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
// Remove the "select1" field from the "tab1" tab.
|
|
93
|
+
infoTab.remove( 'select1' );
|
|
94
|
+
|
|
95
|
+
// Set the default value for "input1" field.
|
|
96
|
+
var input1 = infoTab.get( 'input1' );
|
|
97
|
+
input1[ 'default' ] = 'www.example.com';
|
|
98
|
+
|
|
99
|
+
// Remove the "tab2" tab page.
|
|
100
|
+
dialogDefinition.removeContents( 'tab2' );
|
|
101
|
+
|
|
102
|
+
// Add a new tab to the "Link" dialog.
|
|
103
|
+
dialogDefinition.addContents( {
|
|
104
|
+
id: 'customTab',
|
|
105
|
+
label: 'My Tab',
|
|
106
|
+
accessKey: 'M',
|
|
107
|
+
elements: [
|
|
108
|
+
{
|
|
109
|
+
id: 'myField1',
|
|
110
|
+
type: 'text',
|
|
111
|
+
label: 'My Text Field'
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
id: 'myField2',
|
|
115
|
+
type: 'text',
|
|
116
|
+
label: 'Another Text Field'
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
// Provide the focus handler to start initial focus in "customField" field.
|
|
122
|
+
dialogDefinition.onFocus = function() {
|
|
123
|
+
var urlField = this.getContentElement( 'tab1', 'customField' );
|
|
124
|
+
urlField.select();
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
var config = {
|
|
130
|
+
extraPlugins: 'dialog',
|
|
131
|
+
toolbar: [ [ 'MyButton' ] ]
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
</script>
|
|
135
|
+
</head>
|
|
136
|
+
<body>
|
|
137
|
+
<h1 class="samples">
|
|
138
|
+
<a href="../../../samples/old/index.html">CKEditor Samples</a> » Using CKEditor Dialog API
|
|
139
|
+
</h1>
|
|
140
|
+
<div class="warning deprecated">
|
|
141
|
+
This sample is not maintained anymore. Check out the <a href="https://ckeditor.com/docs/ckeditor4/latest/examples/index.html">brand new samples in CKEditor Examples</a>.
|
|
142
|
+
</div>
|
|
143
|
+
<div class="description">
|
|
144
|
+
<p>
|
|
145
|
+
This sample shows how to use the
|
|
146
|
+
<a class="samples" href="https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_dialog.html">CKEditor Dialog API</a>
|
|
147
|
+
to customize CKEditor dialog windows without changing the original editor code.
|
|
148
|
+
The following customizations are being done in the example below:
|
|
149
|
+
</p>
|
|
150
|
+
<p>
|
|
151
|
+
For details on how to create this setup check the source code of this sample page.
|
|
152
|
+
</p>
|
|
153
|
+
</div>
|
|
154
|
+
<p>A custom dialog is added to the editors using the <code>pluginsLoaded</code> event, from an external <a target="_blank" href="assets/my_dialog.js">dialog definition file</a>:</p>
|
|
155
|
+
<ol>
|
|
156
|
+
<li><strong>Creating a custom dialog window</strong> – "My Dialog" dialog window opened with the "My Dialog" toolbar button.</li>
|
|
157
|
+
<li><strong>Creating a custom button</strong> – Add button to open the dialog with "My Dialog" toolbar button.</li>
|
|
158
|
+
</ol>
|
|
159
|
+
<textarea cols="80" id="editor1" name="editor1" rows="10"><p>This is some <strong>sample text</strong>. You are using <a href="https://ckeditor.com/">CKEditor</a>.</p></textarea>
|
|
160
|
+
<script>
|
|
161
|
+
// Replace the <textarea id="editor1"> with an CKEditor instance.
|
|
162
|
+
CKEDITOR.replace( 'editor1', config );
|
|
163
|
+
</script>
|
|
164
|
+
<p>The below editor modify the dialog definition of the above added dialog using the <code>dialogDefinition</code> event:</p>
|
|
165
|
+
<ol>
|
|
166
|
+
<li><strong>Adding dialog tab</strong> – Add new tab "My Tab" to dialog window.</li>
|
|
167
|
+
<li><strong>Removing a dialog window tab</strong> – Remove "Second Tab" page from the dialog window.</li>
|
|
168
|
+
<li><strong>Adding dialog window fields</strong> – Add "My Custom Field" to the dialog window.</li>
|
|
169
|
+
<li><strong>Removing dialog window field</strong> – Remove "Select Field" selection field from the dialog window.</li>
|
|
170
|
+
<li><strong>Setting default values for dialog window fields</strong> – Set default value of "Text Field" text field. </li>
|
|
171
|
+
<li><strong>Setup initial focus for dialog window</strong> – Put initial focus on "My Custom Field" text field. </li>
|
|
172
|
+
</ol>
|
|
173
|
+
<textarea cols="80" id="editor2" name="editor2" rows="10"><p>This is some <strong>sample text</strong>. You are using <a href="https://ckeditor.com/">CKEditor</a>.</p></textarea>
|
|
174
|
+
<script>
|
|
175
|
+
|
|
176
|
+
// Replace the <textarea id="editor1"> with an CKEditor instance.
|
|
177
|
+
CKEDITOR.replace( 'editor2', config );
|
|
178
|
+
|
|
179
|
+
</script>
|
|
180
|
+
<div id="footer">
|
|
181
|
+
<hr>
|
|
182
|
+
<p>
|
|
183
|
+
CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
|
|
184
|
+
</p>
|
|
185
|
+
<p id="copy">
|
|
186
|
+
Copyright © 2003-2023, <a class="samples" href="https://cksource.com/">CKSource</a> Holding sp. z o.o. All rights reserved.
|
|
187
|
+
</p>
|
|
188
|
+
</div>
|
|
189
|
+
</body>
|
|
190
|
+
</html>
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<!--
|
|
3
|
+
Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
|
+
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
5
|
+
-->
|
|
6
|
+
<html lang="en">
|
|
7
|
+
<head>
|
|
8
|
+
<meta charset="utf-8">
|
|
9
|
+
<title>Replace DIV — CKEditor Sample</title>
|
|
10
|
+
<script src="../../ckeditor.js"></script>
|
|
11
|
+
<link href="sample.css" rel="stylesheet">
|
|
12
|
+
<meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
|
|
13
|
+
<style>
|
|
14
|
+
|
|
15
|
+
div.editable
|
|
16
|
+
{
|
|
17
|
+
border: solid 2px transparent;
|
|
18
|
+
padding-left: 15px;
|
|
19
|
+
padding-right: 15px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
div.editable:hover
|
|
23
|
+
{
|
|
24
|
+
border-color: black;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
</style>
|
|
28
|
+
<script>
|
|
29
|
+
|
|
30
|
+
// Uncomment the following code to test the "Timeout Loading Method".
|
|
31
|
+
// CKEDITOR.loadFullCoreTimeout = 5;
|
|
32
|
+
|
|
33
|
+
window.onload = function() {
|
|
34
|
+
// Listen to the double click event.
|
|
35
|
+
if ( window.addEventListener )
|
|
36
|
+
document.body.addEventListener( 'dblclick', onDoubleClick, false );
|
|
37
|
+
else if ( window.attachEvent )
|
|
38
|
+
document.body.attachEvent( 'ondblclick', onDoubleClick );
|
|
39
|
+
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
function onDoubleClick( ev ) {
|
|
43
|
+
// Get the element which fired the event. This is not necessarily the
|
|
44
|
+
// element to which the event has been attached.
|
|
45
|
+
var element = ev.target || ev.srcElement;
|
|
46
|
+
|
|
47
|
+
// Find out the div that holds this element.
|
|
48
|
+
var name;
|
|
49
|
+
|
|
50
|
+
do {
|
|
51
|
+
element = element.parentNode;
|
|
52
|
+
}
|
|
53
|
+
while ( element && ( name = element.nodeName.toLowerCase() ) &&
|
|
54
|
+
( name != 'div' || element.className.indexOf( 'editable' ) == -1 ) && name != 'body' );
|
|
55
|
+
|
|
56
|
+
if ( name == 'div' && element.className.indexOf( 'editable' ) != -1 )
|
|
57
|
+
replaceDiv( element );
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
var editor;
|
|
61
|
+
|
|
62
|
+
function replaceDiv( div ) {
|
|
63
|
+
if ( editor )
|
|
64
|
+
editor.destroy();
|
|
65
|
+
|
|
66
|
+
editor = CKEDITOR.replace( div );
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
</script>
|
|
70
|
+
</head>
|
|
71
|
+
<body>
|
|
72
|
+
<h1 class="samples">
|
|
73
|
+
<a href="index.html">CKEditor Samples</a> » Replace DIV with CKEditor on the Fly
|
|
74
|
+
</h1>
|
|
75
|
+
<div class="warning deprecated">
|
|
76
|
+
This sample is not maintained anymore. Check out the <a href="https://ckeditor.com/docs/ckeditor4/latest/examples/index.html">brand new samples in CKEditor Examples</a>.
|
|
77
|
+
</div>
|
|
78
|
+
<div class="description">
|
|
79
|
+
<p>
|
|
80
|
+
This sample shows how to automatically replace <code><div></code> elements
|
|
81
|
+
with a CKEditor instance on the fly, following user's doubleclick. The content
|
|
82
|
+
that was previously placed inside the <code><div></code> element will now
|
|
83
|
+
be moved into CKEditor editing area.
|
|
84
|
+
</p>
|
|
85
|
+
<p>
|
|
86
|
+
For details on how to create this setup check the source code of this sample page.
|
|
87
|
+
</p>
|
|
88
|
+
</div>
|
|
89
|
+
<p>
|
|
90
|
+
Double-click any of the following <code><div></code> elements to transform them into
|
|
91
|
+
editor instances.
|
|
92
|
+
</p>
|
|
93
|
+
<div class="editable">
|
|
94
|
+
<h3>
|
|
95
|
+
Part 1
|
|
96
|
+
</h3>
|
|
97
|
+
<p>
|
|
98
|
+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras et ipsum quis mi
|
|
99
|
+
semper accumsan. Integer pretium dui id massa. Suspendisse in nisl sit amet urna
|
|
100
|
+
rutrum imperdiet. Nulla eu tellus. Donec ante nisi, ullamcorper quis, fringilla
|
|
101
|
+
nec, sagittis eleifend, pede. Nulla commodo interdum massa. Donec id metus. Fusce
|
|
102
|
+
eu ipsum. Suspendisse auctor. Phasellus fermentum porttitor risus.
|
|
103
|
+
</p>
|
|
104
|
+
</div>
|
|
105
|
+
<div class="editable">
|
|
106
|
+
<h3>
|
|
107
|
+
Part 2
|
|
108
|
+
</h3>
|
|
109
|
+
<p>
|
|
110
|
+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras et ipsum quis mi
|
|
111
|
+
semper accumsan. Integer pretium dui id massa. Suspendisse in nisl sit amet urna
|
|
112
|
+
rutrum imperdiet. Nulla eu tellus. Donec ante nisi, ullamcorper quis, fringilla
|
|
113
|
+
nec, sagittis eleifend, pede. Nulla commodo interdum massa. Donec id metus. Fusce
|
|
114
|
+
eu ipsum. Suspendisse auctor. Phasellus fermentum porttitor risus.
|
|
115
|
+
</p>
|
|
116
|
+
<p>
|
|
117
|
+
Donec velit. Mauris massa. Vestibulum non nulla. Nam suscipit arcu nec elit. Phasellus
|
|
118
|
+
sollicitudin iaculis ante. Ut non mauris et sapien tincidunt adipiscing. Vestibulum
|
|
119
|
+
vitae leo. Suspendisse nec mi tristique nulla laoreet vulputate.
|
|
120
|
+
</p>
|
|
121
|
+
</div>
|
|
122
|
+
<div class="editable">
|
|
123
|
+
<h3>
|
|
124
|
+
Part 3
|
|
125
|
+
</h3>
|
|
126
|
+
<p>
|
|
127
|
+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras et ipsum quis mi
|
|
128
|
+
semper accumsan. Integer pretium dui id massa. Suspendisse in nisl sit amet urna
|
|
129
|
+
rutrum imperdiet. Nulla eu tellus. Donec ante nisi, ullamcorper quis, fringilla
|
|
130
|
+
nec, sagittis eleifend, pede. Nulla commodo interdum massa. Donec id metus. Fusce
|
|
131
|
+
eu ipsum. Suspendisse auctor. Phasellus fermentum porttitor risus.
|
|
132
|
+
</p>
|
|
133
|
+
</div>
|
|
134
|
+
<div id="footer">
|
|
135
|
+
<hr>
|
|
136
|
+
<p>
|
|
137
|
+
CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
|
|
138
|
+
</p>
|
|
139
|
+
<p id="copy">
|
|
140
|
+
Copyright © 2003-2023, <a class="samples" href="https://cksource.com/">CKSource</a> Holding sp. z o.o. All rights reserved.
|
|
141
|
+
</p>
|
|
142
|
+
</div>
|
|
143
|
+
</body>
|
|
144
|
+
</html>
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<!--
|
|
3
|
+
Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
|
+
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
5
|
+
-->
|
|
6
|
+
<html lang="en">
|
|
7
|
+
<head>
|
|
8
|
+
<meta charset="utf-8">
|
|
9
|
+
<title>ENTER Key Configuration — CKEditor Sample</title>
|
|
10
|
+
<script src="../../../ckeditor.js"></script>
|
|
11
|
+
<link href="../../../samples/old/sample.css" rel="stylesheet">
|
|
12
|
+
<meta name="ckeditor-sample-name" content="Using the "Enter" key in CKEditor">
|
|
13
|
+
<meta name="ckeditor-sample-group" content="Advanced Samples">
|
|
14
|
+
<meta name="ckeditor-sample-description" content="Configuring the behavior of <em>Enter</em> and <em>Shift+Enter</em> keys.">
|
|
15
|
+
<meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
|
|
16
|
+
<script>
|
|
17
|
+
|
|
18
|
+
var editor;
|
|
19
|
+
|
|
20
|
+
function changeEnter() {
|
|
21
|
+
// If we already have an editor, let's destroy it first.
|
|
22
|
+
if ( editor )
|
|
23
|
+
editor.destroy( true );
|
|
24
|
+
|
|
25
|
+
// Create the editor again, with the appropriate settings.
|
|
26
|
+
editor = CKEDITOR.replace( 'editor1', {
|
|
27
|
+
extraPlugins: 'enterkey',
|
|
28
|
+
enterMode: Number( document.getElementById( 'xEnter' ).value ),
|
|
29
|
+
shiftEnterMode: Number( document.getElementById( 'xShiftEnter' ).value )
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
window.onload = changeEnter;
|
|
34
|
+
|
|
35
|
+
</script>
|
|
36
|
+
</head>
|
|
37
|
+
<body>
|
|
38
|
+
<h1 class="samples">
|
|
39
|
+
<a href="../../../samples/old/index.html">CKEditor Samples</a> » ENTER Key Configuration
|
|
40
|
+
</h1>
|
|
41
|
+
<div class="warning deprecated">
|
|
42
|
+
This sample is not maintained anymore. Check out its <a href="https://ckeditor.com/docs/ckeditor4/latest/examples/enterkey.html">brand new version in CKEditor Examples</a>.
|
|
43
|
+
</div>
|
|
44
|
+
<div class="description">
|
|
45
|
+
<p>
|
|
46
|
+
This sample shows how to configure the <em>Enter</em> and <em>Shift+Enter</em> keys
|
|
47
|
+
to perform actions specified in the
|
|
48
|
+
<a class="samples" href="https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-enterMode"><code>enterMode</code></a>
|
|
49
|
+
and <a class="samples" href="https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-shiftEnterMode"><code>shiftEnterMode</code></a>
|
|
50
|
+
parameters, respectively.
|
|
51
|
+
You can choose from the following options:
|
|
52
|
+
</p>
|
|
53
|
+
<ul class="samples">
|
|
54
|
+
<li><strong><code>ENTER_P</code></strong> – new <code><p></code> paragraphs are created;</li>
|
|
55
|
+
<li><strong><code>ENTER_BR</code></strong> – lines are broken with <code><br></code> elements;</li>
|
|
56
|
+
<li><strong><code>ENTER_DIV</code></strong> – new <code><div></code> blocks are created.</li>
|
|
57
|
+
</ul>
|
|
58
|
+
<p>
|
|
59
|
+
The sample code below shows how to configure CKEditor to create a <code><div></code> block when <em>Enter</em> key is pressed.
|
|
60
|
+
</p>
|
|
61
|
+
<pre class="samples">
|
|
62
|
+
CKEDITOR.replace( '<em>textarea_id</em>', {
|
|
63
|
+
<strong>enterMode: CKEDITOR.ENTER_DIV</strong>
|
|
64
|
+
});</pre>
|
|
65
|
+
<p>
|
|
66
|
+
Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of
|
|
67
|
+
the <code><textarea></code> element to be replaced.
|
|
68
|
+
</p>
|
|
69
|
+
</div>
|
|
70
|
+
<div style="float: left; margin-right: 20px">
|
|
71
|
+
When <em>Enter</em> is pressed:<br>
|
|
72
|
+
<select id="xEnter" onchange="changeEnter();">
|
|
73
|
+
<option selected="selected" value="1">Create a new <P> (recommended)</option>
|
|
74
|
+
<option value="3">Create a new <DIV></option>
|
|
75
|
+
<option value="2">Break the line with a <BR></option>
|
|
76
|
+
</select>
|
|
77
|
+
</div>
|
|
78
|
+
<div style="float: left">
|
|
79
|
+
When <em>Shift+Enter</em> is pressed:<br>
|
|
80
|
+
<select id="xShiftEnter" onchange="changeEnter();">
|
|
81
|
+
<option value="1">Create a new <P></option>
|
|
82
|
+
<option value="3">Create a new <DIV></option>
|
|
83
|
+
<option selected="selected" value="2">Break the line with a <BR> (recommended)</option>
|
|
84
|
+
</select>
|
|
85
|
+
</div>
|
|
86
|
+
<br style="clear: both">
|
|
87
|
+
<form action="../../../samples/sample_posteddata.php" method="post">
|
|
88
|
+
<p>
|
|
89
|
+
<br>
|
|
90
|
+
<textarea cols="80" id="editor1" name="editor1" rows="10">This is some <strong>sample text</strong>. You are using <a href="https://ckeditor.com/">CKEditor</a>.</textarea>
|
|
91
|
+
</p>
|
|
92
|
+
<p>
|
|
93
|
+
<input type="submit" value="Submit">
|
|
94
|
+
</p>
|
|
95
|
+
</form>
|
|
96
|
+
<div id="footer">
|
|
97
|
+
<hr>
|
|
98
|
+
<p>
|
|
99
|
+
CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
|
|
100
|
+
</p>
|
|
101
|
+
<p id="copy">
|
|
102
|
+
Copyright © 2003-2023, <a class="samples" href="https://cksource.com/">CKSource</a> Holding sp. z o.o. All rights reserved.
|
|
103
|
+
</p>
|
|
104
|
+
</div>
|
|
105
|
+
</body>
|
|
106
|
+
</html>
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<!--
|
|
3
|
+
Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
|
+
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
5
|
+
-->
|
|
6
|
+
<html lang="en">
|
|
7
|
+
<head>
|
|
8
|
+
<meta charset="utf-8">
|
|
9
|
+
<title>HTML Compliant Output — CKEditor Sample</title>
|
|
10
|
+
<script src="../../../ckeditor.js"></script>
|
|
11
|
+
<script src="../../../samples/old/sample.js"></script>
|
|
12
|
+
<link href="../../../samples/old/sample.css" rel="stylesheet">
|
|
13
|
+
<meta name="ckeditor-sample-required-plugins" content="sourcearea">
|
|
14
|
+
<meta name="ckeditor-sample-name" content="Output HTML">
|
|
15
|
+
<meta name="ckeditor-sample-group" content="Advanced Samples">
|
|
16
|
+
<meta name="ckeditor-sample-description" content="Configuring CKEditor to produce legacy HTML 4 code.">
|
|
17
|
+
<meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
|
|
18
|
+
</head>
|
|
19
|
+
<body>
|
|
20
|
+
<h1 class="samples">
|
|
21
|
+
<a href="../../../samples/old/index.html">CKEditor Samples</a> » Producing HTML Compliant Output
|
|
22
|
+
</h1>
|
|
23
|
+
<div class="warning deprecated">
|
|
24
|
+
This sample is not maintained anymore. Check out the <a href="https://ckeditor.com/docs/ckeditor4/latest/examples/index.html">brand new samples in CKEditor Examples</a>.
|
|
25
|
+
</div>
|
|
26
|
+
<div class="description">
|
|
27
|
+
<p>
|
|
28
|
+
This sample shows how to configure CKEditor to output valid
|
|
29
|
+
<a class="samples" href="http://www.w3.org/TR/html401/">HTML 4.01</a> code.
|
|
30
|
+
Traditional HTML elements like <code><b></code>,
|
|
31
|
+
<code><i></code>, and <code><font></code> are used in place of
|
|
32
|
+
<code><strong></code>, <code><em></code>, and CSS styles.
|
|
33
|
+
</p>
|
|
34
|
+
<p>
|
|
35
|
+
To add a CKEditor instance outputting legacy HTML 4.01 code, load the editor using a standard
|
|
36
|
+
JavaScript call, and define CKEditor features to use the HTML compliant elements and attributes.
|
|
37
|
+
</p>
|
|
38
|
+
<p>
|
|
39
|
+
A snippet of the configuration code can be seen below; check the source of this page for
|
|
40
|
+
full definition:
|
|
41
|
+
</p>
|
|
42
|
+
<pre class="samples">
|
|
43
|
+
CKEDITOR.replace( '<em>textarea_id</em>', {
|
|
44
|
+
coreStyles_bold: { element: 'b' },
|
|
45
|
+
coreStyles_italic: { element: 'i' },
|
|
46
|
+
|
|
47
|
+
fontSize_style: {
|
|
48
|
+
element: 'font',
|
|
49
|
+
attributes: { 'size': '#(size)' }
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
...
|
|
53
|
+
});</pre>
|
|
54
|
+
</div>
|
|
55
|
+
<form action="../../../samples/sample_posteddata.php" method="post">
|
|
56
|
+
<p>
|
|
57
|
+
<label for="editor1">
|
|
58
|
+
Editor 1:
|
|
59
|
+
</label>
|
|
60
|
+
<textarea cols="80" id="editor1" name="editor1" rows="10"><p>This is some <b>sample text</b>. You are using <a href="https://ckeditor.com/">CKEditor</a>.</p></textarea>
|
|
61
|
+
<script>
|
|
62
|
+
|
|
63
|
+
CKEDITOR.replace( 'editor1', {
|
|
64
|
+
/*
|
|
65
|
+
* Ensure that htmlwriter plugin, which is required for this sample, is loaded.
|
|
66
|
+
*/
|
|
67
|
+
extraPlugins: 'htmlwriter',
|
|
68
|
+
|
|
69
|
+
/*
|
|
70
|
+
* Style sheet for the contents
|
|
71
|
+
*/
|
|
72
|
+
contentsCss: 'body {color:#000; background-color#:FFF;}',
|
|
73
|
+
|
|
74
|
+
/*
|
|
75
|
+
* Simple HTML5 doctype
|
|
76
|
+
*/
|
|
77
|
+
docType: '<!DOCTYPE HTML>',
|
|
78
|
+
|
|
79
|
+
/*
|
|
80
|
+
* Allowed content rules which beside limiting allowed HTML
|
|
81
|
+
* will also take care of transforming styles to attributes
|
|
82
|
+
* (currently only for img - see transformation rules defined below).
|
|
83
|
+
*
|
|
84
|
+
* Read more: https://ckeditor.com/docs/ckeditor4/latest/guide/dev_advanced_content_filter.html
|
|
85
|
+
*/
|
|
86
|
+
allowedContent:
|
|
87
|
+
'h1 h2 h3 p pre[align]; ' +
|
|
88
|
+
'blockquote code kbd samp var del ins cite q b i u strike ul ol li hr table tbody tr td th caption; ' +
|
|
89
|
+
'img[!src,alt,align,width,height]; font[!face]; font[!family]; font[!color]; font[!size]; font{!background-color}; a[!href]; a[!name]',
|
|
90
|
+
|
|
91
|
+
/*
|
|
92
|
+
* Core styles.
|
|
93
|
+
*/
|
|
94
|
+
coreStyles_bold: { element: 'b' },
|
|
95
|
+
coreStyles_italic: { element: 'i' },
|
|
96
|
+
coreStyles_underline: { element: 'u' },
|
|
97
|
+
coreStyles_strike: { element: 'strike' },
|
|
98
|
+
|
|
99
|
+
/*
|
|
100
|
+
* Font face.
|
|
101
|
+
*/
|
|
102
|
+
|
|
103
|
+
// Define the way font elements will be applied to the document.
|
|
104
|
+
// The "font" element will be used.
|
|
105
|
+
font_style: {
|
|
106
|
+
element: 'font',
|
|
107
|
+
attributes: { 'face': '#(family)' }
|
|
108
|
+
},
|
|
109
|
+
|
|
110
|
+
/*
|
|
111
|
+
* Font sizes.
|
|
112
|
+
*/
|
|
113
|
+
fontSize_sizes: 'xx-small/1;x-small/2;small/3;medium/4;large/5;x-large/6;xx-large/7',
|
|
114
|
+
fontSize_style: {
|
|
115
|
+
element: 'font',
|
|
116
|
+
attributes: { 'size': '#(size)' }
|
|
117
|
+
},
|
|
118
|
+
|
|
119
|
+
/*
|
|
120
|
+
* Font colors.
|
|
121
|
+
*/
|
|
122
|
+
|
|
123
|
+
colorButton_foreStyle: {
|
|
124
|
+
element: 'font',
|
|
125
|
+
attributes: { 'color': '#(color)' }
|
|
126
|
+
},
|
|
127
|
+
|
|
128
|
+
colorButton_backStyle: {
|
|
129
|
+
element: 'font',
|
|
130
|
+
styles: { 'background-color': '#(color)' }
|
|
131
|
+
},
|
|
132
|
+
|
|
133
|
+
/*
|
|
134
|
+
* Styles combo.
|
|
135
|
+
*/
|
|
136
|
+
stylesSet: [
|
|
137
|
+
{ name: 'Computer Code', element: 'code' },
|
|
138
|
+
{ name: 'Keyboard Phrase', element: 'kbd' },
|
|
139
|
+
{ name: 'Sample Text', element: 'samp' },
|
|
140
|
+
{ name: 'Variable', element: 'var' },
|
|
141
|
+
{ name: 'Deleted Text', element: 'del' },
|
|
142
|
+
{ name: 'Inserted Text', element: 'ins' },
|
|
143
|
+
{ name: 'Cited Work', element: 'cite' },
|
|
144
|
+
{ name: 'Inline Quotation', element: 'q' }
|
|
145
|
+
],
|
|
146
|
+
|
|
147
|
+
on: {
|
|
148
|
+
pluginsLoaded: configureTransformations,
|
|
149
|
+
loaded: configureHtmlWriter
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
/*
|
|
154
|
+
* Add missing content transformations.
|
|
155
|
+
*/
|
|
156
|
+
function configureTransformations( evt ) {
|
|
157
|
+
var editor = evt.editor;
|
|
158
|
+
|
|
159
|
+
editor.dataProcessor.htmlFilter.addRules( {
|
|
160
|
+
attributes: {
|
|
161
|
+
style: function( value, element ) {
|
|
162
|
+
// Return #RGB for background and border colors
|
|
163
|
+
return CKEDITOR.tools.convertRgbToHex( value );
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
} );
|
|
167
|
+
|
|
168
|
+
// Default automatic content transformations do not yet take care of
|
|
169
|
+
// align attributes on blocks, so we need to add our own transformation rules.
|
|
170
|
+
function alignToAttribute( element ) {
|
|
171
|
+
if ( element.styles[ 'text-align' ] ) {
|
|
172
|
+
element.attributes.align = element.styles[ 'text-align' ];
|
|
173
|
+
delete element.styles[ 'text-align' ];
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
editor.filter.addTransformations( [
|
|
177
|
+
[ { element: 'p', right: alignToAttribute } ],
|
|
178
|
+
[ { element: 'h1', right: alignToAttribute } ],
|
|
179
|
+
[ { element: 'h2', right: alignToAttribute } ],
|
|
180
|
+
[ { element: 'h3', right: alignToAttribute } ],
|
|
181
|
+
[ { element: 'pre', right: alignToAttribute } ]
|
|
182
|
+
] );
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/*
|
|
186
|
+
* Adjust the behavior of htmlWriter to make it output HTML like FCKeditor.
|
|
187
|
+
*/
|
|
188
|
+
function configureHtmlWriter( evt ) {
|
|
189
|
+
var editor = evt.editor,
|
|
190
|
+
dataProcessor = editor.dataProcessor;
|
|
191
|
+
|
|
192
|
+
// Out self closing tags the HTML4 way, like <br>.
|
|
193
|
+
dataProcessor.writer.selfClosingEnd = '>';
|
|
194
|
+
|
|
195
|
+
// Make output formatting behave similar to FCKeditor.
|
|
196
|
+
var dtd = CKEDITOR.dtd;
|
|
197
|
+
for ( var e in CKEDITOR.tools.extend( {}, dtd.$nonBodyContent, dtd.$block, dtd.$listItem, dtd.$tableContent ) ) {
|
|
198
|
+
dataProcessor.writer.setRules( e, {
|
|
199
|
+
indent: true,
|
|
200
|
+
breakBeforeOpen: true,
|
|
201
|
+
breakAfterOpen: false,
|
|
202
|
+
breakBeforeClose: !dtd[ e ][ '#' ],
|
|
203
|
+
breakAfterClose: true
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
</script>
|
|
209
|
+
</p>
|
|
210
|
+
<p>
|
|
211
|
+
<input type="submit" value="Submit">
|
|
212
|
+
</p>
|
|
213
|
+
</form>
|
|
214
|
+
<div id="footer">
|
|
215
|
+
<hr>
|
|
216
|
+
<p>
|
|
217
|
+
CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
|
|
218
|
+
</p>
|
|
219
|
+
<p id="copy">
|
|
220
|
+
Copyright © 2003-2023, <a class="samples" href="https://cksource.com/">CKSource</a> Holding sp. z o.o. All rights reserved.
|
|
221
|
+
</p>
|
|
222
|
+
</div>
|
|
223
|
+
</body>
|
|
224
|
+
</html>
|