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,104 +0,0 @@
|
|
1
|
-
CodeMirror.defineMode("htmlmixed", function(config, parserConfig) {
|
2
|
-
var htmlMode = CodeMirror.getMode(config, {name: "xml", htmlMode: true});
|
3
|
-
var cssMode = CodeMirror.getMode(config, "css");
|
4
|
-
|
5
|
-
var scriptTypes = [], scriptTypesConf = parserConfig && parserConfig.scriptTypes;
|
6
|
-
scriptTypes.push({matches: /^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^$/i,
|
7
|
-
mode: CodeMirror.getMode(config, "javascript")});
|
8
|
-
if (scriptTypesConf) for (var i = 0; i < scriptTypesConf.length; ++i) {
|
9
|
-
var conf = scriptTypesConf[i];
|
10
|
-
scriptTypes.push({matches: conf.matches, mode: conf.mode && CodeMirror.getMode(config, conf.mode)});
|
11
|
-
}
|
12
|
-
scriptTypes.push({matches: /./,
|
13
|
-
mode: CodeMirror.getMode(config, "text/plain")});
|
14
|
-
|
15
|
-
function html(stream, state) {
|
16
|
-
var tagName = state.htmlState.tagName;
|
17
|
-
var style = htmlMode.token(stream, state.htmlState);
|
18
|
-
if (tagName == "script" && /\btag\b/.test(style) && stream.current() == ">") {
|
19
|
-
// Script block: mode to change to depends on type attribute
|
20
|
-
var scriptType = stream.string.slice(Math.max(0, stream.pos - 100), stream.pos).match(/\btype\s*=\s*("[^"]+"|'[^']+'|\S+)[^<]*$/i);
|
21
|
-
scriptType = scriptType ? scriptType[1] : "";
|
22
|
-
if (scriptType && /[\"\']/.test(scriptType.charAt(0))) scriptType = scriptType.slice(1, scriptType.length - 1);
|
23
|
-
for (var i = 0; i < scriptTypes.length; ++i) {
|
24
|
-
var tp = scriptTypes[i];
|
25
|
-
if (typeof tp.matches == "string" ? scriptType == tp.matches : tp.matches.test(scriptType)) {
|
26
|
-
if (tp.mode) {
|
27
|
-
state.token = script;
|
28
|
-
state.localMode = tp.mode;
|
29
|
-
state.localState = tp.mode.startState && tp.mode.startState(htmlMode.indent(state.htmlState, ""));
|
30
|
-
}
|
31
|
-
break;
|
32
|
-
}
|
33
|
-
}
|
34
|
-
} else if (tagName == "style" && /\btag\b/.test(style) && stream.current() == ">") {
|
35
|
-
state.token = css;
|
36
|
-
state.localMode = cssMode;
|
37
|
-
state.localState = cssMode.startState(htmlMode.indent(state.htmlState, ""));
|
38
|
-
}
|
39
|
-
return style;
|
40
|
-
}
|
41
|
-
function maybeBackup(stream, pat, style) {
|
42
|
-
var cur = stream.current();
|
43
|
-
var close = cur.search(pat), m;
|
44
|
-
if (close > -1) stream.backUp(cur.length - close);
|
45
|
-
else if (m = cur.match(/<\/?$/)) {
|
46
|
-
stream.backUp(cur.length);
|
47
|
-
if (!stream.match(pat, false)) stream.match(cur[0]);
|
48
|
-
}
|
49
|
-
return style;
|
50
|
-
}
|
51
|
-
function script(stream, state) {
|
52
|
-
if (stream.match(/^<\/\s*script\s*>/i, false)) {
|
53
|
-
state.token = html;
|
54
|
-
state.localState = state.localMode = null;
|
55
|
-
return html(stream, state);
|
56
|
-
}
|
57
|
-
return maybeBackup(stream, /<\/\s*script\s*>/,
|
58
|
-
state.localMode.token(stream, state.localState));
|
59
|
-
}
|
60
|
-
function css(stream, state) {
|
61
|
-
if (stream.match(/^<\/\s*style\s*>/i, false)) {
|
62
|
-
state.token = html;
|
63
|
-
state.localState = state.localMode = null;
|
64
|
-
return html(stream, state);
|
65
|
-
}
|
66
|
-
return maybeBackup(stream, /<\/\s*style\s*>/,
|
67
|
-
cssMode.token(stream, state.localState));
|
68
|
-
}
|
69
|
-
|
70
|
-
return {
|
71
|
-
startState: function() {
|
72
|
-
var state = htmlMode.startState();
|
73
|
-
return {token: html, localMode: null, localState: null, htmlState: state};
|
74
|
-
},
|
75
|
-
|
76
|
-
copyState: function(state) {
|
77
|
-
if (state.localState)
|
78
|
-
var local = CodeMirror.copyState(state.localMode, state.localState);
|
79
|
-
return {token: state.token, localMode: state.localMode, localState: local,
|
80
|
-
htmlState: CodeMirror.copyState(htmlMode, state.htmlState)};
|
81
|
-
},
|
82
|
-
|
83
|
-
token: function(stream, state) {
|
84
|
-
return state.token(stream, state);
|
85
|
-
},
|
86
|
-
|
87
|
-
indent: function(state, textAfter) {
|
88
|
-
if (!state.localMode || /^\s*<\//.test(textAfter))
|
89
|
-
return htmlMode.indent(state.htmlState, textAfter);
|
90
|
-
else if (state.localMode.indent)
|
91
|
-
return state.localMode.indent(state.localState, textAfter);
|
92
|
-
else
|
93
|
-
return CodeMirror.Pass;
|
94
|
-
},
|
95
|
-
|
96
|
-
electricChars: "/{}:",
|
97
|
-
|
98
|
-
innerMode: function(state) {
|
99
|
-
return {state: state.localState || state.htmlState, mode: state.localMode || htmlMode};
|
100
|
-
}
|
101
|
-
};
|
102
|
-
}, "xml", "javascript", "css");
|
103
|
-
|
104
|
-
CodeMirror.defineMIME("text/html", "htmlmixed");
|
@@ -1,437 +0,0 @@
|
|
1
|
-
// TODO actually recognize syntax of TypeScript constructs
|
2
|
-
|
3
|
-
CodeMirror.defineMode("javascript", function(config, parserConfig) {
|
4
|
-
var indentUnit = config.indentUnit;
|
5
|
-
var jsonMode = parserConfig.json;
|
6
|
-
var isTS = parserConfig.typescript;
|
7
|
-
|
8
|
-
// Tokenizer
|
9
|
-
|
10
|
-
var keywords = function(){
|
11
|
-
function kw(type) {return {type: type, style: "keyword"};}
|
12
|
-
var A = kw("keyword a"), B = kw("keyword b"), C = kw("keyword c");
|
13
|
-
var operator = kw("operator"), atom = {type: "atom", style: "atom"};
|
14
|
-
|
15
|
-
var jsKeywords = {
|
16
|
-
"if": A, "while": A, "with": A, "else": B, "do": B, "try": B, "finally": B,
|
17
|
-
"return": C, "break": C, "continue": C, "new": C, "delete": C, "throw": C,
|
18
|
-
"var": kw("var"), "const": kw("var"), "let": kw("var"),
|
19
|
-
"function": kw("function"), "catch": kw("catch"),
|
20
|
-
"for": kw("for"), "switch": kw("switch"), "case": kw("case"), "default": kw("default"),
|
21
|
-
"in": operator, "typeof": operator, "instanceof": operator,
|
22
|
-
"true": atom, "false": atom, "null": atom, "undefined": atom, "NaN": atom, "Infinity": atom,
|
23
|
-
"this": kw("this")
|
24
|
-
};
|
25
|
-
|
26
|
-
// Extend the 'normal' keywords with the TypeScript language extensions
|
27
|
-
if (isTS) {
|
28
|
-
var type = {type: "variable", style: "variable-3"};
|
29
|
-
var tsKeywords = {
|
30
|
-
// object-like things
|
31
|
-
"interface": kw("interface"),
|
32
|
-
"class": kw("class"),
|
33
|
-
"extends": kw("extends"),
|
34
|
-
"constructor": kw("constructor"),
|
35
|
-
|
36
|
-
// scope modifiers
|
37
|
-
"public": kw("public"),
|
38
|
-
"private": kw("private"),
|
39
|
-
"protected": kw("protected"),
|
40
|
-
"static": kw("static"),
|
41
|
-
|
42
|
-
"super": kw("super"),
|
43
|
-
|
44
|
-
// types
|
45
|
-
"string": type, "number": type, "bool": type, "any": type
|
46
|
-
};
|
47
|
-
|
48
|
-
for (var attr in tsKeywords) {
|
49
|
-
jsKeywords[attr] = tsKeywords[attr];
|
50
|
-
}
|
51
|
-
}
|
52
|
-
|
53
|
-
return jsKeywords;
|
54
|
-
}();
|
55
|
-
|
56
|
-
var isOperatorChar = /[+\-*&%=<>!?|~^]/;
|
57
|
-
|
58
|
-
function chain(stream, state, f) {
|
59
|
-
state.tokenize = f;
|
60
|
-
return f(stream, state);
|
61
|
-
}
|
62
|
-
|
63
|
-
function nextUntilUnescaped(stream, end) {
|
64
|
-
var escaped = false, next;
|
65
|
-
while ((next = stream.next()) != null) {
|
66
|
-
if (next == end && !escaped)
|
67
|
-
return false;
|
68
|
-
escaped = !escaped && next == "\\";
|
69
|
-
}
|
70
|
-
return escaped;
|
71
|
-
}
|
72
|
-
|
73
|
-
// Used as scratch variables to communicate multiple values without
|
74
|
-
// consing up tons of objects.
|
75
|
-
var type, content;
|
76
|
-
function ret(tp, style, cont) {
|
77
|
-
type = tp; content = cont;
|
78
|
-
return style;
|
79
|
-
}
|
80
|
-
|
81
|
-
function jsTokenBase(stream, state) {
|
82
|
-
var ch = stream.next();
|
83
|
-
if (ch == '"' || ch == "'")
|
84
|
-
return chain(stream, state, jsTokenString(ch));
|
85
|
-
else if (/[\[\]{}\(\),;\:\.]/.test(ch))
|
86
|
-
return ret(ch);
|
87
|
-
else if (ch == "0" && stream.eat(/x/i)) {
|
88
|
-
stream.eatWhile(/[\da-f]/i);
|
89
|
-
return ret("number", "number");
|
90
|
-
}
|
91
|
-
else if (/\d/.test(ch) || ch == "-" && stream.eat(/\d/)) {
|
92
|
-
stream.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/);
|
93
|
-
return ret("number", "number");
|
94
|
-
}
|
95
|
-
else if (ch == "/") {
|
96
|
-
if (stream.eat("*")) {
|
97
|
-
return chain(stream, state, jsTokenComment);
|
98
|
-
}
|
99
|
-
else if (stream.eat("/")) {
|
100
|
-
stream.skipToEnd();
|
101
|
-
return ret("comment", "comment");
|
102
|
-
}
|
103
|
-
else if (state.lastType == "operator" || state.lastType == "keyword c" ||
|
104
|
-
/^[\[{}\(,;:]$/.test(state.lastType)) {
|
105
|
-
nextUntilUnescaped(stream, "/");
|
106
|
-
stream.eatWhile(/[gimy]/); // 'y' is "sticky" option in Mozilla
|
107
|
-
return ret("regexp", "string-2");
|
108
|
-
}
|
109
|
-
else {
|
110
|
-
stream.eatWhile(isOperatorChar);
|
111
|
-
return ret("operator", null, stream.current());
|
112
|
-
}
|
113
|
-
}
|
114
|
-
else if (ch == "#") {
|
115
|
-
stream.skipToEnd();
|
116
|
-
return ret("error", "error");
|
117
|
-
}
|
118
|
-
else if (isOperatorChar.test(ch)) {
|
119
|
-
stream.eatWhile(isOperatorChar);
|
120
|
-
return ret("operator", null, stream.current());
|
121
|
-
}
|
122
|
-
else {
|
123
|
-
stream.eatWhile(/[\w\$_]/);
|
124
|
-
var word = stream.current(), known = keywords.propertyIsEnumerable(word) && keywords[word];
|
125
|
-
return (known && state.lastType != ".") ? ret(known.type, known.style, word) :
|
126
|
-
ret("variable", "variable", word);
|
127
|
-
}
|
128
|
-
}
|
129
|
-
|
130
|
-
function jsTokenString(quote) {
|
131
|
-
return function(stream, state) {
|
132
|
-
if (!nextUntilUnescaped(stream, quote))
|
133
|
-
state.tokenize = jsTokenBase;
|
134
|
-
return ret("string", "string");
|
135
|
-
};
|
136
|
-
}
|
137
|
-
|
138
|
-
function jsTokenComment(stream, state) {
|
139
|
-
var maybeEnd = false, ch;
|
140
|
-
while (ch = stream.next()) {
|
141
|
-
if (ch == "/" && maybeEnd) {
|
142
|
-
state.tokenize = jsTokenBase;
|
143
|
-
break;
|
144
|
-
}
|
145
|
-
maybeEnd = (ch == "*");
|
146
|
-
}
|
147
|
-
return ret("comment", "comment");
|
148
|
-
}
|
149
|
-
|
150
|
-
// Parser
|
151
|
-
|
152
|
-
var atomicTypes = {"atom": true, "number": true, "variable": true, "string": true, "regexp": true, "this": true};
|
153
|
-
|
154
|
-
function JSLexical(indented, column, type, align, prev, info) {
|
155
|
-
this.indented = indented;
|
156
|
-
this.column = column;
|
157
|
-
this.type = type;
|
158
|
-
this.prev = prev;
|
159
|
-
this.info = info;
|
160
|
-
if (align != null) this.align = align;
|
161
|
-
}
|
162
|
-
|
163
|
-
function inScope(state, varname) {
|
164
|
-
for (var v = state.localVars; v; v = v.next)
|
165
|
-
if (v.name == varname) return true;
|
166
|
-
}
|
167
|
-
|
168
|
-
function parseJS(state, style, type, content, stream) {
|
169
|
-
var cc = state.cc;
|
170
|
-
// Communicate our context to the combinators.
|
171
|
-
// (Less wasteful than consing up a hundred closures on every call.)
|
172
|
-
cx.state = state; cx.stream = stream; cx.marked = null, cx.cc = cc;
|
173
|
-
|
174
|
-
if (!state.lexical.hasOwnProperty("align"))
|
175
|
-
state.lexical.align = true;
|
176
|
-
|
177
|
-
while(true) {
|
178
|
-
var combinator = cc.length ? cc.pop() : jsonMode ? expression : statement;
|
179
|
-
if (combinator(type, content)) {
|
180
|
-
while(cc.length && cc[cc.length - 1].lex)
|
181
|
-
cc.pop()();
|
182
|
-
if (cx.marked) return cx.marked;
|
183
|
-
if (type == "variable" && inScope(state, content)) return "variable-2";
|
184
|
-
return style;
|
185
|
-
}
|
186
|
-
}
|
187
|
-
}
|
188
|
-
|
189
|
-
// Combinator utils
|
190
|
-
|
191
|
-
var cx = {state: null, column: null, marked: null, cc: null};
|
192
|
-
function pass() {
|
193
|
-
for (var i = arguments.length - 1; i >= 0; i--) cx.cc.push(arguments[i]);
|
194
|
-
}
|
195
|
-
function cont() {
|
196
|
-
pass.apply(null, arguments);
|
197
|
-
return true;
|
198
|
-
}
|
199
|
-
function register(varname) {
|
200
|
-
function inList(list) {
|
201
|
-
for (var v = list; v; v = v.next)
|
202
|
-
if (v.name == varname) return true;
|
203
|
-
return false;
|
204
|
-
}
|
205
|
-
var state = cx.state;
|
206
|
-
if (state.context) {
|
207
|
-
cx.marked = "def";
|
208
|
-
if (inList(state.localVars)) return;
|
209
|
-
state.localVars = {name: varname, next: state.localVars};
|
210
|
-
} else {
|
211
|
-
if (inList(state.globalVars)) return;
|
212
|
-
state.globalVars = {name: varname, next: state.globalVars};
|
213
|
-
}
|
214
|
-
}
|
215
|
-
|
216
|
-
// Combinators
|
217
|
-
|
218
|
-
var defaultVars = {name: "this", next: {name: "arguments"}};
|
219
|
-
function pushcontext() {
|
220
|
-
cx.state.context = {prev: cx.state.context, vars: cx.state.localVars};
|
221
|
-
cx.state.localVars = defaultVars;
|
222
|
-
}
|
223
|
-
function popcontext() {
|
224
|
-
cx.state.localVars = cx.state.context.vars;
|
225
|
-
cx.state.context = cx.state.context.prev;
|
226
|
-
}
|
227
|
-
function pushlex(type, info) {
|
228
|
-
var result = function() {
|
229
|
-
var state = cx.state;
|
230
|
-
state.lexical = new JSLexical(state.indented, cx.stream.column(), type, null, state.lexical, info);
|
231
|
-
};
|
232
|
-
result.lex = true;
|
233
|
-
return result;
|
234
|
-
}
|
235
|
-
function poplex() {
|
236
|
-
var state = cx.state;
|
237
|
-
if (state.lexical.prev) {
|
238
|
-
if (state.lexical.type == ")")
|
239
|
-
state.indented = state.lexical.indented;
|
240
|
-
state.lexical = state.lexical.prev;
|
241
|
-
}
|
242
|
-
}
|
243
|
-
poplex.lex = true;
|
244
|
-
|
245
|
-
function expect(wanted) {
|
246
|
-
return function(type) {
|
247
|
-
if (type == wanted) return cont();
|
248
|
-
else if (wanted == ";") return pass();
|
249
|
-
else return cont(arguments.callee);
|
250
|
-
};
|
251
|
-
}
|
252
|
-
|
253
|
-
function statement(type) {
|
254
|
-
if (type == "var") return cont(pushlex("vardef"), vardef1, expect(";"), poplex);
|
255
|
-
if (type == "keyword a") return cont(pushlex("form"), expression, statement, poplex);
|
256
|
-
if (type == "keyword b") return cont(pushlex("form"), statement, poplex);
|
257
|
-
if (type == "{") return cont(pushlex("}"), block, poplex);
|
258
|
-
if (type == ";") return cont();
|
259
|
-
if (type == "function") return cont(functiondef);
|
260
|
-
if (type == "for") return cont(pushlex("form"), expect("("), pushlex(")"), forspec1, expect(")"),
|
261
|
-
poplex, statement, poplex);
|
262
|
-
if (type == "variable") return cont(pushlex("stat"), maybelabel);
|
263
|
-
if (type == "switch") return cont(pushlex("form"), expression, pushlex("}", "switch"), expect("{"),
|
264
|
-
block, poplex, poplex);
|
265
|
-
if (type == "case") return cont(expression, expect(":"));
|
266
|
-
if (type == "default") return cont(expect(":"));
|
267
|
-
if (type == "catch") return cont(pushlex("form"), pushcontext, expect("("), funarg, expect(")"),
|
268
|
-
statement, poplex, popcontext);
|
269
|
-
return pass(pushlex("stat"), expression, expect(";"), poplex);
|
270
|
-
}
|
271
|
-
function expression(type) {
|
272
|
-
if (atomicTypes.hasOwnProperty(type)) return cont(maybeoperator);
|
273
|
-
if (type == "function") return cont(functiondef);
|
274
|
-
if (type == "keyword c") return cont(maybeexpression);
|
275
|
-
if (type == "(") return cont(pushlex(")"), maybeexpression, expect(")"), poplex, maybeoperator);
|
276
|
-
if (type == "operator") return cont(expression);
|
277
|
-
if (type == "[") return cont(pushlex("]"), commasep(expression, "]"), poplex, maybeoperator);
|
278
|
-
if (type == "{") return cont(pushlex("}"), commasep(objprop, "}"), poplex, maybeoperator);
|
279
|
-
return cont();
|
280
|
-
}
|
281
|
-
function maybeexpression(type) {
|
282
|
-
if (type.match(/[;\}\)\],]/)) return pass();
|
283
|
-
return pass(expression);
|
284
|
-
}
|
285
|
-
|
286
|
-
function maybeoperator(type, value) {
|
287
|
-
if (type == "operator") {
|
288
|
-
if (/\+\+|--/.test(value)) return cont(maybeoperator);
|
289
|
-
if (value == "?") return cont(expression, expect(":"), expression);
|
290
|
-
return cont(expression);
|
291
|
-
}
|
292
|
-
if (type == ";") return;
|
293
|
-
if (type == "(") return cont(pushlex(")"), commasep(expression, ")"), poplex, maybeoperator);
|
294
|
-
if (type == ".") return cont(property, maybeoperator);
|
295
|
-
if (type == "[") return cont(pushlex("]"), expression, expect("]"), poplex, maybeoperator);
|
296
|
-
}
|
297
|
-
function maybelabel(type) {
|
298
|
-
if (type == ":") return cont(poplex, statement);
|
299
|
-
return pass(maybeoperator, expect(";"), poplex);
|
300
|
-
}
|
301
|
-
function property(type) {
|
302
|
-
if (type == "variable") {cx.marked = "property"; return cont();}
|
303
|
-
}
|
304
|
-
function objprop(type, value) {
|
305
|
-
if (type == "variable") {
|
306
|
-
cx.marked = "property";
|
307
|
-
if (value == "get" || value == "set") return cont(getterSetter);
|
308
|
-
} else if (type == "number" || type == "string") {
|
309
|
-
cx.marked = type + " property";
|
310
|
-
}
|
311
|
-
if (atomicTypes.hasOwnProperty(type)) return cont(expect(":"), expression);
|
312
|
-
}
|
313
|
-
function getterSetter(type) {
|
314
|
-
if (type == ":") return cont(expression);
|
315
|
-
if (type != "variable") return cont(expect(":"), expression);
|
316
|
-
cx.marked = "property";
|
317
|
-
return cont(functiondef);
|
318
|
-
}
|
319
|
-
function commasep(what, end) {
|
320
|
-
function proceed(type) {
|
321
|
-
if (type == ",") return cont(what, proceed);
|
322
|
-
if (type == end) return cont();
|
323
|
-
return cont(expect(end));
|
324
|
-
}
|
325
|
-
return function(type) {
|
326
|
-
if (type == end) return cont();
|
327
|
-
else return pass(what, proceed);
|
328
|
-
};
|
329
|
-
}
|
330
|
-
function block(type) {
|
331
|
-
if (type == "}") return cont();
|
332
|
-
return pass(statement, block);
|
333
|
-
}
|
334
|
-
function maybetype(type) {
|
335
|
-
if (type == ":") return cont(typedef);
|
336
|
-
return pass();
|
337
|
-
}
|
338
|
-
function typedef(type) {
|
339
|
-
if (type == "variable"){cx.marked = "variable-3"; return cont();}
|
340
|
-
return pass();
|
341
|
-
}
|
342
|
-
function vardef1(type, value) {
|
343
|
-
if (type == "variable") {
|
344
|
-
register(value);
|
345
|
-
return isTS ? cont(maybetype, vardef2) : cont(vardef2);
|
346
|
-
}
|
347
|
-
return pass();
|
348
|
-
}
|
349
|
-
function vardef2(type, value) {
|
350
|
-
if (value == "=") return cont(expression, vardef2);
|
351
|
-
if (type == ",") return cont(vardef1);
|
352
|
-
}
|
353
|
-
function forspec1(type) {
|
354
|
-
if (type == "var") return cont(vardef1, expect(";"), forspec2);
|
355
|
-
if (type == ";") return cont(forspec2);
|
356
|
-
if (type == "variable") return cont(formaybein);
|
357
|
-
return cont(forspec2);
|
358
|
-
}
|
359
|
-
function formaybein(_type, value) {
|
360
|
-
if (value == "in") return cont(expression);
|
361
|
-
return cont(maybeoperator, forspec2);
|
362
|
-
}
|
363
|
-
function forspec2(type, value) {
|
364
|
-
if (type == ";") return cont(forspec3);
|
365
|
-
if (value == "in") return cont(expression);
|
366
|
-
return cont(expression, expect(";"), forspec3);
|
367
|
-
}
|
368
|
-
function forspec3(type) {
|
369
|
-
if (type != ")") cont(expression);
|
370
|
-
}
|
371
|
-
function functiondef(type, value) {
|
372
|
-
if (type == "variable") {register(value); return cont(functiondef);}
|
373
|
-
if (type == "(") return cont(pushlex(")"), pushcontext, commasep(funarg, ")"), poplex, statement, popcontext);
|
374
|
-
}
|
375
|
-
function funarg(type, value) {
|
376
|
-
if (type == "variable") {register(value); return isTS ? cont(maybetype) : cont();}
|
377
|
-
}
|
378
|
-
|
379
|
-
// Interface
|
380
|
-
|
381
|
-
return {
|
382
|
-
startState: function(basecolumn) {
|
383
|
-
return {
|
384
|
-
tokenize: jsTokenBase,
|
385
|
-
lastType: null,
|
386
|
-
cc: [],
|
387
|
-
lexical: new JSLexical((basecolumn || 0) - indentUnit, 0, "block", false),
|
388
|
-
localVars: parserConfig.localVars,
|
389
|
-
globalVars: parserConfig.globalVars,
|
390
|
-
context: parserConfig.localVars && {vars: parserConfig.localVars},
|
391
|
-
indented: 0
|
392
|
-
};
|
393
|
-
},
|
394
|
-
|
395
|
-
token: function(stream, state) {
|
396
|
-
if (stream.sol()) {
|
397
|
-
if (!state.lexical.hasOwnProperty("align"))
|
398
|
-
state.lexical.align = false;
|
399
|
-
state.indented = stream.indentation();
|
400
|
-
}
|
401
|
-
if (stream.eatSpace()) return null;
|
402
|
-
var style = state.tokenize(stream, state);
|
403
|
-
if (type == "comment") return style;
|
404
|
-
state.lastType = type;
|
405
|
-
return parseJS(state, style, type, content, stream);
|
406
|
-
},
|
407
|
-
|
408
|
-
indent: function(state, textAfter) {
|
409
|
-
if (state.tokenize == jsTokenComment) return CodeMirror.Pass;
|
410
|
-
if (state.tokenize != jsTokenBase) return 0;
|
411
|
-
var firstChar = textAfter && textAfter.charAt(0), lexical = state.lexical;
|
412
|
-
if (lexical.type == "stat" && firstChar == "}") lexical = lexical.prev;
|
413
|
-
var type = lexical.type, closing = firstChar == type;
|
414
|
-
if (type == "vardef") return lexical.indented + (state.lastType == "operator" || state.lastType == "," ? 4 : 0);
|
415
|
-
else if (type == "form" && firstChar == "{") return lexical.indented;
|
416
|
-
else if (type == "form") return lexical.indented + indentUnit;
|
417
|
-
else if (type == "stat")
|
418
|
-
return lexical.indented + (state.lastType == "operator" || state.lastType == "," ? indentUnit : 0);
|
419
|
-
else if (lexical.info == "switch" && !closing)
|
420
|
-
return lexical.indented + (/^(?:case|default)\b/.test(textAfter) ? indentUnit : 2 * indentUnit);
|
421
|
-
else if (lexical.align) return lexical.column + (closing ? 0 : 1);
|
422
|
-
else return lexical.indented + (closing ? 0 : indentUnit);
|
423
|
-
},
|
424
|
-
|
425
|
-
electricChars: ":{}",
|
426
|
-
|
427
|
-
jsonMode: jsonMode
|
428
|
-
};
|
429
|
-
});
|
430
|
-
|
431
|
-
CodeMirror.defineMIME("text/javascript", "javascript");
|
432
|
-
CodeMirror.defineMIME("text/ecmascript", "javascript");
|
433
|
-
CodeMirror.defineMIME("application/javascript", "javascript");
|
434
|
-
CodeMirror.defineMIME("application/ecmascript", "javascript");
|
435
|
-
CodeMirror.defineMIME("application/json", {name: "javascript", json: true});
|
436
|
-
CodeMirror.defineMIME("text/typescript", { name: "javascript", typescript: true });
|
437
|
-
CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript: true });
|