@saltcorn/mobile-app 0.7.3-beta.3 → 0.7.3
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/package.json +4 -1
- package/www/index.html +27 -14
- package/www/js/bundles/@saltcorn/any-bootstrap-theme.bundle.js +28 -0
- package/www/js/bundles/@saltcorn/ckeditor4.bundle.js +28 -0
- package/www/js/bundles/@saltcorn/html.bundle.js +28 -0
- package/www/js/bundles/@saltcorn/select2.bundle.js +28 -0
- package/www/js/bundles/@saltcorn/shared-files.bundle.js +28 -0
- package/www/js/bundles/@saltcorn/xncolorpicker.bundle.js +28 -0
- package/www/js/bundles/base_plugin.bundle.js +171 -0
- package/www/js/bundles/colorpick.bundle.js +28 -0
- package/www/js/bundles/colors.bundle.js +28 -0
- package/www/js/bundles/common_chunks.bundle.js +6358 -0
- package/www/js/bundles/data.bundle.js +1269 -0
- package/www/js/bundles/daterangepicker.bundle.js +28 -0
- package/www/js/bundles/flatpickr-date.bundle.js +28 -0
- package/www/js/bundles/fullcalendar.bundle.js +28 -0
- package/www/js/bundles/json.bundle.js +28 -0
- package/www/js/bundles/markup.bundle.js +331 -0
- package/www/js/bundles/sbadmin2.bundle.js +39 -0
- package/www/js/bundles/svelte-gantt.bundle.js +39 -0
- package/www/js/bundles/system-info.bundle.js +28 -0
- package/www/js/bundles/tabulator.bundle.js +28 -0
- package/www/js/{utils/login_form.js → routes/auth.js} +16 -1
- package/www/js/routes/init.js +9 -0
- package/www/js/routes/view.js +31 -2
- package/www/js/utils/global_utils.js +9 -0
- package/www/js/utils/iframe_view_utils.js +3 -3
- package/www/npm_packages/axios.min.js +3 -0
- package/www/npm_packages/jwt-decode.js +123 -0
- package/www/npm_packages/universal-router.min.js +3 -0
- package/www/plugins/public/@saltcorn/any-bootstrap-theme/sidebar-3.css +41 -0
- package/www/plugins/public/@saltcorn/ckeditor4/adapters/jquery.js +10 -0
- package/www/plugins/public/@saltcorn/ckeditor4/ckeditor.js +1286 -0
- package/www/plugins/public/@saltcorn/ckeditor4/config.js +38 -0
- package/www/plugins/public/@saltcorn/ckeditor4/contents.css +208 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/af.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/ar.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/az.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/bg.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/bn.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/bs.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/ca.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/cs.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/cy.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/da.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/de-ch.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/de.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/el.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/en-au.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/en-ca.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/en-gb.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/en.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/eo.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/es-mx.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/es.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/et.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/eu.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/fa.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/fi.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/fo.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/fr-ca.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/fr.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/gl.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/gu.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/he.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/hi.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/hr.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/hu.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/id.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/is.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/it.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/ja.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/ka.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/km.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/ko.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/ku.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/lt.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/lv.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/mk.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/mn.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/ms.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/nb.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/nl.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/no.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/oc.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/pl.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/pt-br.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/pt.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/ro.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/ru.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/si.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/sk.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/sl.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/sq.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/sr-latn.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/sr.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/sv.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/th.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/tr.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/tt.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/ug.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/uk.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/vi.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/zh-cn.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/lang/zh.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/a11yhelp.js +10 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +25 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/af.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/ar.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/az.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/bg.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/ca.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/cs.js +12 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/cy.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/da.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/de-ch.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/de.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/el.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/en-au.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/en-gb.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/en.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/eo.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/es-mx.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/es.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/et.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/eu.js +12 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/fa.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/fi.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/fo.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/fr-ca.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/fr.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/gl.js +12 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/gu.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/he.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/hi.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/hr.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/hu.js +12 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/id.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/it.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/ja.js +9 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/km.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/ko.js +10 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/ku.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/lt.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/lv.js +12 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/mk.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/mn.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/nb.js +12 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/nl.js +12 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/no.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/oc.js +12 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/pl.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/pt-br.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/pt.js +12 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/ro.js +12 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/ru.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/si.js +10 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/sk.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/sl.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/sq.js +12 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/sr-latn.js +12 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/sr.js +12 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/sv.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/th.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/tr.js +12 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/tt.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/ug.js +12 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/uk.js +12 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/vi.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/zh-cn.js +9 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/a11yhelp/dialogs/lang/zh.js +9 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/about/dialogs/about.js +8 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/about/dialogs/logo_ckeditor.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/clipboard/dialogs/paste.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/icons/bgcolor.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/icons/hidpi/bgcolor.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/icons/hidpi/textcolor.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/icons/textcolor.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/af.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/ar.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/az.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/bg.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/bn.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/bs.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/ca.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/cs.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/cy.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/da.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/de-ch.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/de.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/el.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/en-au.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/en-ca.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/en-gb.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/en.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/eo.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/es-mx.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/es.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/et.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/eu.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/fa.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/fi.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/fo.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/fr-ca.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/fr.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/gl.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/gu.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/he.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/hi.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/hr.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/hu.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/id.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/is.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/it.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/ja.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/ka.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/km.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/ko.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/ku.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/lt.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/lv.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/mk.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/mn.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/ms.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/nb.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/nl.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/no.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/oc.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/pl.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/pt-br.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/pt.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/ro.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/ru.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/si.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/sk.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/sl.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/sq.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/sr-latn.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/sr.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/sv.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/th.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/tr.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/tt.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/ug.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/uk.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/vi.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/zh-cn.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/lang/zh.js +75 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/colorbutton/plugin.js +1009 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/dialog/dialogDefinition.js +4 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/dialog/styles/dialog.css +18 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/dialogadvtab/plugin.js +196 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/af.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/ar.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/az.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/bg.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/bn.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/bs.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/ca.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/cs.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/cy.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/da.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/de-ch.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/de.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/el.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/en-au.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/en-ca.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/en-gb.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/en.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/eo.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/es-mx.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/es.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/et.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/eu.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/fa.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/fi.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/fo.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/fr-ca.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/fr.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/gl.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/gu.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/he.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/hi.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/hr.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/hu.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/id.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/is.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/it.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/ja.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/ka.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/km.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/ko.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/ku.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/lt.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/lv.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/mk.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/mn.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/ms.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/nb.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/nl.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/no.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/oc.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/pl.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/pt-br.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/pt.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/ro.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/ru.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/si.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/sk.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/sl.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/sq.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/sr-latn.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/sr.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/sv.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/th.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/tr.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/tt.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/ug.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/uk.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/vi.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/zh-cn.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/lang/zh.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/font/plugin.js +512 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/icons.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/icons_hidpi.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/image/dialogs/image.js +44 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/image/images/noimage.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/justify/icons/hidpi/justifyblock.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/justify/icons/hidpi/justifycenter.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/justify/icons/hidpi/justifyleft.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/justify/icons/hidpi/justifyright.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/justify/icons/justifyblock.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/justify/icons/justifycenter.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/justify/icons/justifyleft.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/justify/icons/justifyright.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/justify/plugin.js +265 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/link/dialogs/anchor.js +8 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/link/dialogs/link.js +30 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/link/images/anchor.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/link/images/hidpi/anchor.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/magicline/images/hidpi/icon-rtl.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/magicline/images/hidpi/icon.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/magicline/images/icon-rtl.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/magicline/images/icon.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/panelbutton/plugin.js +161 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/pastefromgdocs/filter/default.js +8 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/pastefromlibreoffice/filter/default.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/pastefromword/filter/default.js +42 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/pastetools/filter/common.js +24 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/pastetools/filter/image.js +12 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/scayt/CHANGELOG.md +4 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/scayt/LICENSE.md +28 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/scayt/README.md +81 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/scayt/dialogs/dialog.css +23 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/scayt/dialogs/options.js +32 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/scayt/dialogs/toolbar.css +71 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/scayt/skins/moono-lisa/scayt.css +25 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/_translationstatus.txt +20 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/af.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/ar.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/az.js +10 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/bg.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/ca.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/cs.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/cy.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/da.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/de-ch.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/de.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/el.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/en-au.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/en-ca.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/en-gb.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/en.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/eo.js +12 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/es-mx.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/es.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/et.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/eu.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/fa.js +12 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/fi.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/fr-ca.js +10 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/fr.js +12 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/gl.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/he.js +12 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/hr.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/hu.js +12 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/id.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/it.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/ja.js +9 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/km.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/ko.js +10 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/ku.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/lt.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/lv.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/nb.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/nl.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/no.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/oc.js +12 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/pl.js +12 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/pt-br.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/pt.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/ro.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/ru.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/si.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/sk.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/sl.js +12 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/sq.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/sr-latn.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/sr.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/sv.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/th.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/tr.js +12 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/tt.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/ug.js +13 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/uk.js +12 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/vi.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/zh-cn.js +9 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/lang/zh.js +9 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/specialchar/dialogs/specialchar.js +14 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/table/dialogs/table.js +22 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/tableselection/styles/tableselection.css +36 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/tabletools/dialogs/tableCell.js +18 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/widget/images/handle.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/LICENSE.md +28 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/README.md +84 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/dialogs/ciframe.html +66 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/dialogs/tmpFrameset.html +52 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/dialogs/wsc.css +82 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/dialogs/wsc.js +90 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/dialogs/wsc_ie.js +11 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/icons/hidpi/spellchecker.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/icons/spellchecker.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/af.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/ar.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/bg.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/bn.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/bs.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/ca.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/cs.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/cy.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/da.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/de.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/el.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/en-au.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/en-ca.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/en-gb.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/en.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/eo.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/es.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/et.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/eu.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/fa.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/fi.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/fo.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/fr-ca.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/fr.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/gl.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/gu.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/he.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/hi.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/hr.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/hu.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/is.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/it.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/ja.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/ka.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/km.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/ko.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/ku.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/lt.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/lv.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/mk.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/mn.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/ms.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/nb.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/nl.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/no.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/pl.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/pt-br.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/pt.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/ro.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/ru.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/sk.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/sl.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/sr-latn.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/sr.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/sv.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/th.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/tr.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/ug.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/uk.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/vi.js +2 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/zh-cn.js +1 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/lang/zh.js +1 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/plugin.js +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/plugins/wsc/skins/moono-lisa/wsc.css +43 -0
- package/www/plugins/public/@saltcorn/ckeditor4/skins/moono-lisa/dialog.css +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/skins/moono-lisa/dialog_ie.css +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/skins/moono-lisa/dialog_ie8.css +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/skins/moono-lisa/dialog_iequirks.css +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/skins/moono-lisa/editor.css +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/skins/moono-lisa/editor_gecko.css +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/skins/moono-lisa/editor_ie.css +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/skins/moono-lisa/editor_ie8.css +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/skins/moono-lisa/editor_iequirks.css +5 -0
- package/www/plugins/public/@saltcorn/ckeditor4/skins/moono-lisa/icons.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/skins/moono-lisa/icons_hidpi.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/skins/moono-lisa/images/arrow.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/skins/moono-lisa/images/close.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/skins/moono-lisa/images/hidpi/close.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/skins/moono-lisa/images/hidpi/lock-open.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/skins/moono-lisa/images/hidpi/lock.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/skins/moono-lisa/images/hidpi/refresh.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/skins/moono-lisa/images/lock-open.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/skins/moono-lisa/images/lock.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/skins/moono-lisa/images/refresh.png +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/skins/moono-lisa/images/spinner.gif +0 -0
- package/www/plugins/public/@saltcorn/ckeditor4/skins/moono-lisa/readme.md +46 -0
- package/www/plugins/public/@saltcorn/ckeditor4/styles.js +137 -0
- package/www/plugins/public/@saltcorn/ckeditor4/vendor/promise.js +13 -0
- package/www/plugins/public/@saltcorn/shared-files/shared-files-client.js +1 -1
- package/www/static_assets/17d4adcb31668468/codemirror.css +350 -0
- package/www/static_assets/17d4adcb31668468/codemirror.js +9813 -0
- package/www/static_assets/17d4adcb31668468/jquery-3.6.0.min.js +2 -0
- package/www/static_assets/17d4adcb31668468/saltcorn-common.js +634 -0
- package/www/static_assets/17d4adcb31668468/saltcorn.css +305 -0
- package/www/static_assets/17d4adcb31668468/saltcorn.js +447 -0
- package/www/static_assets/17d4adcb31668468/socket.io.min.js +7 -0
- package/www/static_assets/1f89b5e9fd7b0c74/codemirror.css +350 -0
- package/www/static_assets/1f89b5e9fd7b0c74/codemirror.js +9813 -0
- package/www/static_assets/1f89b5e9fd7b0c74/jquery-3.6.0.min.js +2 -0
- package/www/static_assets/1f89b5e9fd7b0c74/saltcorn-common.js +634 -0
- package/www/static_assets/1f89b5e9fd7b0c74/saltcorn.css +305 -0
- package/www/static_assets/1f89b5e9fd7b0c74/saltcorn.js +447 -0
- package/www/static_assets/1f89b5e9fd7b0c74/socket.io.min.js +7 -0
|
@@ -0,0 +1,1009 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @fileOverview The "colorbutton" plugin that makes it possible to assign
|
|
8
|
+
* text and background colors to editor contents.
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
( function() {
|
|
13
|
+
var ColorBox,
|
|
14
|
+
ColorHistoryRow,
|
|
15
|
+
ColorHistory;
|
|
16
|
+
|
|
17
|
+
CKEDITOR.plugins.add( 'colorbutton', {
|
|
18
|
+
requires: 'panelbutton,floatpanel',
|
|
19
|
+
// jscs:disable maximumLineLength
|
|
20
|
+
lang: 'af,ar,az,bg,bn,bs,ca,cs,cy,da,de,de-ch,el,en,en-au,en-ca,en-gb,eo,es,es-mx,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,oc,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE%
|
|
21
|
+
// jscs:enable maximumLineLength
|
|
22
|
+
icons: 'bgcolor,textcolor', // %REMOVE_LINE_CORE%
|
|
23
|
+
hidpi: true, // %REMOVE_LINE_CORE%
|
|
24
|
+
init: function( editor ) {
|
|
25
|
+
var config = editor.config,
|
|
26
|
+
lang = editor.lang.colorbutton;
|
|
27
|
+
|
|
28
|
+
if ( !CKEDITOR.env.hc ) {
|
|
29
|
+
addButton( {
|
|
30
|
+
name: 'TextColor',
|
|
31
|
+
type: 'fore',
|
|
32
|
+
commandName: 'textColor',
|
|
33
|
+
title: lang.textColorTitle,
|
|
34
|
+
order: 10,
|
|
35
|
+
contentTransformations: [
|
|
36
|
+
[
|
|
37
|
+
{
|
|
38
|
+
element: 'font',
|
|
39
|
+
check: 'span{color}',
|
|
40
|
+
left: function( element ) {
|
|
41
|
+
return !!element.attributes.color;
|
|
42
|
+
},
|
|
43
|
+
right: function( element ) {
|
|
44
|
+
element.name = 'span';
|
|
45
|
+
|
|
46
|
+
element.attributes.color && ( element.styles.color = element.attributes.color );
|
|
47
|
+
delete element.attributes.color;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
]
|
|
52
|
+
} );
|
|
53
|
+
|
|
54
|
+
var contentTransformations,
|
|
55
|
+
normalizeBackground = editor.config.colorButton_normalizeBackground;
|
|
56
|
+
|
|
57
|
+
if ( normalizeBackground === undefined || normalizeBackground ) {
|
|
58
|
+
// If background contains only color, then we want to convert it into background-color so that it's
|
|
59
|
+
// correctly picked by colorbutton plugin.
|
|
60
|
+
contentTransformations = [
|
|
61
|
+
[
|
|
62
|
+
{
|
|
63
|
+
// Transform span that specify background with color only to background-color.
|
|
64
|
+
element: 'span',
|
|
65
|
+
left: function( element ) {
|
|
66
|
+
var tools = CKEDITOR.tools;
|
|
67
|
+
if ( element.name != 'span' || !element.styles || !element.styles.background ) {
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
var background = tools.style.parse.background( element.styles.background );
|
|
72
|
+
|
|
73
|
+
// We return true only if background specifies **only** color property, and there's only one background directive.
|
|
74
|
+
return background.color && tools.object.keys( background ).length === 1;
|
|
75
|
+
},
|
|
76
|
+
right: function( element ) {
|
|
77
|
+
var style = new CKEDITOR.style( editor.config.colorButton_backStyle, {
|
|
78
|
+
color: element.styles.background
|
|
79
|
+
} ),
|
|
80
|
+
definition = style.getDefinition();
|
|
81
|
+
|
|
82
|
+
// Align the output object with the template used in config.
|
|
83
|
+
element.name = definition.element;
|
|
84
|
+
element.styles = definition.styles;
|
|
85
|
+
element.attributes = definition.attributes || {};
|
|
86
|
+
|
|
87
|
+
return element;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
];
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
addButton( {
|
|
95
|
+
name: 'BGColor',
|
|
96
|
+
type: 'back',
|
|
97
|
+
commandName: 'bgColor',
|
|
98
|
+
title: lang.bgColorTitle,
|
|
99
|
+
order: 20,
|
|
100
|
+
contentTransformations: contentTransformations
|
|
101
|
+
} );
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function addButton( options ) {
|
|
105
|
+
var name = options.name,
|
|
106
|
+
type = options.type,
|
|
107
|
+
title = options.title,
|
|
108
|
+
order = options.order,
|
|
109
|
+
commandName = options.commandName,
|
|
110
|
+
contentTransformations = options.contentTransformations || {},
|
|
111
|
+
style = new CKEDITOR.style( config[ 'colorButton_' + type + 'Style' ] ),
|
|
112
|
+
colorBoxId = CKEDITOR.tools.getNextId() + '_colorBox',
|
|
113
|
+
colorData = { type: type },
|
|
114
|
+
defaultColorStyle = new CKEDITOR.style( config[ 'colorButton_' + type + 'Style' ], { color: 'inherit' } ),
|
|
115
|
+
clickFn = createClickFunction(),
|
|
116
|
+
history = ColorHistory.getRowLimit( editor ) ? new ColorHistory( editor, type == 'back' ? 'background-color' : 'color', clickFn ) : undefined,
|
|
117
|
+
panelBlock;
|
|
118
|
+
|
|
119
|
+
editor.addCommand( commandName, {
|
|
120
|
+
contextSensitive: true,
|
|
121
|
+
exec: function( editor, data ) {
|
|
122
|
+
if ( editor.readOnly ) {
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
var newStyle = data.newStyle;
|
|
127
|
+
|
|
128
|
+
editor.removeStyle( defaultColorStyle );
|
|
129
|
+
|
|
130
|
+
editor.focus();
|
|
131
|
+
|
|
132
|
+
if ( newStyle ) {
|
|
133
|
+
editor.applyStyle( newStyle );
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
editor.fire( 'saveSnapshot' );
|
|
137
|
+
},
|
|
138
|
+
|
|
139
|
+
refresh: function( editor, path ) {
|
|
140
|
+
if ( !defaultColorStyle.checkApplicable( path, editor, editor.activeFilter ) ) {
|
|
141
|
+
this.setState( CKEDITOR.TRISTATE_DISABLED );
|
|
142
|
+
} else if ( defaultColorStyle.checkActive( path, editor ) ) {
|
|
143
|
+
this.setState( CKEDITOR.TRISTATE_ON );
|
|
144
|
+
} else {
|
|
145
|
+
this.setState( CKEDITOR.TRISTATE_OFF );
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
} );
|
|
149
|
+
|
|
150
|
+
editor.ui.add( name, CKEDITOR.UI_PANELBUTTON, {
|
|
151
|
+
label: title,
|
|
152
|
+
title: title,
|
|
153
|
+
command: commandName,
|
|
154
|
+
editorFocus: 0,
|
|
155
|
+
toolbar: 'colors,' + order,
|
|
156
|
+
allowedContent: style,
|
|
157
|
+
requiredContent: style,
|
|
158
|
+
contentTransformations: contentTransformations,
|
|
159
|
+
|
|
160
|
+
panel: {
|
|
161
|
+
css: CKEDITOR.skin.getPath( 'editor' ),
|
|
162
|
+
attributes: { role: 'listbox', 'aria-label': lang.panelTitle }
|
|
163
|
+
},
|
|
164
|
+
|
|
165
|
+
// Selects the color based on the first matching result from the given filter function.
|
|
166
|
+
//
|
|
167
|
+
// The filter function should accept a color iterated from the
|
|
168
|
+
// {@link CKEDITOR.config#colorButton_colors} list as a parameter. If the color could not be found,
|
|
169
|
+
// this method will fall back to the first color from the panel.
|
|
170
|
+
//
|
|
171
|
+
// @since 4.14.0
|
|
172
|
+
// @private
|
|
173
|
+
// @member CKEDITOR.ui.colorButton
|
|
174
|
+
// @param {Function} callback The filter function which should return `true` if a matching color is found.
|
|
175
|
+
// @param {String} callback.color The color compared by the filter function.
|
|
176
|
+
select: function( callback ) {
|
|
177
|
+
var colors = config.colorButton_colors.split( ',' ),
|
|
178
|
+
color = CKEDITOR.tools.array.find( colors, callback );
|
|
179
|
+
|
|
180
|
+
color = ColorBox.normalizeColor( color );
|
|
181
|
+
|
|
182
|
+
selectColor( panelBlock, color );
|
|
183
|
+
panelBlock._.markFirstDisplayed();
|
|
184
|
+
},
|
|
185
|
+
|
|
186
|
+
onBlock: function( panel, block ) {
|
|
187
|
+
panelBlock = block;
|
|
188
|
+
block.autoSize = true;
|
|
189
|
+
block.element.addClass( 'cke_colorblock' );
|
|
190
|
+
block.element.setHtml( renderColors( colorBoxId, clickFn, history ? history.getLength() : 0 ) );
|
|
191
|
+
|
|
192
|
+
// The block should not have scrollbars (https://dev.ckeditor.com/ticket/5933, https://dev.ckeditor.com/ticket/6056)
|
|
193
|
+
block.element.getDocument().getBody().setStyle( 'overflow', 'hidden' );
|
|
194
|
+
|
|
195
|
+
// First render of panel have a scrollbar, but it shouldn't (#4247).
|
|
196
|
+
block.element.getAscendant( { html: 1 } ).setStyle( 'overflow', 'hidden' );
|
|
197
|
+
|
|
198
|
+
CKEDITOR.ui.fire( 'ready', this );
|
|
199
|
+
|
|
200
|
+
var keys = block.keys,
|
|
201
|
+
rtl = editor.lang.dir == 'rtl';
|
|
202
|
+
|
|
203
|
+
keys[ rtl ? 37 : 39 ] = 'next'; // ARROW-RIGHT
|
|
204
|
+
keys[ 40 ] = 'next'; // ARROW-DOWN
|
|
205
|
+
keys[ 9 ] = 'next'; // TAB
|
|
206
|
+
keys[ rtl ? 39 : 37 ] = 'prev'; // ARROW-LEFT
|
|
207
|
+
keys[ 38 ] = 'prev'; // ARROW-UP
|
|
208
|
+
keys[ CKEDITOR.SHIFT + 9 ] = 'prev'; // SHIFT + TAB
|
|
209
|
+
keys[ 32 ] = 'click'; // SPACE
|
|
210
|
+
|
|
211
|
+
if ( history ) {
|
|
212
|
+
history.setContainer( block.element.findOne( '.cke_colorhistory' ) );
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
|
|
216
|
+
// The automatic colorbox should represent the real color (https://dev.ckeditor.com/ticket/6010)
|
|
217
|
+
onOpen: function() {
|
|
218
|
+
var selection = editor.getSelection(),
|
|
219
|
+
block = selection && selection.getStartElement(),
|
|
220
|
+
path = editor.elementPath( block ),
|
|
221
|
+
cssProperty = type == 'back' ? 'background-color' : 'color',
|
|
222
|
+
automaticColor;
|
|
223
|
+
|
|
224
|
+
if ( !path ) {
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
// Find the closest block element.
|
|
229
|
+
block = path.block || path.blockLimit || editor.document.getBody();
|
|
230
|
+
|
|
231
|
+
// The background color might be transparent. In that case, look up the color in the DOM tree.
|
|
232
|
+
do {
|
|
233
|
+
automaticColor = block && block.getComputedStyle( cssProperty ) || 'transparent';
|
|
234
|
+
}
|
|
235
|
+
while ( type == 'back' && automaticColor == 'transparent' && block && ( block = block.getParent() ) );
|
|
236
|
+
|
|
237
|
+
// The box should never be transparent.
|
|
238
|
+
if ( !automaticColor || automaticColor == 'transparent' ) {
|
|
239
|
+
automaticColor = '#ffffff';
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
if ( config.colorButton_enableAutomatic ) {
|
|
243
|
+
panelBlock.element.findOne( '#' + colorBoxId ).setStyle( 'background-color', automaticColor );
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
var range = selection && selection.getRanges()[ 0 ];
|
|
247
|
+
|
|
248
|
+
if ( range ) {
|
|
249
|
+
var walker = new CKEDITOR.dom.walker( range ),
|
|
250
|
+
element = range.collapsed ? range.startContainer : walker.next(),
|
|
251
|
+
finalColor = '',
|
|
252
|
+
currentColor;
|
|
253
|
+
|
|
254
|
+
while ( element ) {
|
|
255
|
+
// (#2296)
|
|
256
|
+
if ( element.type !== CKEDITOR.NODE_ELEMENT ) {
|
|
257
|
+
element = element.getParent();
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
currentColor = ColorBox.normalizeColor( element.getComputedStyle( cssProperty ) );
|
|
261
|
+
finalColor = finalColor || currentColor;
|
|
262
|
+
|
|
263
|
+
if ( finalColor !== currentColor ) {
|
|
264
|
+
finalColor = '';
|
|
265
|
+
break;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
element = walker.next();
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
if ( finalColor == 'transparent' ) {
|
|
272
|
+
finalColor = '';
|
|
273
|
+
}
|
|
274
|
+
if ( type == 'fore' ) {
|
|
275
|
+
colorData.automaticTextColor = '#' + ColorBox.normalizeColor( automaticColor );
|
|
276
|
+
}
|
|
277
|
+
colorData.selectionColor = finalColor ? '#' + finalColor : '';
|
|
278
|
+
|
|
279
|
+
selectColor( panelBlock, finalColor );
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
return automaticColor;
|
|
283
|
+
}
|
|
284
|
+
} );
|
|
285
|
+
|
|
286
|
+
function createColorStyleDefinition() {
|
|
287
|
+
var colorStyleDefinition = editor.config[ 'colorButton_' + type + 'Style' ];
|
|
288
|
+
|
|
289
|
+
colorStyleDefinition.childRule = type == 'back' ?
|
|
290
|
+
function( element ) {
|
|
291
|
+
// It's better to apply background color as the innermost style. (https://dev.ckeditor.com/ticket/3599)
|
|
292
|
+
// Except for "unstylable elements". (https://dev.ckeditor.com/ticket/6103)
|
|
293
|
+
return isUnstylable( element );
|
|
294
|
+
} : function( element ) {
|
|
295
|
+
// Fore color style must be applied inside links instead of around it. (https://dev.ckeditor.com/ticket/4772,https://dev.ckeditor.com/ticket/6908)
|
|
296
|
+
return !( element.is( 'a' ) || element.getElementsByTag( 'a' ).count() ) || isUnstylable( element );
|
|
297
|
+
};
|
|
298
|
+
|
|
299
|
+
return colorStyleDefinition;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
function createClickFunction() {
|
|
303
|
+
return CKEDITOR.tools.addFunction( function addClickFn( color, colorName, colorbox ) {
|
|
304
|
+
editor.focus();
|
|
305
|
+
editor.fire( 'saveSnapshot' );
|
|
306
|
+
|
|
307
|
+
if ( color == '?' ) {
|
|
308
|
+
editor.getColorFromDialog( function( color ) {
|
|
309
|
+
if ( color ) {
|
|
310
|
+
setColor( color, colorName, history );
|
|
311
|
+
}
|
|
312
|
+
}, null, colorData );
|
|
313
|
+
} else {
|
|
314
|
+
setColor( color && '#' + color, colorName, history );
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
// The colors may be duplicated in both default palette and color history. If user reopens panel
|
|
318
|
+
// after choosing color without changing selection, the box that was clicked last should be selected.
|
|
319
|
+
// If selection changes in the meantime, color box from the default palette has the precedence.
|
|
320
|
+
// See https://github.com/ckeditor/ckeditor4/pull/3784#pullrequestreview-378461341 for details.
|
|
321
|
+
if ( !colorbox ) {
|
|
322
|
+
return;
|
|
323
|
+
}
|
|
324
|
+
colorbox.setAttribute( 'cke_colorlast', true );
|
|
325
|
+
editor.once( 'selectionChange', function() {
|
|
326
|
+
colorbox.removeAttribute( 'cke_colorlast' );
|
|
327
|
+
} );
|
|
328
|
+
} );
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
function setColor( color, colorName, colorHistory ) {
|
|
332
|
+
var colorStyleVars = {};
|
|
333
|
+
|
|
334
|
+
if ( color ) {
|
|
335
|
+
colorStyleVars.color = color;
|
|
336
|
+
}
|
|
337
|
+
if ( colorName ) {
|
|
338
|
+
colorStyleVars.colorName = colorName;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
var colorStyle = !CKEDITOR.tools.isEmpty( colorStyleVars ) && new CKEDITOR.style( createColorStyleDefinition(), colorStyleVars );
|
|
342
|
+
|
|
343
|
+
editor.execCommand( commandName, { newStyle: colorStyle } );
|
|
344
|
+
if ( color && colorHistory ) {
|
|
345
|
+
colorHistory.addColor( color.substr( 1 ).toUpperCase() );
|
|
346
|
+
renumberElements( panelBlock );
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
function renumberElements( panel ) {
|
|
351
|
+
var panelElements = panel.element.find( '[role=option]' ).toArray();
|
|
352
|
+
|
|
353
|
+
for ( var i = 0; i < panelElements.length; i++ ) {
|
|
354
|
+
panelElements[ i ].setAttributes( {
|
|
355
|
+
'aria-posinset': i + 1,
|
|
356
|
+
'aria-setsize': panelElements.length
|
|
357
|
+
} );
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
function renderColors( colorBoxId, clickFn, historyLength ) {
|
|
363
|
+
var output = [],
|
|
364
|
+
colors = config.colorButton_colors.split( ',' ),
|
|
365
|
+
// Tells if we should include "More Colors..." button.
|
|
366
|
+
moreColorsEnabled = editor.plugins.colordialog && config.colorButton_enableMore,
|
|
367
|
+
// aria-setsize and aria-posinset attributes are used to indicate size of options, because
|
|
368
|
+
// screen readers doesn't play nice with table, based layouts (https://dev.ckeditor.com/ticket/12097).
|
|
369
|
+
total = colors.length + historyLength + ( moreColorsEnabled ? 1 : 0 ),
|
|
370
|
+
startingPosition = 1;
|
|
371
|
+
|
|
372
|
+
if ( config.colorButton_enableAutomatic ) {
|
|
373
|
+
total += 1;
|
|
374
|
+
startingPosition += 1;
|
|
375
|
+
generateAutomaticButtonHtml( output );
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
output.push( '<table role="presentation" cellspacing=0 cellpadding=0 width="100%"><tbody>' );
|
|
379
|
+
|
|
380
|
+
// Render the color boxes.
|
|
381
|
+
for ( var i = 0; i < colors.length; i++ ) {
|
|
382
|
+
if ( ( i % editor.config.colorButton_colorsPerRow ) === 0 )
|
|
383
|
+
output.push( '</tr><tr>' );
|
|
384
|
+
|
|
385
|
+
var parts = colors[ i ].split( '/' ),
|
|
386
|
+
colorName = parts[ 0 ],
|
|
387
|
+
colorCode = parts[ 1 ] || colorName,
|
|
388
|
+
colorLabel = parts[ 1 ] ? colorName : undefined,
|
|
389
|
+
box = new ColorBox( editor, { color: colorCode, label: colorLabel }, clickFn );
|
|
390
|
+
|
|
391
|
+
box.setPositionIndex( startingPosition + i, total );
|
|
392
|
+
output.push( box.getHtml() );
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
if ( ColorHistory.getRowLimit( editor ) ) {
|
|
396
|
+
ColorHistory.renderContainer( output, editor );
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
if ( moreColorsEnabled ) {
|
|
400
|
+
generateMoreColorsButtonHtml( output );
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
output.push( '</tr></tbody></table>' );
|
|
404
|
+
|
|
405
|
+
return output.join( '' );
|
|
406
|
+
|
|
407
|
+
function generateAutomaticButtonHtml( output ) {
|
|
408
|
+
output.push( '<a class="cke_colorauto" _cke_focus=1 hidefocus=true',
|
|
409
|
+
' title="', lang.auto, '"',
|
|
410
|
+
' draggable="false"',
|
|
411
|
+
' ondragstart="return false;"', // Draggable attribute is buggy on Firefox.
|
|
412
|
+
' onclick="CKEDITOR.tools.callFunction(', clickFn, ',null\);return false;"',
|
|
413
|
+
' href="javascript:void(\'', lang.auto, '\')"',
|
|
414
|
+
' role="option" aria-posinset="1" aria-setsize="', total, '">',
|
|
415
|
+
'<table role="presentation" cellspacing=0 cellpadding=0 width="100%">',
|
|
416
|
+
'<tr>',
|
|
417
|
+
'<td colspan="', editor.config.colorButton_colorsPerRow, '" align="center">',
|
|
418
|
+
'<span class="cke_colorbox" id="', colorBoxId, '"></span>', lang.auto,
|
|
419
|
+
'</td>',
|
|
420
|
+
'</tr>',
|
|
421
|
+
'</table>',
|
|
422
|
+
'</a>' );
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
function generateMoreColorsButtonHtml( output ) {
|
|
426
|
+
output.push( '</tr>',
|
|
427
|
+
'<tr>',
|
|
428
|
+
'<td colspan="', editor.config.colorButton_colorsPerRow, '" align="center">',
|
|
429
|
+
'<a class="cke_colormore" _cke_focus=1 hidefocus=true',
|
|
430
|
+
' title="', lang.more, '"',
|
|
431
|
+
' draggable="false"',
|
|
432
|
+
' ondragstart="return false;"', // Draggable attribute is buggy on Firefox.
|
|
433
|
+
' onclick="CKEDITOR.tools.callFunction(', clickFn, ',\'?\');return false;"',
|
|
434
|
+
' href="javascript:void(\'', lang.more, '\')"', ' role="option" aria-posinset="', total,
|
|
435
|
+
'" aria-setsize="', total, '">', lang.more,
|
|
436
|
+
'</a>',
|
|
437
|
+
'</td>' ); // </tr> is later in the code.
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
function isUnstylable( ele ) {
|
|
442
|
+
return ( ele.getAttribute( 'contentEditable' ) == 'false' ) || ele.getAttribute( 'data-nostyle' );
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
/*
|
|
446
|
+
* Selects the specified color in the specified panel block.
|
|
447
|
+
*
|
|
448
|
+
* @private
|
|
449
|
+
* @member CKEDITOR.plugins.colorbutton
|
|
450
|
+
* @param {CKEDITOR.ui.panel.block} block
|
|
451
|
+
* @param {String} color
|
|
452
|
+
*/
|
|
453
|
+
function selectColor( block, color ) {
|
|
454
|
+
var items = block._.getItems(),
|
|
455
|
+
selected = block.element.findOne( '[aria-selected]' ),
|
|
456
|
+
lastColor = block.element.findOne( '[cke_colorlast]' );
|
|
457
|
+
|
|
458
|
+
if ( selected ) {
|
|
459
|
+
selected.removeAttribute( 'aria-selected' );
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
if ( lastColor ) {
|
|
463
|
+
lastColor.setAttribute( 'aria-selected', true );
|
|
464
|
+
return;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
for ( var i = 0; i < items.count(); i++ ) {
|
|
468
|
+
var item = items.getItem( i );
|
|
469
|
+
|
|
470
|
+
if ( color && color == ColorBox.normalizeColor( item.getAttribute( 'data-value' ) ) ) {
|
|
471
|
+
item.setAttribute( 'aria-selected', true );
|
|
472
|
+
return;
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
} );
|
|
478
|
+
ColorBox = CKEDITOR.tools.createClass( {
|
|
479
|
+
$: function( editor, colorData, clickFn ) {
|
|
480
|
+
this.$ = new CKEDITOR.dom.element( 'td' );
|
|
481
|
+
|
|
482
|
+
this.color = CKEDITOR.tools._isValidColorFormat( colorData.color ) ? colorData.color : '';
|
|
483
|
+
this.clickFn = clickFn;
|
|
484
|
+
this.label = colorData.label || ColorBox.colorNames( editor )[ this.color ] || this.color;
|
|
485
|
+
|
|
486
|
+
this.setHtml();
|
|
487
|
+
},
|
|
488
|
+
|
|
489
|
+
statics: {
|
|
490
|
+
colorNames: function( editor ) {
|
|
491
|
+
return editor.lang.colorbutton.colors;
|
|
492
|
+
},
|
|
493
|
+
|
|
494
|
+
/*
|
|
495
|
+
* Converts a CSS color value to an easily comparable form.
|
|
496
|
+
*
|
|
497
|
+
* The function supports most of the color formats:
|
|
498
|
+
*
|
|
499
|
+
* * named colors (e.g. `yellow`),
|
|
500
|
+
* * hex colors (e.g. `#FF0000` or `#F00`),
|
|
501
|
+
* * RGB/RGBA colors (e.g. `rgb( 255, 0, 10)` or `rgba( 100, 20, 50, .5 )`),
|
|
502
|
+
* * HSL/HSLA colors (e.g. `hsl( 100, 50%, 20%)` or `hsla( 100, 50%, 20%, 10%)`).
|
|
503
|
+
*
|
|
504
|
+
* @private
|
|
505
|
+
* @param {String} color
|
|
506
|
+
* @returns {String} Returns color in hex format, but without the hash at the beginning, e.g. `ff0000` for red.
|
|
507
|
+
*/
|
|
508
|
+
normalizeColor: function( color ) {
|
|
509
|
+
var alphaRegex = /^(rgb|hsl)a\(/g,
|
|
510
|
+
transparentRegex = /^rgba\((\s*0\s*,?){4}\)$/g,
|
|
511
|
+
isAlphaColor = alphaRegex.test( color ),
|
|
512
|
+
// Browsers tend to represent transparent color as rgba(0, 0, 0, 0), so we need to filter out this value.
|
|
513
|
+
isTransparentColor = transparentRegex.test( color ),
|
|
514
|
+
colorInstance;
|
|
515
|
+
|
|
516
|
+
// For colors with alpha channel we need to use CKEDITOR.tools.color normalization (#4351).
|
|
517
|
+
if ( isAlphaColor && !isTransparentColor ) {
|
|
518
|
+
colorInstance = new CKEDITOR.tools.color( color );
|
|
519
|
+
|
|
520
|
+
return CKEDITOR.tools.normalizeHex( colorInstance.getHex() || '' ).replace( /#/g, '' );
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
// Replace 3-character hexadecimal notation with a 6-character hexadecimal notation (#1008).
|
|
524
|
+
return CKEDITOR.tools.normalizeHex( '#' + CKEDITOR.tools.convertRgbToHex( color || '' ) ).replace( /#/g, '' );
|
|
525
|
+
}
|
|
526
|
+
},
|
|
527
|
+
|
|
528
|
+
proto: {
|
|
529
|
+
getElement: function() {
|
|
530
|
+
return this.$;
|
|
531
|
+
},
|
|
532
|
+
|
|
533
|
+
getHtml: function() {
|
|
534
|
+
return this.getElement().getOuterHtml();
|
|
535
|
+
},
|
|
536
|
+
|
|
537
|
+
setHtml: function() {
|
|
538
|
+
this.getElement().setHtml( '<a class="cke_colorbox" _cke_focus=1 hidefocus=true' +
|
|
539
|
+
' title="' + this.label + '"' +
|
|
540
|
+
' draggable="false"' +
|
|
541
|
+
' ondragstart="return false;"' + // Draggable attribute is buggy on Firefox.
|
|
542
|
+
' onclick="CKEDITOR.tools.callFunction(' + this.clickFn + ',\'' + this.color + '\',\'' + this.label + '\', this);' +
|
|
543
|
+
' return false;"' +
|
|
544
|
+
' href="javascript:void(\'' + this.color + '\')"' +
|
|
545
|
+
' data-value="' + this.color + '"' +
|
|
546
|
+
' role="option">' +
|
|
547
|
+
'<span class="cke_colorbox" style="background-color:#' + this.color + '"></span>' +
|
|
548
|
+
'</a>' );
|
|
549
|
+
},
|
|
550
|
+
|
|
551
|
+
setPositionIndex: function( posinset, setsize ) {
|
|
552
|
+
this.getElement().getChild( 0 ).setAttributes( {
|
|
553
|
+
'aria-posinset': posinset,
|
|
554
|
+
'aria-setsize': setsize
|
|
555
|
+
} );
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
} );
|
|
559
|
+
|
|
560
|
+
ColorHistoryRow = CKEDITOR.tools.createClass( {
|
|
561
|
+
$: function() {
|
|
562
|
+
this.$ = new CKEDITOR.dom.element( 'tr' );
|
|
563
|
+
this.$.addClass( 'cke_colorhistory_row' );
|
|
564
|
+
this.boxes = [];
|
|
565
|
+
},
|
|
566
|
+
|
|
567
|
+
proto: {
|
|
568
|
+
getElement: function() {
|
|
569
|
+
return this.$;
|
|
570
|
+
},
|
|
571
|
+
|
|
572
|
+
removeLastColor: function() {
|
|
573
|
+
this.getElement().getLast().remove();
|
|
574
|
+
return this.boxes.pop();
|
|
575
|
+
},
|
|
576
|
+
|
|
577
|
+
addNewColor: function( colorBox ) {
|
|
578
|
+
this.boxes.unshift( colorBox );
|
|
579
|
+
this.getElement().append( colorBox.getElement(), true );
|
|
580
|
+
},
|
|
581
|
+
|
|
582
|
+
extractColorBox: function( colorCode ) {
|
|
583
|
+
var index = CKEDITOR.tools.getIndex( this.boxes, function( box ) {
|
|
584
|
+
return box.color === colorCode;
|
|
585
|
+
} );
|
|
586
|
+
|
|
587
|
+
if ( index < 0 ) {
|
|
588
|
+
return null;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
this.boxes[ index ].getElement().remove();
|
|
592
|
+
return this.boxes.splice( index, 1 )[ 0 ];
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
} );
|
|
596
|
+
|
|
597
|
+
ColorHistory = CKEDITOR.tools.createClass( {
|
|
598
|
+
$: function( editor, cssProperty, clickFn ) {
|
|
599
|
+
this.editor = editor;
|
|
600
|
+
this.cssProperty = cssProperty;
|
|
601
|
+
this.clickFn = clickFn;
|
|
602
|
+
|
|
603
|
+
this.rows = [];
|
|
604
|
+
this._.addNewRow();
|
|
605
|
+
|
|
606
|
+
if ( this.editor.config.colorButton_renderContentColors ) {
|
|
607
|
+
// It can't be done right away - we have to wait till editable is set up.
|
|
608
|
+
this.editor.once( 'instanceReady', function() {
|
|
609
|
+
this.renderContentColors();
|
|
610
|
+
}, this );
|
|
611
|
+
}
|
|
612
|
+
},
|
|
613
|
+
|
|
614
|
+
statics: {
|
|
615
|
+
renderContainer: function( output, editor ) {
|
|
616
|
+
output.push( '</tbody><tbody class="cke_colorhistory" style="display:none;">',
|
|
617
|
+
'<tr>',
|
|
618
|
+
'<td colspan="', editor.config.colorButton_colorsPerRow, '" align="center">',
|
|
619
|
+
'<span><hr></span>',
|
|
620
|
+
'</td>',
|
|
621
|
+
'</tr>',
|
|
622
|
+
'</tbody><tbody>' );
|
|
623
|
+
},
|
|
624
|
+
|
|
625
|
+
getRowLimit: function( editor ) {
|
|
626
|
+
return editor.config.colorButton_historyRowLimit;
|
|
627
|
+
},
|
|
628
|
+
|
|
629
|
+
getCapacity: function( editor ) {
|
|
630
|
+
return ColorHistory.getRowLimit( editor ) * editor.config.colorButton_colorsPerRow;
|
|
631
|
+
},
|
|
632
|
+
|
|
633
|
+
colorList: CKEDITOR.tools.style.parse._colors
|
|
634
|
+
},
|
|
635
|
+
|
|
636
|
+
_: {
|
|
637
|
+
countColors: function() {
|
|
638
|
+
var spans = CKEDITOR.tools.getStyledSpans( this.cssProperty, this.editor.editable() ),
|
|
639
|
+
colorOccurrences = CKEDITOR.tools.array.reduce( spans, function( occurrences, span ) {
|
|
640
|
+
var colorCode = this._.getHexCode( span, this.cssProperty, ColorHistory.colorList );
|
|
641
|
+
|
|
642
|
+
occurrences[ colorCode ] = occurrences[ colorCode ] || 0;
|
|
643
|
+
occurrences[ colorCode ] += 1;
|
|
644
|
+
|
|
645
|
+
return occurrences;
|
|
646
|
+
}, {}, this );
|
|
647
|
+
|
|
648
|
+
return colorOccurrences;
|
|
649
|
+
},
|
|
650
|
+
|
|
651
|
+
getHexCode: function( span, cssProperty, list ) {
|
|
652
|
+
var color = span.getStyle( cssProperty );
|
|
653
|
+
|
|
654
|
+
return color in list ? list[ color ].substr( 1 ) : ColorBox.normalizeColor( span.getComputedStyle( cssProperty ) ).toUpperCase();
|
|
655
|
+
},
|
|
656
|
+
|
|
657
|
+
sortByOccurrencesAscending: function( objectToParse, targetKeyName ) {
|
|
658
|
+
var result = [];
|
|
659
|
+
|
|
660
|
+
for ( var key in objectToParse ) {
|
|
661
|
+
var color = {};
|
|
662
|
+
|
|
663
|
+
color[ targetKeyName ] = key;
|
|
664
|
+
color.frequency = objectToParse[ key ];
|
|
665
|
+
|
|
666
|
+
result.push( color );
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
result.sort( function( a, b ) {
|
|
670
|
+
return b.frequency - a.frequency;
|
|
671
|
+
} );
|
|
672
|
+
|
|
673
|
+
this._.trimToCapacity( result );
|
|
674
|
+
|
|
675
|
+
return result.reverse();
|
|
676
|
+
},
|
|
677
|
+
|
|
678
|
+
trimToCapacity: function( array ) {
|
|
679
|
+
array.splice( ColorHistory.getCapacity( this.editor ) );
|
|
680
|
+
},
|
|
681
|
+
|
|
682
|
+
addColors: function( colorData ) {
|
|
683
|
+
CKEDITOR.tools.array.forEach( colorData, function( color ) {
|
|
684
|
+
this.addColor( color.colorCode );
|
|
685
|
+
}, this );
|
|
686
|
+
},
|
|
687
|
+
|
|
688
|
+
extractColorBox: function( colorCode ) {
|
|
689
|
+
for ( var i = 0; i < this.rows.length; i++ ) {
|
|
690
|
+
var box = this.rows[ i ].extractColorBox( colorCode );
|
|
691
|
+
|
|
692
|
+
if ( box ) {
|
|
693
|
+
return box;
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
return null;
|
|
698
|
+
},
|
|
699
|
+
|
|
700
|
+
moveToBeginning: function( colorBox ) {
|
|
701
|
+
this.rows[ 0 ].addNewColor( colorBox );
|
|
702
|
+
},
|
|
703
|
+
|
|
704
|
+
createAtBeginning: function( colorCode ) {
|
|
705
|
+
this._.moveToBeginning( new ColorBox( this.editor, { color: colorCode }, this.clickFn ) );
|
|
706
|
+
},
|
|
707
|
+
|
|
708
|
+
addNewRow: function() {
|
|
709
|
+
this.rows.push( new ColorHistoryRow() );
|
|
710
|
+
|
|
711
|
+
if ( this.container ) {
|
|
712
|
+
this.container.append( this.rows[ this.rows.length - 1 ].getElement() );
|
|
713
|
+
}
|
|
714
|
+
},
|
|
715
|
+
|
|
716
|
+
alignRows: function() {
|
|
717
|
+
for ( var rowIndex = 0; rowIndex < ColorHistory.getRowLimit( this.editor ); rowIndex++ ) {
|
|
718
|
+
if ( this.rows[ rowIndex ].boxes.length <= this.editor.config.colorButton_colorsPerRow ) {
|
|
719
|
+
return;
|
|
720
|
+
} else if ( this.rows[ rowIndex + 1 ] ) {
|
|
721
|
+
this._.moveLastBoxToNextRow( rowIndex );
|
|
722
|
+
} else if ( rowIndex < ColorHistory.getRowLimit( this.editor ) - 1 ) {
|
|
723
|
+
this._.addNewRow();
|
|
724
|
+
this._.moveLastBoxToNextRow( rowIndex );
|
|
725
|
+
} else {
|
|
726
|
+
this.rows[ rowIndex ].removeLastColor();
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
},
|
|
730
|
+
|
|
731
|
+
moveLastBoxToNextRow: function( index ) {
|
|
732
|
+
this.rows[ index + 1 ].addNewColor( this.rows[ index ].removeLastColor() );
|
|
733
|
+
},
|
|
734
|
+
|
|
735
|
+
refreshPositions: function() {
|
|
736
|
+
var total = this._.countPanelElements(),
|
|
737
|
+
position = this._.calculateFirstPosition( total );
|
|
738
|
+
|
|
739
|
+
CKEDITOR.tools.array.forEach( this.rows, function( row ) {
|
|
740
|
+
CKEDITOR.tools.array.forEach( row.boxes, function( colorBox ) {
|
|
741
|
+
colorBox.setPositionIndex( position, total );
|
|
742
|
+
position += 1;
|
|
743
|
+
} );
|
|
744
|
+
} );
|
|
745
|
+
},
|
|
746
|
+
|
|
747
|
+
countPanelElements: function() {
|
|
748
|
+
var total = this.editor.config.colorButton_colors.split( ',' ).length + this.getLength();
|
|
749
|
+
|
|
750
|
+
if ( this.editor.plugins.colordialog && this.editor.config.colorButton_enableMore ) {
|
|
751
|
+
total += 1;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
if ( this.editor.config.colorButton_enableAutomatic ) {
|
|
755
|
+
total += 1;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
return total;
|
|
759
|
+
},
|
|
760
|
+
|
|
761
|
+
calculateFirstPosition: function( total ) {
|
|
762
|
+
if ( this.editor.plugins.colordialog && this.editor.config.colorButton_enableMore ) {
|
|
763
|
+
return total - this.getLength();
|
|
764
|
+
} else {
|
|
765
|
+
return total - this.getLength() + 1;
|
|
766
|
+
}
|
|
767
|
+
},
|
|
768
|
+
|
|
769
|
+
attachRows: function() {
|
|
770
|
+
CKEDITOR.tools.array.forEach( this.rows, function( row ) {
|
|
771
|
+
this.container.append( row.getElement() );
|
|
772
|
+
}, this );
|
|
773
|
+
}
|
|
774
|
+
},
|
|
775
|
+
|
|
776
|
+
proto: {
|
|
777
|
+
setContainer: function( container ) {
|
|
778
|
+
this.container = container;
|
|
779
|
+
this._.attachRows();
|
|
780
|
+
|
|
781
|
+
if ( this.getLength() ) {
|
|
782
|
+
this.show();
|
|
783
|
+
}
|
|
784
|
+
},
|
|
785
|
+
|
|
786
|
+
show: function() {
|
|
787
|
+
if ( this.container ) {
|
|
788
|
+
this.container.show();
|
|
789
|
+
}
|
|
790
|
+
},
|
|
791
|
+
|
|
792
|
+
renderContentColors: function() {
|
|
793
|
+
var colorOccurrences = this._.countColors();
|
|
794
|
+
|
|
795
|
+
if ( CKEDITOR.tools.isEmpty( colorOccurrences ) ) {
|
|
796
|
+
return;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
var colorData = this._.sortByOccurrencesAscending( colorOccurrences, 'colorCode' );
|
|
800
|
+
|
|
801
|
+
this._.addColors( colorData );
|
|
802
|
+
this._.refreshPositions();
|
|
803
|
+
},
|
|
804
|
+
|
|
805
|
+
addColor: function( colorCode ) {
|
|
806
|
+
var existingBox = this._.extractColorBox( colorCode );
|
|
807
|
+
|
|
808
|
+
if ( this.container && !this.container.isVisible() ) {
|
|
809
|
+
this.show();
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
if ( existingBox ) {
|
|
813
|
+
this._.moveToBeginning( existingBox );
|
|
814
|
+
} else {
|
|
815
|
+
this._.createAtBeginning( colorCode );
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
this._.alignRows();
|
|
819
|
+
},
|
|
820
|
+
|
|
821
|
+
getLength: function() {
|
|
822
|
+
return CKEDITOR.tools.array.reduce( this.rows, function( total, row ) {
|
|
823
|
+
return total += row.boxes.length;
|
|
824
|
+
}, 0 );
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
} );
|
|
828
|
+
} )();
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* Whether to enable the **More Colors** button in the color selectors.
|
|
832
|
+
*
|
|
833
|
+
* Read more in the {@glink features/colorbutton documentation}
|
|
834
|
+
* and see the {@glink examples/colorbutton example}.
|
|
835
|
+
*
|
|
836
|
+
* config.colorButton_enableMore = false;
|
|
837
|
+
*
|
|
838
|
+
* @cfg {Boolean} [colorButton_enableMore=true]
|
|
839
|
+
* @member CKEDITOR.config
|
|
840
|
+
*/
|
|
841
|
+
CKEDITOR.config.colorButton_enableMore = true;
|
|
842
|
+
|
|
843
|
+
/**
|
|
844
|
+
* Defines the colors to be displayed in the color selectors. This is a string
|
|
845
|
+
* containing hexadecimal notation for HTML colors, without the `'#'` prefix.
|
|
846
|
+
*
|
|
847
|
+
* **Since 3.3:** A color name may optionally be defined by prefixing the entries with
|
|
848
|
+
* a name and the slash character. For example, `'FontColor1/FF9900'` will be
|
|
849
|
+
* displayed as the color `#FF9900` in the selector, but will be output as `'FontColor1'`.
|
|
850
|
+
* **This behaviour was altered in version 4.12.0.**
|
|
851
|
+
*
|
|
852
|
+
* **Since 4.6.2:** The default color palette has changed. It contains fewer colors in more
|
|
853
|
+
* pastel shades than the previous one.
|
|
854
|
+
*
|
|
855
|
+
* **Since 4.12.0:** Defining colors with names works in a different way. Colors names can be defined
|
|
856
|
+
* by `colorName/colorCode`. The color name is only used in the tooltip. The output will now use the color code.
|
|
857
|
+
* For example, `FontColor/FF9900` will be displayed as the color `#FF9900` in the selector, and will
|
|
858
|
+
* be output as `#FF9900`.
|
|
859
|
+
*
|
|
860
|
+
* Read more in the {@glink features/colorbutton documentation}
|
|
861
|
+
* and see the {@glink examples/colorbutton example}.
|
|
862
|
+
*
|
|
863
|
+
* // Brazil colors only.
|
|
864
|
+
* config.colorButton_colors = '00923E,F8C100,28166F';
|
|
865
|
+
*
|
|
866
|
+
* config.colorButton_colors = 'FontColor1/FF9900,FontColor2/0066CC,FontColor3/F00';
|
|
867
|
+
*
|
|
868
|
+
* // CKEditor color palette available before version 4.6.2.
|
|
869
|
+
* config.colorButton_colors =
|
|
870
|
+
* '000,800000,8B4513,2F4F4F,008080,000080,4B0082,696969,' +
|
|
871
|
+
* 'B22222,A52A2A,DAA520,006400,40E0D0,0000CD,800080,808080,' +
|
|
872
|
+
* 'F00,FF8C00,FFD700,008000,0FF,00F,EE82EE,A9A9A9,' +
|
|
873
|
+
* 'FFA07A,FFA500,FFFF00,00FF00,AFEEEE,ADD8E6,DDA0DD,D3D3D3,' +
|
|
874
|
+
* 'FFF0F5,FAEBD7,FFFFE0,F0FFF0,F0FFFF,F0F8FF,E6E6FA,FFF';
|
|
875
|
+
*
|
|
876
|
+
* @cfg {String} [colorButton_colors]
|
|
877
|
+
* @member CKEDITOR.config
|
|
878
|
+
*/
|
|
879
|
+
CKEDITOR.config.colorButton_colors = '1ABC9C,2ECC71,3498DB,9B59B6,4E5F70,F1C40F,' +
|
|
880
|
+
'16A085,27AE60,2980B9,8E44AD,2C3E50,F39C12,' +
|
|
881
|
+
'E67E22,E74C3C,ECF0F1,95A5A6,DDD,FFF,' +
|
|
882
|
+
'D35400,C0392B,BDC3C7,7F8C8D,999,000';
|
|
883
|
+
|
|
884
|
+
/**
|
|
885
|
+
* Stores the style definition that applies the text foreground color.
|
|
886
|
+
*
|
|
887
|
+
* **Note:** Advanced Content Filter (ACF) is not updated automatically by a custom style definition.
|
|
888
|
+
* You may need to add additional ACF rules, so the customized style element is not removed.
|
|
889
|
+
* Learn more how to configure ACF with {@glink guide/dev_advanced_content_filter Advanced Content Filter guide}.
|
|
890
|
+
*
|
|
891
|
+
* Read more in the {@glink features/colorbutton documentation}
|
|
892
|
+
* and see the {@glink examples/colorbutton example}.
|
|
893
|
+
*
|
|
894
|
+
* // This is actually the default value.
|
|
895
|
+
* config.colorButton_foreStyle = {
|
|
896
|
+
* element: 'span',
|
|
897
|
+
* styles: { color: '#(color)' }
|
|
898
|
+
* };
|
|
899
|
+
*
|
|
900
|
+
* **Since 4.15.0:** Added `colorName` property, which can be used instead of a `color`
|
|
901
|
+
* property to customize foreground style. For example to add custom class:
|
|
902
|
+
*
|
|
903
|
+
* config.colorButton_foreStyle = {
|
|
904
|
+
* element: 'span',
|
|
905
|
+
* attributes: { 'class': '#(colorName)' }
|
|
906
|
+
* };
|
|
907
|
+
*
|
|
908
|
+
* @cfg [colorButton_foreStyle]
|
|
909
|
+
* @member CKEDITOR.config
|
|
910
|
+
*/
|
|
911
|
+
CKEDITOR.config.colorButton_foreStyle = {
|
|
912
|
+
element: 'span',
|
|
913
|
+
styles: { 'color': '#(color)' },
|
|
914
|
+
overrides: [ {
|
|
915
|
+
element: 'font', attributes: { 'color': null }
|
|
916
|
+
} ]
|
|
917
|
+
};
|
|
918
|
+
|
|
919
|
+
/**
|
|
920
|
+
* Stores the style definition that applies the text background color.
|
|
921
|
+
*
|
|
922
|
+
* **Note:** Advanced Content Filter (ACF) is not updated automatically by a custom style definition.
|
|
923
|
+
* You may need to add additional ACF rules, so the customized style element is not removed.
|
|
924
|
+
* Learn more how to configure ACF with {@glink guide/dev_advanced_content_filter Advanced Content Filter guide}.
|
|
925
|
+
*
|
|
926
|
+
* Read more in the {@glink features/colorbutton documentation}
|
|
927
|
+
* and see the {@glink examples/colorbutton example}.
|
|
928
|
+
*
|
|
929
|
+
* // This is actually the default value.
|
|
930
|
+
* config.colorButton_backStyle = {
|
|
931
|
+
* element: 'span',
|
|
932
|
+
* styles: { 'background-color': '#(color)' }
|
|
933
|
+
* };
|
|
934
|
+
*
|
|
935
|
+
* **Since 4.15.0:** Added `colorName` property, which can be used instead of a `color`
|
|
936
|
+
* property to customize background style. For example to add custom class:
|
|
937
|
+
*
|
|
938
|
+
* config.colorButton_backStyle = {
|
|
939
|
+
* element: 'span',
|
|
940
|
+
* attributes: { 'class': '#(colorName)' }
|
|
941
|
+
* };
|
|
942
|
+
*
|
|
943
|
+
* @cfg [colorButton_backStyle]
|
|
944
|
+
* @member CKEDITOR.config
|
|
945
|
+
*/
|
|
946
|
+
CKEDITOR.config.colorButton_backStyle = {
|
|
947
|
+
element: 'span',
|
|
948
|
+
styles: { 'background-color': '#(color)' }
|
|
949
|
+
};
|
|
950
|
+
|
|
951
|
+
/**
|
|
952
|
+
* Whether to enable the **Automatic** button in the color selectors.
|
|
953
|
+
*
|
|
954
|
+
* Read more in the {@glink features/colorbutton documentation}
|
|
955
|
+
* and see the {@glink examples/colorbutton example}.
|
|
956
|
+
*
|
|
957
|
+
* config.colorButton_enableAutomatic = false;
|
|
958
|
+
*
|
|
959
|
+
* @cfg {Boolean} [colorButton_enableAutomatic=true]
|
|
960
|
+
* @member CKEDITOR.config
|
|
961
|
+
*/
|
|
962
|
+
CKEDITOR.config.colorButton_enableAutomatic = true;
|
|
963
|
+
|
|
964
|
+
/**
|
|
965
|
+
* Defines how many colors will be shown per row in the color selectors.
|
|
966
|
+
*
|
|
967
|
+
* Read more in the {@glink features/colorbutton documentation}
|
|
968
|
+
* and see the {@glink examples/colorbutton example}.
|
|
969
|
+
*
|
|
970
|
+
* config.colorButton_colorsPerRow = 8;
|
|
971
|
+
*
|
|
972
|
+
* @since 4.6.2
|
|
973
|
+
* @cfg {Number} [colorButton_colorsPerRow=6]
|
|
974
|
+
* @member CKEDITOR.config
|
|
975
|
+
*/
|
|
976
|
+
CKEDITOR.config.colorButton_colorsPerRow = 6;
|
|
977
|
+
|
|
978
|
+
/**
|
|
979
|
+
* Whether the plugin should convert `background` CSS properties with color only, to a `background-color` property,
|
|
980
|
+
* allowing the [Color Button](https://ckeditor.com/cke4/addon/colorbutton) plugin to edit these styles.
|
|
981
|
+
*
|
|
982
|
+
* config.colorButton_normalizeBackground = false;
|
|
983
|
+
*
|
|
984
|
+
* @since 4.6.1
|
|
985
|
+
* @cfg {Boolean} [colorButton_normalizeBackground=true]
|
|
986
|
+
* @member CKEDITOR.config
|
|
987
|
+
*/
|
|
988
|
+
|
|
989
|
+
/**
|
|
990
|
+
* Defines how many color history rows can be created.
|
|
991
|
+
*
|
|
992
|
+
* config.colorButton_historyRowLimit = 2;
|
|
993
|
+
*
|
|
994
|
+
* @since 4.15.0
|
|
995
|
+
* @cfg {Number} [colorButton_historyRowLimit=1]
|
|
996
|
+
* @member CKEDITOR.config
|
|
997
|
+
*/
|
|
998
|
+
CKEDITOR.config.colorButton_historyRowLimit = 1;
|
|
999
|
+
|
|
1000
|
+
/**
|
|
1001
|
+
* Defines if color history should be initially filled by colors found in content.
|
|
1002
|
+
*
|
|
1003
|
+
* config.colorButton_renderContentColors = false;
|
|
1004
|
+
*
|
|
1005
|
+
* @since 4.15.0
|
|
1006
|
+
* @cfg {Number} [colorButton_renderContentColors=true]
|
|
1007
|
+
* @member CKEDITOR.config
|
|
1008
|
+
*/
|
|
1009
|
+
CKEDITOR.config.colorButton_renderContentColors = true;
|