glebtv-ckeditor 4.0.1 → 4.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +63 -62
- data/app/assets/stylesheets/ckcontent.css +0 -0
- data/lib/ckeditor.rb +4 -3
- data/lib/ckeditor/engine.rb +1 -1
- data/lib/ckeditor/version.rb +2 -2
- data/vendor/assets/javascripts/ckeditor/CHANGES.md +27 -1
- data/vendor/assets/javascripts/ckeditor/README.md +1 -1
- data/vendor/assets/javascripts/ckeditor/build-config.js +10 -89
- data/vendor/assets/javascripts/ckeditor/ckeditor.js +286 -329
- data/vendor/assets/javascripts/ckeditor/config.js.erb +3 -8
- data/vendor/assets/javascripts/ckeditor/lang/en.js +1 -1
- data/vendor/assets/javascripts/ckeditor/lang/ru.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/CKCss/ckcss.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +6 -6
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +6 -5
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/css/codemirror.ckeditor.css +74 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/css/codemirror.css +16 -10
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/css/codemirror.min.css +1 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/icons/AutoFormat.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/icons/CommentSelectedRange.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/icons/UncommentSelectedRange.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/{util → addon/dialog}/dialog.js +76 -75
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/addon/edit/closebrackets.js +29 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/{util → addon/edit}/closetag.js +86 -85
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/{util → addon/edit}/continuelist.js +28 -28
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/{util → addon/edit}/matchbrackets.js +74 -63
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/{util → addon/foldcode}/foldcode.js +183 -182
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/addon/format/autoFormatAll.js +43 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/{util → addon/format}/formatting.js +114 -108
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/addon/search/match-highlighter.js +60 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/{util → addon/search}/search.js +131 -119
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/{util → addon/search}/searchcursor.js +131 -119
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.addons.min.js +1 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.js +5384 -4553
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.min.js +1 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.modes.min.js +1 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.search-addons.min.js +1 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/css.js +465 -465
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/htmlmixed.js +104 -84
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/javascript.js +426 -411
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/xml.js +324 -324
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/af.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ar.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/bg.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/bn.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/bs.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ca.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/cs.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/cy.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/da.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/de.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/el.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/en-au.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/en-ca.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/en-gb.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/en.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/eo.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/es.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/et.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/eu.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/fa.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/fi.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/fo.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/fr-ca.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/fr.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/gl.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/gu.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/he.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/hi.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/hr.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/hu.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/is.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/it.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ja.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ka.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/km.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ko.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ku.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/lt.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/lv.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/mk.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/mn.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ms.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/nb.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/nl.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/no.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/pl.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/pt-br.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/pt.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ro.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ru.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/sk.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/sl.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/sr-latn.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/sr.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/sv.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/th.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/tr.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ug.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/uk.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/vi.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/zh-cn.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/zh.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/plugin.js +249 -103
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/ambiance-mobile.css +6 -6
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/ambiance.css +76 -76
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/blackboard.css +25 -25
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/cobalt.css +18 -18
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/eclipse.css +25 -25
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/elegant.css +10 -10
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/erlang-dark.css +21 -21
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/lesser-dark.css +44 -44
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/monokai.css +28 -28
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/neat.css +9 -9
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/night.css +21 -21
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/rubyblue.css +21 -21
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/solarized.css +207 -207
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/twilight.css +26 -25
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/vibrant-ink.css +27 -27
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/xq-dark.css +46 -46
- data/vendor/assets/javascripts/ckeditor/plugins/icons.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/iframedialog/plugin.js +173 -173
- data/vendor/assets/javascripts/ckeditor/plugins/{MediaEmbed → mediaembed}/images/icon.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/{MediaEmbed → mediaembed}/plugin.js +16 -13
- data/vendor/assets/javascripts/ckeditor/plugins/oembed/images/icon.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/oembed/lang/de.js +5 -2
- data/vendor/assets/javascripts/ckeditor/plugins/oembed/lang/en.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/oembed/lang/fr.js +9 -6
- data/vendor/assets/javascripts/ckeditor/plugins/oembed/lang/nl.js +4 -1
- data/vendor/assets/javascripts/ckeditor/plugins/oembed/lang/ru.js +11 -8
- data/vendor/assets/javascripts/ckeditor/plugins/oembed/libs/jquery.oembed.js +161 -30
- data/vendor/assets/javascripts/ckeditor/plugins/oembed/libs/jquery.oembed.min.js +1 -4
- data/vendor/assets/javascripts/ckeditor/plugins/oembed/plugin.js +55 -59
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/options.js +11 -10
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fa.js +8 -9
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ku.js +9 -10
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pl.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/th.js +13 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie7.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie8.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_iequirks.css +5 -3
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_opera.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_gecko.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie7.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie8.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_iequirks.css +52 -196
- data/vendor/assets/javascripts/ckeditor/skins/moono/icons.png +0 -0
- metadata +29 -203
- data/vendor/assets/javascripts/ckeditor/contents.css +0 -99
- data/vendor/assets/javascripts/ckeditor/lang/af.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/ar.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/bg.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/bn.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/bs.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/ca.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/cs.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/cy.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/da.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/de.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/el.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/en-au.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/en-ca.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/en-gb.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/eo.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/es.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/et.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/eu.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/fa.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/fi.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/fo.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/fr-ca.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/fr.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/gl.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/gu.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/he.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/hi.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/hr.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/hu.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/is.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/it.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/ja.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/ka.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/km.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/ko.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/ku.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/lt.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/lv.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/mk.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/mn.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/ms.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/nb.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/nl.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/no.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/pl.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/pt-br.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/pt.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/ro.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/sk.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/sl.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/sr-latn.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/sr.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/sv.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/th.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/tr.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/ug.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/uk.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/vi.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/zh-cn.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/zh.js +0 -5
- data/vendor/assets/javascripts/ckeditor/plugins/CKCss/CKCss.xml +0 -26
- data/vendor/assets/javascripts/ckeditor/plugins/CKCss/ckcss1.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/MediaEmbed/icons/mediaembed.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/css/sourcecodepro-regular.eot +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/css/sourcecodepro-regular.otf +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/css/sourcecodepro-regular.svg +0 -242
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/css/sourcecodepro-regular.ttf +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/css/sourcecodepro-regular.woff +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/colorize.js +0 -29
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/continuecomment.js +0 -36
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/dialog.css +0 -32
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/javascript-hint.js +0 -137
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/loadmode.js +0 -51
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/match-highlighter.js +0 -46
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/multiplex.js +0 -95
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/overlay.js +0 -59
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/pig-hint.js +0 -117
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/runmode-standalone.js +0 -90
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/runmode.js +0 -52
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/simple-hint.css +0 -16
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/simple-hint.js +0 -102
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/xml-hint.js +0 -131
- data/vendor/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/div/dialogs/div.js +0 -9
- data/vendor/assets/javascripts/ckeditor/plugins/find/dialogs/find.js +0 -24
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/button.js +0 -8
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +0 -8
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/form.js +0 -8
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +0 -8
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/radio.js +0 -8
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/select.js +0 -20
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +0 -8
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +0 -10
- data/vendor/assets/javascripts/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/htmlbuttons/docs/install.html +0 -93
- data/vendor/assets/javascripts/ckeditor/plugins/htmlbuttons/docs/styles.css +0 -59
- data/vendor/assets/javascripts/ckeditor/plugins/htmlbuttons/icon1.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/htmlbuttons/icon2.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/htmlbuttons/icon3.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/htmlbuttons/plugin.js +0 -71
- data/vendor/assets/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +0 -10
- data/vendor/assets/javascripts/ckeditor/plugins/iframe/images/placeholder.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +0 -10
- data/vendor/assets/javascripts/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/preview/preview.html +0 -10
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_address.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_div.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_p.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +0 -10
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/embarrassed_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/envelope.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/heart.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/kiss.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/tongue_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.css +0 -84
- data/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js +0 -10
- data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/default.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wordcount/lang/en.js +0 -9
- data/vendor/assets/javascripts/ckeditor/plugins/wordcount/lang/ru.js +0 -9
- data/vendor/assets/javascripts/ckeditor/plugins/wordcount/plugin.js +0 -95
- data/vendor/assets/javascripts/ckeditor/samples/ajax.html +0 -82
- data/vendor/assets/javascripts/ckeditor/samples/api.html +0 -207
- data/vendor/assets/javascripts/ckeditor/samples/appendto.html +0 -57
- data/vendor/assets/javascripts/ckeditor/samples/assets/inlineall/logo.png +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/assets/outputxhtml/outputxhtml.css +0 -204
- data/vendor/assets/javascripts/ckeditor/samples/assets/posteddata.php +0 -59
- data/vendor/assets/javascripts/ckeditor/samples/assets/sample.css +0 -3
- data/vendor/assets/javascripts/ckeditor/samples/assets/sample.jpg +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/assets/uilanguages/languages.js +0 -7
- data/vendor/assets/javascripts/ckeditor/samples/divreplace.html +0 -141
- data/vendor/assets/javascripts/ckeditor/samples/index.html +0 -119
- data/vendor/assets/javascripts/ckeditor/samples/inlineall.html +0 -311
- data/vendor/assets/javascripts/ckeditor/samples/inlinebycode.html +0 -122
- data/vendor/assets/javascripts/ckeditor/samples/plugins/dialog/assets/my_dialog.js +0 -48
- data/vendor/assets/javascripts/ckeditor/samples/plugins/dialog/dialog.html +0 -187
- data/vendor/assets/javascripts/ckeditor/samples/plugins/enterkey/enterkey.html +0 -103
- data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/outputforflash.fla +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/outputforflash.swf +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/swfobject.js +0 -18
- data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/outputforflash.html +0 -280
- data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/outputhtml.html +0 -237
- data/vendor/assets/javascripts/ckeditor/samples/plugins/magicline/magicline.html +0 -203
- data/vendor/assets/javascripts/ckeditor/samples/plugins/toolbar/toolbar.html +0 -200
- data/vendor/assets/javascripts/ckeditor/samples/plugins/wysiwygarea/fullpage.html +0 -71
- data/vendor/assets/javascripts/ckeditor/samples/readonly.html +0 -73
- data/vendor/assets/javascripts/ckeditor/samples/replacebyclass.html +0 -57
- data/vendor/assets/javascripts/ckeditor/samples/replacebycode.html +0 -56
- data/vendor/assets/javascripts/ckeditor/samples/sample.css +0 -333
- data/vendor/assets/javascripts/ckeditor/samples/sample.js +0 -5
- data/vendor/assets/javascripts/ckeditor/samples/sample_posteddata.php +0 -16
- data/vendor/assets/javascripts/ckeditor/samples/tabindex.html +0 -75
- data/vendor/assets/javascripts/ckeditor/samples/uicolor.html +0 -69
- data/vendor/assets/javascripts/ckeditor/samples/uilanguages.html +0 -119
- data/vendor/assets/javascripts/ckeditor/samples/xhtmlstyle.html +0 -219
@@ -1,10 +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
|
-
(function(){CKEDITOR.dialog.add("templates",function(c){function o(a,b){var k=CKEDITOR.dom.element.createFromHtml('<a href="javascript:void(0)" tabIndex="-1" role="option" ><div class="cke_tpl_item"></div></a>'),d='<table style="width:350px;" class="cke_tpl_preview" role="presentation"><tr>';a.image&&b&&(d+='<td class="cke_tpl_preview_img"><img src="'+CKEDITOR.getUrl(b+a.image)+'"'+(CKEDITOR.env.ie6Compat?' onload="this.width=this.width"':"")+' alt="" title=""></td>');d+='<td style="white-space:normal;"><span class="cke_tpl_title">'+
|
6
|
-
a.title+"</span><br/>";a.description&&(d+="<span>"+a.description+"</span>");k.getFirst().setHtml(d+"</td></tr></table>");k.on("click",function(){p(a.html)});return k}function p(a){var b=CKEDITOR.dialog.getCurrent();b.getValueOf("selectTpl","chkInsertOpt")?(c.fire("saveSnapshot"),c.setData(a,function(){b.hide();var a=c.createRange();a.moveToElementEditStart(c.editable());a.select();setTimeout(function(){c.fire("saveSnapshot")},0)})):(c.insertHtml(a),b.hide())}function i(a){var b=a.data.getTarget(),
|
7
|
-
c=g.equals(b);if(c||g.contains(b)){var d=a.data.getKeystroke(),f=g.getElementsByTag("a"),e;if(f){if(c)e=f.getItem(0);else switch(d){case 40:e=b.getNext();break;case 38:e=b.getPrevious();break;case 13:case 32:b.fire("click")}e&&(e.focus(),a.data.preventDefault())}}}var h=CKEDITOR.plugins.get("templates");CKEDITOR.document.appendStyleSheet(CKEDITOR.getUrl(h.path+"dialogs/templates.css"));var g,h="cke_tpl_list_label_"+CKEDITOR.tools.getNextNumber(),f=c.lang.templates,l=c.config;return{title:c.lang.templates.title,
|
8
|
-
minWidth:CKEDITOR.env.ie?440:400,minHeight:340,contents:[{id:"selectTpl",label:f.title,elements:[{type:"vbox",padding:5,children:[{id:"selectTplText",type:"html",html:"<span>"+f.selectPromptMsg+"</span>"},{id:"templatesList",type:"html",focus:!0,html:'<div class="cke_tpl_list" tabIndex="-1" role="listbox" aria-labelledby="'+h+'"><div class="cke_tpl_loading"><span></span></div></div><span class="cke_voice_label" id="'+h+'">'+f.options+"</span>"},{id:"chkInsertOpt",type:"checkbox",label:f.insertOption,
|
9
|
-
"default":l.templates_replaceContent}]}]}],buttons:[CKEDITOR.dialog.cancelButton],onShow:function(){var a=this.getContentElement("selectTpl","templatesList");g=a.getElement();CKEDITOR.loadTemplates(l.templates_files,function(){var b=(l.templates||"default").split(",");if(b.length){var c=g;c.setHtml("");for(var d=0,h=b.length;d<h;d++)for(var e=CKEDITOR.getTemplates(b[d]),i=e.imagesPath,e=e.templates,n=e.length,j=0;j<n;j++){var m=o(e[j],i);m.setAttribute("aria-posinset",j+1);m.setAttribute("aria-setsize",
|
10
|
-
n);c.append(m)}a.focus()}else g.setHtml('<div class="cke_tpl_empty"><span>'+f.emptyListMsg+"</span></div>")});this._.element.on("keydown",i)},onHide:function(){this._.element.removeListener("keydown",i)}}})})();
|
@@ -1,6 +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.addTemplates("default",{imagesPath:CKEDITOR.getUrl(CKEDITOR.plugins.getPath("templates")+"templates/images/"),templates:[{title:"Image and Title",image:"template1.gif",description:"One main image with a title and text that surround the image.",html:'<h3><img style="margin-right: 10px" height="100" width="100" align="left"/>Type the title here</h3><p>Type the text here</p>'},{title:"Strange Template",image:"template2.gif",description:"A template that defines two colums, each one with a title, and some text.",
|
6
|
-
html:'<table cellspacing="0" cellpadding="0" style="width:100%" border="0"><tr><td style="width:50%"><h3>Title 1</h3></td><td></td><td style="width:50%"><h3>Title 2</h3></td></tr><tr><td>Text 1</td><td></td><td>Text 2</td></tr></table><p>More text goes here.</p>'},{title:"Text and Table",image:"template3.gif",description:"A title with some text and a table.",html:'<div style="width: 80%"><h3>Title goes here</h3><table style="width:150px;float: right" cellspacing="0" cellpadding="0" border="1"><caption style="border:solid 1px black"><strong>Table title</strong></caption></tr><tr><td> </td><td> </td><td> </td></tr><tr><td> </td><td> </td><td> </td></tr><tr><td> </td><td> </td><td> </td></tr></table><p>Type the text here</p></div>'}]});
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,9 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
3
|
-
For licensing, see LICENSE.html or http://ckeditor.com/license
|
4
|
-
*/
|
5
|
-
CKEDITOR.plugins.setLang( 'wordcount', 'en', {
|
6
|
-
WordCount: 'Words:',
|
7
|
-
SymbolCount: 'Symbols:',
|
8
|
-
NoSpaceCount: 'W/o spaces:'
|
9
|
-
});
|
@@ -1,9 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
3
|
-
For licensing, see LICENSE.html or http://ckeditor.com/license
|
4
|
-
*/
|
5
|
-
CKEDITOR.plugins.setLang( 'wordcount', 'ru', {
|
6
|
-
WordCount: 'Слов:',
|
7
|
-
SymbolCount: 'Символов:',
|
8
|
-
NoSpaceCount: 'Без пробелов:'
|
9
|
-
});
|
@@ -1,95 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.html or http://ckeditor.com/license
|
4
|
-
*/
|
5
|
-
|
6
|
-
CKEDITOR.plugins.add('wordcount', {
|
7
|
-
lang: ['de', 'en', 'ru'],
|
8
|
-
init: function (editor) {
|
9
|
-
var defaultLimit = 'unlimited';
|
10
|
-
var defaultFormat = '<span class="cke_path_item">' + editor.lang.wordcount.WordCount + ' %count%, ' + editor.lang.wordcount.SymbolCount + ' %symbols%, ' + editor.lang.wordcount.NoSpaceCount + ' %nospace%</span>';
|
11
|
-
var limit = defaultLimit;
|
12
|
-
var format = defaultFormat;
|
13
|
-
var intervalId;
|
14
|
-
var lastCount = 0;
|
15
|
-
var limitReachedNotified = false;
|
16
|
-
var limitRestoredNotified = false;
|
17
|
-
if (true) {
|
18
|
-
function counterId(editor) {
|
19
|
-
return 'cke_wordcount_' + editor.name
|
20
|
-
}
|
21
|
-
function counterElement(editor) {
|
22
|
-
return document.getElementById(counterId(editor))
|
23
|
-
}
|
24
|
-
function strip(html) {
|
25
|
-
var tmp = document.createElement("DIV");
|
26
|
-
tmp.innerHTML = html;
|
27
|
-
return tmp.textContent || tmp.innerText
|
28
|
-
}
|
29
|
-
function updateCounter(editor) {
|
30
|
-
var count = 0;
|
31
|
-
var data = (editor.getData() != undefined && strip(editor.getData()) != undefined) ? strip(editor.getData()).trim() : '';
|
32
|
-
if (data) {
|
33
|
-
count = data.split(/\s+/).length;
|
34
|
-
}
|
35
|
-
if (count == lastCount) {
|
36
|
-
return true
|
37
|
-
} else {
|
38
|
-
lastCount = count
|
39
|
-
}
|
40
|
-
if (!limitReachedNotified && count > limit) {
|
41
|
-
limitReached(editor)
|
42
|
-
} else if (!limitRestoredNotified && count < limit) {
|
43
|
-
limitRestored(editor)
|
44
|
-
}
|
45
|
-
var html = format.replace('%count%', count).replace('%symbols%', data.length).replace('%nospace%', data.replace(/[^a-zа-я0-9]/gi, '').length);
|
46
|
-
counterElement(editor).innerHTML = html
|
47
|
-
}
|
48
|
-
function limitReached(editor) {
|
49
|
-
limitReachedNotified = true;
|
50
|
-
limitRestoredNotified = false;
|
51
|
-
editor.execCommand( 'undo' );
|
52
|
-
// lock editor
|
53
|
-
editor.config.Locked = 1;
|
54
|
-
}
|
55
|
-
function limitRestored(editor) {
|
56
|
-
limitRestoredNotified = true;
|
57
|
-
limitReachedNotified = false;
|
58
|
-
|
59
|
-
editor.config.Locked = 0;
|
60
|
-
|
61
|
-
}
|
62
|
-
editor.on('uiSpace', function (event) {
|
63
|
-
if (event.data.space == 'bottom') {
|
64
|
-
event.data.html += '<div id="' + counterId(event.editor) + '" class="cke_wordcount" style="display:block;float:right;margin-top:0px;margin-right:3px;color:black;"' + ' title="' + CKEDITOR.tools.htmlEncode('Words Counter') + '"' + '> </div>'
|
65
|
-
}
|
66
|
-
}, editor, null, 100);
|
67
|
-
editor.on('instanceReady', function (event) {
|
68
|
-
if (editor.config.wordcount_limit != undefined) {
|
69
|
-
limit = editor.config.wordcount_limit
|
70
|
-
}
|
71
|
-
if (editor.config.wordcount_format != undefined) {
|
72
|
-
format = editor.config.wordcount_format
|
73
|
-
}
|
74
|
-
}, editor, null, 100);
|
75
|
-
editor.on('dataReady', function (event) {
|
76
|
-
var count = event.editor.getData().length;
|
77
|
-
if (count > limit) {
|
78
|
-
limitReached(editor)
|
79
|
-
}
|
80
|
-
updateCounter(event.editor)
|
81
|
-
}, editor, null, 100);
|
82
|
-
editor.on('key', function (event) {}, editor, null, 100);
|
83
|
-
editor.on('focus', function (event) {
|
84
|
-
editorHasFocus = true;
|
85
|
-
intervalId = window.setInterval(function (editor) {
|
86
|
-
updateCounter(editor)
|
87
|
-
}, 1000, event.editor)
|
88
|
-
}, editor, null, 100);
|
89
|
-
editor.on('blur', function (event) {
|
90
|
-
editorHasFocus = false;
|
91
|
-
if (intervalId) clearInterval(intervalId)
|
92
|
-
}, editor, null, 100)
|
93
|
-
}
|
94
|
-
}
|
95
|
-
});
|
@@ -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>
|
@@ -1,57 +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>CKEDITOR.appendTo — CKEditor Sample</title>
|
9
|
-
<meta charset="utf-8">
|
10
|
-
<script src="../ckeditor.js"></script>
|
11
|
-
<link rel="stylesheet" href="sample.css">
|
12
|
-
</head>
|
13
|
-
<body>
|
14
|
-
<h1 class="samples">
|
15
|
-
<a href="index.html">CKEditor Samples</a> » Append To Page Element Using JavaScript Code
|
16
|
-
</h1>
|
17
|
-
<div id="section1">
|
18
|
-
<div class="description">
|
19
|
-
<p>
|
20
|
-
<code>CKEDITOR.appendTo</code> is basically to place editors
|
21
|
-
inside existing DOM elements. Unlike <code>CKEDITOR.replace</code>,
|
22
|
-
a target container to be replaced is no longer necessary. A new editor
|
23
|
-
instance is inserted directly wherever it is desired.
|
24
|
-
</p>
|
25
|
-
<pre class="samples">CKEDITOR.appendTo( '<em>container_id</em>',
|
26
|
-
{ /* Configuration options to be used. */ }
|
27
|
-
'Editor content to be used.'
|
28
|
-
);</pre>
|
29
|
-
</div>
|
30
|
-
<script>
|
31
|
-
|
32
|
-
// This call can be placed at any point after the
|
33
|
-
// <textarea>, or inside a <head><script> in a
|
34
|
-
// window.onload event handler.
|
35
|
-
|
36
|
-
// Replace the <textarea id="editor"> with an CKEditor
|
37
|
-
// instance, using default configurations.
|
38
|
-
CKEDITOR.appendTo( 'section1',
|
39
|
-
null,
|
40
|
-
'<p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p>'
|
41
|
-
);
|
42
|
-
|
43
|
-
</script>
|
44
|
-
</div>
|
45
|
-
<br>
|
46
|
-
<div id="footer">
|
47
|
-
<hr>
|
48
|
-
<p>
|
49
|
-
CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
|
50
|
-
</p>
|
51
|
-
<p id="copy">
|
52
|
-
Copyright © 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
|
53
|
-
Knabben. All rights reserved.
|
54
|
-
</p>
|
55
|
-
</div>
|
56
|
-
</body>
|
57
|
-
</html>
|