tocco-devcon 1.0.196 → 1.0.197-hotfix37.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +42 -0
- package/dist/{chunk-496.2c94bc185c98a2df60ac.js → chunk-496.34160df6943b5f28b796.js} +1 -1
- package/dist/chunk-html-editor.7d0ce5cc789ff8b9fb57.js +6 -0
- package/dist/ckeditor4/adapters/jquery.js +1 -1
- package/dist/ckeditor4/ckeditor-new.js +1 -0
- package/dist/ckeditor4/config.js +1 -1
- package/dist/ckeditor4/contents.css +3 -3
- package/dist/ckeditor4/lang/de-ch.js +1 -1
- package/dist/ckeditor4/lang/de.js +1 -1
- package/dist/ckeditor4/lang/en.js +1 -1
- package/dist/ckeditor4/lang/fr.js +1 -1
- package/dist/ckeditor4/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/a11yhelp.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/af.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/ar.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/az.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/bg.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/ca.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/cs.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/cy.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/da.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/el.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/en-au.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/en-gb.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/eo.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/es-mx.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/es.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/et.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/eu.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/fa.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/fi.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/fo.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/fr-ca.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/gl.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/gu.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/he.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/hi.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/hr.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/hu.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/id.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/ja.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/km.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/ko.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/ku.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/lt.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/lv.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/mk.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/mn.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/nb.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/nl.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/no.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/oc.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/pl.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/pt-br.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/pt.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/ro.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/ru.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/si.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/sk.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/sl.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/sq.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/sr-latn.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/sr.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/sv.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/th.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/tr.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/tt.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/ug.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/uk.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/vi.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/zh-cn.js +1 -1
- package/dist/ckeditor4/plugins/a11yhelp/dialogs/lang/zh.js +1 -1
- package/dist/ckeditor4/plugins/about/dialogs/about.js +1 -1
- package/dist/ckeditor4/plugins/adobeair/plugin.js +1 -1
- package/dist/ckeditor4/plugins/autocomplete/plugin.js +1 -1
- package/dist/ckeditor4/plugins/autocomplete/skins/default.css +5 -5
- package/dist/ckeditor4/plugins/autoembed/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/autoembed/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/autoembed/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/autoembed/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/autoembed/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/autoembed/plugin.js +1 -1
- package/dist/ckeditor4/plugins/autogrow/plugin.js +1 -1
- package/dist/ckeditor4/plugins/autolink/plugin.js +1 -1
- package/dist/ckeditor4/plugins/balloonpanel/plugin.js +1 -1
- package/dist/ckeditor4/plugins/balloonpanel/skins/kama/balloonpanel.css +32 -32
- package/dist/ckeditor4/plugins/balloonpanel/skins/moono/balloonpanel.css +32 -32
- package/dist/ckeditor4/plugins/balloonpanel/skins/moono-lisa/balloonpanel.css +35 -35
- package/dist/ckeditor4/plugins/balloontoolbar/plugin.js +1 -1
- package/dist/ckeditor4/plugins/balloontoolbar/skins/default.css +20 -20
- package/dist/ckeditor4/plugins/balloontoolbar/skins/kama/balloontoolbar.css +6 -6
- package/dist/ckeditor4/plugins/balloontoolbar/skins/moono/balloontoolbar.css +6 -6
- package/dist/ckeditor4/plugins/balloontoolbar/skins/moono-lisa/balloontoolbar.css +11 -11
- package/dist/ckeditor4/plugins/bbcode/plugin.js +1 -1
- package/dist/ckeditor4/plugins/bidi/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/bidi/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/bidi/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/bidi/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/bidi/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/bidi/plugin.js +1 -1
- package/dist/ckeditor4/plugins/clipboard/dialogs/paste.js +1 -1
- package/dist/ckeditor4/plugins/cloudservices/plugin.js +1 -1
- package/dist/ckeditor4/plugins/codemirror/css/codemirror.min.css +1 -1
- package/dist/ckeditor4/plugins/codemirror/dialogs/codemirrorAbout.js +1 -1
- package/dist/ckeditor4/plugins/codemirror/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/codemirror/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/codemirror/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/codemirror/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/codemirror/plugin.js +1 -1
- package/dist/ckeditor4/plugins/codesnippet/dialogs/codesnippet.js +1 -1
- package/dist/ckeditor4/plugins/codesnippet/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/codesnippet/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/codesnippet/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/codesnippet/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/codesnippet/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/codesnippet/plugin.js +1 -1
- package/dist/ckeditor4/plugins/codesnippetgeshi/plugin.js +1 -1
- package/dist/ckeditor4/plugins/colorbutton/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/colorbutton/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/colorbutton/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/colorbutton/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/colorbutton/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/colorbutton/plugin.js +1 -1
- package/dist/ckeditor4/plugins/colordialog/dialogs/colordialog.css +4 -4
- package/dist/ckeditor4/plugins/colordialog/dialogs/colordialog.js +1 -1
- package/dist/ckeditor4/plugins/colordialog/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/colordialog/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/colordialog/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/colordialog/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/colordialog/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/colordialog/plugin.js +1 -1
- package/dist/ckeditor4/plugins/copyformatting/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/copyformatting/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/copyformatting/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/copyformatting/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/copyformatting/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/copyformatting/plugin.js +1 -1
- package/dist/ckeditor4/plugins/copyformatting/styles/copyformatting.css +14 -14
- package/dist/ckeditor4/plugins/devtools/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/devtools/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/devtools/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/devtools/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/devtools/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/devtools/plugin.js +1 -1
- package/dist/ckeditor4/plugins/dialog/styles/dialog.css +3 -3
- package/dist/ckeditor4/plugins/dialogadvtab/plugin.js +1 -1
- package/dist/ckeditor4/plugins/div/dialogs/div.js +1 -1
- package/dist/ckeditor4/plugins/div/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/div/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/div/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/div/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/div/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/div/plugin.js +1 -1
- package/dist/ckeditor4/plugins/divarea/plugin.js +1 -1
- package/dist/ckeditor4/plugins/docprops/dialogs/docprops.js +1 -1
- package/dist/ckeditor4/plugins/docprops/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/docprops/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/docprops/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/docprops/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/docprops/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/docprops/plugin.js +1 -1
- package/dist/ckeditor4/plugins/easyimage/dialogs/easyimagealt.js +1 -1
- package/dist/ckeditor4/plugins/easyimage/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/easyimage/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/easyimage/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/easyimage/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/easyimage/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/easyimage/plugin.js +1 -1
- package/dist/ckeditor4/plugins/easyimage/styles/easyimage.css +16 -16
- package/dist/ckeditor4/plugins/editorplaceholder/plugin.js +1 -1
- package/dist/ckeditor4/plugins/embed/plugin.js +1 -1
- package/dist/ckeditor4/plugins/embedbase/dialogs/embedbase.js +1 -1
- package/dist/ckeditor4/plugins/embedbase/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/embedbase/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/embedbase/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/embedbase/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/embedbase/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/embedbase/plugin.js +1 -1
- package/dist/ckeditor4/plugins/embedsemantic/plugin.js +1 -1
- package/dist/ckeditor4/plugins/emoji/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/emoji/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/emoji/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/emoji/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/emoji/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/emoji/plugin.js +1 -1
- package/dist/ckeditor4/plugins/emoji/skins/default.css +39 -39
- package/dist/ckeditor4/plugins/exportpdf/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/exportpdf/plugin.js +1 -1
- package/dist/ckeditor4/plugins/find/dialogs/find.js +1 -1
- package/dist/ckeditor4/plugins/find/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/find/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/find/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/find/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/find/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/find/plugin.js +1 -1
- package/dist/ckeditor4/plugins/flash/plugin.js +1 -1
- package/dist/ckeditor4/plugins/font/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/font/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/font/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/font/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/font/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/font/plugin.js +1 -1
- package/dist/ckeditor4/plugins/forms/dialogs/button.js +1 -1
- package/dist/ckeditor4/plugins/forms/dialogs/checkbox.js +1 -1
- package/dist/ckeditor4/plugins/forms/dialogs/form.js +1 -1
- package/dist/ckeditor4/plugins/forms/dialogs/hiddenfield.js +1 -1
- package/dist/ckeditor4/plugins/forms/dialogs/radio.js +1 -1
- package/dist/ckeditor4/plugins/forms/dialogs/select.js +1 -1
- package/dist/ckeditor4/plugins/forms/dialogs/textarea.js +1 -1
- package/dist/ckeditor4/plugins/forms/dialogs/textfield.js +1 -1
- package/dist/ckeditor4/plugins/forms/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/forms/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/forms/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/forms/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/forms/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/forms/plugin.js +1 -1
- package/dist/ckeditor4/plugins/iframe/dialogs/iframe.js +1 -1
- package/dist/ckeditor4/plugins/iframe/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/iframe/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/iframe/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/iframe/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/iframe/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/iframe/plugin.js +1 -1
- package/dist/ckeditor4/plugins/iframedialog/plugin.js +1 -1
- package/dist/ckeditor4/plugins/image/dialogs/image.js +1 -1
- package/dist/ckeditor4/plugins/image2/dialogs/image2.js +1 -1
- package/dist/ckeditor4/plugins/image2/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/image2/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/image2/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/image2/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/image2/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/image2/plugin.js +1 -1
- package/dist/ckeditor4/plugins/imagebase/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/imagebase/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/imagebase/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/imagebase/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/imagebase/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/imagebase/plugin.js +1 -1
- package/dist/ckeditor4/plugins/imagebase/styles/imagebase.css +3 -3
- package/dist/ckeditor4/plugins/indentblock/plugin.js +1 -1
- package/dist/ckeditor4/plugins/justify/plugin.js +1 -1
- package/dist/ckeditor4/plugins/language/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/language/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/language/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/language/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/language/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/language/plugin.js +1 -1
- package/dist/ckeditor4/plugins/link/dialogs/anchor.js +1 -1
- package/dist/ckeditor4/plugins/link/dialogs/link.js +1 -1
- package/dist/ckeditor4/plugins/liststyle/dialogs/liststyle.js +1 -1
- package/dist/ckeditor4/plugins/liststyle/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/liststyle/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/liststyle/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/liststyle/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/liststyle/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/liststyle/plugin.js +1 -1
- package/dist/ckeditor4/plugins/mathjax/dialogs/mathjax.js +1 -1
- package/dist/ckeditor4/plugins/mathjax/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/mathjax/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/mathjax/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/mathjax/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/mathjax/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/mathjax/plugin.js +1 -1
- package/dist/ckeditor4/plugins/mentions/plugin.js +1 -1
- package/dist/ckeditor4/plugins/newpage/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/newpage/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/newpage/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/newpage/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/newpage/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/newpage/plugin.js +1 -1
- package/dist/ckeditor4/plugins/pagebreak/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/pagebreak/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/pagebreak/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/pagebreak/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/pagebreak/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/pagebreak/plugin.js +1 -1
- package/dist/ckeditor4/plugins/panelbutton/plugin.js +1 -1
- package/dist/ckeditor4/plugins/pastefromgdocs/filter/default.js +1 -1
- package/dist/ckeditor4/plugins/pastefromlibreoffice/filter/default.js +1 -1
- package/dist/ckeditor4/plugins/pastefromword/filter/default.js +1 -1
- package/dist/ckeditor4/plugins/pastetools/filter/common.js +1 -1
- package/dist/ckeditor4/plugins/pastetools/filter/image.js +1 -1
- package/dist/ckeditor4/plugins/placeholder/dialogs/placeholder.js +1 -1
- package/dist/ckeditor4/plugins/placeholder/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/placeholder/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/placeholder/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/placeholder/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/placeholder/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/placeholder/plugin.js +1 -1
- package/dist/ckeditor4/plugins/preview/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/preview/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/preview/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/preview/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/preview/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/preview/plugin.js +1 -1
- package/dist/ckeditor4/plugins/print/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/print/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/print/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/print/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/print/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/print/plugin.js +1 -1
- package/dist/ckeditor4/plugins/save/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/save/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/save/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/save/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/save/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/save/plugin.js +1 -1
- package/dist/ckeditor4/plugins/scayt/dialogs/dialog.css +4 -4
- package/dist/ckeditor4/plugins/scayt/dialogs/options.js +1 -1
- package/dist/ckeditor4/plugins/scayt/dialogs/toolbar.css +17 -17
- package/dist/ckeditor4/plugins/scayt/skins/moono-lisa/scayt.css +1 -1
- package/dist/ckeditor4/plugins/selectall/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/selectall/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/selectall/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/selectall/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/selectall/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/selectall/plugin.js +1 -1
- package/dist/ckeditor4/plugins/sharedspace/plugin.js +1 -1
- package/dist/ckeditor4/plugins/showblocks/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/showblocks/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/showblocks/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/showblocks/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/showblocks/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/showblocks/plugin.js +1 -1
- package/dist/ckeditor4/plugins/smiley/dialogs/smiley.js +1 -1
- package/dist/ckeditor4/plugins/smiley/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/smiley/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/smiley/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/smiley/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/smiley/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/smiley/plugin.js +1 -1
- package/dist/ckeditor4/plugins/sourcedialog/dialogs/sourcedialog.js +1 -1
- package/dist/ckeditor4/plugins/sourcedialog/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/sourcedialog/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/sourcedialog/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/sourcedialog/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/sourcedialog/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/sourcedialog/plugin.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/af.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/ar.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/az.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/bg.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/ca.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/cs.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/cy.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/da.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/el.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/en-au.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/en-ca.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/en-gb.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/eo.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/es-mx.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/es.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/et.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/eu.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/fa.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/fi.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/fr-ca.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/gl.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/he.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/hr.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/hu.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/id.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/ja.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/km.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/ko.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/ku.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/lt.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/lv.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/nb.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/nl.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/no.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/oc.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/pl.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/pt-br.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/pt.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/ro.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/ru.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/si.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/sk.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/sl.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/sq.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/sr-latn.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/sr.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/sv.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/th.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/tr.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/tt.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/ug.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/uk.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/vi.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/zh-cn.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/lang/zh.js +1 -1
- package/dist/ckeditor4/plugins/specialchar/dialogs/specialchar.js +1 -1
- package/dist/ckeditor4/plugins/stylesheetparser/plugin.js +1 -1
- package/dist/ckeditor4/plugins/table/dialogs/table.js +1 -1
- package/dist/ckeditor4/plugins/tableresize/plugin.js +1 -1
- package/dist/ckeditor4/plugins/tableselection/styles/tableselection.css +8 -8
- package/dist/ckeditor4/plugins/tabletools/dialogs/tableCell.js +1 -1
- package/dist/ckeditor4/plugins/templates/dialogs/templates.css +20 -20
- package/dist/ckeditor4/plugins/templates/dialogs/templates.js +1 -1
- package/dist/ckeditor4/plugins/templates/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/templates/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/templates/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/templates/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/templates/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/templates/plugin.js +1 -1
- package/dist/ckeditor4/plugins/templates/templates/default.js +1 -1
- package/dist/ckeditor4/plugins/textmatch/plugin.js +1 -1
- package/dist/ckeditor4/plugins/textwatcher/plugin.js +1 -1
- package/dist/ckeditor4/plugins/uicolor/dialogs/uicolor.css +4 -4
- package/dist/ckeditor4/plugins/uicolor/dialogs/uicolor.js +1 -1
- package/dist/ckeditor4/plugins/uicolor/lang/de-ch.js +1 -1
- package/dist/ckeditor4/plugins/uicolor/lang/de.js +1 -1
- package/dist/ckeditor4/plugins/uicolor/lang/en.js +1 -1
- package/dist/ckeditor4/plugins/uicolor/lang/fr.js +1 -1
- package/dist/ckeditor4/plugins/uicolor/lang/it.js +1 -1
- package/dist/ckeditor4/plugins/uicolor/plugin.js +1 -1
- package/dist/ckeditor4/plugins/uploadfile/plugin.js +1 -1
- package/dist/ckeditor4/skins/kama/dialog.css +1 -1
- package/dist/ckeditor4/skins/kama/dialog_ie.css +1 -1
- package/dist/ckeditor4/skins/kama/dialog_ie7.css +1 -1
- package/dist/ckeditor4/skins/kama/dialog_ie8.css +1 -1
- package/dist/ckeditor4/skins/kama/dialog_iequirks.css +1 -1
- package/dist/ckeditor4/skins/kama/editor.css +1 -1
- package/dist/ckeditor4/skins/kama/editor_ie.css +1 -1
- package/dist/ckeditor4/skins/kama/editor_ie7.css +1 -1
- package/dist/ckeditor4/skins/kama/editor_ie8.css +1 -1
- package/dist/ckeditor4/skins/kama/editor_iequirks.css +1 -1
- package/dist/ckeditor4/skins/kama/skin.js +1 -1
- package/dist/ckeditor4/skins/moono/dialog.css +1 -1
- package/dist/ckeditor4/skins/moono/dialog_ie.css +1 -1
- package/dist/ckeditor4/skins/moono/dialog_ie7.css +1 -1
- package/dist/ckeditor4/skins/moono/dialog_ie8.css +1 -1
- package/dist/ckeditor4/skins/moono/dialog_iequirks.css +1 -1
- package/dist/ckeditor4/skins/moono/editor.css +1 -1
- package/dist/ckeditor4/skins/moono/editor_gecko.css +1 -1
- package/dist/ckeditor4/skins/moono/editor_ie.css +1 -1
- package/dist/ckeditor4/skins/moono/editor_ie7.css +1 -1
- package/dist/ckeditor4/skins/moono/editor_ie8.css +1 -1
- package/dist/ckeditor4/skins/moono/editor_iequirks.css +1 -1
- package/dist/ckeditor4/skins/moono/skin.js +1 -1
- package/dist/ckeditor4/skins/moono-lisa/dialog.css +1 -1
- package/dist/ckeditor4/skins/moono-lisa/dialog_ie.css +1 -1
- package/dist/ckeditor4/skins/moono-lisa/dialog_ie8.css +1 -1
- package/dist/ckeditor4/skins/moono-lisa/dialog_iequirks.css +1 -1
- package/dist/ckeditor4/skins/moono-lisa/editor.css +1 -1
- package/dist/ckeditor4/skins/moono-lisa/editor_gecko.css +1 -1
- package/dist/ckeditor4/skins/moono-lisa/editor_ie.css +1 -1
- package/dist/ckeditor4/skins/moono-lisa/editor_ie8.css +1 -1
- package/dist/ckeditor4/skins/moono-lisa/editor_iequirks.css +1 -1
- package/dist/ckeditor4/styles.js +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-html-editor.aea905be6090ad559315.js +0 -6
- package/dist/ckeditor4/ckeditor.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
NEW_CKEDITOR.dialog.add("textarea",(function(e){return{title:e.lang.forms.textarea.title,minWidth:350,minHeight:220,getModel:function(e){return(e=e.getSelection().getSelectedElement())&&"textarea"==e.getName()?e:null},onShow:function(){var e=this.getModel(this.getParentEditor());e&&this.setupContent(e)},onOk:function(){var e=this.getParentEditor(),t=this.getModel(e),a=this.getMode(e)==NEW_CKEDITOR.dialog.CREATION_MODE;a&&(t=e.document.createElement("textarea")),this.commitContent(t),a&&e.insertElement(t)},contents:[{id:"info",label:e.lang.forms.textarea.title,title:e.lang.forms.textarea.title,elements:[{id:"_cke_saved_name",type:"text",label:e.lang.common.name,default:"",accessKey:"N",setup:function(e){this.setValue(e.data("edi-saved-name")||e.getAttribute("name")||"")},commit:function(e){this.getValue()?e.data("edi-saved-name",this.getValue()):(e.data("edi-saved-name",!1),e.removeAttribute("name"))}},{type:"hbox",widths:["50%","50%"],children:[{id:"cols",type:"text",label:e.lang.forms.textarea.cols,default:"",accessKey:"C",style:"width:50px",validate:NEW_CKEDITOR.dialog.validate.integer(e.lang.common.validateNumberFailed),setup:function(e){e=e.hasAttribute("cols")&&e.getAttribute("cols"),this.setValue(e||"")},commit:function(e){this.getValue()?e.setAttribute("cols",this.getValue()):e.removeAttribute("cols")}},{id:"rows",type:"text",label:e.lang.forms.textarea.rows,default:"",accessKey:"R",style:"width:50px",validate:NEW_CKEDITOR.dialog.validate.integer(e.lang.common.validateNumberFailed),setup:function(e){e=e.hasAttribute("rows")&&e.getAttribute("rows"),this.setValue(e||"")},commit:function(e){this.getValue()?e.setAttribute("rows",this.getValue()):e.removeAttribute("rows")}}]},{id:"value",type:"textarea",label:e.lang.forms.textfield.value,default:"",setup:function(e){this.setValue(e.$.defaultValue)},commit:function(e){e.$.value=e.$.defaultValue=this.getValue()}},{id:"required",type:"checkbox",label:e.lang.forms.textfield.required,default:"",accessKey:"Q",value:"required",setup:NEW_CKEDITOR.plugins.forms._setupRequiredAttribute,commit:function(e){this.getValue()?e.setAttribute("required","required"):e.removeAttribute("required")}}]}]}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
NEW_CKEDITOR.dialog.add("textfield",(function(e){function t(e){e=e.element;var t=this.getValue();t?e.setAttribute(this.id,t):e.removeAttribute(this.id)}function i(e){e=e.hasAttribute(this.id)&&e.getAttribute(this.id),this.setValue(e||"")}var l={email:1,password:1,search:1,tel:1,text:1,url:1};return{title:e.lang.forms.textfield.title,minWidth:350,minHeight:150,getModel:function(e){return!(e=e.getSelection().getSelectedElement())||"input"!=e.getName()||!l[e.getAttribute("type")]&&e.getAttribute("type")?null:e},onShow:function(){var e=this.getModel(this.getParentEditor());e&&this.setupContent(e)},onOk:function(){var e=this.getParentEditor(),t=this.getModel(e),i=this.getMode(e)==NEW_CKEDITOR.dialog.CREATION_MODE;i&&(t=e.document.createElement("input")).setAttribute("type","text"),t={element:t},i&&e.insertElement(t.element),this.commitContent(t),i||e.getSelection().selectElement(t.element)},onLoad:function(){this.foreach((function(e){e.getValue&&(e.setup||(e.setup=i),e.commit||(e.commit=t))}))},contents:[{id:"info",label:e.lang.forms.textfield.title,title:e.lang.forms.textfield.title,elements:[{type:"hbox",widths:["50%","50%"],children:[{id:"_cke_saved_name",type:"text",label:e.lang.forms.textfield.name,default:"",accessKey:"N",setup:function(e){this.setValue(e.data("edi-saved-name")||e.getAttribute("name")||"")},commit:function(e){e=e.element,this.getValue()?e.data("edi-saved-name",this.getValue()):(e.data("edi-saved-name",!1),e.removeAttribute("name"))}},{id:"value",type:"text",label:e.lang.forms.textfield.value,default:"",accessKey:"V",commit:function(i){if(NEW_CKEDITOR.env.ie&&!this.getValue()){var l=i.element,a=new NEW_CKEDITOR.dom.element("input",e.document);l.copyAttributes(a,{value:1}),a.replace(l),i.element=a}else t.call(this,i)}}]},{type:"hbox",widths:["50%","50%"],children:[{id:"size",type:"text",label:e.lang.forms.textfield.charWidth,default:"",accessKey:"C",style:"width:50px",validate:NEW_CKEDITOR.dialog.validate.integer(e.lang.common.validateNumberFailed)},{id:"maxLength",type:"text",label:e.lang.forms.textfield.maxChars,default:"",accessKey:"M",style:"width:50px",validate:NEW_CKEDITOR.dialog.validate.integer(e.lang.common.validateNumberFailed)}],onLoad:function(){NEW_CKEDITOR.env.ie7Compat&&this.getElement().setStyle("zoom","100%")}},{id:"type",type:"select",label:e.lang.forms.textfield.type,default:"text",accessKey:"M",items:[[e.lang.forms.textfield.typeEmail,"email"],[e.lang.forms.textfield.typePass,"password"],[e.lang.forms.textfield.typeSearch,"search"],[e.lang.forms.textfield.typeTel,"tel"],[e.lang.forms.textfield.typeText,"text"],[e.lang.forms.textfield.typeUrl,"url"]],setup:function(e){this.setValue(e.getAttribute("type"))},commit:function(t){var i=t.element;if(NEW_CKEDITOR.env.ie){var l=i.getAttribute("type"),a=this.getValue();l!=a&&(l=NEW_CKEDITOR.dom.element.createFromHtml('<input type="'+a+'"></input>',e.document),i.copyAttributes(l,{type:1}),l.replace(i),t.element=l)}else i.setAttribute("type",this.getValue())}},{id:"required",type:"checkbox",label:e.lang.forms.textfield.required,default:"",accessKey:"Q",value:"required",setup:NEW_CKEDITOR.plugins.forms._setupRequiredAttribute,commit:function(e){e=e.element,this.getValue()?e.setAttribute("required","required"):e.removeAttribute("required")}}]}]}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
NEW_CKEDITOR.plugins.setLang("forms","de-ch",{button:{title:"Schaltflächeneigenschaften",text:"Text (Wert)",type:"Typ",typeBtn:"Button",typeSbm:"Absenden",typeRst:"Zurücksetzen"},checkboxAndRadio:{checkboxTitle:"Kontrollboxeigenschaften",radioTitle:"Optionsfeldeigenschaften",value:"Wert",selected:"Ausgewählt",required:"Erforderlich"},form:{title:"Formulareigenschaften",menu:"Formulareigenschaften",action:"Aktion",method:"Methode",encoding:"Kodierung"},hidden:{title:"Versteckte Feldeigenschaften",name:"Name",value:"Wert"},select:{title:"Auswahlfeldeigenschaften",selectInfo:"Info auswählen",opAvail:"Verfügbare Optionen",value:"Wert",size:"Grösse",lines:"Linien",chkMulti:"Mehrfachauswahl erlauben",required:"Erforderlich",opText:"Text",opValue:"Wert",btnAdd:"Hinzufügen",btnModify:"Ändern",btnUp:"Hoch",btnDown:"Runter",btnSetValue:"Als ausgewählten Wert festlegen",btnDelete:"Entfernen"},textarea:{title:"Textfeldeigenschaften",cols:"Spalten",rows:"Reihen"},textfield:{title:"Textfeldeigenschaften",name:"Name",value:"Wert",charWidth:"Zeichenbreite",maxChars:"Max. Zeichen",required:"Erforderlich",type:"Typ",typeText:"Text",typePass:"Passwort",typeEmail:"E-mail",typeSearch:"Suche",typeTel:"Telefonnummer",typeUrl:"URL"}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
NEW_CKEDITOR.plugins.setLang("forms","de",{button:{title:"Schaltflächeneigenschaften",text:"Text (Wert)",type:"Typ",typeBtn:"Button",typeSbm:"Absenden",typeRst:"Zurücksetzen"},checkboxAndRadio:{checkboxTitle:"Kontrollboxeigenschaften",radioTitle:"Optionsfeldeigenschaften",value:"Wert",selected:"Ausgewählt",required:"Erforderlich"},form:{title:"Formulareigenschaften",menu:"Formulareigenschaften",action:"Aktion",method:"Methode",encoding:"Kodierung"},hidden:{title:"Versteckte Feldeigenschaften",name:"Name",value:"Wert"},select:{title:"Auswahlfeldeigenschaften",selectInfo:"Info auswählen",opAvail:"Verfügbare Optionen",value:"Wert",size:"Größe",lines:"Linien",chkMulti:"Mehrfachauswahl erlauben",required:"Erforderlich",opText:"Text",opValue:"Wert",btnAdd:"Hinzufügen",btnModify:"Ändern",btnUp:"Hoch",btnDown:"Runter",btnSetValue:"Als ausgewählten Wert festlegen",btnDelete:"Entfernen"},textarea:{title:"Textfeldeigenschaften",cols:"Spalten",rows:"Reihen"},textfield:{title:"Textfeldeigenschaften",name:"Name",value:"Wert",charWidth:"Zeichenbreite",maxChars:"Max. Zeichen",required:"Erforderlich",type:"Typ",typeText:"Text",typePass:"Passwort",typeEmail:"E-mail",typeSearch:"Suche",typeTel:"Telefonnummer",typeUrl:"URL"}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
NEW_CKEDITOR.plugins.setLang("forms","en",{button:{title:"Button Properties",text:"Text (Value)",type:"Type",typeBtn:"Button",typeSbm:"Submit",typeRst:"Reset"},checkboxAndRadio:{checkboxTitle:"Checkbox Properties",radioTitle:"Radio Button Properties",value:"Value",selected:"Selected",required:"Required"},form:{title:"Form Properties",menu:"Form Properties",action:"Action",method:"Method",encoding:"Encoding"},hidden:{title:"Hidden Field Properties",name:"Name",value:"Value"},select:{title:"Selection Field Properties",selectInfo:"Select Info",opAvail:"Available Options",value:"Value",size:"Size",lines:"lines",chkMulti:"Allow multiple selections",required:"Required",opText:"Text",opValue:"Value",btnAdd:"Add",btnModify:"Modify",btnUp:"Up",btnDown:"Down",btnSetValue:"Set as selected value",btnDelete:"Delete"},textarea:{title:"Textarea Properties",cols:"Columns",rows:"Rows"},textfield:{title:"Text Field Properties",name:"Name",value:"Value",charWidth:"Character Width",maxChars:"Maximum Characters",required:"Required",type:"Type",typeText:"Text",typePass:"Password",typeEmail:"Email",typeSearch:"Search",typeTel:"Telephone Number",typeUrl:"URL"}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
NEW_CKEDITOR.plugins.setLang("forms","fr",{button:{title:"Propriétés du bouton",text:"Texte",type:"Type",typeBtn:"Bouton",typeSbm:"Validation",typeRst:"Remise à zéro"},checkboxAndRadio:{checkboxTitle:"Propriétés de la case à cocher",radioTitle:"Propriétés du bouton radio",value:"Valeur",selected:"Sélectionné",required:"Requis"},form:{title:"Propriétés du formulaire",menu:"Propriétés du formulaire",action:"Action",method:"Méthode",encoding:"Encodage"},hidden:{title:"Propriétés du champ invisible",name:"Nom",value:"Valeur"},select:{title:"Propriétés du menu déroulant",selectInfo:"Informations sur le menu déroulant",opAvail:"Options disponibles",value:"Valeur",size:"Taille",lines:"lignes",chkMulti:"Permettre les sélections multiples",required:"Requis",opText:"Texte",opValue:"Valeur",btnAdd:"Ajouter",btnModify:"Modifier",btnUp:"Haut",btnDown:"Bas",btnSetValue:"Définir comme valeur sélectionnée",btnDelete:"Supprimer"},textarea:{title:"Propriétés de la zone de texte",cols:"Colonnes",rows:"Lignes"},textfield:{title:"Propriétés du champ texte",name:"Nom",value:"Valeur",charWidth:"Largeur des caractères",maxChars:"Nombre maximum de caractères",required:"Requis",type:"Type",typeText:"Texte",typePass:"Mot de passe",typeEmail:"Courriel",typeSearch:"Rechercher",typeTel:"Numéro de téléphone",typeUrl:"URL"}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
NEW_CKEDITOR.plugins.setLang("forms","it",{button:{title:"Proprietà bottone",text:"Testo (Valore)",type:"Tipo",typeBtn:"Bottone",typeSbm:"Invio",typeRst:"Annulla"},checkboxAndRadio:{checkboxTitle:"Proprietà checkbox",radioTitle:"Proprietà radio button",value:"Valore",selected:"Selezionato",required:"Richiesto"},form:{title:"Proprietà modulo",menu:"Proprietà modulo",action:"Azione",method:"Metodo",encoding:"Codifica"},hidden:{title:"Proprietà campo nascosto",name:"Nome",value:"Valore"},select:{title:"Proprietà menu di selezione",selectInfo:"Info",opAvail:"Opzioni disponibili",value:"Valore",size:"Dimensione",lines:"righe",chkMulti:"Permetti selezione multipla",required:"Richiesto",opText:"Testo",opValue:"Valore",btnAdd:"Aggiungi",btnModify:"Modifica",btnUp:"Su",btnDown:"Gi",btnSetValue:"Imposta come predefinito",btnDelete:"Rimuovi"},textarea:{title:"Proprietà area di testo",cols:"Colonne",rows:"Righe"},textfield:{title:"Proprietà campo di testo",name:"Nome",value:"Valore",charWidth:"Larghezza",maxChars:"Numero massimo di caratteri",required:"Richiesto",type:"Tipo",typeText:"Testo",typePass:"Password",typeEmail:"Email",typeSearch:"Cerca",typeTel:"Numero di telefono",typeUrl:"URL"}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
NEW_CKEDITOR.plugins.add("forms",{requires:"dialog,fakeobjects",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",icons:"button,checkbox,form,hiddenfield,imagebutton,radio,select,select-rtl,textarea,textarea-rtl,textfield",hidpi:!0,onLoad:function(){NEW_CKEDITOR.addCss(".edi_editable form{border: 1px dotted #FF0000;padding: 2px;}\n"),NEW_CKEDITOR.addCss("img.edi_hidden{background-image: url("+NEW_CKEDITOR.getUrl(this.path+"images/hiddenfield.gif")+");background-position: center center;background-repeat: no-repeat;border: 1px solid #a9a9a9;width: 16px !important;height: 16px !important;}"),NEW_CKEDITOR.style.unstylableElements.push("select","option")},init:function(e){var t=e.lang,a=0,i={email:1,password:1,search:1,tel:1,text:1,url:1},d={checkbox:"input[type,name,checked,required]",radio:"input[type,name,checked,required]",textfield:"input[type,name,value,size,maxlength,required]",textarea:"textarea[cols,rows,name,required]",select:"select[name,size,multiple,required]; option[value,selected]",button:"input[type,name,value]",form:"form[action,name,id,enctype,target,method]",hiddenfield:"input[type,name,value]",imagebutton:"input[type,alt,src]{width,height,border,border-width,border-style,margin,float}"},o={checkbox:"input",radio:"input",textfield:"input",textarea:"textarea",select:"select",button:"input",form:"form",hiddenfield:"input",imagebutton:"input"},n=function(i,n,r){var l={allowedContent:d[n],requiredContent:o[n]};"form"==n&&(l.context="form"),e.addCommand(n,new NEW_CKEDITOR.dialogCommand(n,l)),e.ui.addButton&&e.ui.addButton(i,{label:t.common[i.charAt(0).toLowerCase()+i.slice(1)],command:n,toolbar:"forms,"+(a+=10)}),NEW_CKEDITOR.dialog.add(n,r)},r=this.path+"dialogs/";!e.blockless&&n("Form","form",r+"form.js"),n("Checkbox","checkbox",r+"checkbox.js"),n("Radio","radio",r+"radio.js"),n("TextField","textfield",r+"textfield.js"),n("Textarea","textarea",r+"textarea.js"),n("Select","select",r+"select.js"),n("Button","button",r+"button.js");var l=e.plugins.image;l&&!e.plugins.image2&&n("ImageButton","imagebutton",NEW_CKEDITOR.plugins.getPath("image")+"dialogs/image.js"),n("HiddenField","hiddenfield",r+"hiddenfield.js"),e.addMenuItems&&(n={checkbox:{label:t.forms.checkboxAndRadio.checkboxTitle,command:"checkbox",group:"checkbox"},radio:{label:t.forms.checkboxAndRadio.radioTitle,command:"radio",group:"radio"},textfield:{label:t.forms.textfield.title,command:"textfield",group:"textfield"},hiddenfield:{label:t.forms.hidden.title,command:"hiddenfield",group:"hiddenfield"},button:{label:t.forms.button.title,command:"button",group:"button"},select:{label:t.forms.select.title,command:"select",group:"select"},textarea:{label:t.forms.textarea.title,command:"textarea",group:"textarea"}},l&&(n.imagebutton={label:t.image.titleButton,command:"imagebutton",group:"imagebutton"}),!e.blockless&&(n.form={label:t.forms.form.menu,command:"form",group:"form"}),e.addMenuItems(n)),e.contextMenu&&(!e.blockless&&e.contextMenu.addListener((function(e,t,a){if((e=a.contains("form",1))&&!e.isReadOnly())return{form:NEW_CKEDITOR.TRISTATE_OFF}})),e.contextMenu.addListener((function(e){if(e&&!e.isReadOnly()){var t=e.getName();if("select"==t)return{select:NEW_CKEDITOR.TRISTATE_OFF};if("textarea"==t)return{textarea:NEW_CKEDITOR.TRISTATE_OFF};if("input"==t){var a=e.getAttribute("type")||"text";switch(a){case"button":case"submit":case"reset":return{button:NEW_CKEDITOR.TRISTATE_OFF};case"checkbox":return{checkbox:NEW_CKEDITOR.TRISTATE_OFF};case"radio":return{radio:NEW_CKEDITOR.TRISTATE_OFF};case"image":return l?{imagebutton:NEW_CKEDITOR.TRISTATE_OFF}:null}if(i[a])return{textfield:NEW_CKEDITOR.TRISTATE_OFF}}if("img"==t&&"hiddenfield"==e.data("edi-real-element-type"))return{hiddenfield:NEW_CKEDITOR.TRISTATE_OFF}}}))),e.on("doubleclick",(function(t){var a=t.data.element;if(!e.blockless&&a.is("form"))t.data.dialog="form";else if(a.is("select"))t.data.dialog="select";else if(a.is("textarea"))t.data.dialog="textarea";else if(a.is("img")&&"hiddenfield"==a.data("edi-real-element-type"))t.data.dialog="hiddenfield";else if(a.is("input")){switch(a=a.getAttribute("type")||"text"){case"button":case"submit":case"reset":t.data.dialog="button";break;case"checkbox":t.data.dialog="checkbox";break;case"radio":t.data.dialog="radio";break;case"image":t.data.dialog="imagebutton"}i[a]&&(t.data.dialog="textfield")}}))},afterInit:function(e){var t=(a=e.dataProcessor)&&a.htmlFilter,a=a&&a.dataFilter;NEW_CKEDITOR.env.ie&&t&&t.addRules({elements:{input:function(e){var t=(e=e.attributes).type;t||(e.type="text"),"checkbox"!=t&&"radio"!=t||"on"!=e.value||delete e.value}}},{applyToAll:!0}),a&&a.addRules({elements:{input:function(t){if("hidden"==t.attributes.type)return e.createFakeParserElement(t,"edi_hidden","hiddenfield")}}},{applyToAll:!0})}}),NEW_CKEDITOR.plugins.forms={_setupRequiredAttribute:function(e){this.setValue(e.hasAttribute("required"))}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){function e(e){var t=this instanceof
|
|
1
|
+
!function(){function e(e){var t=this instanceof NEW_CKEDITOR.ui.dialog.checkbox;e.hasAttribute(this.id)&&(e=e.getAttribute(this.id),t?this.setValue(i[this.id].true==e.toLowerCase()):this.setValue(e))}function t(e){var t=this.getValue(),a=this.att||this.id,l=this instanceof NEW_CKEDITOR.ui.dialog.checkbox?i[this.id][t]:t;""===t||"tabindex"===a&&!1===t?e.removeAttribute(a):e.setAttribute(a,l)}var i={scrolling:{true:"yes",false:"no"},frameborder:{true:"1",false:"0"},tabindex:{true:"-1",false:!1}};NEW_CKEDITOR.dialog.add("iframe",(function(i){var a=i.lang.iframe,l=i.lang.common,n=i.plugins.dialogadvtab;return{title:a.title,minWidth:350,minHeight:260,getModel:function(e){return(e=e.getSelection().getSelectedElement())&&"iframe"===e.data("edi-real-element-type")?e:null},onShow:function(){this.fakeImage=this.iframeNode=null;var e=this.getSelectedElement();e&&e.data("edi-real-element-type")&&"iframe"==e.data("edi-real-element-type")&&(this.fakeImage=e,this.iframeNode=e=i.restoreRealElement(e),this.setupContent(e))},onOk:function(){var e;e=this.fakeImage?this.iframeNode:new NEW_CKEDITOR.dom.element("iframe");var t={},a={};this.commitContent(e,t,a);var l=i.plugins.iframe._.getIframeAttributes(i,e);e.setAttributes(l),(e=i.createFakeElement(e,"edi_iframe","iframe",!0)).setAttributes(a),e.setStyles(t),this.fakeImage?(e.replace(this.fakeImage),i.getSelection().selectElement(e)):i.insertElement(e)},contents:[{id:"info",label:l.generalTab,accessKey:"I",elements:[{type:"vbox",padding:0,children:[{id:"src",type:"text",label:l.url,required:!0,validate:NEW_CKEDITOR.dialog.validate.notEmpty(a.noUrl),setup:e,commit:t}]},{type:"hbox",children:[{id:"width",type:"text",requiredContent:"iframe[width]",style:"width:100%",labelLayout:"vertical",label:l.width,validate:NEW_CKEDITOR.dialog.validate.htmlLength(l.invalidHtmlLength.replace("%1",l.width)),setup:e,commit:t},{id:"height",type:"text",requiredContent:"iframe[height]",style:"width:100%",labelLayout:"vertical",label:l.height,validate:NEW_CKEDITOR.dialog.validate.htmlLength(l.invalidHtmlLength.replace("%1",l.height)),setup:e,commit:t},{id:"align",type:"select",requiredContent:"iframe[align]",default:"",items:[[l.notSet,""],[l.left,"left"],[l.right,"right"],[l.alignTop,"top"],[l.alignMiddle,"middle"],[l.alignBottom,"bottom"]],style:"width:100%",labelLayout:"vertical",label:l.align,setup:function(t,i){if(e.apply(this,arguments),i){var a=i.getAttribute("align");this.setValue(a&&a.toLowerCase()||"")}},commit:function(e,i,a){t.apply(this,arguments),this.getValue()&&(a.align=this.getValue())}}]},{type:"hbox",widths:["33%","33%","33%"],children:[{id:"scrolling",type:"checkbox",requiredContent:"iframe[scrolling]",label:a.scrolling,setup:e,commit:t},{id:"frameborder",type:"checkbox",requiredContent:"iframe[frameborder]",label:a.border,setup:e,commit:t},{id:"tabindex",type:"checkbox",requiredContent:"iframe[tabindex]",label:a.tabindex,setup:e,commit:t}]},{type:"hbox",widths:["50%","50%"],children:[{id:"name",type:"text",requiredContent:"iframe[name]",label:l.name,setup:e,commit:t},{id:"title",type:"text",requiredContent:"iframe[title]",label:l.advisoryTitle,setup:e,commit:t}]},{id:"longdesc",type:"text",requiredContent:"iframe[longdesc]",label:l.longDescr,setup:e,commit:t}]},n&&n.createAdvancedTab(i,{id:1,classes:1,styles:1},"iframe")]}}))}();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
NEW_CKEDITOR.plugins.setLang("iframe","de-ch",{border:"Rahmen anzeigen",noUrl:"Bitte geben Sie die IFrame-URL an",scrolling:"Rollbalken anzeigen",title:"IFrame-Eigenschaften",toolbar:"IFrame",tabindex:"Aus Tab-Reihenfolge entfernen"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
NEW_CKEDITOR.plugins.setLang("iframe","de",{border:"Rahmen anzeigen",noUrl:"Bitte geben Sie die IFrame-URL an",scrolling:"Rollbalken anzeigen",title:"IFrame-Eigenschaften",toolbar:"IFrame",tabindex:"Remove from tabindex"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
NEW_CKEDITOR.plugins.setLang("iframe","en",{border:"Show frame border",noUrl:"Please type the iframe URL",scrolling:"Enable scrollbars",title:"IFrame Properties",toolbar:"IFrame",tabindex:"Remove from tabindex"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
NEW_CKEDITOR.plugins.setLang("iframe","fr",{border:"Afficher la bordure du cadre",noUrl:"Veuillez entrer l'URL du contenu du cadre",scrolling:"Activer les barres de défilement",title:"Propriétés du cadre de contenu incorporé",toolbar:"Cadre de contenu incorporé",tabindex:"Supprimer de tabindex"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
NEW_CKEDITOR.plugins.setLang("iframe","it",{border:"Mostra il bordo",noUrl:"Inserire l'URL del campo IFrame",scrolling:"Abilita scrollbar",title:"Proprietà IFrame",toolbar:"IFrame",tabindex:"Rimuovi da tabindex"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
NEW_CKEDITOR.plugins.add("iframe",{requires:"dialog,fakeobjects",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",icons:"iframe",hidpi:!0,onLoad:function(){NEW_CKEDITOR.addCss("img.edi_iframe{background-image: url("+NEW_CKEDITOR.getUrl(this.path+"images/placeholder.png")+");background-position: center center;background-repeat: no-repeat;border: 1px solid #a9a9a9;width: 80px;height: 80px;}")},init:function(e){var a=e.lang.iframe,t="iframe[align,longdesc,tabindex,frameborder,height,name,scrolling,src,title,width,sandbox]";e.plugins.dialogadvtab&&(t+=";iframe"+e.plugins.dialogadvtab.allowedContent({id:1,classes:1,styles:1})),NEW_CKEDITOR.dialog.add("iframe",this.path+"dialogs/iframe.js"),e.addCommand("iframe",new NEW_CKEDITOR.dialogCommand("iframe",{allowedContent:t,requiredContent:"iframe"})),e.ui.addButton&&e.ui.addButton("Iframe",{label:a.toolbar,command:"iframe",toolbar:"insert,80"}),e.on("doubleclick",(function(e){var a=e.data.element;a.is("img")&&"iframe"==a.data("edi-real-element-type")&&(e.data.dialog="iframe")})),e.addMenuItems&&e.addMenuItems({iframe:{label:a.title,command:"iframe",group:"image"}}),e.contextMenu&&e.contextMenu.addListener((function(e){if(e&&e.is("img")&&"iframe"==e.data("edi-real-element-type"))return{iframe:NEW_CKEDITOR.TRISTATE_OFF}}))},afterInit:function(e){var a=e.dataProcessor;(a=a&&a.dataFilter)&&a.addRules({elements:{iframe:function(a){var t=e.plugins.iframe._.getIframeAttributes(e,a);return void 0!==t&&(a.attributes=NEW_CKEDITOR.tools.object.merge(a.attributes,t)),e.createFakeParserElement(a,"edi_iframe","iframe",!0)}}})},_:{getIframeAttributes:function(e,a){var t=e.config.iframe_attributes;return"function"==typeof t?t(a):"object"==typeof t?t:void 0}}}),NEW_CKEDITOR.config.iframe_attributes={sandbox:""};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
NEW_CKEDITOR.plugins.add("iframedialog",{requires:"dialog",onLoad:function(){var e;NEW_CKEDITOR.dialog.addIframe=function(e,t,n,o,i,d,a){(n={type:"iframe",src:n,width:"100%",height:"100%"}).onContentLoad="function"==typeof d?d:function(){var e=this.getElement().$.contentWindow;if(e.onDialogEvent){var t=this.getDialog(),n=function(t){return e.onDialogEvent(t)};t.on("ok",n),t.on("cancel",n),t.on("resize",n),t.on("hide",(function(e){t.removeListener("ok",n),t.removeListener("cancel",n),t.removeListener("resize",n),e.removeListener()})),e.onDialogEvent({name:"load",sender:this,editor:t._.editor})}};var r,l={title:t,minWidth:o,minHeight:i,contents:[{id:"iframe",label:t,expand:!0,elements:[n],style:"width:"+n.width+";height:"+n.height}]};for(r in a)l[r]=a[r];this.add(e,(function(){return l}))},(e=function(e,t,n){if(!(3>arguments.length)){var o=this._||(this._={}),i=t.onContentLoad&&NEW_CKEDITOR.tools.bind(t.onContentLoad,this),d=NEW_CKEDITOR.tools.cssLength(t.width),a=NEW_CKEDITOR.tools.cssLength(t.height);o.frameId=NEW_CKEDITOR.tools.getNextId()+"_iframe",e.on("load",(function(){NEW_CKEDITOR.document.getById(o.frameId).getParent().setStyles({width:d,height:a})}));var r={src:"%2",id:o.frameId,frameborder:0,allowtransparency:!0},l=[];"function"==typeof t.onContentLoad&&(r.onload="NEW_CKEDITOR.tools.callFunction(%1);"),NEW_CKEDITOR.ui.dialog.uiElement.call(this,e,t,l,"iframe",{width:d,height:a},r,""),n.push('<div style="width:'+d+";height:"+a+';" id="'+this.domId+'"></div>'),l=l.join(""),e.on("show",(function(){var e=NEW_CKEDITOR.document.getById(o.frameId).getParent(),n=NEW_CKEDITOR.tools.addFunction(i);n=l.replace("%1",n).replace("%2",NEW_CKEDITOR.tools.htmlEncode(t.src)),e.setHtml(n)}))}}).prototype=new NEW_CKEDITOR.ui.dialog.uiElement,NEW_CKEDITOR.dialog.addUIElement("iframe",{build:function(t,n,o){return new e(t,n,o)}})}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){var t=function(t,e){function i(){var t=arguments,e=this.getContentElement("advanced","txtdlgGenStyle");e&&e.commit.apply(e,t),this.foreach((function(e){e.commit&&"txtdlgGenStyle"!=e.id&&e.commit.apply(e,t)}))}function n(t){if(!a){a=1;var e=this.getDialog(),i=e.imageElement;if(i){this.commit(1,i);for(var n,l=(t=[].concat(t)).length,s=0;s<l;s++)(n=e.getContentElement.apply(e,t[s].split(":")))&&n.setup(1,i)}a=0}}var a,l,s=/^\s*(\d+)((px)|\%)?\s*$/i,o=/(^\s*(\d+)((px)|\%)?\s*$)|^$/i,r=/^\d+px$/,m=function(){var t=this.getValue(),e=this.getDialog(),i=t.match(s);i&&("%"==i[2]&&h(e,!1),t=i[1]),e.lockRatio&&("true"==(i=e.originalElement).getCustomData("isReady")&&("txtHeight"==this.id?(t&&"0"!=t&&(t=Math.round(t/i.$.height*i.$.width)),isNaN(t)||e.setValueOf("info","txtWidth",t)):(t&&"0"!=t&&(t=Math.round(t/i.$.width*i.$.height)),isNaN(t)||e.setValueOf("info","txtHeight",t)))),g(e)},g=function(t){return t.originalElement&&t.preview?(t.commitContent(4,t.preview),0):1},h=function(t,e){if(!t.getContentElement("info","ratioLock"))return null;if(!(a=t.originalElement))return null;if("check"==e){if(!t.userlockRatio&&"true"==a.getCustomData("isReady")){var i=t.getValueOf("info","txtWidth"),n=t.getValueOf("info","txtHeight"),a=a.$.width/a.$.height,l=i/n;t.lockRatio=!1,i||n?1==Math.round(a/l*100)/100&&(t.lockRatio=!0):t.lockRatio=!0}}else void 0!==e?t.lockRatio=e:(t.userlockRatio=1,t.lockRatio=!t.lockRatio);return i=CKEDITOR.document.getById(f),t.lockRatio?i.removeClass("cke_btn_unlocked"):i.addClass("cke_btn_unlocked"),i.setAttribute("aria-checked",t.lockRatio),CKEDITOR.env.hc&&i.getChild(0).setHtml(t.lockRatio?CKEDITOR.env.ie?"■":"▣":CKEDITOR.env.ie?"□":"▢"),t.lockRatio},d=function(t,e){var i=t.originalElement;if("true"==i.getCustomData("isReady")){var n,a=t.getContentElement("info","txtWidth"),l=t.getContentElement("info","txtHeight");e?i=n=0:(n=i.$.width,i=i.$.height),a&&a.setValue(n),l&&l.setValue(i)}g(t)},u=function(t,e){function i(t,e){var i=t.match(s);return i?("%"==i[2]&&(i[1]+="%",h(n,!1)),i[1]):e}if(1==t){var n=this.getDialog(),a="",l="txtWidth"==this.id?"width":"height",o=e.getAttribute(l);o&&(a=i(o,a)),a=i(e.getStyle(l),a),this.setValue(a)}},c=function(){var e=this.originalElement,i=CKEDITOR.document.getById(y);e.setCustomData("isReady","true"),e.removeListener("load",c),e.removeListener("error",p),e.removeListener("abort",p),i&&i.setStyle("display","none"),this.dontResetSize||d(this,!1===t.config.image_prefillDimensions),this.firstLoad&&CKEDITOR.tools.setTimeout((function(){h(this,"check")}),0,this),this.dontResetSize=this.firstLoad=!1,g(this)},p=function(){var t=this.originalElement,e=CKEDITOR.document.getById(y);t.removeListener("load",c),t.removeListener("error",p),t.removeListener("abort",p),t=CKEDITOR.getUrl(CKEDITOR.plugins.get("image").path+"images/noimage.png"),this.preview&&this.preview.setAttribute("src",t),e&&e.setStyle("display","none"),h(this,!1)},v=function(t){return CKEDITOR.tools.getNextId()+"_"+t},f=v("btnLockSizes"),b=v("btnResetSize"),y=v("ImagePreviewLoader"),E=v("previewLink"),C=v("previewImage");return{title:t.lang.image["image"==e?"title":"titleButton"],minWidth:"moono-lisa"==(CKEDITOR.skinName||t.config.skin)?500:420,minHeight:360,getModel:function(t){var e=(t=t.getSelection().getSelectedElement())&&"img"===t.getName(),i=t&&"input"===t.getName()&&"image"===t.getAttribute("type");return e||i?t:null},onShow:function(){this.linkEditMode=this.imageEditMode=this.linkElement=this.imageElement=!1,this.lockRatio=!0,this.userlockRatio=0,this.dontResetSize=!1,this.firstLoad=!0,this.addLink=!1;var t=this.getParentEditor(),i=t.getSelection(),n=(i=i&&i.getSelectedElement())&&t.elementPath(i).contains("a",1),a=CKEDITOR.document.getById(y);a&&a.setStyle("display","none"),l=new CKEDITOR.dom.element("img",t.document),this.preview=CKEDITOR.document.getById(C),this.originalElement=t.document.createElement("img"),this.originalElement.setAttribute("alt",""),this.originalElement.setCustomData("isReady","false"),n&&(this.linkElement=n,this.addLink=this.linkEditMode=!0,1==(t=n.getChildren()).count()&&((a=t.getItem(0)).type==CKEDITOR.NODE_ELEMENT&&(a.is("img")||a.is("input"))&&(this.imageElement=t.getItem(0),this.imageElement.is("img")?this.imageEditMode="img":this.imageElement.is("input")&&(this.imageEditMode="input"))),"image"==e&&this.setupContent(2,n)),this.customImageElement?(this.imageEditMode="img",this.imageElement=this.customImageElement,delete this.customImageElement):(i&&"img"==i.getName()&&!i.data("cke-realelement")||i&&"input"==i.getName()&&"image"==i.getAttribute("type"))&&(this.imageEditMode=i.getName(),this.imageElement=i),this.imageEditMode&&(this.cleanImageElement=this.imageElement,this.imageElement=this.cleanImageElement.clone(!0,!0),this.setupContent(1,this.imageElement)),h(this,!0),CKEDITOR.tools.trim(this.getValueOf("info","txtUrl"))||(this.preview.removeAttribute("src"),this.preview.setStyle("display","none"))},onOk:function(){if(this.imageEditMode){var i=this.imageEditMode;"image"==e&&"input"==i&&confirm(t.lang.image.button2Img)?(this.imageElement=t.document.createElement("img"),this.imageElement.setAttribute("alt",""),t.insertElement(this.imageElement)):"image"!=e&&"img"==i&&confirm(t.lang.image.img2Button)?(this.imageElement=t.document.createElement("input"),this.imageElement.setAttributes({type:"image",alt:""}),t.insertElement(this.imageElement)):(this.imageElement=this.cleanImageElement,delete this.cleanImageElement)}else"image"==e?this.imageElement=t.document.createElement("img"):(this.imageElement=t.document.createElement("input"),this.imageElement.setAttribute("type","image")),this.imageElement.setAttribute("alt","");this.linkEditMode||(this.linkElement=t.document.createElement("a")),this.commitContent(1,this.imageElement),this.commitContent(2,this.linkElement),this.imageElement.getAttribute("style")||this.imageElement.removeAttribute("style"),this.imageEditMode?!this.linkEditMode&&this.addLink?(t.insertElement(this.linkElement),this.imageElement.appendTo(this.linkElement)):this.linkEditMode&&!this.addLink&&(t.getSelection().selectElement(this.linkElement),t.insertElement(this.imageElement)):this.addLink?this.linkEditMode?this.linkElement.equals(t.getSelection().getSelectedElement())?(this.linkElement.setHtml(""),this.linkElement.append(this.imageElement,!1)):t.insertElement(this.imageElement):(t.insertElement(this.linkElement),this.linkElement.append(this.imageElement,!1)):t.insertElement(this.imageElement)},onLoad:function(){"image"!=e&&this.hidePage("Link");var t=this._.element.getDocument();this.getContentElement("info","ratioLock")&&(this.addFocusable(t.getById(b),5),this.addFocusable(t.getById(f),5)),this.commitContent=i},onHide:function(){this.preview&&this.commitContent(8,this.preview),this.originalElement&&(this.originalElement.removeListener("load",c),this.originalElement.removeListener("error",p),this.originalElement.removeListener("abort",p),this.originalElement.remove(),this.originalElement=!1),delete this.imageElement},contents:[{id:"info",label:t.lang.image.infoTab,accessKey:"I",elements:[{type:"vbox",padding:0,children:[{type:"hbox",widths:["280px","110px"],align:"right",className:"cke_dialog_image_url",children:[{id:"txtUrl",type:"text",label:t.lang.common.url,required:!0,onChange:function(){var t=this.getDialog(),e=this.getValue();if(0<e.length){var i=(t=this.getDialog()).originalElement;t.preview&&t.preview.removeStyle("display"),i.setCustomData("isReady","false");var n=CKEDITOR.document.getById(y);n&&n.setStyle("display",""),i.on("load",c,t),i.on("error",p,t),i.on("abort",p,t),i.setAttribute("src",e),t.preview&&(l.setAttribute("src",e),t.preview.setAttribute("src",l.$.src),g(t))}else t.preview&&(t.preview.removeAttribute("src"),t.preview.setStyle("display","none"))},setup:function(t,e){if(1==t){var i=e.data("cke-saved-src")||e.getAttribute("src");this.getDialog().dontResetSize=!0,this.setValue(i),this.setInitValue()}},commit:function(t,e){1==t&&(this.getValue()||this.isChanged())?(e.data("cke-saved-src",this.getValue()),e.setAttribute("src",this.getValue())):8==t&&(e.setAttribute("src",""),e.removeAttribute("src"))},validate:CKEDITOR.dialog.validate.notEmpty(t.lang.image.urlMissing)},{type:"button",id:"browse",style:"display:inline-block;margin-top:14px;",align:"center",label:t.lang.common.browseServer,hidden:!0,filebrowser:"info:txtUrl"}]}]},{id:"txtAlt",type:"text",label:t.lang.image.alt,accessKey:"T",default:"",onChange:function(){g(this.getDialog())},setup:function(t,e){1==t&&this.setValue(e.getAttribute("alt"))},commit:function(t,e){1==t?(this.getValue()||this.isChanged())&&e.setAttribute("alt",this.getValue()):4==t?e.setAttribute("alt",this.getValue()):8==t&&e.removeAttribute("alt")}},{type:"hbox",children:[{id:"basic",type:"vbox",children:[{type:"hbox",requiredContent:"img{width,height}",widths:["50%","50%"],children:[{type:"vbox",padding:1,children:[{type:"text",width:"45px",id:"txtWidth",label:t.lang.common.width,onKeyUp:m,onChange:function(){n.call(this,"advanced:txtdlgGenStyle")},validate:function(){var e=this.getValue().match(o);return(e=!(!e||0===parseInt(e[1],10)))||alert(t.lang.common.invalidLength.replace("%1",t.lang.common.width).replace("%2","px, %")),e},setup:u,commit:function(e,i){var n=this.getValue();1==e?(n&&t.activeFilter.check("img{width,height}")?i.setStyle("width",CKEDITOR.tools.cssLength(n)):i.removeStyle("width"),i.removeAttribute("width")):4==e?n.match(s)?i.setStyle("width",CKEDITOR.tools.cssLength(n)):"true"==(n=this.getDialog().originalElement).getCustomData("isReady")&&i.setStyle("width",n.$.width+"px"):8==e&&(i.removeAttribute("width"),i.removeStyle("width"))}},{type:"text",id:"txtHeight",width:"45px",label:t.lang.common.height,onKeyUp:m,onChange:function(){n.call(this,"advanced:txtdlgGenStyle")},validate:function(){var e=this.getValue().match(o);return(e=!(!e||0===parseInt(e[1],10)))||alert(t.lang.common.invalidLength.replace("%1",t.lang.common.height).replace("%2","px, %")),e},setup:u,commit:function(e,i){var n=this.getValue();1==e?(n&&t.activeFilter.check("img{width,height}")?i.setStyle("height",CKEDITOR.tools.cssLength(n)):i.removeStyle("height"),i.removeAttribute("height")):4==e?n.match(s)?i.setStyle("height",CKEDITOR.tools.cssLength(n)):"true"==(n=this.getDialog().originalElement).getCustomData("isReady")&&i.setStyle("height",n.$.height+"px"):8==e&&(i.removeAttribute("height"),i.removeStyle("height"))}}]},{id:"ratioLock",type:"html",className:"cke_dialog_image_ratiolock",style:"margin-top:30px;width:40px;height:40px;",onLoad:function(){var t=CKEDITOR.document.getById(b),e=CKEDITOR.document.getById(f);t&&(t.on("click",(function(t){d(this),t.data&&t.data.preventDefault()}),this.getDialog()),t.on("mouseover",(function(){this.addClass("cke_btn_over")}),t),t.on("mouseout",(function(){this.removeClass("cke_btn_over")}),t)),e&&(e.on("click",(function(t){h(this);var e=this.originalElement,i=this.getValueOf("info","txtWidth");"true"==e.getCustomData("isReady")&&i&&(e=e.$.height/e.$.width*i,isNaN(e)||(this.setValueOf("info","txtHeight",Math.round(e)),g(this))),t.data&&t.data.preventDefault()}),this.getDialog()),e.on("mouseover",(function(){this.addClass("cke_btn_over")}),e),e.on("mouseout",(function(){this.removeClass("cke_btn_over")}),e))},html:'<div><a href="javascript:void(0)" tabindex="-1" title="'+t.lang.image.lockRatio+'" class="cke_btn_locked" id="'+f+'" role="checkbox"><span class="cke_icon"></span><span class="cke_label">'+t.lang.image.lockRatio+'</span></a><a href="javascript:void(0)" tabindex="-1" title="'+t.lang.image.resetSize+'" class="cke_btn_reset" id="'+b+'" role="button"><span class="cke_label">'+t.lang.image.resetSize+"</span></a></div>"}]},{type:"vbox",padding:1,children:[{type:"text",id:"txtBorder",requiredContent:"img{border-width}",width:"60px",label:t.lang.image.border,default:"",onKeyUp:function(){g(this.getDialog())},onChange:function(){n.call(this,"advanced:txtdlgGenStyle")},validate:CKEDITOR.dialog.validate.integer(t.lang.image.validateBorder),setup:function(t,e){var i;1==t&&(i=(i=(i=e.getStyle("border-width"))&&i.match(/^(\d+px)(?: \1 \1 \1)?$/))&&parseInt(i[1],10),isNaN(parseInt(i,10))&&(i=e.getAttribute("border")),this.setValue(i))},commit:function(t,e){var i=parseInt(this.getValue(),10);1==t||4==t?(isNaN(i)?!i&&this.isChanged()&&e.removeStyle("border"):(e.setStyle("border-width",CKEDITOR.tools.cssLength(i)),e.setStyle("border-style","solid")),1==t&&e.removeAttribute("border")):8==t&&(e.removeAttribute("border"),e.removeStyle("border-width"),e.removeStyle("border-style"),e.removeStyle("border-color"))}},{type:"text",id:"txtHSpace",requiredContent:"img{margin-left,margin-right}",width:"60px",label:t.lang.image.hSpace,default:"",onKeyUp:function(){g(this.getDialog())},onChange:function(){n.call(this,"advanced:txtdlgGenStyle")},validate:CKEDITOR.dialog.validate.integer(t.lang.image.validateHSpace),setup:function(t,e){var i,n;1==t&&(i=e.getStyle("margin-left"),n=e.getStyle("margin-right"),i=i&&i.match(r),n=n&&n.match(r),i=(i=parseInt(i,10))==(n=parseInt(n,10))&&i,isNaN(parseInt(i,10))&&(i=e.getAttribute("hspace")),this.setValue(i))},commit:function(t,e){var i=parseInt(this.getValue(),10);1==t||4==t?(isNaN(i)?!i&&this.isChanged()&&(e.removeStyle("margin-left"),e.removeStyle("margin-right")):(e.setStyle("margin-left",CKEDITOR.tools.cssLength(i)),e.setStyle("margin-right",CKEDITOR.tools.cssLength(i))),1==t&&e.removeAttribute("hspace")):8==t&&(e.removeAttribute("hspace"),e.removeStyle("margin-left"),e.removeStyle("margin-right"))}},{type:"text",id:"txtVSpace",requiredContent:"img{margin-top,margin-bottom}",width:"60px",label:t.lang.image.vSpace,default:"",onKeyUp:function(){g(this.getDialog())},onChange:function(){n.call(this,"advanced:txtdlgGenStyle")},validate:CKEDITOR.dialog.validate.integer(t.lang.image.validateVSpace),setup:function(t,e){var i,n;1==t&&(i=e.getStyle("margin-top"),n=e.getStyle("margin-bottom"),i=i&&i.match(r),n=n&&n.match(r),i=(i=parseInt(i,10))==(n=parseInt(n,10))&&i,isNaN(parseInt(i,10))&&(i=e.getAttribute("vspace")),this.setValue(i))},commit:function(t,e){var i=parseInt(this.getValue(),10);1==t||4==t?(isNaN(i)?!i&&this.isChanged()&&(e.removeStyle("margin-top"),e.removeStyle("margin-bottom")):(e.setStyle("margin-top",CKEDITOR.tools.cssLength(i)),e.setStyle("margin-bottom",CKEDITOR.tools.cssLength(i))),1==t&&e.removeAttribute("vspace")):8==t&&(e.removeAttribute("vspace"),e.removeStyle("margin-top"),e.removeStyle("margin-bottom"))}},{id:"cmbAlign",requiredContent:"img{float}",type:"select",widths:["35%","65%"],style:"width:90px",label:t.lang.common.align,default:"",items:[[t.lang.common.notSet,""],[t.lang.common.left,"left"],[t.lang.common.right,"right"]],onChange:function(){g(this.getDialog()),n.call(this,"advanced:txtdlgGenStyle")},setup:function(t,e){if(1==t){var i=e.getStyle("float");switch(i){case"inherit":case"none":i=""}!i&&(i=(e.getAttribute("align")||"").toLowerCase()),this.setValue(i)}},commit:function(t,e){var i=this.getValue();if(1==t||4==t){if(i?e.setStyle("float",i):e.removeStyle("float"),1==t)switch(i=(e.getAttribute("align")||"").toLowerCase(),i){case"left":case"right":e.removeAttribute("align")}}else 8==t&&e.removeStyle("float")}}]}]},{type:"vbox",height:"250px",children:[{type:"html",id:"htmlPreview",style:"width:95%;",html:"<div>"+CKEDITOR.tools.htmlEncode(t.lang.common.preview)+'<br><div id="'+y+'" class="ImagePreviewLoader" style="display:none"><div class="loading"> </div></div><div class="ImagePreviewBox"><table><tr><td><a href="javascript:void(0)" target="_blank" onclick="return false;" id="'+E+'"><img id="'+C+'" alt="" /></a>'+(t.config.image_previewText||"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas feugiat consequat diam. Maecenas metus. Vivamus diam purus, cursus a, commodo non, facilisis vitae, nulla. Aenean dictum lacinia tortor. Nunc iaculis, nibh non iaculis aliquam, orci felis euismod neque, sed ornare massa mauris sed velit. Nulla pretium mi et risus. Fusce mi pede, tempor id, cursus ac, ullamcorper nec, enim. Sed tortor. Curabitur molestie. Duis velit augue, condimentum at, ultrices a, luctus ut, orci. Donec pellentesque egestas eros. Integer cursus, augue in cursus faucibus, eros pede bibendum sem, in tempus tellus justo quis ligula. Etiam eget tortor. Vestibulum rutrum, est ut placerat elementum, lectus nisl aliquam velit, tempor aliquam eros nunc nonummy metus. In eros metus, gravida a, gravida sed, lobortis id, turpis. Ut ultrices, ipsum at venenatis fringilla, sem nulla lacinia tellus, eget aliquet turpis mauris non enim. Nam turpis. Suspendisse lacinia. Curabitur ac tortor ut ipsum egestas elementum. Nunc imperdiet gravida mauris.")+"</td></tr></table></div></div>"}]}]}]},{id:"Link",requiredContent:"a[href]",label:t.lang.image.linkTab,padding:0,elements:[{id:"txtUrl",type:"text",label:t.lang.common.url,style:"width: 100%",default:"",setup:function(t,e){if(2==t){var i=e.data("cke-saved-href");i||(i=e.getAttribute("href")),this.setValue(i)}},commit:function(e,i){if(2==e&&(this.getValue()||this.isChanged())){var n=this.getValue();i.data("cke-saved-href",n),i.setAttribute("href",n),this.getValue()||!t.config.image_removeLinkByEmptyURL?this.getDialog().addLink=!0:this.getDialog().addLink=!1}}},{type:"button",id:"browse",className:"cke_dialog_image_browse",filebrowser:{action:"Browse",target:"Link:txtUrl",url:t.config.filebrowserImageBrowseLinkUrl},style:"float:right",hidden:!0,label:t.lang.common.browseServer},{id:"cmbTarget",type:"select",requiredContent:"a[target]",label:t.lang.common.target,default:"",items:[[t.lang.common.notSet,""],[t.lang.common.targetNew,"_blank"],[t.lang.common.targetTop,"_top"],[t.lang.common.targetSelf,"_self"],[t.lang.common.targetParent,"_parent"]],setup:function(t,e){2==t&&this.setValue(e.getAttribute("target")||"")},commit:function(t,e){2==t&&(this.getValue()||this.isChanged())&&e.setAttribute("target",this.getValue())}}]},{id:"Upload",hidden:!0,filebrowser:"uploadButton",label:t.lang.image.upload,elements:[{type:"file",id:"upload",label:t.lang.image.btnUpload,style:"height:40px",size:38},{type:"fileButton",id:"uploadButton",filebrowser:"info:txtUrl",label:t.lang.image.btnUpload,for:["Upload","upload"]}]},{id:"advanced",label:t.lang.common.advancedTab,elements:[{type:"hbox",widths:["50%","25%","25%"],children:[{type:"text",id:"linkId",requiredContent:"img[id]",label:t.lang.common.id,setup:function(t,e){1==t&&this.setValue(e.getAttribute("id"))},commit:function(t,e){1==t&&(this.getValue()||this.isChanged())&&e.setAttribute("id",this.getValue())}},{id:"cmbLangDir",type:"select",requiredContent:"img[dir]",style:"width : 100px;",label:t.lang.common.langDir,default:"",items:[[t.lang.common.notSet,""],[t.lang.common.langDirLtr,"ltr"],[t.lang.common.langDirRtl,"rtl"]],setup:function(t,e){1==t&&this.setValue(e.getAttribute("dir"))},commit:function(t,e){1==t&&(this.getValue()||this.isChanged())&&e.setAttribute("dir",this.getValue())}},{type:"text",id:"txtLangCode",requiredContent:"img[lang]",label:t.lang.common.langCode,default:"",setup:function(t,e){1==t&&this.setValue(e.getAttribute("lang"))},commit:function(t,e){1==t&&(this.getValue()||this.isChanged())&&e.setAttribute("lang",this.getValue())}}]},{type:"text",id:"txtGenLongDescr",requiredContent:"img[longdesc]",label:t.lang.common.longDescr,setup:function(t,e){1==t&&this.setValue(e.getAttribute("longDesc"))},commit:function(t,e){1==t&&(this.getValue()||this.isChanged())&&e.setAttribute("longDesc",this.getValue())}},{type:"hbox",widths:["50%","50%"],children:[{type:"text",id:"txtGenClass",requiredContent:"img(cke-xyz)",label:t.lang.common.cssClass,default:"",setup:function(t,e){1==t&&this.setValue(e.getAttribute("class"))},commit:function(t,e){1==t&&(this.getValue()||this.isChanged())&&e.setAttribute("class",this.getValue())}},{type:"text",id:"txtGenTitle",requiredContent:"img[title]",label:t.lang.common.advisoryTitle,default:"",onChange:function(){g(this.getDialog())},setup:function(t,e){1==t&&this.setValue(e.getAttribute("title"))},commit:function(t,e){1==t?(this.getValue()||this.isChanged())&&e.setAttribute("title",this.getValue()):4==t?e.setAttribute("title",this.getValue()):8==t&&e.removeAttribute("title")}}]},{type:"text",id:"txtdlgGenStyle",requiredContent:"img{cke-xyz}",label:t.lang.common.cssStyle,validate:CKEDITOR.dialog.validate.inlineStyle(t.lang.common.invalidInlineStyle),default:"",setup:function(t,e){if(1==t){!(n=e.getAttribute("style"))&&e.$.style.cssText&&(n=e.$.style.cssText),this.setValue(n);var i=e.$.style.height,n=e.$.style.width;i=(i||"").match(s),n=(n||"").match(s);this.attributesInStyle={height:!!i,width:!!n}}},onChange:function(){n.call(this,"info:cmbFloat info:cmbAlign info:txtVSpace info:txtHSpace info:txtBorder info:txtWidth info:txtHeight".split(" ")),g(this)},commit:function(t,e){1==t&&(this.getValue()||this.isChanged())&&e.setAttribute("style",this.getValue())}}]}]}};CKEDITOR.dialog.add("image",(function(e){return t(e,"image")})),CKEDITOR.dialog.add("imagebutton",(function(e){return t(e,"imagebutton")}))}();
|
|
1
|
+
!function(){var t=function(t,e){function i(){var t=arguments,e=this.getContentElement("advanced","txtdlgGenStyle");e&&e.commit.apply(e,t),this.foreach((function(e){e.commit&&"txtdlgGenStyle"!=e.id&&e.commit.apply(e,t)}))}function n(t){if(!a){a=1;var e=this.getDialog(),i=e.imageElement;if(i){this.commit(1,i);for(var n,l=(t=[].concat(t)).length,s=0;s<l;s++)(n=e.getContentElement.apply(e,t[s].split(":")))&&n.setup(1,i)}a=0}}var a,l,s=/^\s*(\d+)((px)|\%)?\s*$/i,o=/(^\s*(\d+)((px)|\%)?\s*$)|^$/i,r=/^\d+px$/,m=function(){var t=this.getValue(),e=this.getDialog(),i=t.match(s);i&&("%"==i[2]&&d(e,!1),t=i[1]),e.lockRatio&&("true"==(i=e.originalElement).getCustomData("isReady")&&("txtHeight"==this.id?(t&&"0"!=t&&(t=Math.round(t/i.$.height*i.$.width)),isNaN(t)||e.setValueOf("info","txtWidth",t)):(t&&"0"!=t&&(t=Math.round(t/i.$.width*i.$.height)),isNaN(t)||e.setValueOf("info","txtHeight",t)))),g(e)},g=function(t){return t.originalElement&&t.preview?(t.commitContent(4,t.preview),0):1},d=function(t,e){if(!t.getContentElement("info","ratioLock"))return null;if(!(a=t.originalElement))return null;if("check"==e){if(!t.userlockRatio&&"true"==a.getCustomData("isReady")){var i=t.getValueOf("info","txtWidth"),n=t.getValueOf("info","txtHeight"),a=a.$.width/a.$.height,l=i/n;t.lockRatio=!1,i||n?1==Math.round(a/l*100)/100&&(t.lockRatio=!0):t.lockRatio=!0}}else void 0!==e?t.lockRatio=e:(t.userlockRatio=1,t.lockRatio=!t.lockRatio);return i=NEW_CKEDITOR.document.getById(f),t.lockRatio?i.removeClass("edi_btn_unlocked"):i.addClass("edi_btn_unlocked"),i.setAttribute("aria-checked",t.lockRatio),NEW_CKEDITOR.env.hc&&i.getChild(0).setHtml(t.lockRatio?NEW_CKEDITOR.env.ie?"■":"▣":NEW_CKEDITOR.env.ie?"□":"▢"),t.lockRatio},h=function(t,e){var i=t.originalElement;if("true"==i.getCustomData("isReady")){var n,a=t.getContentElement("info","txtWidth"),l=t.getContentElement("info","txtHeight");e?i=n=0:(n=i.$.width,i=i.$.height),a&&a.setValue(n),l&&l.setValue(i)}g(t)},u=function(t,e){function i(t,e){var i=t.match(s);return i?("%"==i[2]&&(i[1]+="%",d(n,!1)),i[1]):e}if(1==t){var n=this.getDialog(),a="",l="txtWidth"==this.id?"width":"height",o=e.getAttribute(l);o&&(a=i(o,a)),a=i(e.getStyle(l),a),this.setValue(a)}},c=function(){var e=this.originalElement,i=NEW_CKEDITOR.document.getById(b);e.setCustomData("isReady","true"),e.removeListener("load",c),e.removeListener("error",p),e.removeListener("abort",p),i&&i.setStyle("display","none"),this.dontResetSize||h(this,!1===t.config.image_prefillDimensions),this.firstLoad&&NEW_CKEDITOR.tools.setTimeout((function(){d(this,"check")}),0,this),this.dontResetSize=this.firstLoad=!1,g(this)},p=function(){var t=this.originalElement,e=NEW_CKEDITOR.document.getById(b);t.removeListener("load",c),t.removeListener("error",p),t.removeListener("abort",p),t=NEW_CKEDITOR.getUrl(NEW_CKEDITOR.plugins.get("image").path+"images/noimage.png"),this.preview&&this.preview.setAttribute("src",t),e&&e.setStyle("display","none"),d(this,!1)},v=function(t){return NEW_CKEDITOR.tools.getNextId()+"_"+t},f=v("btnLockSizes"),E=v("btnResetSize"),b=v("ImagePreviewLoader"),y=v("previewLink"),C=v("previewImage");return{title:t.lang.image["image"==e?"title":"titleButton"],minWidth:"moono-lisa"==(NEW_CKEDITOR.skinName||t.config.skin)?500:420,minHeight:360,getModel:function(t){var e=(t=t.getSelection().getSelectedElement())&&"img"===t.getName(),i=t&&"input"===t.getName()&&"image"===t.getAttribute("type");return e||i?t:null},onShow:function(){this.linkEditMode=this.imageEditMode=this.linkElement=this.imageElement=!1,this.lockRatio=!0,this.userlockRatio=0,this.dontResetSize=!1,this.firstLoad=!0,this.addLink=!1;var t=this.getParentEditor(),i=t.getSelection(),n=(i=i&&i.getSelectedElement())&&t.elementPath(i).contains("a",1),a=NEW_CKEDITOR.document.getById(b);a&&a.setStyle("display","none"),l=new NEW_CKEDITOR.dom.element("img",t.document),this.preview=NEW_CKEDITOR.document.getById(C),this.originalElement=t.document.createElement("img"),this.originalElement.setAttribute("alt",""),this.originalElement.setCustomData("isReady","false"),n&&(this.linkElement=n,this.addLink=this.linkEditMode=!0,1==(t=n.getChildren()).count()&&((a=t.getItem(0)).type==NEW_CKEDITOR.NODE_ELEMENT&&(a.is("img")||a.is("input"))&&(this.imageElement=t.getItem(0),this.imageElement.is("img")?this.imageEditMode="img":this.imageElement.is("input")&&(this.imageEditMode="input"))),"image"==e&&this.setupContent(2,n)),this.customImageElement?(this.imageEditMode="img",this.imageElement=this.customImageElement,delete this.customImageElement):(i&&"img"==i.getName()&&!i.data("edi-realelement")||i&&"input"==i.getName()&&"image"==i.getAttribute("type"))&&(this.imageEditMode=i.getName(),this.imageElement=i),this.imageEditMode&&(this.cleanImageElement=this.imageElement,this.imageElement=this.cleanImageElement.clone(!0,!0),this.setupContent(1,this.imageElement)),d(this,!0),NEW_CKEDITOR.tools.trim(this.getValueOf("info","txtUrl"))||(this.preview.removeAttribute("src"),this.preview.setStyle("display","none"))},onOk:function(){if(this.imageEditMode){var i=this.imageEditMode;"image"==e&&"input"==i&&confirm(t.lang.image.button2Img)?(this.imageElement=t.document.createElement("img"),this.imageElement.setAttribute("alt",""),t.insertElement(this.imageElement)):"image"!=e&&"img"==i&&confirm(t.lang.image.img2Button)?(this.imageElement=t.document.createElement("input"),this.imageElement.setAttributes({type:"image",alt:""}),t.insertElement(this.imageElement)):(this.imageElement=this.cleanImageElement,delete this.cleanImageElement)}else"image"==e?this.imageElement=t.document.createElement("img"):(this.imageElement=t.document.createElement("input"),this.imageElement.setAttribute("type","image")),this.imageElement.setAttribute("alt","");this.linkEditMode||(this.linkElement=t.document.createElement("a")),this.commitContent(1,this.imageElement),this.commitContent(2,this.linkElement),this.imageElement.getAttribute("style")||this.imageElement.removeAttribute("style"),this.imageEditMode?!this.linkEditMode&&this.addLink?(t.insertElement(this.linkElement),this.imageElement.appendTo(this.linkElement)):this.linkEditMode&&!this.addLink&&(t.getSelection().selectElement(this.linkElement),t.insertElement(this.imageElement)):this.addLink?this.linkEditMode?this.linkElement.equals(t.getSelection().getSelectedElement())?(this.linkElement.setHtml(""),this.linkElement.append(this.imageElement,!1)):t.insertElement(this.imageElement):(t.insertElement(this.linkElement),this.linkElement.append(this.imageElement,!1)):t.insertElement(this.imageElement)},onLoad:function(){"image"!=e&&this.hidePage("Link");var t=this._.element.getDocument();this.getContentElement("info","ratioLock")&&(this.addFocusable(t.getById(E),5),this.addFocusable(t.getById(f),5)),this.commitContent=i},onHide:function(){this.preview&&this.commitContent(8,this.preview),this.originalElement&&(this.originalElement.removeListener("load",c),this.originalElement.removeListener("error",p),this.originalElement.removeListener("abort",p),this.originalElement.remove(),this.originalElement=!1),delete this.imageElement},contents:[{id:"info",label:t.lang.image.infoTab,accessKey:"I",elements:[{type:"vbox",padding:0,children:[{type:"hbox",widths:["280px","110px"],align:"right",className:"edi_dialog_image_url",children:[{id:"txtUrl",type:"text",label:t.lang.common.url,required:!0,onChange:function(){var t=this.getDialog(),e=this.getValue();if(0<e.length){var i=(t=this.getDialog()).originalElement;t.preview&&t.preview.removeStyle("display"),i.setCustomData("isReady","false");var n=NEW_CKEDITOR.document.getById(b);n&&n.setStyle("display",""),i.on("load",c,t),i.on("error",p,t),i.on("abort",p,t),i.setAttribute("src",e),t.preview&&(l.setAttribute("src",e),t.preview.setAttribute("src",l.$.src),g(t))}else t.preview&&(t.preview.removeAttribute("src"),t.preview.setStyle("display","none"))},setup:function(t,e){if(1==t){var i=e.data("edi-saved-src")||e.getAttribute("src");this.getDialog().dontResetSize=!0,this.setValue(i),this.setInitValue()}},commit:function(t,e){1==t&&(this.getValue()||this.isChanged())?(e.data("edi-saved-src",this.getValue()),e.setAttribute("src",this.getValue())):8==t&&(e.setAttribute("src",""),e.removeAttribute("src"))},validate:NEW_CKEDITOR.dialog.validate.notEmpty(t.lang.image.urlMissing)},{type:"button",id:"browse",style:"display:inline-block;margin-top:14px;",align:"center",label:t.lang.common.browseServer,hidden:!0,filebrowser:"info:txtUrl"}]}]},{id:"txtAlt",type:"text",label:t.lang.image.alt,accessKey:"T",default:"",onChange:function(){g(this.getDialog())},setup:function(t,e){1==t&&this.setValue(e.getAttribute("alt"))},commit:function(t,e){1==t?(this.getValue()||this.isChanged())&&e.setAttribute("alt",this.getValue()):4==t?e.setAttribute("alt",this.getValue()):8==t&&e.removeAttribute("alt")}},{type:"hbox",children:[{id:"basic",type:"vbox",children:[{type:"hbox",requiredContent:"img{width,height}",widths:["50%","50%"],children:[{type:"vbox",padding:1,children:[{type:"text",width:"45px",id:"txtWidth",label:t.lang.common.width,onKeyUp:m,onChange:function(){n.call(this,"advanced:txtdlgGenStyle")},validate:function(){var e=this.getValue().match(o);return(e=!(!e||0===parseInt(e[1],10)))||alert(t.lang.common.invalidLength.replace("%1",t.lang.common.width).replace("%2","px, %")),e},setup:u,commit:function(e,i){var n=this.getValue();1==e?(n&&t.activeFilter.check("img{width,height}")?i.setStyle("width",NEW_CKEDITOR.tools.cssLength(n)):i.removeStyle("width"),i.removeAttribute("width")):4==e?n.match(s)?i.setStyle("width",NEW_CKEDITOR.tools.cssLength(n)):"true"==(n=this.getDialog().originalElement).getCustomData("isReady")&&i.setStyle("width",n.$.width+"px"):8==e&&(i.removeAttribute("width"),i.removeStyle("width"))}},{type:"text",id:"txtHeight",width:"45px",label:t.lang.common.height,onKeyUp:m,onChange:function(){n.call(this,"advanced:txtdlgGenStyle")},validate:function(){var e=this.getValue().match(o);return(e=!(!e||0===parseInt(e[1],10)))||alert(t.lang.common.invalidLength.replace("%1",t.lang.common.height).replace("%2","px, %")),e},setup:u,commit:function(e,i){var n=this.getValue();1==e?(n&&t.activeFilter.check("img{width,height}")?i.setStyle("height",NEW_CKEDITOR.tools.cssLength(n)):i.removeStyle("height"),i.removeAttribute("height")):4==e?n.match(s)?i.setStyle("height",NEW_CKEDITOR.tools.cssLength(n)):"true"==(n=this.getDialog().originalElement).getCustomData("isReady")&&i.setStyle("height",n.$.height+"px"):8==e&&(i.removeAttribute("height"),i.removeStyle("height"))}}]},{id:"ratioLock",type:"html",className:"edi_dialog_image_ratiolock",style:"margin-top:30px;width:40px;height:40px;",onLoad:function(){var t=NEW_CKEDITOR.document.getById(E),e=NEW_CKEDITOR.document.getById(f);t&&(t.on("click",(function(t){h(this),t.data&&t.data.preventDefault()}),this.getDialog()),t.on("mouseover",(function(){this.addClass("edi_btn_over")}),t),t.on("mouseout",(function(){this.removeClass("edi_btn_over")}),t)),e&&(e.on("click",(function(t){d(this);var e=this.originalElement,i=this.getValueOf("info","txtWidth");"true"==e.getCustomData("isReady")&&i&&(e=e.$.height/e.$.width*i,isNaN(e)||(this.setValueOf("info","txtHeight",Math.round(e)),g(this))),t.data&&t.data.preventDefault()}),this.getDialog()),e.on("mouseover",(function(){this.addClass("edi_btn_over")}),e),e.on("mouseout",(function(){this.removeClass("edi_btn_over")}),e))},html:'<div><a href="javascript:void(0)" tabindex="-1" title="'+t.lang.image.lockRatio+'" class="edi_btn_locked" id="'+f+'" role="checkbox"><span class="edi_icon"></span><span class="edi_label">'+t.lang.image.lockRatio+'</span></a><a href="javascript:void(0)" tabindex="-1" title="'+t.lang.image.resetSize+'" class="edi_btn_reset" id="'+E+'" role="button"><span class="edi_label">'+t.lang.image.resetSize+"</span></a></div>"}]},{type:"vbox",padding:1,children:[{type:"text",id:"txtBorder",requiredContent:"img{border-width}",width:"60px",label:t.lang.image.border,default:"",onKeyUp:function(){g(this.getDialog())},onChange:function(){n.call(this,"advanced:txtdlgGenStyle")},validate:NEW_CKEDITOR.dialog.validate.integer(t.lang.image.validateBorder),setup:function(t,e){var i;1==t&&(i=(i=(i=e.getStyle("border-width"))&&i.match(/^(\d+px)(?: \1 \1 \1)?$/))&&parseInt(i[1],10),isNaN(parseInt(i,10))&&(i=e.getAttribute("border")),this.setValue(i))},commit:function(t,e){var i=parseInt(this.getValue(),10);1==t||4==t?(isNaN(i)?!i&&this.isChanged()&&e.removeStyle("border"):(e.setStyle("border-width",NEW_CKEDITOR.tools.cssLength(i)),e.setStyle("border-style","solid")),1==t&&e.removeAttribute("border")):8==t&&(e.removeAttribute("border"),e.removeStyle("border-width"),e.removeStyle("border-style"),e.removeStyle("border-color"))}},{type:"text",id:"txtHSpace",requiredContent:"img{margin-left,margin-right}",width:"60px",label:t.lang.image.hSpace,default:"",onKeyUp:function(){g(this.getDialog())},onChange:function(){n.call(this,"advanced:txtdlgGenStyle")},validate:NEW_CKEDITOR.dialog.validate.integer(t.lang.image.validateHSpace),setup:function(t,e){var i,n;1==t&&(i=e.getStyle("margin-left"),n=e.getStyle("margin-right"),i=i&&i.match(r),n=n&&n.match(r),i=(i=parseInt(i,10))==(n=parseInt(n,10))&&i,isNaN(parseInt(i,10))&&(i=e.getAttribute("hspace")),this.setValue(i))},commit:function(t,e){var i=parseInt(this.getValue(),10);1==t||4==t?(isNaN(i)?!i&&this.isChanged()&&(e.removeStyle("margin-left"),e.removeStyle("margin-right")):(e.setStyle("margin-left",NEW_CKEDITOR.tools.cssLength(i)),e.setStyle("margin-right",NEW_CKEDITOR.tools.cssLength(i))),1==t&&e.removeAttribute("hspace")):8==t&&(e.removeAttribute("hspace"),e.removeStyle("margin-left"),e.removeStyle("margin-right"))}},{type:"text",id:"txtVSpace",requiredContent:"img{margin-top,margin-bottom}",width:"60px",label:t.lang.image.vSpace,default:"",onKeyUp:function(){g(this.getDialog())},onChange:function(){n.call(this,"advanced:txtdlgGenStyle")},validate:NEW_CKEDITOR.dialog.validate.integer(t.lang.image.validateVSpace),setup:function(t,e){var i,n;1==t&&(i=e.getStyle("margin-top"),n=e.getStyle("margin-bottom"),i=i&&i.match(r),n=n&&n.match(r),i=(i=parseInt(i,10))==(n=parseInt(n,10))&&i,isNaN(parseInt(i,10))&&(i=e.getAttribute("vspace")),this.setValue(i))},commit:function(t,e){var i=parseInt(this.getValue(),10);1==t||4==t?(isNaN(i)?!i&&this.isChanged()&&(e.removeStyle("margin-top"),e.removeStyle("margin-bottom")):(e.setStyle("margin-top",NEW_CKEDITOR.tools.cssLength(i)),e.setStyle("margin-bottom",NEW_CKEDITOR.tools.cssLength(i))),1==t&&e.removeAttribute("vspace")):8==t&&(e.removeAttribute("vspace"),e.removeStyle("margin-top"),e.removeStyle("margin-bottom"))}},{id:"cmbAlign",requiredContent:"img{float}",type:"select",widths:["35%","65%"],style:"width:90px",label:t.lang.common.align,default:"",items:[[t.lang.common.notSet,""],[t.lang.common.left,"left"],[t.lang.common.right,"right"]],onChange:function(){g(this.getDialog()),n.call(this,"advanced:txtdlgGenStyle")},setup:function(t,e){if(1==t){var i=e.getStyle("float");switch(i){case"inherit":case"none":i=""}!i&&(i=(e.getAttribute("align")||"").toLowerCase()),this.setValue(i)}},commit:function(t,e){var i=this.getValue();if(1==t||4==t){if(i?e.setStyle("float",i):e.removeStyle("float"),1==t)switch(i=(e.getAttribute("align")||"").toLowerCase(),i){case"left":case"right":e.removeAttribute("align")}}else 8==t&&e.removeStyle("float")}}]}]},{type:"vbox",height:"250px",children:[{type:"html",id:"htmlPreview",style:"width:95%;",html:"<div>"+NEW_CKEDITOR.tools.htmlEncode(t.lang.common.preview)+'<br><div id="'+b+'" class="ImagePreviewLoader" style="display:none"><div class="loading"> </div></div><div class="ImagePreviewBox"><table><tr><td><a href="javascript:void(0)" target="_blank" onclick="return false;" id="'+y+'"><img id="'+C+'" alt="" /></a>'+(t.config.image_previewText||"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas feugiat consequat diam. Maecenas metus. Vivamus diam purus, cursus a, commodo non, facilisis vitae, nulla. Aenean dictum lacinia tortor. Nunc iaculis, nibh non iaculis aliquam, orci felis euismod neque, sed ornare massa mauris sed velit. Nulla pretium mi et risus. Fusce mi pede, tempor id, cursus ac, ullamcorper nec, enim. Sed tortor. Curabitur molestie. Duis velit augue, condimentum at, ultrices a, luctus ut, orci. Donec pellentesque egestas eros. Integer cursus, augue in cursus faucibus, eros pede bibendum sem, in tempus tellus justo quis ligula. Etiam eget tortor. Vestibulum rutrum, est ut placerat elementum, lectus nisl aliquam velit, tempor aliquam eros nunc nonummy metus. In eros metus, gravida a, gravida sed, lobortis id, turpis. Ut ultrices, ipsum at venenatis fringilla, sem nulla lacinia tellus, eget aliquet turpis mauris non enim. Nam turpis. Suspendisse lacinia. Curabitur ac tortor ut ipsum egestas elementum. Nunc imperdiet gravida mauris.")+"</td></tr></table></div></div>"}]}]}]},{id:"Link",requiredContent:"a[href]",label:t.lang.image.linkTab,padding:0,elements:[{id:"txtUrl",type:"text",label:t.lang.common.url,style:"width: 100%",default:"",setup:function(t,e){if(2==t){var i=e.data("edi-saved-href");i||(i=e.getAttribute("href")),this.setValue(i)}},commit:function(e,i){if(2==e&&(this.getValue()||this.isChanged())){var n=this.getValue();i.data("edi-saved-href",n),i.setAttribute("href",n),this.getValue()||!t.config.image_removeLinkByEmptyURL?this.getDialog().addLink=!0:this.getDialog().addLink=!1}}},{type:"button",id:"browse",className:"edi_dialog_image_browse",filebrowser:{action:"Browse",target:"Link:txtUrl",url:t.config.filebrowserImageBrowseLinkUrl},style:"float:right",hidden:!0,label:t.lang.common.browseServer},{id:"cmbTarget",type:"select",requiredContent:"a[target]",label:t.lang.common.target,default:"",items:[[t.lang.common.notSet,""],[t.lang.common.targetNew,"_blank"],[t.lang.common.targetTop,"_top"],[t.lang.common.targetSelf,"_self"],[t.lang.common.targetParent,"_parent"]],setup:function(t,e){2==t&&this.setValue(e.getAttribute("target")||"")},commit:function(t,e){2==t&&(this.getValue()||this.isChanged())&&e.setAttribute("target",this.getValue())}}]},{id:"Upload",hidden:!0,filebrowser:"uploadButton",label:t.lang.image.upload,elements:[{type:"file",id:"upload",label:t.lang.image.btnUpload,style:"height:40px",size:38},{type:"fileButton",id:"uploadButton",filebrowser:"info:txtUrl",label:t.lang.image.btnUpload,for:["Upload","upload"]}]},{id:"advanced",label:t.lang.common.advancedTab,elements:[{type:"hbox",widths:["50%","25%","25%"],children:[{type:"text",id:"linkId",requiredContent:"img[id]",label:t.lang.common.id,setup:function(t,e){1==t&&this.setValue(e.getAttribute("id"))},commit:function(t,e){1==t&&(this.getValue()||this.isChanged())&&e.setAttribute("id",this.getValue())}},{id:"cmbLangDir",type:"select",requiredContent:"img[dir]",style:"width : 100px;",label:t.lang.common.langDir,default:"",items:[[t.lang.common.notSet,""],[t.lang.common.langDirLtr,"ltr"],[t.lang.common.langDirRtl,"rtl"]],setup:function(t,e){1==t&&this.setValue(e.getAttribute("dir"))},commit:function(t,e){1==t&&(this.getValue()||this.isChanged())&&e.setAttribute("dir",this.getValue())}},{type:"text",id:"txtLangCode",requiredContent:"img[lang]",label:t.lang.common.langCode,default:"",setup:function(t,e){1==t&&this.setValue(e.getAttribute("lang"))},commit:function(t,e){1==t&&(this.getValue()||this.isChanged())&&e.setAttribute("lang",this.getValue())}}]},{type:"text",id:"txtGenLongDescr",requiredContent:"img[longdesc]",label:t.lang.common.longDescr,setup:function(t,e){1==t&&this.setValue(e.getAttribute("longDesc"))},commit:function(t,e){1==t&&(this.getValue()||this.isChanged())&&e.setAttribute("longDesc",this.getValue())}},{type:"hbox",widths:["50%","50%"],children:[{type:"text",id:"txtGenClass",requiredContent:"img(edi-xyz)",label:t.lang.common.cssClass,default:"",setup:function(t,e){1==t&&this.setValue(e.getAttribute("class"))},commit:function(t,e){1==t&&(this.getValue()||this.isChanged())&&e.setAttribute("class",this.getValue())}},{type:"text",id:"txtGenTitle",requiredContent:"img[title]",label:t.lang.common.advisoryTitle,default:"",onChange:function(){g(this.getDialog())},setup:function(t,e){1==t&&this.setValue(e.getAttribute("title"))},commit:function(t,e){1==t?(this.getValue()||this.isChanged())&&e.setAttribute("title",this.getValue()):4==t?e.setAttribute("title",this.getValue()):8==t&&e.removeAttribute("title")}}]},{type:"text",id:"txtdlgGenStyle",requiredContent:"img{edi-xyz}",label:t.lang.common.cssStyle,validate:NEW_CKEDITOR.dialog.validate.inlineStyle(t.lang.common.invalidInlineStyle),default:"",setup:function(t,e){if(1==t){!(n=e.getAttribute("style"))&&e.$.style.cssText&&(n=e.$.style.cssText),this.setValue(n);var i=e.$.style.height,n=e.$.style.width;i=(i||"").match(s),n=(n||"").match(s);this.attributesInStyle={height:!!i,width:!!n}}},onChange:function(){n.call(this,"info:cmbFloat info:cmbAlign info:txtVSpace info:txtHSpace info:txtBorder info:txtWidth info:txtHeight".split(" ")),g(this)},commit:function(t,e){1==t&&(this.getValue()||this.isChanged())&&e.setAttribute("style",this.getValue())}}]}]}};NEW_CKEDITOR.dialog.add("image",(function(e){return t(e,"image")})),NEW_CKEDITOR.dialog.add("imagebutton",(function(e){return t(e,"imagebutton")}))}();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
NEW_CKEDITOR.dialog.add("image2",(function(t){function e(){var t=this.getValue().match(C);return(t=!(!t||0===parseInt(t[1],10)))||alert(E.invalidLength.replace("%1",E[this.id]).replace("%2","px")),t}function i(){var e=this.getValue(),i=t.config.image2_defaultLockRatio,a=void 0!==i;o(!1),e!==s.data.src?(u(e,(function(e,l,s){if(o(!0),!e)return n(!!a&&i);_.setValue(!1===t.config.image2_prefillDimensions?0:l),y.setValue(!1===t.config.image2_prefillDimensions?0:s),h=r=l,g=c=s,n(a?i:N.checkHasNaturalRatio(e))})),p=!0):p?(o(!0),_.setValue(r),y.setValue(c),p=!1):o(!0)}function a(){if(f&&((a=this.getValue())&&(a.match(C)||n(!1),"0"!==a))){var t="width"==this.id,e=r||h,i=c||g,a=t?Math.round(a/e*i):Math.round(a/i*e);isNaN(a)||(t?y:_).setValue(a)}}function n(t){if(b){if("boolean"==typeof t){if(m)return;f=t}else t=_.getValue(),m=!0,(f=!f)&&t&&(t*=c/r,isNaN(t)||y.setValue(Math.round(t)));b[f?"removeClass":"addClass"]("edi_btn_unlocked"),b.setAttribute("aria-checked",f),NEW_CKEDITOR.env.hc&&b.getChild(0).setHtml(f?NEW_CKEDITOR.env.ie?"■":"▣":NEW_CKEDITOR.env.ie?"□":"▢")}}function o(t){_[t=t?"enable":"disable"](),y[t]()}var l,s,d,u,r,c,h,g,p,f,m,b,v,_,y,V,C=/(^\s*(\d+)(px)?\s*$)|^$/i,w=NEW_CKEDITOR.tools.getNextId(),x=NEW_CKEDITOR.tools.getNextId(),D=t.lang.image2,E=t.lang.common,I=new NEW_CKEDITOR.template('<div><a href="javascript:void(0)" tabindex="-1" title="'+D.lockRatio+'" class="edi_btn_locked" id="{lockButtonId}" role="checkbox"><span class="edi_icon"></span><span class="edi_label">'+D.lockRatio+'</span></a><a href="javascript:void(0)" tabindex="-1" title="'+D.resetSize+'" class="edi_btn_reset" id="{resetButtonId}" role="button"><span class="edi_label">'+D.resetSize+"</span></a></div>").output({lockButtonId:w,resetButtonId:x}),N=NEW_CKEDITOR.plugins.image2,k=t.config,R=!(!k.filebrowserImageBrowseUrl&&!k.filebrowserBrowseUrl),K=t.widgets.registered.image.features,T=N.getNatural,B=[{id:"src",type:"text",label:E.url,onKeyup:i,onChange:i,setup:function(t){this.setValue(t.data.src)},commit:function(t){t.setData("src",this.getValue())},validate:NEW_CKEDITOR.dialog.validate.notEmpty(D.urlMissing)}];return R&&B.push({type:"button",id:"browse",style:"display:inline-block;margin-top:14px;",align:"center",label:t.lang.common.browseServer,hidden:!0,filebrowser:"info:src"}),{title:D.title,minWidth:250,minHeight:100,onLoad:function(){l=this._.element.getDocument(),u=function(){function t(t,a){i.push(e.once(t,(function(t){for(var e;e=i.pop();)e.removeListener();a(t)})))}var e=l.createElement("img"),i=[];return function(i,a,n){t("load",(function(){var t=T(e);a.call(n,e,t.width,t.height)})),t("error",(function(){a(null)})),t("abort",(function(){a(null)}));var o=-1!==i.indexOf("?")?"&":"?";e.setAttribute("src",(k.baseHref||"")+i+o+Math.random().toString(16).substring(2))}}()},onShow:function(){s=this.getModel(),d=s.parts.image,p=m=f=!1,V=T(d),h=r=V.width,g=c=V.height},contents:[{id:"info",label:D.infoTab,elements:[{type:"vbox",padding:0,children:[{type:"hbox",widths:["100%"],className:"edi_dialog_image_url",children:B}]},{id:"alt",type:"text",label:D.alt,setup:function(t){this.setValue(t.data.alt)},commit:function(t){t.setData("alt",this.getValue())},validate:!0===t.config.image2_altRequired?NEW_CKEDITOR.dialog.validate.notEmpty(D.altMissing):null},{type:"hbox",widths:["25%","25%","50%"],requiredContent:K.dimension.requiredContent,children:[{type:"text",width:"45px",id:"width",label:E.width,validate:e,onKeyUp:a,onLoad:function(){_=this},setup:function(t){this.setValue(t.data.width)},commit:function(t){t.setData("width",this.getValue())}},{type:"text",id:"height",width:"45px",label:E.height,validate:e,onKeyUp:a,onLoad:function(){y=this},setup:function(t){this.setValue(t.data.height)},commit:function(t){t.setData("height",this.getValue())}},{id:"lock",type:"html",style:"margin-top:18px;width:40px;height:20px;",onLoad:function(){function t(t){t.on("mouseover",(function(){this.addClass("edi_btn_over")}),t),t.on("mouseout",(function(){this.removeClass("edi_btn_over")}),t)}var e=this.getDialog();b=l.getById(w),v=l.getById(x),b&&(e.addFocusable(b,4+R),b.on("click",(function(t){n(),t.data&&t.data.preventDefault()}),this.getDialog()),t(b)),v&&(e.addFocusable(v,5+R),v.on("click",(function(t){p?(_.setValue(h),y.setValue(g)):(_.setValue(r),y.setValue(c)),t.data&&t.data.preventDefault()}),this),t(v))},setup:function(t){n(t.data.lock)},commit:function(t){t.setData("lock",f)},html:I}]},{type:"hbox",id:"alignment",requiredContent:K.align.requiredContent,children:[{id:"align",type:"radio",items:[[E.alignNone,"none"],[E.left,"left"],[E.center,"center"],[E.right,"right"]],label:E.align,setup:function(t){this.setValue(t.data.align)},commit:function(t){t.setData("align",this.getValue())}}]},{id:"hasCaption",type:"checkbox",label:D.captioned,requiredContent:K.caption.requiredContent,setup:function(t){this.setValue(t.data.hasCaption)},commit:function(t){t.setData("hasCaption",this.getValue())}}]},{id:"Upload",hidden:!0,filebrowser:"uploadButton",label:D.uploadTab,elements:[{type:"file",id:"upload",label:D.btnUpload,style:"height:40px"},{type:"fileButton",id:"uploadButton",filebrowser:"info:src",label:D.btnUpload,for:["Upload","upload"]}]}]}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
NEW_CKEDITOR.plugins.setLang("image2","de-ch",{alt:"Alternativer Text",btnUpload:"Zum Server senden",captioned:"Bild mit Überschrift",captionPlaceholder:"Überschrift",infoTab:"Bildinfo",lockRatio:"Grössenverhältnis beibehalten",menu:"Bildeigenschaften",pathName:"Bild",pathNameCaption:"Überschrift",resetSize:"Grösse zurücksetzen",resizer:"Zum Vergrössern auswählen und ziehen",title:"Bild-Eigenschaften",uploadTab:"Hochladen",urlMissing:"Bildquellen-URL fehlt.",altMissing:"Alternativer Text fehlt."});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
NEW_CKEDITOR.plugins.setLang("image2","de",{alt:"Alternativer Text",btnUpload:"Zum Server senden",captioned:"Bild mit Überschrift",captionPlaceholder:"Überschrift",infoTab:"Bildinfo",lockRatio:"Größenverhältnis beibehalten",menu:"Bildeigenschaften",pathName:"Bild",pathNameCaption:"Überschrift",resetSize:"Größe zurücksetzen",resizer:"Zum Vergrößern auswählen und ziehen",title:"Bild-Eigenschaften",uploadTab:"Hochladen",urlMissing:"Bildquellen-URL fehlt.",altMissing:"Alternativer Text fehlt."});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
NEW_CKEDITOR.plugins.setLang("image2","en",{alt:"Alternative Text",btnUpload:"Send it to the Server",captioned:"Captioned image",captionPlaceholder:"Caption",infoTab:"Image Info",lockRatio:"Lock Ratio",menu:"Image Properties",pathName:"image",pathNameCaption:"caption",resetSize:"Reset Size",resizer:"Click and drag to resize",title:"Image Properties",uploadTab:"Upload",urlMissing:"Image source URL is missing.",altMissing:"Alternative text is missing."});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
NEW_CKEDITOR.plugins.setLang("image2","fr",{alt:"Texte alternatif",btnUpload:"Envoyer sur le serveur",captioned:"Image légendée",captionPlaceholder:"Légende",infoTab:"Informations sur l'image",lockRatio:"Conserver les proportions",menu:"Propriétés de l'image",pathName:"image",pathNameCaption:"légende",resetSize:"Réinitialiser la taille",resizer:"Cliquer et glisser pour redimensionner",title:"Propriétés de l'image",uploadTab:"Téléverser",urlMissing:"L'URL source de l'image est manquante.",altMissing:"Vous n'avez pas indiqué de texte de remplacement."});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
NEW_CKEDITOR.plugins.setLang("image2","it",{alt:"Testo alternativo",btnUpload:"Invia al server",captioned:"Immagine con didascalia",captionPlaceholder:"Didascalia",infoTab:"Informazioni immagine",lockRatio:"Blocca rapporto",menu:"Proprietà immagine",pathName:"immagine",pathNameCaption:"didascalia",resetSize:"Reimposta dimensione",resizer:"Fare clic e trascinare per ridimensionare",title:"Proprietà immagine",uploadTab:"Carica",urlMissing:"Manca l'URL dell'immagine.",altMissing:"Testo alternativo mancante."});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){function e(e){function a(){this.deflated||(e.widgets.focused==this.widget&&(this.focused=!0),e.widgets.destroy(this.widget),this.deflated=!0)}function n(){var t=e.editable(),i=e.document;if(this.deflated)this.widget=e.widgets.initOn(this.element,"image",this.widget.data),this.widget.inline&&!new CKEDITOR.dom.elementPath(this.widget.wrapper,t).block&&((t=i.createElement(e.activeEnterMode==CKEDITOR.ENTER_P?"p":"div")).replace(this.widget.wrapper),this.widget.wrapper.move(t)),this.focused&&(this.widget.focus(),delete this.focused),delete this.deflated;else{var a=this.widget,n=(t=s,i=a.wrapper,a.data.align);a=a.data.hasCaption;if(t){for(var r=3;r--;)i.removeClass(t[r]);"center"==n?a&&i.addClass(t[1]):"none"!=n&&i.addClass(t[c[n]])}else"center"==n?(a?i.setStyle("text-align","center"):i.removeStyle("text-align"),i.removeStyle("float")):("none"==n?i.removeStyle("float"):i.setStyle("float",n),i.removeStyle("text-align"))}}var s=e.config.image2_alignClasses,g=e.config.image2_captionedClass;return{allowedContent:r(e),requiredContent:"img[src,alt]",features:l(e),styleableElements:"img figure",contentTransformations:[["img[width]: sizeToAttribute"]],editables:{caption:{selector:"figcaption",allowedContent:"br em strong sub sup u s; a[!href,target]"}},parts:{image:"img",caption:"figcaption"},dialog:"image2",template:'<img alt="" src="" />',data:function(){var t=this.features;if(this.data.hasCaption&&!e.filter.checkFeature(t.caption)&&(this.data.hasCaption=!1),"none"==this.data.align||e.filter.checkFeature(t.align)||(this.data.align="none"),this.shiftState({widget:this,element:this.element,oldData:this.oldData,newData:this.data,deflate:a,inflate:n}),this.data.link?this.parts.link||(this.parts.link=this.parts.image.getParent()):this.parts.link&&delete this.parts.link,this.parts.image.setAttributes({src:this.data.src,"data-cke-saved-src":this.data.src,alt:this.data.alt}),this.oldData&&!this.oldData.hasCaption&&this.data.hasCaption)for(var i in this.data.classes)this.parts.image.removeClass(i);if(e.filter.checkFeature(t.dimension))for(var s in t={width:(t=this.data).width,height:t.height},i=this.parts.image,t)t[s]?i.setAttribute(s,t[s]):i.removeAttribute(s);this.oldData=CKEDITOR.tools.extend({},this.data)},init:function(){var t=CKEDITOR.plugins.image2,i=this.parts.image,a=!this.ready||t.checkHasNaturalRatio(i),n=(a={hasCaption:!!this.parts.caption,src:i.getAttribute("src"),alt:i.getAttribute("alt")||"",width:i.getAttribute("width")||"",height:i.getAttribute("height")||"",lock:void 0!==e.config.image2_defaultLockRatio?e.config.image2_defaultLockRatio:a},i.getAscendant("a"));n&&this.wrapper.contains(n)&&(this.parts.link=n),a.align||(i=a.hasCaption?this.element:i,s?(i.hasClass(s[0])?a.align="left":i.hasClass(s[2])&&(a.align="right"),a.align?i.removeClass(s[c[a.align]]):a.align="none"):(a.align=i.getStyle("float")||"none",i.removeStyle("float"))),e.plugins.link&&this.parts.link&&(a.link=t.getLinkAttributesParser()(e,this.parts.link),(i=a.link.advanced)&&i.advCSSClasses&&(i.advCSSClasses=CKEDITOR.tools.trim(i.advCSSClasses.replace(/cke_\S+/,"")))),this.wrapper[(a.hasCaption?"remove":"add")+"Class"]("cke_image_nocaption"),this.setData(a),e.filter.checkFeature(this.features.dimension)&&!0!==e.config.image2_disableResizer&&function(e){var t=e.editor,i=t.editable(),a=t.document,n=e.resizer=a.createElement("span");if(n.addClass("cke_image_resizer"),n.setAttribute("title",t.lang.image2.resizer),n.append(new CKEDITOR.dom.text("",a)),e.inline)e.wrapper.append(n);else{var s=e.parts.link||e.parts.image,r=s.getParent(),l=a.createElement("span");l.addClass("cke_image_resizer_wrapper"),l.append(s),l.append(n),e.element.append(l,!0),r.is("span")&&r.remove()}n.on("mousedown",(function(s){function r(e,t,i){var n=CKEDITOR.document,s=[];if(a.equals(n)||s.push(n.on(e,t)),s.push(a.on(e,t)),i)for(e=s.length;e--;)i.push(s.pop())}function l(){c=_+v*m,d=Math.round(c/E)}function o(){d=T-u,c=Math.round(d*E)}var g,c,d,h,m,u,f,p=e.parts.image,C=function(){var e,i=t.config.image2_maxSize;return i?(i=CKEDITOR.tools.copy(i),e=CKEDITOR.plugins.image2.getNatural(p),i.width=Math.max("natural"===i.width?e.width:i.width,15),i.height=Math.max("natural"===i.height?e.height:i.height,15),i):null}(),v="right"==e.data.align?-1:1,k=s.data.$.screenX,w=s.data.$.screenY,_=p.$.clientWidth,T=p.$.clientHeight,E=_/T,b=[],D="cke_image_s"+(~v?"e":"w");t.fire("saveSnapshot"),r("mousemove",(function(e){g=e.data.$,m=g.screenX-k,u=w-g.screenY,f=Math.abs(m/u),1==v?0>=m?0>=u||f>=E?l():o():0>=u?f>=E?o():l():o():0>=m?0>=u?f>=E?o():l():o():0>=u||f>=E?l():o(),e=C&&(c>C.width||d>C.height),15>c||15>d||e||(h={width:c,height:d},p.setAttributes(h))}),b),r("mouseup",(function(){for(var a;a=b.pop();)a.removeListener();i.removeClass(D),n.removeClass("cke_image_resizing"),h&&(e.setData(h),t.fire("saveSnapshot")),h=!1}),b),i.addClass(D),n.addClass("cke_image_resizing")})),e.on("data",(function(){n["right"==e.data.align?"addClass":"removeClass"]("cke_image_resizer_left")}))}(this),this.shiftState=t.stateShifter(this.editor),this.on("contextMenu",(function(e){e.data.image=CKEDITOR.TRISTATE_OFF,(this.parts.link||this.wrapper.getAscendant("a"))&&(e.data.link=e.data.unlink=CKEDITOR.TRISTATE_OFF)}))},addClass:function(e){o(this).addClass(e)},hasClass:function(e){return o(this).hasClass(e)},removeClass:function(e){o(this).removeClass(e)},getClasses:function(){var e=new RegExp("^("+[].concat(g,s).join("|")+")$");return function(){var t,i=this.repository.parseElementClasses(o(this).getAttribute("class"));for(t in i)e.test(t)&&delete i[t];return i}}(),upcast:t(e),downcast:i(e),getLabel:function(){return this.editor.lang.widget.label.replace(/%1/,(this.data.alt||"")+" "+this.pathName)}}}function t(e){var t=a(e),i=e.config.image2_captionedClass;return function(e,a){var s,r={width:1,height:1},l=e.name;if(!e.attributes["data-cke-realelement"]&&(t(e)?("div"==l&&(s=e.getFirst("figure"))&&(e.replaceWith(s),e=s),a.align="center",s=e.getFirst("img")||e.getFirst("a").getFirst("img")):"figure"==l&&e.hasClass(i)?s=e.find((function(e){return"img"===e.name&&-1!==CKEDITOR.tools.array.indexOf(["figure","a"],e.parent.name)}),!0)[0]:n(e)&&(s="a"==e.name?e.children[0]:e),s)){for(var o in r)(r=s.attributes[o])&&r.match(d)&&delete s.attributes[o];return e}}}function i(e){var t=e.config.image2_alignClasses;return function(e){var i="a"==e.name?e.getFirst():e,a=i.attributes,n=this.data.align;if(!this.inline){var s=e.getFirst("span");s&&s.replaceWith(s.getFirst({img:1,a:1}))}return n&&"none"!=n&&(s=CKEDITOR.tools.parseCssText(a.style||""),"center"==n&&"figure"==e.name?e=e.wrapWith(new CKEDITOR.htmlParser.element("div",t?{class:t[1]}:{style:"text-align:center"})):n in{left:1,right:1}&&(t?i.addClass(t[c[n]]):s.float=n),t||CKEDITOR.tools.isEmpty(s)||(a.style=CKEDITOR.tools.writeCssText(s))),e}}function a(e){var t=e.config.image2_captionedClass,i=e.config.image2_alignClasses,a={figure:1,a:1,img:1};return function(s){if(!(s.name in{div:1,p:1}))return!1;var r=s.children;if(1!==r.length)return!1;if(!((r=r[0]).name in a))return!1;if("p"==s.name){if(!n(r))return!1}else if("figure"==r.name){if(!r.hasClass(t))return!1}else if(e.enterMode==CKEDITOR.ENTER_P||!n(r))return!1;return!!(i?s.hasClass(i[1]):"center"==CKEDITOR.tools.parseCssText(s.attributes.style||"",!0)["text-align"])}}function n(e){return"img"==e.name||"a"==e.name&&(1==e.children.length&&e.getFirst("img"))}function s(e){return(e=e.widgets.focused)&&"image"==e.name?e:null}function r(e){var t=e.config.image2_alignClasses;return e={div:{match:a(e)},p:{match:a(e)},img:{attributes:"!src,alt,width,height"},figure:{classes:"!"+e.config.image2_captionedClass},figcaption:!0},t?(e.div.classes=t[1],e.p.classes=e.div.classes,e.img.classes=t[0]+","+t[2],e.figure.classes+=","+e.img.classes):(e.div.styles="text-align",e.p.styles="text-align",e.img.styles="float",e.figure.styles="float,display"),e}function l(e){return{dimension:{requiredContent:"img[width,height]"},align:{requiredContent:"img"+((e=e.config.image2_alignClasses)?"("+e[0]+")":"{float}")},caption:{requiredContent:"figcaption"}}}function o(e){return e.data.hasCaption?e.element:e.parts.image}var g=new CKEDITOR.template('<figure class="{captionedClass}"><img alt="" src="" /><figcaption>{captionPlaceholder}</figcaption></figure>'),c={left:0,center:1,right:2},d=/^\s*(\d+\%)\s*$/i;CKEDITOR.plugins.add("image2",{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",requires:"widget,dialog",icons:"image",hidpi:!0,onLoad:function(){CKEDITOR.addCss('.cke_image_nocaption{line-height:0}.cke_editable.cke_image_sw, .cke_editable.cke_image_sw *{cursor:sw-resize !important}.cke_editable.cke_image_se, .cke_editable.cke_image_se *{cursor:se-resize !important}.cke_image_resizer{display:none;position:absolute;width:10px;height:10px;bottom:-5px;right:-5px;background:#000;outline:1px solid #fff;line-height:0;cursor:se-resize;}.cke_image_resizer_wrapper{position:relative;display:inline-block;line-height:0;}.cke_image_resizer.cke_image_resizer_left{right:auto;left:-5px;cursor:sw-resize;}.cke_widget_wrapper:hover .cke_image_resizer,.cke_image_resizer.cke_image_resizing{display:block}.cke_editable[contenteditable="false"] .cke_image_resizer{display:none;}.cke_widget_wrapper>a{display:inline-block}')},init:function(t){if(!t.plugins.detectConflict("image2",["easyimage"])){var i=t.config,a=t.lang.image2,n=e(t);i.filebrowserImage2BrowseUrl=i.filebrowserImageBrowseUrl,i.filebrowserImage2UploadUrl=i.filebrowserImageUploadUrl,n.pathName=a.pathName,n.editables.caption.pathName=a.pathNameCaption,t.widgets.add("image",n),t.ui.addButton&&t.ui.addButton("Image",{label:t.lang.common.image,command:"image",toolbar:"insert,10"}),t.contextMenu&&(t.addMenuGroup("image",10),t.addMenuItem("image",{label:a.menu,command:"image",group:"image"})),CKEDITOR.dialog.add("image2",this.path+"dialogs/image2.js")}},afterInit:function(e){var t,i=function(e){var t,i=[];return function(a){var n=e.getCommand("justify"+a);n&&(i.push((function(){n.refresh(e,e.elementPath())})),a in{right:1,left:1,center:1}&&n.on("exec",(function(t){var n=s(e);if(n){for(n.setData("align",a),n=i.length;n--;)i[n]();t.cancel()}})),n.on("refresh",(function(i){var n=s(e);n&&(void 0===t&&(t=e.filter.checkFeature(e.widgets.registered.image.features.align)),t?this.setState(n.data.align==a?CKEDITOR.TRISTATE_ON:a in{right:1,left:1,center:1}?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED):this.setState(CKEDITOR.TRISTATE_DISABLED),i.cancel())})))}}(e);for(t in{left:1,right:1,center:1,block:1})i(t);!function(e){if(e.plugins.link){var t=CKEDITOR.on("dialogDefinition",(function(t){if("link"==(t=t.data).name){var i=(t=t.definition).onShow,a=t.onOk;t.onShow=function(){var t=s(e),a=this.getContentElement("info","linkDisplayText").getElement().getParent().getParent();!t||t.inline&&t.wrapper.getAscendant("a")?(a.show(),i.apply(this,arguments)):(this.setupContent(t.data.link||{}),a.hide())},t.onOk=function(){var t=s(e);if(!t||t.inline&&t.wrapper.getAscendant("a"))a.apply(this,arguments);else{var i={};this.commitContent(i),t.setData("link",i)}}}}));e.on("destroy",(function(){t.removeListener()})),e.getCommand("unlink").on("exec",(function(t){var i=s(e);i&&i.parts.link&&(i.setData("link",null),this.refresh(e,e.elementPath()),t.cancel())})),e.getCommand("unlink").on("refresh",(function(t){var i=s(e);i&&(this.setState(i.data.link||i.wrapper.getAscendant("a")?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED),t.cancel())}))}}(e)}}),CKEDITOR.plugins.image2={stateShifter:function(e){function t(e,t){var s={};return n?s.attributes={class:n[1]}:s.styles={"text-align":"center"},i(s=a.createElement(e.activeEnterMode==CKEDITOR.ENTER_P?"p":"div",s),t),t.move(s),s}function i(t,i){if(i.getParent()){var a=e.createRange();a.moveToPosition(i,CKEDITOR.POSITION_BEFORE_START),i.remove(),r.insertElementIntoRange(t,a)}else t.replace(i)}var a=e.document,n=e.config.image2_alignClasses,s=e.config.image2_captionedClass,r=e.editable(),l=["hasCaption","align","link"],o={align:function(i,a,s){var r=i.element;i.changed.align?i.newData.hasCaption||("center"==s&&(i.deflate(),i.element=t(e,r)),i.changed.hasCaption||"center"!=a||"center"==s||(i.deflate(),(a=r.findOne("a,img")).replace(r),i.element=a)):"center"==s&&i.changed.hasCaption&&!i.newData.hasCaption&&(i.deflate(),i.element=t(e,r)),!n&&r.is("figure")&&("center"==s?r.setStyle("display","inline-block"):r.removeStyle("display"))},hasCaption:function(t,n,r){t.changed.hasCaption&&(n=t.element.is({img:1,a:1})?t.element:t.element.findOne("a,img"),t.deflate(),r?(i(r=CKEDITOR.dom.element.createFromHtml(g.output({captionedClass:s,captionPlaceholder:e.lang.image2.captionPlaceholder}),a),t.element),n.replace(r.findOne("img")),t.element=r):(n.replace(t.element),t.element=n))},link:function(t,i,n){if(t.changed.link){var s,r=t.element.is("img")?t.element:t.element.findOne("img"),l=t.element.is("a")?t.element:t.element.findOne("a"),o=t.element.is("a")&&!n||t.element.is("img")&&n;o&&t.deflate(),n?(i||((s=a.createElement("a",{attributes:{href:t.newData.link.url}})).replace(r),r.move(s)),n=CKEDITOR.plugins.image2.getLinkAttributesGetter()(e,n),CKEDITOR.tools.isEmpty(n.set)||(s||l).setAttributes(n.set),n.removed.length&&(s||l).removeAttributes(n.removed)):((n=l.findOne("img")).replace(l),s=n),o&&(t.element=s)}}};return function(e){var t,i;for(e.changed={},i=0;i<l.length;i++)t=l[i],e.changed[t]=!!e.oldData&&e.oldData[t]!==e.newData[t];for(i=0;i<l.length;i++)o[t=l[i]](e,e.oldData?e.oldData[t]:null,e.newData[t]);e.inflate()}},checkHasNaturalRatio:function(e){var t=e.$;return e=this.getNatural(e),Math.round(t.clientWidth/e.width*e.height)==t.clientHeight||Math.round(t.clientHeight/e.height*e.width)==t.clientWidth},getNatural:function(e){if(e.$.naturalWidth)e={width:e.$.naturalWidth,height:e.$.naturalHeight};else{var t=new Image;t.src=e.getAttribute("src"),e={width:t.width,height:t.height}}return e},getLinkAttributesGetter:function(){return CKEDITOR.plugins.link.getLinkAttributes},getLinkAttributesParser:function(){return CKEDITOR.plugins.link.parseLinkAttributes}}}(),CKEDITOR.config.image2_captionedClass="image";
|
|
1
|
+
!function(){function e(e){function a(){this.deflated||(e.widgets.focused==this.widget&&(this.focused=!0),e.widgets.destroy(this.widget),this.deflated=!0)}function n(){var t=e.editable(),i=e.document;if(this.deflated)this.widget=e.widgets.initOn(this.element,"image",this.widget.data),this.widget.inline&&!new NEW_CKEDITOR.dom.elementPath(this.widget.wrapper,t).block&&((t=i.createElement(e.activeEnterMode==NEW_CKEDITOR.ENTER_P?"p":"div")).replace(this.widget.wrapper),this.widget.wrapper.move(t)),this.focused&&(this.widget.focus(),delete this.focused),delete this.deflated;else{var a=this.widget,n=(t=s,i=a.wrapper,a.data.align);a=a.data.hasCaption;if(t){for(var r=3;r--;)i.removeClass(t[r]);"center"==n?a&&i.addClass(t[1]):"none"!=n&&i.addClass(t[d[n]])}else"center"==n?(a?i.setStyle("text-align","center"):i.removeStyle("text-align"),i.removeStyle("float")):("none"==n?i.removeStyle("float"):i.setStyle("float",n),i.removeStyle("text-align"))}}var s=e.config.image2_alignClasses,g=e.config.image2_captionedClass;return{allowedContent:r(e),requiredContent:"img[src,alt]",features:l(e),styleableElements:"img figure",contentTransformations:[["img[width]: sizeToAttribute"]],editables:{caption:{selector:"figcaption",allowedContent:"br em strong sub sup u s; a[!href,target]"}},parts:{image:"img",caption:"figcaption"},dialog:"image2",template:'<img alt="" src="" />',data:function(){var t=this.features;if(this.data.hasCaption&&!e.filter.checkFeature(t.caption)&&(this.data.hasCaption=!1),"none"==this.data.align||e.filter.checkFeature(t.align)||(this.data.align="none"),this.shiftState({widget:this,element:this.element,oldData:this.oldData,newData:this.data,deflate:a,inflate:n}),this.data.link?this.parts.link||(this.parts.link=this.parts.image.getParent()):this.parts.link&&delete this.parts.link,this.parts.image.setAttributes({src:this.data.src,"data-edi-saved-src":this.data.src,alt:this.data.alt}),this.oldData&&!this.oldData.hasCaption&&this.data.hasCaption)for(var i in this.data.classes)this.parts.image.removeClass(i);if(e.filter.checkFeature(t.dimension))for(var s in t={width:(t=this.data).width,height:t.height},i=this.parts.image,t)t[s]?i.setAttribute(s,t[s]):i.removeAttribute(s);this.oldData=NEW_CKEDITOR.tools.extend({},this.data)},init:function(){var t=NEW_CKEDITOR.plugins.image2,i=this.parts.image,a=!this.ready||t.checkHasNaturalRatio(i),n=(a={hasCaption:!!this.parts.caption,src:i.getAttribute("src"),alt:i.getAttribute("alt")||"",width:i.getAttribute("width")||"",height:i.getAttribute("height")||"",lock:void 0!==e.config.image2_defaultLockRatio?e.config.image2_defaultLockRatio:a},i.getAscendant("a"));n&&this.wrapper.contains(n)&&(this.parts.link=n),a.align||(i=a.hasCaption?this.element:i,s?(i.hasClass(s[0])?a.align="left":i.hasClass(s[2])&&(a.align="right"),a.align?i.removeClass(s[d[a.align]]):a.align="none"):(a.align=i.getStyle("float")||"none",i.removeStyle("float"))),e.plugins.link&&this.parts.link&&(a.link=t.getLinkAttributesParser()(e,this.parts.link),(i=a.link.advanced)&&i.advCSSClasses&&(i.advCSSClasses=NEW_CKEDITOR.tools.trim(i.advCSSClasses.replace(/edi_\S+/,"")))),this.wrapper[(a.hasCaption?"remove":"add")+"Class"]("edi_image_nocaption"),this.setData(a),e.filter.checkFeature(this.features.dimension)&&!0!==e.config.image2_disableResizer&&function(e){var t=e.editor,i=t.editable(),a=t.document,n=e.resizer=a.createElement("span");if(n.addClass("edi_image_resizer"),n.setAttribute("title",t.lang.image2.resizer),n.append(new NEW_CKEDITOR.dom.text("",a)),e.inline)e.wrapper.append(n);else{var s=e.parts.link||e.parts.image,r=s.getParent(),l=a.createElement("span");l.addClass("edi_image_resizer_wrapper"),l.append(s),l.append(n),e.element.append(l,!0),r.is("span")&&r.remove()}n.on("mousedown",(function(s){function r(e,t,i){var n=NEW_CKEDITOR.document,s=[];if(a.equals(n)||s.push(n.on(e,t)),s.push(a.on(e,t)),i)for(e=s.length;e--;)i.push(s.pop())}function l(){d=w+C*m,h=Math.round(d/b)}function o(){h=T-u,d=Math.round(h*b)}var g,d,h,c,m,u,f,p=e.parts.image,_=function(){var e,i=t.config.image2_maxSize;return i?(i=NEW_CKEDITOR.tools.copy(i),e=NEW_CKEDITOR.plugins.image2.getNatural(p),i.width=Math.max("natural"===i.width?e.width:i.width,15),i.height=Math.max("natural"===i.height?e.height:i.height,15),i):null}(),C="right"==e.data.align?-1:1,E=s.data.$.screenX,v=s.data.$.screenY,w=p.$.clientWidth,T=p.$.clientHeight,b=w/T,D=[],k="edi_image_s"+(~C?"e":"w");t.fire("saveSnapshot"),r("mousemove",(function(e){g=e.data.$,m=g.screenX-E,u=v-g.screenY,f=Math.abs(m/u),1==C?0>=m?0>=u||f>=b?l():o():0>=u?f>=b?o():l():o():0>=m?0>=u?f>=b?o():l():o():0>=u||f>=b?l():o(),e=_&&(d>_.width||h>_.height),15>d||15>h||e||(c={width:d,height:h},p.setAttributes(c))}),D),r("mouseup",(function(){for(var a;a=D.pop();)a.removeListener();i.removeClass(k),n.removeClass("edi_image_resizing"),c&&(e.setData(c),t.fire("saveSnapshot")),c=!1}),D),i.addClass(k),n.addClass("edi_image_resizing")})),e.on("data",(function(){n["right"==e.data.align?"addClass":"removeClass"]("edi_image_resizer_left")}))}(this),this.shiftState=t.stateShifter(this.editor),this.on("contextMenu",(function(e){e.data.image=NEW_CKEDITOR.TRISTATE_OFF,(this.parts.link||this.wrapper.getAscendant("a"))&&(e.data.link=e.data.unlink=NEW_CKEDITOR.TRISTATE_OFF)}))},addClass:function(e){o(this).addClass(e)},hasClass:function(e){return o(this).hasClass(e)},removeClass:function(e){o(this).removeClass(e)},getClasses:function(){var e=new RegExp("^("+[].concat(g,s).join("|")+")$");return function(){var t,i=this.repository.parseElementClasses(o(this).getAttribute("class"));for(t in i)e.test(t)&&delete i[t];return i}}(),upcast:t(e),downcast:i(e),getLabel:function(){return this.editor.lang.widget.label.replace(/%1/,(this.data.alt||"")+" "+this.pathName)}}}function t(e){var t=a(e),i=e.config.image2_captionedClass;return function(e,a){var s,r={width:1,height:1},l=e.name;if(!e.attributes["data-edi-realelement"]&&(t(e)?("div"==l&&(s=e.getFirst("figure"))&&(e.replaceWith(s),e=s),a.align="center",s=e.getFirst("img")||e.getFirst("a").getFirst("img")):"figure"==l&&e.hasClass(i)?s=e.find((function(e){return"img"===e.name&&-1!==NEW_CKEDITOR.tools.array.indexOf(["figure","a"],e.parent.name)}),!0)[0]:n(e)&&(s="a"==e.name?e.children[0]:e),s)){for(var o in r)(r=s.attributes[o])&&r.match(h)&&delete s.attributes[o];return e}}}function i(e){var t=e.config.image2_alignClasses;return function(e){var i="a"==e.name?e.getFirst():e,a=i.attributes,n=this.data.align;if(!this.inline){var s=e.getFirst("span");s&&s.replaceWith(s.getFirst({img:1,a:1}))}return n&&"none"!=n&&(s=NEW_CKEDITOR.tools.parseCssText(a.style||""),"center"==n&&"figure"==e.name?e=e.wrapWith(new NEW_CKEDITOR.htmlParser.element("div",t?{class:t[1]}:{style:"text-align:center"})):n in{left:1,right:1}&&(t?i.addClass(t[d[n]]):s.float=n),t||NEW_CKEDITOR.tools.isEmpty(s)||(a.style=NEW_CKEDITOR.tools.writeCssText(s))),e}}function a(e){var t=e.config.image2_captionedClass,i=e.config.image2_alignClasses,a={figure:1,a:1,img:1};return function(s){if(!(s.name in{div:1,p:1}))return!1;var r=s.children;if(1!==r.length)return!1;if(!((r=r[0]).name in a))return!1;if("p"==s.name){if(!n(r))return!1}else if("figure"==r.name){if(!r.hasClass(t))return!1}else if(e.enterMode==NEW_CKEDITOR.ENTER_P||!n(r))return!1;return!!(i?s.hasClass(i[1]):"center"==NEW_CKEDITOR.tools.parseCssText(s.attributes.style||"",!0)["text-align"])}}function n(e){return"img"==e.name||"a"==e.name&&(1==e.children.length&&e.getFirst("img"))}function s(e){return(e=e.widgets.focused)&&"image"==e.name?e:null}function r(e){var t=e.config.image2_alignClasses;return e={div:{match:a(e)},p:{match:a(e)},img:{attributes:"!src,alt,width,height"},figure:{classes:"!"+e.config.image2_captionedClass},figcaption:!0},t?(e.div.classes=t[1],e.p.classes=e.div.classes,e.img.classes=t[0]+","+t[2],e.figure.classes+=","+e.img.classes):(e.div.styles="text-align",e.p.styles="text-align",e.img.styles="float",e.figure.styles="float,display"),e}function l(e){return{dimension:{requiredContent:"img[width,height]"},align:{requiredContent:"img"+((e=e.config.image2_alignClasses)?"("+e[0]+")":"{float}")},caption:{requiredContent:"figcaption"}}}function o(e){return e.data.hasCaption?e.element:e.parts.image}var g=new NEW_CKEDITOR.template('<figure class="{captionedClass}"><img alt="" src="" /><figcaption>{captionPlaceholder}</figcaption></figure>'),d={left:0,center:1,right:2},h=/^\s*(\d+\%)\s*$/i;NEW_CKEDITOR.plugins.add("image2",{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",requires:"widget,dialog",icons:"image",hidpi:!0,onLoad:function(){NEW_CKEDITOR.addCss('.edi_image_nocaption{line-height:0}.edi_editable.edi_image_sw, .edi_editable.edi_image_sw *{cursor:sw-resize !important}.edi_editable.edi_image_se, .edi_editable.edi_image_se *{cursor:se-resize !important}.edi_image_resizer{display:none;position:absolute;width:10px;height:10px;bottom:-5px;right:-5px;background:#000;outline:1px solid #fff;line-height:0;cursor:se-resize;}.edi_image_resizer_wrapper{position:relative;display:inline-block;line-height:0;}.edi_image_resizer.edi_image_resizer_left{right:auto;left:-5px;cursor:sw-resize;}.edi_widget_wrapper:hover .edi_image_resizer,.edi_image_resizer.edi_image_resizing{display:block}.edi_editable[contenteditable="false"] .edi_image_resizer{display:none;}.edi_widget_wrapper>a{display:inline-block}')},init:function(t){if(!t.plugins.detectConflict("image2",["easyimage"])){var i=t.config,a=t.lang.image2,n=e(t);i.filebrowserImage2BrowseUrl=i.filebrowserImageBrowseUrl,i.filebrowserImage2UploadUrl=i.filebrowserImageUploadUrl,n.pathName=a.pathName,n.editables.caption.pathName=a.pathNameCaption,t.widgets.add("image",n),t.ui.addButton&&t.ui.addButton("Image",{label:t.lang.common.image,command:"image",toolbar:"insert,10"}),t.contextMenu&&(t.addMenuGroup("image",10),t.addMenuItem("image",{label:a.menu,command:"image",group:"image"})),NEW_CKEDITOR.dialog.add("image2",this.path+"dialogs/image2.js")}},afterInit:function(e){var t,i=function(e){var t,i=[];return function(a){var n=e.getCommand("justify"+a);n&&(i.push((function(){n.refresh(e,e.elementPath())})),a in{right:1,left:1,center:1}&&n.on("exec",(function(t){var n=s(e);if(n){for(n.setData("align",a),n=i.length;n--;)i[n]();t.cancel()}})),n.on("refresh",(function(i){var n=s(e);n&&(void 0===t&&(t=e.filter.checkFeature(e.widgets.registered.image.features.align)),t?this.setState(n.data.align==a?NEW_CKEDITOR.TRISTATE_ON:a in{right:1,left:1,center:1}?NEW_CKEDITOR.TRISTATE_OFF:NEW_CKEDITOR.TRISTATE_DISABLED):this.setState(NEW_CKEDITOR.TRISTATE_DISABLED),i.cancel())})))}}(e);for(t in{left:1,right:1,center:1,block:1})i(t);!function(e){if(e.plugins.link){var t=NEW_CKEDITOR.on("dialogDefinition",(function(t){if("link"==(t=t.data).name){var i=(t=t.definition).onShow,a=t.onOk;t.onShow=function(){var t=s(e),a=this.getContentElement("info","linkDisplayText").getElement().getParent().getParent();!t||t.inline&&t.wrapper.getAscendant("a")?(a.show(),i.apply(this,arguments)):(this.setupContent(t.data.link||{}),a.hide())},t.onOk=function(){var t=s(e);if(!t||t.inline&&t.wrapper.getAscendant("a"))a.apply(this,arguments);else{var i={};this.commitContent(i),t.setData("link",i)}}}}));e.on("destroy",(function(){t.removeListener()})),e.getCommand("unlink").on("exec",(function(t){var i=s(e);i&&i.parts.link&&(i.setData("link",null),this.refresh(e,e.elementPath()),t.cancel())})),e.getCommand("unlink").on("refresh",(function(t){var i=s(e);i&&(this.setState(i.data.link||i.wrapper.getAscendant("a")?NEW_CKEDITOR.TRISTATE_OFF:NEW_CKEDITOR.TRISTATE_DISABLED),t.cancel())}))}}(e)}}),NEW_CKEDITOR.plugins.image2={stateShifter:function(e){function t(e,t){var s={};return n?s.attributes={class:n[1]}:s.styles={"text-align":"center"},i(s=a.createElement(e.activeEnterMode==NEW_CKEDITOR.ENTER_P?"p":"div",s),t),t.move(s),s}function i(t,i){if(i.getParent()){var a=e.createRange();a.moveToPosition(i,NEW_CKEDITOR.POSITION_BEFORE_START),i.remove(),r.insertElementIntoRange(t,a)}else t.replace(i)}var a=e.document,n=e.config.image2_alignClasses,s=e.config.image2_captionedClass,r=e.editable(),l=["hasCaption","align","link"],o={align:function(i,a,s){var r=i.element;i.changed.align?i.newData.hasCaption||("center"==s&&(i.deflate(),i.element=t(e,r)),i.changed.hasCaption||"center"!=a||"center"==s||(i.deflate(),(a=r.findOne("a,img")).replace(r),i.element=a)):"center"==s&&i.changed.hasCaption&&!i.newData.hasCaption&&(i.deflate(),i.element=t(e,r)),!n&&r.is("figure")&&("center"==s?r.setStyle("display","inline-block"):r.removeStyle("display"))},hasCaption:function(t,n,r){t.changed.hasCaption&&(n=t.element.is({img:1,a:1})?t.element:t.element.findOne("a,img"),t.deflate(),r?(i(r=NEW_CKEDITOR.dom.element.createFromHtml(g.output({captionedClass:s,captionPlaceholder:e.lang.image2.captionPlaceholder}),a),t.element),n.replace(r.findOne("img")),t.element=r):(n.replace(t.element),t.element=n))},link:function(t,i,n){if(t.changed.link){var s,r=t.element.is("img")?t.element:t.element.findOne("img"),l=t.element.is("a")?t.element:t.element.findOne("a"),o=t.element.is("a")&&!n||t.element.is("img")&&n;o&&t.deflate(),n?(i||((s=a.createElement("a",{attributes:{href:t.newData.link.url}})).replace(r),r.move(s)),n=NEW_CKEDITOR.plugins.image2.getLinkAttributesGetter()(e,n),NEW_CKEDITOR.tools.isEmpty(n.set)||(s||l).setAttributes(n.set),n.removed.length&&(s||l).removeAttributes(n.removed)):((n=l.findOne("img")).replace(l),s=n),o&&(t.element=s)}}};return function(e){var t,i;for(e.changed={},i=0;i<l.length;i++)t=l[i],e.changed[t]=!!e.oldData&&e.oldData[t]!==e.newData[t];for(i=0;i<l.length;i++)o[t=l[i]](e,e.oldData?e.oldData[t]:null,e.newData[t]);e.inflate()}},checkHasNaturalRatio:function(e){var t=e.$;return e=this.getNatural(e),Math.round(t.clientWidth/e.width*e.height)==t.clientHeight||Math.round(t.clientHeight/e.height*e.width)==t.clientWidth},getNatural:function(e){if(e.$.naturalWidth)e={width:e.$.naturalWidth,height:e.$.naturalHeight};else{var t=new Image;t.src=e.getAttribute("src"),e={width:t.width,height:t.height}}return e},getLinkAttributesGetter:function(){return NEW_CKEDITOR.plugins.link.getLinkAttributes},getLinkAttributesParser:function(){return NEW_CKEDITOR.plugins.link.parseLinkAttributes}}}(),NEW_CKEDITOR.config.image2_captionedClass="image";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
NEW_CKEDITOR.plugins.setLang("imagebase","de-ch",{captionPlaceholder:"Bildunterschrift eingeben"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
NEW_CKEDITOR.plugins.setLang("imagebase","de",{captionPlaceholder:"Bildunterschrift eingeben"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
NEW_CKEDITOR.plugins.setLang("imagebase","en",{captionPlaceholder:"Enter image caption"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
NEW_CKEDITOR.plugins.setLang("imagebase","fr",{captionPlaceholder:"Saisir l'attribut caption de l'image"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
NEW_CKEDITOR.plugins.setLang("imagebase","it",{captionPlaceholder:"Inserire la didascalia dell'immagine"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){function t(t){var e=t.widgets,a=t.focusManager.currentActive;if(t.focusManager.hasFocus){if(e.focused)return e.focused;if(a instanceof
|
|
1
|
+
!function(){function t(t){var e=t.widgets,a=t.focusManager.currentActive;if(t.focusManager.hasFocus){if(e.focused)return e.focused;if(a instanceof NEW_CKEDITOR.plugins.widget.nestedEditable)return e.getByElement(a)}}function e(t,e){return t.features&&-1!==NEW_CKEDITOR.tools.array.indexOf(t.features,e)}function a(t){this.wrapper=NEW_CKEDITOR.dom.element.createFromHtml(t||'<div class="edi_loader"></div>')}function i(){a.call(this,'<div class="edi_loader"><div class="edi_bar" styles="transition: width '+s/1e3+'s"></div></div>'),this.bar=this.wrapper.getFirst()}var n,o=!1,r={caption:function(){function a(t){t.parts.caption.data("edi-caption-placeholder",!1)}function i(t,e){t.data("edi-caption-active",e),t.data("edi-caption-hidden",!e)}return{setUp:function(t){function a(a){var n=(a="blur"===a.name?t.elementPath():a.data.path)?a.lastElement:null;if(a=function(t,a){return NEW_CKEDITOR.tools.array.reduce(NEW_CKEDITOR.tools.object.keys(t),(function(i,n){var o=t[n];return e(o,a)&&i.push(o),i}),[])}(t.widgets.instances,"caption"),!t.filter.check("figcaption"))return NEW_CKEDITOR.tools.array.forEach(i,(function(t){t.removeListener()}));NEW_CKEDITOR.tools.array.forEach(a,(function(t){t._refreshCaption(n)}))}var i=[];i.push(t.on("selectionChange",a,null,null,9)),i.push(t.on("blur",a))},init:function(){if(this.editor.filter.check("figcaption")){if(!this.parts.caption){var t=this.parts,e=this.element,a=e.getDocument().createElement("figcaption");e.append(a),this.initEditable("caption",this.definition.editables.caption),t.caption=a}this.editables.caption.getData()||this.parts.caption.data("edi-caption-placeholder")||this._refreshCaption()}},_refreshCaption:function(e){var n=t(this.editor)===this,o=this.parts.caption,r=this.editables.caption;n?(r.getData()||e.equals(o)?(!e||e.equals(o)&&e.data("edi-caption-placeholder"))&&a(this):this.parts.caption.data("edi-caption-placeholder",this.editor.lang.imagebase.captionPlaceholder),i(o,!0)):this.editables.caption.getData()&&!this.parts.caption.data("edi-caption-placeholder")||(a(this),i(o,!1))}}}(),upload:(n={progressReporterType:i,setUp:function(t,e){t.on("paste",(function(a){var i=a.data.dataTransfer,o=i&&i.isFileTransfer(),r=i&&i.getFilesCount();if(!t.readOnly&&o){var s=[];e=t.widgets.registered[e.name];for(var l=0;l<r;l++)o=i.getFile(l),NEW_CKEDITOR.fileTools.isTypeSupported(o,e.supportedTypes)&&s.push(o);0!==s.length&&(a.cancel(),a.stop(),NEW_CKEDITOR.tools.array.forEach(s,(function(a,i){var o=n._spawnLoader(t,a,e,a.name);n._insertWidget(t,e,URL.createObjectURL(a),!0,{uploadId:o.id}),i!==s.length-1&&((o=t.getSelection().getRanges())[0].enlarge(NEW_CKEDITOR.ENLARGE_ELEMENT),o[0].collapse(!1))})))}}))},init:function(){this.once("ready",(function(){var t=this.data.uploadId;void 0!==t&&(t=this.editor.uploadRepository.loaders[t])&&this._beginUpload(this,t)}))},_isLoaderDone:function(t){return t.xhr&&4===t.xhr.readyState},_spawnLoader:function(t,e,a,i){var n=a.loadMethod||"loadAndUpload";return(t=t.uploadRepository.create(e,i,a.loaderType))[n](a.uploadUrl,a.additionalRequestParameters),t},_beginUpload:function(t,e){function a(){t.isInited()&&t.setData("uploadId",void 0),t.wrapper.removeClass("edi_widget_wrapper_uploading")}function i(){a(),!1!==t.fire("uploadFailed",{loader:e})&&t.editor.widgets.del(t)}var n={uploaded:function(){a(),t.fire("uploadDone",{loader:e})},abort:i,error:i},o=[];o.push(e.on("abort",n.abort)),o.push(e.on("error",n.error)),o.push(e.on("uploaded",n.uploaded)),this.on("destroy",(function(){NEW_CKEDITOR.tools.array.filter(o,(function(t){return t.removeListener(),!1}))})),t.setData("uploadId",e.id),!1!==t.fire("uploadStarted",e)&&t.progressReporterType&&(t._isLoaderDone(e)?n[e.status]&&n[e.status]():(t.wrapper.addClass("edi_widget_wrapper_uploading"),n=new t.progressReporterType,t.wrapper.append(n.wrapper),n.bindLoader(e)))},_insertWidget:function(t,e,a,i,n){var o=("function"==typeof e.defaults?e.defaults():e.defaults)||{};(o=NEW_CKEDITOR.tools.extend({},o)).src=a,a=NEW_CKEDITOR.dom.element.createFromHtml(e.template.output(o)),o=t.widgets.wrapElement(a,e.name);var r=new NEW_CKEDITOR.dom.documentFragment(o.getDocument());return r.append(o),!1!==i?(t.widgets.initOn(a,e,n),t.widgets.finalizeCreation(r)):a}},n),link:function(){function a(a,i,n){a.getCommand("unlink").on(i,(function(i){var o=t(a);o&&e(o,"link")&&(i.stop(),n&&"function"==typeof n&&n(this,o,a),i.cancel())}))}return{allowedContent:{a:{attributes:"!href"}},parts:{link:"a"},init:function(){this.editor.plugins.link&&this.editor.contextMenu&&this.on("contextMenu",(function(t){this.parts.link&&(t.data.link=t.data.unlink=NEW_CKEDITOR.TRISTATE_OFF)}))},setUp:function(i){i.plugins.link&&(i.contextMenu&&function(t){t.addMenuGroup("imagebase",10),t.addMenuItem("imagebase",{label:t.lang.link.menu,command:"link",group:"imagebase"})}(i),i.on("dialogShow",(function(a){var n,o,r=t(i),s=a.data;r&&e(r,"link")&&"link"===s._.name&&(n=s.getContentElement("info","linkDisplayText").getElement().getParent().getParent(),s.setupContent(r.data.link||{}),n.hide(),o=s.once("ok",function(t,a,i){return function(){if(i&&e(i,"link")){t.stop();var n={};a.commitContent(n),i.setData("link",n)}}}(a,s,r),null,null,9),s.once("hide",(function(){o.removeListener(),n.show()})))})),a(i,"exec",(function(t,e,a){e.setData("link",null),t.refresh(a,a.elementPath())})),a(i,"refresh",(function(t,e){t.setState(e.parts.link?NEW_CKEDITOR.TRISTATE_OFF:NEW_CKEDITOR.TRISTATE_DISABLED)})))},data:function(t){var e=this.editor,a=t.data.link,i=this.element.findOne("img");if(void 0===a&&this.parts.link&&this.setData("link",NEW_CKEDITOR.plugins.link.parseLinkAttributes(this.editor,this.parts.link)),void 0!==a)if(null===a)this.parts.link.remove(!0),this.parts.link=null,delete t.data.link;else{t=this.parts;var n=i.getAscendant("a")||e.document.createElement("a");e=NEW_CKEDITOR.plugins.link.getLinkAttributes(e,a);NEW_CKEDITOR.tools.isEmpty(e.set)||n.setAttributes(e.set),e.removed.length&&n.removeAttributes(e.removed),n.contains(i)||(n.replace(i),i.move(n)),t.link=n}}}}()},s=100;a.prototype={updated:function(){},done:function(){this.remove()},aborted:function(){this.remove()},failed:function(){this.remove()},remove:function(){this.wrapper.remove()},bindLoader:function(t){function e(){a&&(NEW_CKEDITOR.tools.array.forEach(a,(function(t){t.removeListener()})),a=null)}var a=[],i=NEW_CKEDITOR.tools.eventsBuffer(s,(function(){t.uploadTotal&&this.updated(t.uploaded/t.uploadTotal)}),this);a.push(t.on("update",i.input,this)),a.push(t.once("abort",this.aborted,this)),a.push(t.once("uploaded",this.done,this)),a.push(t.once("error",this.failed,this)),a.push(t.once("abort",e)),a.push(t.once("uploaded",e)),a.push(t.once("error",e))}},i.prototype=new a,i.prototype.updated=function(t){t=Math.round(100*t),t=Math.max(t,0),t=Math.min(t,100),this.bar.setStyle("width",t+"%")},NEW_CKEDITOR.plugins.add("imagebase",{requires:"widget,filetools",lang:"az,bg,cs,da,de,de-ch,el,en,en-au,et,fa,fr,gl,hr,hu,it,ku,lt,lv,nb,nl,pl,pt,pt-br,ro,ru,sk,sq,sr,sr-latn,sv,tr,ug,uk,zh,zh-cn",init:function(t){o||(NEW_CKEDITOR.document.appendStyleSheet(this.path+"styles/imagebase.css"),o=!0),t.addContentsCss&&t.addContentsCss(this.path+"styles/imagebase.css")}}),NEW_CKEDITOR.plugins.imagebase={featuresDefinitions:r,addImageWidget:function(t,e,a){e=t.widgets.add(e,function(t,e){return(e=NEW_CKEDITOR.tools.object.merge({pathName:t.lang.imagebase.pathName,defaults:{imageClass:t.config.easyimage_class||"",alt:"",src:"",caption:""},template:'<figure class="{imageClass}"><img alt="{alt}" src="{src}" /><figcaption>{caption}</figcaption></figure>',allowedContent:{img:{attributes:"!src,alt,width,height"},figure:!0,figcaption:!0},requiredContent:"figure; img[!src]",features:[],editables:{caption:{selector:"figcaption",pathName:t.lang.imagebase.pathNameCaption,allowedContent:"br em strong sub sup u s; a[!href,target]"}},parts:{image:"img",caption:"figcaption"},upcasts:{figure:function(t){if(1===t.find("img",!0).length)return t}}},e)).upcast=NEW_CKEDITOR.tools.object.keys(e.upcasts).join(","),e}(t,a)),t.addFeature(e)},addFeature:function(t,e,a){function i(t,e){if(t||e)return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}}var n=NEW_CKEDITOR.tools.clone(this.featuresDefinitions[e]);return n.init=i(a.init,n.init),n.data=i(a.data,n.data),n.setUp&&(n.setUp(t,a),delete n.setUp),t=NEW_CKEDITOR.tools.object.merge(a,n),NEW_CKEDITOR.tools.isArray(t.features)||(t.features=[]),t.features.push(e),t},progressBar:i,progressReporter:a}}();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
[data-
|
|
1
|
+
[data-edi-caption-hidden] {
|
|
2
2
|
display: none;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
[data-
|
|
5
|
+
[data-edi-caption-placeholder]::before {
|
|
6
6
|
display: inline;
|
|
7
7
|
color: rgba( 0, 0, 0, .4 );
|
|
8
|
-
content: attr( data-
|
|
8
|
+
content: attr( data-edi-caption-placeholder );
|
|
9
9
|
}
|