glebtv-ckeditor 4.1.1.7 → 4.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/ckeditor/CHANGES.md +177 -82
- data/app/assets/javascripts/ckeditor/build-config.js +33 -12
- data/app/assets/javascripts/ckeditor/ckeditor.js +735 -687
- data/app/assets/javascripts/ckeditor/config.js.erb +3 -4
- data/app/assets/javascripts/ckeditor/contents.css +1 -1
- data/app/assets/javascripts/ckeditor/lang/en.js +1 -1
- data/app/assets/javascripts/ckeditor/lang/ru.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +25 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gl.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/id.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +8 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +6 -6
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/si.js +8 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +7 -0
- data/app/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +7 -0
- data/app/assets/javascripts/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +8 -8
- data/app/assets/javascripts/ckeditor/plugins/codemirror/css/codemirror.min.css +1 -1
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/beautify.min.js +1 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.addons.min.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.min.js +5637 -1
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.modes.min.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.search-addons.min.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/af.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/ar.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/bg.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/bn.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/bs.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/ca.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/cs.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/cy.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/da.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/de.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/el.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/en-au.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/en-ca.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/en-gb.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/eo.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/es.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/et.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/eu.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/fa.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/fi.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/fo.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/fr-ca.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/fr.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/gl.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/gu.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/he.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/hi.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/hr.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/hu.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/is.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/it.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/ja.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/ka.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/km.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/ko.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/ku.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/lt.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/lv.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/mk.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/mn.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/ms.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/nb.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/nl.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/no.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/pl.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/pt-br.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/pt.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/ro.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/sk.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/sl.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/sr-latn.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/sr.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/sv.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/th.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/tr.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/ug.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/uk.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/vi.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/zh-cn.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/zh.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/plugin.js +322 -16
- data/app/assets/javascripts/ckeditor/plugins/codemirror/theme/eclipse.css +1 -1
- data/app/assets/javascripts/ckeditor/plugins/codemirror/theme/midnight.css +52 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/theme/rubyblue.css +1 -1
- data/app/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +13 -340
- data/app/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/div/dialogs/div.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/find/dialogs/find.js +24 -0
- data/app/assets/javascripts/ckeditor/plugins/flash/dialogs/flash.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/font/lang/af.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/ar.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/bg.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/bn.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/bs.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/ca.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/cs.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/cy.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/da.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/de.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/el.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/en-au.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/en-ca.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/en-gb.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/en.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/font/lang/eo.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/es.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/et.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/eu.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/fa.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/fi.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/fo.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/fr-ca.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/fr.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/gl.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/gu.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/he.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/hi.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/hr.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/hu.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/id.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/is.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/it.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/ja.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/ka.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/km.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/ko.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/ku.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/lt.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/lv.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/mk.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/mn.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/ms.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/nb.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/nl.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/no.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/pl.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/pt-br.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/pt.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/ro.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/ru.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/font/lang/si.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/sk.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/sl.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/sq.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/sr-latn.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/sr.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/sv.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/th.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/tr.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/ug.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/uk.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/vi.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/zh-cn.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/lang/zh.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/font/plugin.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/button.js +8 -0
- data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +8 -0
- data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/form.js +8 -0
- data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +8 -0
- data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/radio.js +8 -0
- data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/select.js +20 -0
- data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +8 -0
- data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/htmlbuttons/docs/install.html +93 -0
- data/app/assets/javascripts/ckeditor/plugins/htmlbuttons/docs/styles.css +59 -0
- data/app/assets/javascripts/ckeditor/plugins/htmlbuttons/icon1.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/htmlbuttons/icon2.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/htmlbuttons/icon3.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/icons.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/icons_hidpi.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/icons/hidpi/iframe.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/icons/iframe.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/images/placeholder.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/af.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/ar.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/bg.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/bn.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/bs.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/ca.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/cs.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/cy.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/da.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/de.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/el.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/en-au.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/en-ca.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/en-gb.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/en.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/eo.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/es.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/et.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/eu.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/fa.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/fi.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/fo.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/fr-ca.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/fr.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/gl.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/gu.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/he.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/hi.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/hr.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/hu.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/id.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/is.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/it.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/ja.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/ka.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/km.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/ko.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/ku.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/lt.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/lv.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/mk.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/mn.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/ms.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/nb.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/nl.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/no.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/pl.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/pt-br.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/pt.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/ro.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/ru.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/si.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/sk.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/sl.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/sq.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/sr-latn.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/sr.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/sv.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/th.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/tr.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/ug.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/uk.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/vi.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/zh-cn.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/lang/zh.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/plugin.js +83 -0
- data/app/assets/javascripts/ckeditor/plugins/iframedialog/plugin.js +3 -2
- data/app/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/{LoremIpsum/images → ipsum}/icon.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/ipsum/plugin.js +63 -0
- data/app/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/link/images/anchor.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/link/images/hidpi/anchor.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/magicline/images/hidpi/icon.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/map/example_usage.js +30 -0
- data/app/assets/javascripts/ckeditor/plugins/map/map.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/map/plugin.js +187 -0
- data/app/assets/javascripts/ckeditor/plugins/mediaembed/icons/hidpi/mediaembed.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/mediaembed/icons/mediaembed.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/mediaembed/plugin.js +64 -0
- data/app/assets/javascripts/ckeditor/plugins/oembed/images/placeholder.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/oembed/libs/jquery.oembed.js +69 -67
- data/app/assets/javascripts/ckeditor/plugins/oembed/libs/jquery.oembed.min.js +56 -53
- data/app/assets/javascripts/ckeditor/plugins/oembed/oembed/images/icon.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/oembed/oembed/images/placeholder.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/oembed/oembed/lang/de.js +23 -0
- data/app/assets/javascripts/ckeditor/plugins/oembed/oembed/lang/en.js +23 -0
- data/app/assets/javascripts/ckeditor/plugins/oembed/oembed/lang/fr.js +25 -0
- data/app/assets/javascripts/ckeditor/plugins/oembed/oembed/lang/nl.js +23 -0
- data/app/assets/javascripts/ckeditor/plugins/oembed/oembed/lang/pl.js +23 -0
- data/app/assets/javascripts/ckeditor/plugins/oembed/oembed/lang/ru.js +23 -0
- data/app/assets/javascripts/ckeditor/plugins/oembed/oembed/libs/jquery.oembed.js +971 -0
- data/app/assets/javascripts/ckeditor/plugins/oembed/oembed/libs/jquery.oembed.min.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/oembed/oembed/plugin.js +373 -0
- data/app/assets/javascripts/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +21 -21
- data/app/assets/javascripts/ckeditor/plugins/preview/preview.html +10 -0
- data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_address.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_div.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_p.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/embarrassed_smile.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/envelope.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/heart.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/kiss.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/tongue_smile.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt +20 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ar.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/bg.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ca.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cs.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cy.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/el.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eo.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/es.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/et.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fa.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fi.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/gl.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/he.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hr.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hu.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/id.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/it.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ja.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ku.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lv.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nb.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nl.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/no.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pl.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ru.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/si.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sk.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sl.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sq.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sv.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/th.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tr.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ug.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/uk.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/vi.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/stylesheetparser/plugin.js +152 -0
- data/app/assets/javascripts/ckeditor/{samples/plugins/stylesheetparser → plugins/stylesheetparser/samples}/assets/sample.css +70 -70
- data/app/assets/javascripts/ckeditor/{samples/plugins/stylesheetparser → plugins/stylesheetparser/samples}/stylesheetparser.html +82 -82
- data/app/assets/javascripts/ckeditor/plugins/symbol/dialogs/lang/en.js +181 -0
- data/app/assets/javascripts/ckeditor/plugins/symbol/dialogs/symbol.js +18 -0
- data/app/assets/javascripts/ckeditor/plugins/symbol/icons/symbol.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/symbol/lang/en.js +1 -0
- data/app/assets/javascripts/ckeditor/plugins/symbol/plugin.js +15 -0
- data/app/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.css +84 -0
- data/app/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/templates/templates/default.js +6 -0
- data/app/assets/javascripts/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/uicolor/dialogs/uicolor.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/uicolor/yui/assets/hue_bg.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/uicolor/yui/assets/picker_mask.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/uicolor/yui/assets/yui.css +15 -0
- data/app/assets/javascripts/ckeditor/plugins/uicolor/yui/yui.js +225 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/css/wordcount.css +3 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/ca.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/de.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/en.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/es.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/fr.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/no.js +8 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/pl.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/plugin.js +193 -0
- data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +17 -0
- data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmp.html +118 -0
- data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +63 -7
- data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc_ie.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/youtube/images/icon.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/youtube/lang/de.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/youtube/lang/en.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/youtube/lang/fr.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/youtube/lang/hu.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/youtube/lang/it.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/youtube/lang/ja.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/youtube/lang/pt.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/youtube/lang/ru.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/youtube/lang/tr.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/youtube/plugin.js +321 -0
- data/app/assets/javascripts/ckeditor/skins/moono/dialog.css +2 -2
- data/app/assets/javascripts/ckeditor/skins/moono/dialog_ie.css +2 -2
- data/app/assets/javascripts/ckeditor/skins/moono/dialog_ie7.css +2 -2
- data/app/assets/javascripts/ckeditor/skins/moono/dialog_ie8.css +2 -2
- data/app/assets/javascripts/ckeditor/skins/moono/dialog_iequirks.css +2 -2
- data/app/assets/javascripts/ckeditor/skins/moono/dialog_opera.css +2 -2
- data/app/assets/javascripts/ckeditor/skins/moono/editor.css +2 -2
- data/app/assets/javascripts/ckeditor/skins/moono/editor_gecko.css +2 -2
- data/app/assets/javascripts/ckeditor/skins/moono/editor_ie.css +2 -2
- data/app/assets/javascripts/ckeditor/skins/moono/editor_ie7.css +2 -2
- data/app/assets/javascripts/ckeditor/skins/moono/editor_ie8.css +2 -2
- data/app/assets/javascripts/ckeditor/skins/moono/editor_iequirks.css +2 -2
- data/app/assets/javascripts/ckeditor/skins/moono/icons.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/moono/icons_hidpi.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/moono/images/close.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/moono/images/hidpi/close.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/moono/images/hidpi/lock-open.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/moono/images/hidpi/lock.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/moono/images/hidpi/refresh.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/moono/images/lock-open.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/moono/images/lock.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/moono/images/refresh.png +0 -0
- data/app/assets/javascripts/ckeditor/styles.js +1 -1
- data/app/helpers/ckeditor/application_helper.rb +11 -0
- data/app/views/layouts/ckeditor/application.html.erb +17 -17
- data/lib/ckeditor/version.rb +2 -2
- metadata +422 -74
- data/app/assets/javascripts/ckeditor/plugins/LoremIpsum/images/icon1.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/LoremIpsum/plugin.js +0 -66
- data/app/assets/javascripts/ckeditor/plugins/codemirror/css/codemirror.ckeditor.css +0 -112
- data/app/assets/javascripts/ckeditor/plugins/codemirror/css/codemirror.css +0 -246
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/addon/dialog/dialog.js +0 -81
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/addon/edit/closebrackets.js +0 -52
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/addon/edit/closetag.js +0 -85
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/addon/edit/continuecomment.js +0 -44
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/addon/edit/continuelist.js +0 -25
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/addon/edit/matchbrackets.js +0 -74
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/addon/fold/brace-fold.js +0 -31
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/addon/fold/foldcode.js +0 -32
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/addon/fold/xml-fold.js +0 -64
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/addon/format/autoFormatAll.js +0 -43
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/addon/format/formatting.js +0 -114
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/addon/search/match-highlighter.js +0 -60
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/addon/search/search.js +0 -131
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/addon/search/searchcursor.js +0 -130
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.js +0 -5516
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/mode/css.js +0 -567
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/mode/htmlmixed.js +0 -104
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/mode/javascript.js +0 -437
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/mode/xml.js +0 -328
- data/app/assets/javascripts/ckeditor/plugins/colorbutton/icons/bgcolor.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/colorbutton/icons/textcolor.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/colorbutton/lang/en.js +0 -53
- data/app/assets/javascripts/ckeditor/plugins/colorbutton/lang/ru.js +0 -53
- data/app/assets/javascripts/ckeditor/plugins/colorbutton/plugin.js +0 -277
- data/app/assets/javascripts/ckeditor/plugins/colordialog/lang/en.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/colordialog/lang/ru.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/colordialog/plugin.js +0 -65
- data/app/assets/javascripts/ckeditor/plugins/mediaembed/images/icon.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/panelbutton/plugin.js +0 -138
- data/app/assets/javascripts/ckeditor/samples/ajax.html +0 -82
- data/app/assets/javascripts/ckeditor/samples/api.html +0 -207
- data/app/assets/javascripts/ckeditor/samples/appendto.html +0 -57
- data/app/assets/javascripts/ckeditor/samples/assets/inlineall/logo.png +0 -0
- data/app/assets/javascripts/ckeditor/samples/assets/outputxhtml/outputxhtml.css +0 -204
- data/app/assets/javascripts/ckeditor/samples/assets/posteddata.php +0 -59
- data/app/assets/javascripts/ckeditor/samples/assets/sample.css +0 -3
- data/app/assets/javascripts/ckeditor/samples/assets/sample.jpg +0 -0
- data/app/assets/javascripts/ckeditor/samples/assets/uilanguages/languages.js +0 -7
- data/app/assets/javascripts/ckeditor/samples/datafiltering.html +0 -401
- data/app/assets/javascripts/ckeditor/samples/divreplace.html +0 -141
- data/app/assets/javascripts/ckeditor/samples/index.html +0 -125
- data/app/assets/javascripts/ckeditor/samples/inlineall.html +0 -311
- data/app/assets/javascripts/ckeditor/samples/inlinebycode.html +0 -122
- data/app/assets/javascripts/ckeditor/samples/plugins/dialog/assets/my_dialog.js +0 -48
- data/app/assets/javascripts/ckeditor/samples/plugins/dialog/dialog.html +0 -187
- data/app/assets/javascripts/ckeditor/samples/plugins/enterkey/enterkey.html +0 -103
- data/app/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/outputforflash.fla +0 -0
- data/app/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/outputforflash.swf +0 -0
- data/app/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/swfobject.js +0 -18
- data/app/assets/javascripts/ckeditor/samples/plugins/htmlwriter/outputforflash.html +0 -280
- data/app/assets/javascripts/ckeditor/samples/plugins/htmlwriter/outputhtml.html +0 -221
- data/app/assets/javascripts/ckeditor/samples/plugins/magicline/magicline.html +0 -207
- data/app/assets/javascripts/ckeditor/samples/plugins/toolbar/toolbar.html +0 -232
- data/app/assets/javascripts/ckeditor/samples/plugins/wysiwygarea/fullpage.html +0 -77
- data/app/assets/javascripts/ckeditor/samples/readonly.html +0 -73
- data/app/assets/javascripts/ckeditor/samples/replacebyclass.html +0 -57
- data/app/assets/javascripts/ckeditor/samples/replacebycode.html +0 -56
- data/app/assets/javascripts/ckeditor/samples/sample.css +0 -339
- data/app/assets/javascripts/ckeditor/samples/sample.js +0 -33
- data/app/assets/javascripts/ckeditor/samples/sample_posteddata.php +0 -16
- data/app/assets/javascripts/ckeditor/samples/tabindex.html +0 -75
- data/app/assets/javascripts/ckeditor/samples/uicolor.html +0 -69
- data/app/assets/javascripts/ckeditor/samples/uilanguages.html +0 -119
- data/app/assets/javascripts/ckeditor/samples/xhtmlstyle.html +0 -231
- data/app/assets/javascripts/ckeditor/skins/moono/images/mini.png +0 -0
@@ -1,11 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
3
|
-
For licensing, see LICENSE.html or http://ckeditor.com/license
|
4
|
-
*/
|
5
|
-
CKEDITOR.plugins.setLang( 'colordialog', 'en', {
|
6
|
-
clear: 'Clear',
|
7
|
-
highlight: 'Highlight',
|
8
|
-
options: 'Color Options',
|
9
|
-
selected: 'Selected Color',
|
10
|
-
title: 'Select color'
|
11
|
-
});
|
@@ -1,11 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
3
|
-
For licensing, see LICENSE.html or http://ckeditor.com/license
|
4
|
-
*/
|
5
|
-
CKEDITOR.plugins.setLang( 'colordialog', 'ru', {
|
6
|
-
clear: 'Очистить',
|
7
|
-
highlight: 'Под курсором',
|
8
|
-
options: 'Настройки цвета',
|
9
|
-
selected: 'Выбранный цвет',
|
10
|
-
title: 'Выберите цвет'
|
11
|
-
});
|
@@ -1,65 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.html or http://ckeditor.com/license
|
4
|
-
*/
|
5
|
-
|
6
|
-
CKEDITOR.plugins.colordialog = {
|
7
|
-
requires: 'dialog',
|
8
|
-
lang: 'af,ar,bg,bn,bs,ca,cs,cy,da,de,el,en-au,en-ca,en-gb,en,eo,es,et,eu,fa,fi,fo,fr-ca,fr,gl,gu,he,hi,hr,hu,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,pl,pt-br,pt,ro,ru,sk,sl,sq,sr-latn,sr,sv,th,tr,ug,uk,vi,zh-cn,zh', // %REMOVE_LINE_CORE%
|
9
|
-
init: function( editor ) {
|
10
|
-
editor.addCommand( 'colordialog', new CKEDITOR.dialogCommand( 'colordialog' ) );
|
11
|
-
CKEDITOR.dialog.add( 'colordialog', this.path + 'dialogs/colordialog.js' );
|
12
|
-
|
13
|
-
/**
|
14
|
-
* Open up color dialog and to receive the selected color.
|
15
|
-
*
|
16
|
-
* @param {Function} callback The callback when color dialog is closed
|
17
|
-
* @param {String} callback.color The color value received if selected on the dialog.
|
18
|
-
* @param [scope] The scope in which the callback will be bound.
|
19
|
-
* @member CKEDITOR.editor
|
20
|
-
*/
|
21
|
-
editor.getColorFromDialog = function( callback, scope ) {
|
22
|
-
var onClose = function( evt ) {
|
23
|
-
releaseHandlers( this );
|
24
|
-
var color = evt.name == 'ok' ? this.getValueOf( 'picker', 'selectedColor' ) : null;
|
25
|
-
callback.call( scope, color );
|
26
|
-
};
|
27
|
-
var releaseHandlers = function( dialog ) {
|
28
|
-
dialog.removeListener( 'ok', onClose );
|
29
|
-
dialog.removeListener( 'cancel', onClose );
|
30
|
-
};
|
31
|
-
var bindToDialog = function( dialog ) {
|
32
|
-
dialog.on( 'ok', onClose );
|
33
|
-
dialog.on( 'cancel', onClose );
|
34
|
-
};
|
35
|
-
|
36
|
-
editor.execCommand( 'colordialog' );
|
37
|
-
|
38
|
-
if ( editor._.storedDialogs && editor._.storedDialogs.colordialog )
|
39
|
-
bindToDialog( editor._.storedDialogs.colordialog );
|
40
|
-
else {
|
41
|
-
CKEDITOR.on( 'dialogDefinition', function( e ) {
|
42
|
-
if ( e.data.name != 'colordialog' )
|
43
|
-
return;
|
44
|
-
|
45
|
-
var definition = e.data.definition;
|
46
|
-
|
47
|
-
e.removeListener();
|
48
|
-
definition.onLoad = CKEDITOR.tools.override( definition.onLoad,
|
49
|
-
function( orginal ) {
|
50
|
-
return function() {
|
51
|
-
bindToDialog( this );
|
52
|
-
definition.onLoad = orginal;
|
53
|
-
if ( typeof orginal == 'function' )
|
54
|
-
orginal.call( this );
|
55
|
-
};
|
56
|
-
} );
|
57
|
-
} );
|
58
|
-
}
|
59
|
-
};
|
60
|
-
|
61
|
-
|
62
|
-
}
|
63
|
-
};
|
64
|
-
|
65
|
-
CKEDITOR.plugins.add( 'colordialog', CKEDITOR.plugins.colordialog );
|
Binary file
|
@@ -1,138 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.html or http://ckeditor.com/license
|
4
|
-
*/
|
5
|
-
|
6
|
-
CKEDITOR.plugins.add( 'panelbutton', {
|
7
|
-
requires: 'button',
|
8
|
-
onLoad: function() {
|
9
|
-
function clickFn( editor ) {
|
10
|
-
var _ = this._;
|
11
|
-
|
12
|
-
if ( _.state == CKEDITOR.TRISTATE_DISABLED )
|
13
|
-
return;
|
14
|
-
|
15
|
-
this.createPanel( editor );
|
16
|
-
|
17
|
-
if ( _.on ) {
|
18
|
-
_.panel.hide();
|
19
|
-
return;
|
20
|
-
}
|
21
|
-
|
22
|
-
_.panel.showBlock( this._.id, this.document.getById( this._.id ), 4 );
|
23
|
-
}
|
24
|
-
|
25
|
-
/**
|
26
|
-
* @class
|
27
|
-
* @extends CKEDITOR.ui.button
|
28
|
-
* @todo class and methods
|
29
|
-
*/
|
30
|
-
CKEDITOR.ui.panelButton = CKEDITOR.tools.createClass({
|
31
|
-
base: CKEDITOR.ui.button,
|
32
|
-
|
33
|
-
/**
|
34
|
-
* Creates a panelButton class instance.
|
35
|
-
*
|
36
|
-
* @constructor
|
37
|
-
*/
|
38
|
-
$: function( definition ) {
|
39
|
-
// We don't want the panel definition in this object.
|
40
|
-
var panelDefinition = definition.panel || {};
|
41
|
-
delete definition.panel;
|
42
|
-
|
43
|
-
this.base( definition );
|
44
|
-
|
45
|
-
this.document = ( panelDefinition.parent && panelDefinition.parent.getDocument() ) || CKEDITOR.document;
|
46
|
-
|
47
|
-
panelDefinition.block = {
|
48
|
-
attributes: panelDefinition.attributes
|
49
|
-
};
|
50
|
-
panelDefinition.toolbarRelated = true;
|
51
|
-
|
52
|
-
this.hasArrow = true;
|
53
|
-
|
54
|
-
this.click = clickFn;
|
55
|
-
|
56
|
-
this._ = {
|
57
|
-
panelDefinition: panelDefinition
|
58
|
-
};
|
59
|
-
},
|
60
|
-
|
61
|
-
statics: {
|
62
|
-
handler: {
|
63
|
-
create: function( definition ) {
|
64
|
-
return new CKEDITOR.ui.panelButton( definition );
|
65
|
-
}
|
66
|
-
}
|
67
|
-
},
|
68
|
-
|
69
|
-
proto: {
|
70
|
-
createPanel: function( editor ) {
|
71
|
-
var _ = this._;
|
72
|
-
|
73
|
-
if ( _.panel )
|
74
|
-
return;
|
75
|
-
|
76
|
-
var panelDefinition = this._.panelDefinition,
|
77
|
-
panelBlockDefinition = this._.panelDefinition.block,
|
78
|
-
panelParentElement = panelDefinition.parent || CKEDITOR.document.getBody(),
|
79
|
-
panel = this._.panel = new CKEDITOR.ui.floatPanel( editor, panelParentElement, panelDefinition ),
|
80
|
-
block = panel.addBlock( _.id, panelBlockDefinition ),
|
81
|
-
me = this;
|
82
|
-
|
83
|
-
panel.onShow = function() {
|
84
|
-
if ( me.className )
|
85
|
-
this.element.addClass( me.className + '_panel' );
|
86
|
-
|
87
|
-
me.setState( CKEDITOR.TRISTATE_ON );
|
88
|
-
|
89
|
-
_.on = 1;
|
90
|
-
|
91
|
-
me.editorFocus && editor.focus();
|
92
|
-
|
93
|
-
if ( me.onOpen )
|
94
|
-
me.onOpen();
|
95
|
-
};
|
96
|
-
|
97
|
-
panel.onHide = function( preventOnClose ) {
|
98
|
-
if ( me.className )
|
99
|
-
this.element.getFirst().removeClass( me.className + '_panel' );
|
100
|
-
|
101
|
-
me.setState( me.modes && me.modes[ editor.mode ] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED );
|
102
|
-
|
103
|
-
_.on = 0;
|
104
|
-
|
105
|
-
if ( !preventOnClose && me.onClose )
|
106
|
-
me.onClose();
|
107
|
-
};
|
108
|
-
|
109
|
-
panel.onEscape = function() {
|
110
|
-
panel.hide( 1 );
|
111
|
-
me.document.getById( _.id ).focus();
|
112
|
-
};
|
113
|
-
|
114
|
-
if ( this.onBlock )
|
115
|
-
this.onBlock( panel, block );
|
116
|
-
|
117
|
-
block.onHide = function() {
|
118
|
-
_.on = 0;
|
119
|
-
me.setState( CKEDITOR.TRISTATE_OFF );
|
120
|
-
};
|
121
|
-
}
|
122
|
-
}
|
123
|
-
});
|
124
|
-
|
125
|
-
},
|
126
|
-
beforeInit: function( editor ) {
|
127
|
-
editor.ui.addHandler( CKEDITOR.UI_PANELBUTTON, CKEDITOR.ui.panelButton.handler );
|
128
|
-
}
|
129
|
-
});
|
130
|
-
|
131
|
-
/**
|
132
|
-
* Button UI element.
|
133
|
-
*
|
134
|
-
* @readonly
|
135
|
-
* @property {String} [='panelbutton']
|
136
|
-
* @member CKEDITOR
|
137
|
-
*/
|
138
|
-
CKEDITOR.UI_PANELBUTTON = 'panelbutton';
|
@@ -1,82 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<!--
|
3
|
-
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
4
|
-
For licensing, see LICENSE.html or http://ckeditor.com/license
|
5
|
-
-->
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>Ajax — CKEditor Sample</title>
|
9
|
-
<meta charset="utf-8">
|
10
|
-
<script src="../ckeditor.js"></script>
|
11
|
-
<link rel="stylesheet" href="sample.css">
|
12
|
-
<script>
|
13
|
-
|
14
|
-
var editor, html = '';
|
15
|
-
|
16
|
-
function createEditor() {
|
17
|
-
if ( editor )
|
18
|
-
return;
|
19
|
-
|
20
|
-
// Create a new editor inside the <div id="editor">, setting its value to html
|
21
|
-
var config = {};
|
22
|
-
editor = CKEDITOR.appendTo( 'editor', config, html );
|
23
|
-
}
|
24
|
-
|
25
|
-
function removeEditor() {
|
26
|
-
if ( !editor )
|
27
|
-
return;
|
28
|
-
|
29
|
-
// Retrieve the editor contents. In an Ajax application, this data would be
|
30
|
-
// sent to the server or used in any other way.
|
31
|
-
document.getElementById( 'editorcontents' ).innerHTML = html = editor.getData();
|
32
|
-
document.getElementById( 'contents' ).style.display = '';
|
33
|
-
|
34
|
-
// Destroy the editor.
|
35
|
-
editor.destroy();
|
36
|
-
editor = null;
|
37
|
-
}
|
38
|
-
|
39
|
-
</script>
|
40
|
-
</head>
|
41
|
-
<body>
|
42
|
-
<h1 class="samples">
|
43
|
-
<a href="index.html">CKEditor Samples</a> » Create and Destroy Editor Instances for Ajax Applications
|
44
|
-
</h1>
|
45
|
-
<div class="description">
|
46
|
-
<p>
|
47
|
-
This sample shows how to create and destroy CKEditor instances on the fly. After the removal of CKEditor the content created inside the editing
|
48
|
-
area will be displayed in a <code><div></code> element.
|
49
|
-
</p>
|
50
|
-
<p>
|
51
|
-
For details of how to create this setup check the source code of this sample page
|
52
|
-
for JavaScript code responsible for the creation and destruction of a CKEditor instance.
|
53
|
-
</p>
|
54
|
-
</div>
|
55
|
-
<p>Click the buttons to create and remove a CKEditor instance.</p>
|
56
|
-
<p>
|
57
|
-
<input onclick="createEditor();" type="button" value="Create Editor">
|
58
|
-
<input onclick="removeEditor();" type="button" value="Remove Editor">
|
59
|
-
</p>
|
60
|
-
<!-- This div will hold the editor. -->
|
61
|
-
<div id="editor">
|
62
|
-
</div>
|
63
|
-
<div id="contents" style="display: none">
|
64
|
-
<p>
|
65
|
-
Edited Contents:
|
66
|
-
</p>
|
67
|
-
<!-- This div will be used to display the editor contents. -->
|
68
|
-
<div id="editorcontents">
|
69
|
-
</div>
|
70
|
-
</div>
|
71
|
-
<div id="footer">
|
72
|
-
<hr>
|
73
|
-
<p>
|
74
|
-
CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
|
75
|
-
</p>
|
76
|
-
<p id="copy">
|
77
|
-
Copyright © 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
|
78
|
-
Knabben. All rights reserved.
|
79
|
-
</p>
|
80
|
-
</div>
|
81
|
-
</body>
|
82
|
-
</html>
|
@@ -1,207 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<!--
|
3
|
-
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
4
|
-
For licensing, see LICENSE.html or http://ckeditor.com/license
|
5
|
-
-->
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<meta charset="utf-8">
|
9
|
-
<title>API Usage — CKEditor Sample</title>
|
10
|
-
<script src="../ckeditor.js"></script>
|
11
|
-
<link href="sample.css" rel="stylesheet">
|
12
|
-
<script>
|
13
|
-
|
14
|
-
// The instanceReady event is fired, when an instance of CKEditor has finished
|
15
|
-
// its initialization.
|
16
|
-
CKEDITOR.on( 'instanceReady', function( ev ) {
|
17
|
-
// Show the editor name and description in the browser status bar.
|
18
|
-
document.getElementById( 'eMessage' ).innerHTML = 'Instance <code>' + ev.editor.name + '<\/code> loaded.';
|
19
|
-
|
20
|
-
// Show this sample buttons.
|
21
|
-
document.getElementById( 'eButtons' ).style.display = 'block';
|
22
|
-
});
|
23
|
-
|
24
|
-
function InsertHTML() {
|
25
|
-
// Get the editor instance that we want to interact with.
|
26
|
-
var editor = CKEDITOR.instances.editor1;
|
27
|
-
var value = document.getElementById( 'htmlArea' ).value;
|
28
|
-
|
29
|
-
// Check the active editing mode.
|
30
|
-
if ( editor.mode == 'wysiwyg' )
|
31
|
-
{
|
32
|
-
// Insert HTML code.
|
33
|
-
// http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-insertHtml
|
34
|
-
editor.insertHtml( value );
|
35
|
-
}
|
36
|
-
else
|
37
|
-
alert( 'You must be in WYSIWYG mode!' );
|
38
|
-
}
|
39
|
-
|
40
|
-
function InsertText() {
|
41
|
-
// Get the editor instance that we want to interact with.
|
42
|
-
var editor = CKEDITOR.instances.editor1;
|
43
|
-
var value = document.getElementById( 'txtArea' ).value;
|
44
|
-
|
45
|
-
// Check the active editing mode.
|
46
|
-
if ( editor.mode == 'wysiwyg' )
|
47
|
-
{
|
48
|
-
// Insert as plain text.
|
49
|
-
// http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-insertText
|
50
|
-
editor.insertText( value );
|
51
|
-
}
|
52
|
-
else
|
53
|
-
alert( 'You must be in WYSIWYG mode!' );
|
54
|
-
}
|
55
|
-
|
56
|
-
function SetContents() {
|
57
|
-
// Get the editor instance that we want to interact with.
|
58
|
-
var editor = CKEDITOR.instances.editor1;
|
59
|
-
var value = document.getElementById( 'htmlArea' ).value;
|
60
|
-
|
61
|
-
// Set editor contents (replace current contents).
|
62
|
-
// http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-setData
|
63
|
-
editor.setData( value );
|
64
|
-
}
|
65
|
-
|
66
|
-
function GetContents() {
|
67
|
-
// Get the editor instance that you want to interact with.
|
68
|
-
var editor = CKEDITOR.instances.editor1;
|
69
|
-
|
70
|
-
// Get editor contents
|
71
|
-
// http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-getData
|
72
|
-
alert( editor.getData() );
|
73
|
-
}
|
74
|
-
|
75
|
-
function ExecuteCommand( commandName ) {
|
76
|
-
// Get the editor instance that we want to interact with.
|
77
|
-
var editor = CKEDITOR.instances.editor1;
|
78
|
-
|
79
|
-
// Check the active editing mode.
|
80
|
-
if ( editor.mode == 'wysiwyg' )
|
81
|
-
{
|
82
|
-
// Execute the command.
|
83
|
-
// http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-execCommand
|
84
|
-
editor.execCommand( commandName );
|
85
|
-
}
|
86
|
-
else
|
87
|
-
alert( 'You must be in WYSIWYG mode!' );
|
88
|
-
}
|
89
|
-
|
90
|
-
function CheckDirty() {
|
91
|
-
// Get the editor instance that we want to interact with.
|
92
|
-
var editor = CKEDITOR.instances.editor1;
|
93
|
-
// Checks whether the current editor contents present changes when compared
|
94
|
-
// to the contents loaded into the editor at startup
|
95
|
-
// http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-checkDirty
|
96
|
-
alert( editor.checkDirty() );
|
97
|
-
}
|
98
|
-
|
99
|
-
function ResetDirty() {
|
100
|
-
// Get the editor instance that we want to interact with.
|
101
|
-
var editor = CKEDITOR.instances.editor1;
|
102
|
-
// Resets the "dirty state" of the editor (see CheckDirty())
|
103
|
-
// http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-resetDirty
|
104
|
-
editor.resetDirty();
|
105
|
-
alert( 'The "IsDirty" status has been reset' );
|
106
|
-
}
|
107
|
-
|
108
|
-
function Focus() {
|
109
|
-
CKEDITOR.instances.editor1.focus();
|
110
|
-
}
|
111
|
-
|
112
|
-
function onFocus() {
|
113
|
-
document.getElementById( 'eMessage' ).innerHTML = '<b>' + this.name + ' is focused </b>';
|
114
|
-
}
|
115
|
-
|
116
|
-
function onBlur() {
|
117
|
-
document.getElementById( 'eMessage' ).innerHTML = this.name + ' lost focus';
|
118
|
-
}
|
119
|
-
|
120
|
-
</script>
|
121
|
-
|
122
|
-
</head>
|
123
|
-
<body>
|
124
|
-
<h1 class="samples">
|
125
|
-
<a href="index.html">CKEditor Samples</a> » Using CKEditor JavaScript API
|
126
|
-
</h1>
|
127
|
-
<div class="description">
|
128
|
-
<p>
|
129
|
-
This sample shows how to use the
|
130
|
-
<a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.editor">CKEditor JavaScript API</a>
|
131
|
-
to interact with the editor at runtime.
|
132
|
-
</p>
|
133
|
-
<p>
|
134
|
-
For details on how to create this setup check the source code of this sample page.
|
135
|
-
</p>
|
136
|
-
</div>
|
137
|
-
|
138
|
-
<!-- This <div> holds alert messages to be display in the sample page. -->
|
139
|
-
<div id="alerts">
|
140
|
-
<noscript>
|
141
|
-
<p>
|
142
|
-
<strong>CKEditor requires JavaScript to run</strong>. In a browser with no JavaScript
|
143
|
-
support, like yours, you should still see the contents (HTML data) and you should
|
144
|
-
be able to edit it normally, without a rich editor interface.
|
145
|
-
</p>
|
146
|
-
</noscript>
|
147
|
-
</div>
|
148
|
-
<form action="../../../samples/sample_posteddata.php" method="post">
|
149
|
-
<textarea cols="100" id="editor1" name="editor1" rows="10"><p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p></textarea>
|
150
|
-
|
151
|
-
<script>
|
152
|
-
// Replace the <textarea id="editor1"> with an CKEditor instance.
|
153
|
-
CKEDITOR.replace( 'editor1', {
|
154
|
-
on: {
|
155
|
-
focus: onFocus,
|
156
|
-
blur: onBlur,
|
157
|
-
|
158
|
-
// Check for availability of corresponding plugins.
|
159
|
-
pluginsLoaded: function( evt ) {
|
160
|
-
var doc = CKEDITOR.document, ed = evt.editor;
|
161
|
-
if ( !ed.getCommand( 'bold' ) )
|
162
|
-
doc.getById( 'exec-bold' ).hide();
|
163
|
-
if ( !ed.getCommand( 'link' ) )
|
164
|
-
doc.getById( 'exec-link' ).hide();
|
165
|
-
}
|
166
|
-
}
|
167
|
-
});
|
168
|
-
</script>
|
169
|
-
|
170
|
-
<p id="eMessage">
|
171
|
-
</p>
|
172
|
-
|
173
|
-
<div id="eButtons" style="display: none">
|
174
|
-
<input id="exec-bold" onclick="ExecuteCommand('bold');" type="button" value="Execute "bold" Command">
|
175
|
-
<input id="exec-link" onclick="ExecuteCommand('link');" type="button" value="Execute "link" Command">
|
176
|
-
<input onclick="Focus();" type="button" value="Focus">
|
177
|
-
<br><br>
|
178
|
-
<input onclick="InsertHTML();" type="button" value="Insert HTML">
|
179
|
-
<input onclick="SetContents();" type="button" value="Set Editor Contents">
|
180
|
-
<input onclick="GetContents();" type="button" value="Get Editor Contents (XHTML)">
|
181
|
-
<br>
|
182
|
-
<textarea cols="100" id="htmlArea" rows="3"><h2>Test</h2><p>This is some <a href="/Test1.html">sample</a> HTML code.</p></textarea>
|
183
|
-
<br>
|
184
|
-
<br>
|
185
|
-
<input onclick="InsertText();" type="button" value="Insert Text">
|
186
|
-
<br>
|
187
|
-
<textarea cols="100" id="txtArea" rows="3"> First line with some leading whitespaces.
|
188
|
-
|
189
|
-
Second line of text preceded by two line breaks.</textarea>
|
190
|
-
<br>
|
191
|
-
<br>
|
192
|
-
<input onclick="CheckDirty();" type="button" value="checkDirty()">
|
193
|
-
<input onclick="ResetDirty();" type="button" value="resetDirty()">
|
194
|
-
</div>
|
195
|
-
</form>
|
196
|
-
<div id="footer">
|
197
|
-
<hr>
|
198
|
-
<p>
|
199
|
-
CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
|
200
|
-
</p>
|
201
|
-
<p id="copy">
|
202
|
-
Copyright © 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
|
203
|
-
Knabben. All rights reserved.
|
204
|
-
</p>
|
205
|
-
</div>
|
206
|
-
</body>
|
207
|
-
</html>
|