ckeditor_rails 3.6.4.1 → 4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CONTRIBUTORS +7 -0
- data/README.md +2 -2
- data/Rakefile +1 -2
- data/{vendor → lib}/assets/javascripts/ckeditor-jquery.js +1 -1
- data/{vendor → lib}/assets/javascripts/ckeditor/basepath.js.erb +0 -0
- data/{vendor/assets/javascripts/ckeditor/adapters → lib/assets/javascripts/ckeditor}/jquery.js +0 -0
- data/lib/ckeditor-rails/source_file.rb +56 -97
- data/lib/ckeditor-rails/version.rb +2 -2
- data/lib/ckeditor_rails.rb +1 -0
- data/vendor/assets/images/ckeditor/{images → plugins/fakeobjects/images}/spacer.gif +0 -0
- data/vendor/assets/images/ckeditor/{skins/kama → plugins/image}/images/noimage.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/link/images/anchor.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/magicline/images/icon.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/embarrassed_smile.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/tongue_smile.gif +0 -0
- data/vendor/assets/{javascripts → images}/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
- data/vendor/assets/{javascripts → images}/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
- data/vendor/assets/{javascripts → images}/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
- data/vendor/assets/images/ckeditor/skins/moono/icons.png +0 -0
- data/vendor/assets/images/ckeditor/skins/moono/images/arrow.png +0 -0
- data/vendor/assets/images/ckeditor/skins/moono/images/close.png +0 -0
- data/vendor/assets/images/ckeditor/skins/moono/images/mini.png +0 -0
- data/vendor/assets/javascripts/ckeditor/{LICENSE.html → LICENSE.md} +26 -89
- data/vendor/assets/javascripts/ckeditor/build-config.js +158 -0
- data/vendor/assets/javascripts/ckeditor/ckeditor.js +847 -152
- data/vendor/assets/javascripts/ckeditor/config.js +10 -11
- data/vendor/assets/javascripts/ckeditor/lang/af.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/ar.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/bg.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/bn.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/bs.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/ca.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/cs.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/cy.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/da.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/de.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/el.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/en-au.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/en-ca.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/en-gb.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/en.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/eo.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/es.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/et.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/eu.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/fa.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/fi.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/fo.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/fr-ca.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/fr.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/gl.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/gu.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/he.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/hi.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/hr.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/hu.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/is.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/it.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/ja.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/ka.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/km.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/ko.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/ku.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/lt.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/lv.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/mk.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/mn.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/ms.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/nb.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/nl.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/no.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/pl.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/pt-br.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/pt.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/ro.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/ru.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/sk.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/sl.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/sr-latn.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/sr.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/sv.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/th.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/tr.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/ug.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/uk.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/vi.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/zh-cn.js +2 -3
- data/vendor/assets/javascripts/ckeditor/lang/zh.js +2 -3
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +10 -7
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +6 -6
- data/vendor/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +11 -7
- data/vendor/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +13 -7
- data/vendor/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +4 -4
- data/vendor/assets/javascripts/ckeditor/plugins/div/dialogs/div.js +9 -8
- data/vendor/assets/javascripts/ckeditor/plugins/find/dialogs/find.js +24 -10
- data/vendor/assets/javascripts/ckeditor/plugins/flash/dialogs/flash.js +23 -9
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/button.js +8 -6
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +8 -6
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/form.js +8 -6
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +8 -6
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/radio.js +8 -6
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/select.js +20 -9
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +8 -6
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +10 -6
- data/vendor/assets/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +10 -7
- data/vendor/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +41 -13
- data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +8 -6
- data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +36 -12
- data/vendor/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +10 -7
- data/vendor/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +30 -11
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +10 -7
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ca.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cs.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cy.js +14 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/el.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eo.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/et.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fa.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fi.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/he.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hr.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/it.js +14 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ku.js +14 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lv.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nb.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nl.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/no.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sk.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tr.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ug.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +14 -7
- data/vendor/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +20 -9
- data/vendor/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +16 -8
- data/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js +10 -7
- data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/default.js +6 -6
- data/vendor/assets/javascripts/ckeditor/styles.js +112 -0
- data/vendor/assets/stylesheets/ckeditor/contents.css +72 -4
- data/vendor/assets/stylesheets/ckeditor/plugins/templates/dialogs/templates.css +84 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/dialog.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/dialog_ie.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/dialog_ie7.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/dialog_ie8.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/dialog_opera.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/editor.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/editor_gecko.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/editor_ie.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/editor_ie7.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/editor_ie8.css +5 -0
- metadata +99 -220
- data/vendor/assets/images/ckeditor/plugins/link/images/anchor.gif +0 -0
- data/vendor/assets/images/ckeditor/skins/kama/icons.png +0 -0
- data/vendor/assets/images/ckeditor/skins/kama/icons_rtl.png +0 -0
- data/vendor/assets/images/ckeditor/skins/kama/images/dialog_sides.gif +0 -0
- data/vendor/assets/images/ckeditor/skins/kama/images/dialog_sides.png +0 -0
- data/vendor/assets/images/ckeditor/skins/kama/images/dialog_sides_rtl.png +0 -0
- data/vendor/assets/images/ckeditor/skins/kama/images/mini.gif +0 -0
- data/vendor/assets/images/ckeditor/skins/kama/images/sprites.png +0 -0
- data/vendor/assets/images/ckeditor/skins/kama/images/sprites_ie6.png +0 -0
- data/vendor/assets/images/ckeditor/skins/kama/images/toolbar_start.gif +0 -0
- data/vendor/assets/images/ckeditor/skins/office2003/icons.png +0 -0
- data/vendor/assets/images/ckeditor/skins/office2003/icons_rtl.png +0 -0
- data/vendor/assets/images/ckeditor/skins/office2003/images/dialog_sides.gif +0 -0
- data/vendor/assets/images/ckeditor/skins/office2003/images/dialog_sides.png +0 -0
- data/vendor/assets/images/ckeditor/skins/office2003/images/dialog_sides_rtl.png +0 -0
- data/vendor/assets/images/ckeditor/skins/office2003/images/mini.gif +0 -0
- data/vendor/assets/images/ckeditor/skins/office2003/images/noimage.png +0 -0
- data/vendor/assets/images/ckeditor/skins/office2003/images/sprites.png +0 -0
- data/vendor/assets/images/ckeditor/skins/office2003/images/sprites_ie6.png +0 -0
- data/vendor/assets/images/ckeditor/skins/v2/icons.png +0 -0
- data/vendor/assets/images/ckeditor/skins/v2/icons_rtl.png +0 -0
- data/vendor/assets/images/ckeditor/skins/v2/images/dialog_sides.gif +0 -0
- data/vendor/assets/images/ckeditor/skins/v2/images/dialog_sides.png +0 -0
- data/vendor/assets/images/ckeditor/skins/v2/images/dialog_sides_rtl.png +0 -0
- data/vendor/assets/images/ckeditor/skins/v2/images/mini.gif +0 -0
- data/vendor/assets/images/ckeditor/skins/v2/images/noimage.png +0 -0
- data/vendor/assets/images/ckeditor/skins/v2/images/sprites.png +0 -0
- data/vendor/assets/images/ckeditor/skins/v2/images/sprites_ie6.png +0 -0
- data/vendor/assets/images/ckeditor/skins/v2/images/toolbar_start.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/ckeditor_basic.js +0 -8
- data/vendor/assets/javascripts/ckeditor/lang/_languages.js +0 -6
- data/vendor/assets/javascripts/ckeditor/lang/_translationstatus.txt +0 -64
- data/vendor/assets/javascripts/ckeditor/lang/id.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/_translationstatus.txt +0 -25
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/cs.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/cy.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/da.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/de.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/el.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/en.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/eo.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/fa.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/fi.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/fr.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/gu.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/he.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/it.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/mk.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/nb.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/nl.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/no.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/pt-br.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/ro.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/tr.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/ug.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/vi.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/zh-cn.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/adobeair/plugin.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/ajax/plugin.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/autogrow/plugin.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/bbcode/plugin.js +0 -9
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/_translationstatus.txt +0 -28
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/bg.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/cs.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/cy.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/da.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/de.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/el.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/en.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/eo.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/et.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/fa.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/fi.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/fr.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/gu.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/he.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/hr.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/it.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/nb.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/nl.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/no.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/pl.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/pt-br.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/tr.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/ug.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/uk.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/vi.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/zh-cn.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/plugin.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/dialogs/docprops.js +0 -10
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/plugin.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/iframedialog/plugin.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/pastetext/dialogs/pastetext.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/dialogs/placeholder.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/_translationstatus.txt +0 -27
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/bg.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/cs.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/cy.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/da.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/de.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/el.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/en.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/eo.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/et.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/fa.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/fi.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/fr.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/he.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/hr.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/it.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/nb.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/nl.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/no.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/pl.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/pt-br.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/tr.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/ug.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/uk.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/vi.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/zh-cn.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/placeholder.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/plugin.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/preview/preview.html +0 -10
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/options.js +0 -8
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/toolbar.css +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/_translationstatus.txt +0 -22
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/cs.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/cy.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/de.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/el.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/en.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/eo.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/et.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/fa.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/fi.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/fr.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/he.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/hr.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/it.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/nb.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/nl.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/no.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/pt-br.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/tr.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/ug.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/zh-cn.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/styles/styles/default.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/stylesheetparser/plugin.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/tableresize/plugin.js +0 -7
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/dialogs/uicolor.js +0 -7
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/_translationstatus.txt +0 -28
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/bg.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/cs.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/cy.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/da.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/de.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/el.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/en.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/eo.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/et.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/fa.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/fi.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/fr.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/he.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/hr.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/it.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/mk.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/nb.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/nl.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/no.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/pl.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/pt-br.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/tr.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/ug.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/uk.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/vi.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/zh-cn.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/plugin.js +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/uicolor.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/yui/assets/hue_bg.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/yui/assets/picker_mask.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/yui/assets/yui.css +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/yui/yui.js +0 -76
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +0 -49
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +0 -52
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css +0 -6
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +0 -7
- data/vendor/assets/javascripts/ckeditor/plugins/xml/plugin.js +0 -6
- data/vendor/assets/javascripts/ckeditor/skins/kama/skin.js +0 -7
- data/vendor/assets/javascripts/ckeditor/skins/office2003/skin.js +0 -6
- data/vendor/assets/javascripts/ckeditor/skins/v2/skin.js +0 -6
- data/vendor/assets/javascripts/ckeditor/themes/default/theme.js +0 -8
- data/vendor/assets/stylesheets/ckeditor/skins/kama/dialog.css +0 -10
- data/vendor/assets/stylesheets/ckeditor/skins/kama/editor.css +0 -13
- data/vendor/assets/stylesheets/ckeditor/skins/kama/templates.css +0 -6
- data/vendor/assets/stylesheets/ckeditor/skins/office2003/dialog.css +0 -10
- data/vendor/assets/stylesheets/ckeditor/skins/office2003/editor.css +0 -14
- data/vendor/assets/stylesheets/ckeditor/skins/office2003/templates.css +0 -6
- data/vendor/assets/stylesheets/ckeditor/skins/v2/dialog.css +0 -9
- data/vendor/assets/stylesheets/ckeditor/skins/v2/editor.css +0 -13
- data/vendor/assets/stylesheets/ckeditor/skins/v2/templates.css +0 -6
data/CONTRIBUTORS
ADDED
data/README.md
CHANGED
@@ -10,7 +10,7 @@ The `ckeditor_rails` gem integrates the `CKEditor` with the Rails asset pipeline
|
|
10
10
|
|
11
11
|
Include `ckeditor_rails` in Gemefile
|
12
12
|
|
13
|
-
gem 'ckeditor_rails'
|
13
|
+
gem 'ckeditor_rails'
|
14
14
|
|
15
15
|
Then run `bundle install`
|
16
16
|
|
@@ -55,7 +55,7 @@ Maintain `ckeditor_rails` gem with `Rake` commands.
|
|
55
55
|
|
56
56
|
Update origin CKEditor source files.
|
57
57
|
|
58
|
-
rake update-ckeditor VERSION=
|
58
|
+
rake update-ckeditor VERSION=4.0
|
59
59
|
|
60
60
|
Publish gem.
|
61
61
|
|
data/Rakefile
CHANGED
File without changes
|
data/{vendor/assets/javascripts/ckeditor/adapters → lib/assets/javascripts/ckeditor}/jquery.js
RENAMED
File without changes
|
@@ -5,18 +5,17 @@ class SourceFile < Thor
|
|
5
5
|
source_root 'tmp'
|
6
6
|
|
7
7
|
desc "fetch VERSION", "fetch source files from http://ckeditor.com/"
|
8
|
-
def fetch
|
9
|
-
download_url = file_url
|
10
|
-
|
11
|
-
archive_file = "#{extract_path}/#{filename(version)}"
|
8
|
+
def fetch version
|
9
|
+
download_url = file_url version
|
10
|
+
archive_file = "#{source_root}/#{filename(version)}"
|
12
11
|
|
13
12
|
in_root do
|
14
|
-
say_status
|
15
|
-
get
|
16
|
-
if File.exist?
|
17
|
-
FileUtils.mkdir_p
|
18
|
-
extract
|
19
|
-
FileUtils.rm_rf
|
13
|
+
say_status " fetch", archive_file, :green
|
14
|
+
get download_url, archive_file
|
15
|
+
if File.exist? archive_file
|
16
|
+
FileUtils.mkdir_p source_root
|
17
|
+
extract archive_file, source_root
|
18
|
+
FileUtils.rm_rf archive_file
|
20
19
|
end
|
21
20
|
end
|
22
21
|
|
@@ -24,117 +23,77 @@ class SourceFile < Thor
|
|
24
23
|
gsub_file "ckeditor-rails/version.rb", /VERSION\s=\s"(\d|\.)+"$/ do |match|
|
25
24
|
%Q{VERSION = "#{version}"}
|
26
25
|
end
|
27
|
-
end if File.exist?
|
26
|
+
end if File.exist? source_root
|
28
27
|
end
|
29
28
|
|
30
|
-
desc "move", "move source files
|
29
|
+
desc "move", "move source files"
|
31
30
|
def move
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
directory "ckeditor/lang", "javascripts/ckeditor/lang"
|
42
|
-
|
43
|
-
copy_file "ckeditor/LICENSE.html", "javascripts/ckeditor/LICENSE.html"
|
44
|
-
|
45
|
-
directory "ckeditor/plugins", "javascripts/ckeditor/plugins"
|
46
|
-
move_image_files_of_plugins
|
47
|
-
|
48
|
-
copy_image_files_of_skin(%w{kama office2003 v2})
|
49
|
-
|
50
|
-
directory "ckeditor/themes", "javascripts/ckeditor/themes"
|
51
|
-
end
|
52
|
-
|
53
|
-
desc "fix_css", "fix some css caused precompilation error"
|
54
|
-
def fix_css
|
55
|
-
self.destination_root = "vendor/assets"
|
56
|
-
inside destination_root do
|
57
|
-
skin_names = %w{kama office2003 v2}
|
58
|
-
skin_names.each do |name|
|
59
|
-
gsub_file "stylesheets/ckeditor/skins/#{name}/dialog.css", /\+margin/, "margin"
|
60
|
-
gsub_file "stylesheets/ckeditor/skins/#{name}/editor.css", /filter\:\;/, ""
|
31
|
+
FileUtils.rm_rf destination_root
|
32
|
+
|
33
|
+
[
|
34
|
+
['js', 'javascripts'],
|
35
|
+
['css', 'stylesheets'],
|
36
|
+
].each do |(type, asset_path)|
|
37
|
+
Dir["#{source_root}/ckeditor/*.#{type}"].each do |file|
|
38
|
+
file = File.basename file
|
39
|
+
copy_file "ckeditor/#{file}", "#{asset_path}/ckeditor/#{file}"
|
61
40
|
end
|
62
|
-
gsub_file "stylesheets/ckeditor/skins/office2003/editor.css", /\!height\:28px\;\!line-height\:28px\;/, ""
|
63
|
-
gsub_file "javascripts/ckeditor/plugins/uicolor/yui/assets/yui.css", /\*html/, "* html"
|
64
41
|
end
|
65
|
-
end
|
66
|
-
|
67
|
-
desc 'fix_js', 'fix some js caused execution error'
|
68
|
-
def fix_js
|
69
|
-
self.destination_root = "vendor/assets"
|
70
|
-
inside destination_root do
|
71
|
-
# Change the way IE detected to avoid compilation bug in production
|
72
|
-
%w{ckeditor ckeditor_basic}.each do |name|
|
73
|
-
gsub_file "javascripts/ckeditor/#{name}.js", "/*@cc_on!@*/false", "b.indexOf('msie')>-1"
|
74
|
-
end
|
75
|
-
end
|
76
|
-
end
|
77
42
|
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
skin_names = %w{kama office2003 v2}
|
83
|
-
skin_names.each do |name|
|
84
|
-
path = "stylesheets/ckeditor/skins/#{name}"
|
85
|
-
run("sass-convert -F css -T sass #{path}/dialog.css #{path}/dialog.css.sass")
|
86
|
-
run("sass-convert -F css -T sass #{path}/editor.css #{path}/editor.css.sass")
|
87
|
-
run("sass-convert -F css -T sass #{path}/templates.css #{path}/templates.css.sass")
|
88
|
-
remove_file "#{path}/dialog.css"
|
89
|
-
remove_file "#{path}/editor.css"
|
90
|
-
remove_file "#{path}/templates.css"
|
91
|
-
end
|
92
|
-
end
|
43
|
+
copy_file "ckeditor/LICENSE.md", "javascripts/ckeditor/LICENSE.md"
|
44
|
+
directory "ckeditor/lang", "javascripts/ckeditor/lang"
|
45
|
+
copy_plugins
|
46
|
+
copy_skins
|
93
47
|
end
|
94
48
|
|
95
49
|
desc "clean", "clean up useless files"
|
96
50
|
def cleanup
|
97
|
-
|
98
|
-
FileUtils.rm_rf(self.class.source_root)
|
51
|
+
FileUtils.rm_rf source_root
|
99
52
|
end
|
100
53
|
|
101
54
|
protected
|
102
55
|
|
103
|
-
def file_url
|
56
|
+
def file_url version
|
104
57
|
"http://download.cksource.com/CKEditor/CKEditor/CKEditor%20#{version}/#{filename(version)}"
|
105
58
|
end
|
106
59
|
|
107
|
-
def filename
|
108
|
-
"ckeditor_#{version}.tar.gz"
|
60
|
+
def filename version
|
61
|
+
"ckeditor_#{version}_full.tar.gz"
|
109
62
|
end
|
110
63
|
|
111
|
-
def extract
|
112
|
-
system
|
64
|
+
def extract file_path, output_path
|
65
|
+
system "tar -x -f '#{file_path}' -C '#{output_path}' ckeditor"
|
113
66
|
end
|
114
67
|
|
115
|
-
def
|
116
|
-
|
117
|
-
|
118
|
-
if file =~ /\.(png|gif)$/
|
119
|
-
filename = file.sub("#{destination_root}/javascripts/", '')
|
120
|
-
destination_path = filename.sub(/\/\w+\.\w+$/, '')
|
121
|
-
in_root do
|
122
|
-
FileUtils.mkdir_p("#{destination_root}/images/#{destination_path}")
|
123
|
-
FileUtils.mv(file, "#{destination_root}/images/#{filename}")
|
124
|
-
end
|
125
|
-
end
|
68
|
+
def copy_plugins
|
69
|
+
Dir["#{source_root}/ckeditor/plugins/*"].each do |plugin|
|
70
|
+
copy_all "plugins/#{File.basename plugin}"
|
126
71
|
end
|
127
72
|
end
|
128
73
|
|
129
|
-
def
|
130
|
-
|
131
|
-
|
132
|
-
copy_file "ckeditor/skins/#{name}/editor.css", "stylesheets/ckeditor/skins/#{name}/editor.css"
|
133
|
-
copy_file "ckeditor/skins/#{name}/icons.png", "images/ckeditor/skins/#{name}/icons.png"
|
134
|
-
copy_file "ckeditor/skins/#{name}/icons_rtl.png", "images/ckeditor/skins/#{name}/icons_rtl.png"
|
135
|
-
directory "ckeditor/skins/#{name}/images", "images/ckeditor/skins/#{name}/images"
|
136
|
-
copy_file "ckeditor/skins/#{name}/skin.js", "javascripts/ckeditor/skins/#{name}/skin.js"
|
137
|
-
copy_file "ckeditor/skins/#{name}/templates.css", "stylesheets/ckeditor/skins/#{name}/templates.css"
|
74
|
+
def copy_skins
|
75
|
+
Dir["#{source_root}/ckeditor/skins/*"].each do |skin|
|
76
|
+
copy_all "skins/#{File.basename skin}"
|
138
77
|
end
|
139
78
|
end
|
79
|
+
|
80
|
+
def copy_all path
|
81
|
+
copy_type path, 'css', 'stylesheets'
|
82
|
+
copy_type path, 'js', 'javascripts'
|
83
|
+
copy_type path, 'png', 'images'
|
84
|
+
copy_type path, 'gif', 'images'
|
85
|
+
copy_type path, 'jpg', 'images'
|
86
|
+
end
|
87
|
+
|
88
|
+
def copy_type path, type, asset_path
|
89
|
+
files = Dir["#{source_root}/ckeditor/#{path}/**/*.#{type}"]
|
90
|
+
files.each do |file|
|
91
|
+
file = file.sub /^#{Regexp.escape source_root}\//, ''
|
92
|
+
copy_file file, "#{asset_path}/#{file}"
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
def source_root
|
97
|
+
self.class.source_root
|
98
|
+
end
|
140
99
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'ckeditor-rails'
|
File without changes
|
File without changes
|
Binary file
|
Binary file
|
data/vendor/assets/{javascripts → images}/ckeditor/plugins/templates/templates/images/template1.gif
RENAMED
File without changes
|
data/vendor/assets/{javascripts → images}/ckeditor/plugins/templates/templates/images/template2.gif
RENAMED
File without changes
|
data/vendor/assets/{javascripts → images}/ckeditor/plugins/templates/templates/images/template3.gif
RENAMED
File without changes
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,8 +1,3 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
<!--
|
4
|
-
== BEGIN TEXT ONLY VERSION ==
|
5
|
-
|
6
1
|
Software License Agreement
|
7
2
|
==========================
|
8
3
|
|
@@ -28,10 +23,12 @@ You are not required to, but if you want to explicitly declare the
|
|
28
23
|
license you have chosen to be bound to when using, reproducing,
|
29
24
|
modifying and distributing this software, just include a text file
|
30
25
|
titled "legal.txt" in your version of this software, indicating your
|
31
|
-
license choice.
|
26
|
+
license choice. In any case, your choice will not restrict any
|
27
|
+
recipient of your version of this software to use, reproduce, modify
|
28
|
+
and distribute this software under any of the above licenses.
|
32
29
|
|
33
30
|
Sources of Intellectual Property Included in CKEditor
|
34
|
-
|
31
|
+
-----------------------------------------------------
|
35
32
|
|
36
33
|
Where not otherwise indicated, all CKEditor content is authored by
|
37
34
|
CKSource engineers and consists of CKSource-owned intellectual
|
@@ -39,24 +36,26 @@ property. In some specific instances, CKEditor will incorporate work
|
|
39
36
|
done by developers outside of CKSource with their express permission.
|
40
37
|
|
41
38
|
Trademarks
|
42
|
-
|
39
|
+
----------
|
43
40
|
|
44
41
|
CKEditor is a trademark of CKSource - Frederico Knabben. All other brand
|
45
42
|
and product names are trademarks, registered trademarks or service
|
46
43
|
marks of their respective holders.
|
47
44
|
|
45
|
+
---
|
46
|
+
|
48
47
|
Appendix A: The GPL License
|
49
|
-
|
48
|
+
---------------------------
|
50
49
|
|
51
|
-
|
52
|
-
|
50
|
+
GNU GENERAL PUBLIC LICENSE
|
51
|
+
Version 2, June 1991
|
53
52
|
|
54
53
|
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
55
54
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
56
55
|
Everyone is permitted to copy and distribute verbatim copies
|
57
56
|
of this license document, but changing it is not allowed.
|
58
57
|
|
59
|
-
|
58
|
+
Preamble
|
60
59
|
|
61
60
|
The licenses for most software are designed to take away your
|
62
61
|
freedom to share and change it. By contrast, the GNU General Public
|
@@ -106,8 +105,8 @@ patent must be licensed for everyone's free use or not licensed at all.
|
|
106
105
|
The precise terms and conditions for copying, distribution and
|
107
106
|
modification follow.
|
108
107
|
|
109
|
-
|
110
|
-
|
108
|
+
GNU GENERAL PUBLIC LICENSE
|
109
|
+
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
111
110
|
|
112
111
|
0. This License applies to any program or other work which contains
|
113
112
|
a notice placed by the copyright holder saying it may be distributed
|
@@ -305,7 +304,7 @@ make exceptions for this. Our decision will be guided by the two goals
|
|
305
304
|
of preserving the free status of all derivatives of our free software and
|
306
305
|
of promoting the sharing and reuse of software generally.
|
307
306
|
|
308
|
-
|
307
|
+
NO WARRANTY
|
309
308
|
|
310
309
|
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
311
310
|
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
@@ -327,14 +326,14 @@ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
|
327
326
|
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
328
327
|
POSSIBILITY OF SUCH DAMAGES.
|
329
328
|
|
330
|
-
|
329
|
+
END OF TERMS AND CONDITIONS
|
331
330
|
|
332
331
|
|
333
332
|
Appendix B: The LGPL License
|
334
|
-
|
333
|
+
----------------------------
|
335
334
|
|
336
|
-
|
337
|
-
|
335
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
336
|
+
Version 2.1, February 1999
|
338
337
|
|
339
338
|
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
340
339
|
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
@@ -345,7 +344,7 @@ Appendix B: The LGPL License
|
|
345
344
|
as the successor of the GNU Library Public License, version 2, hence
|
346
345
|
the version number 2.1.]
|
347
346
|
|
348
|
-
|
347
|
+
Preamble
|
349
348
|
|
350
349
|
The licenses for most software are designed to take away your
|
351
350
|
freedom to share and change it. By contrast, the GNU General Public
|
@@ -447,8 +446,8 @@ modification follow. Pay close attention to the difference between a
|
|
447
446
|
former contains code derived from the library, whereas the latter must
|
448
447
|
be combined with the library in order to run.
|
449
448
|
|
450
|
-
|
451
|
-
|
449
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
450
|
+
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
452
451
|
|
453
452
|
0. This License Agreement applies to any software library or other
|
454
453
|
program which contains a notice placed by the copyright holder or
|
@@ -767,7 +766,7 @@ decision will be guided by the two goals of preserving the free status
|
|
767
766
|
of all derivatives of our free software and of promoting the sharing
|
768
767
|
and reuse of software generally.
|
769
768
|
|
770
|
-
|
769
|
+
NO WARRANTY
|
771
770
|
|
772
771
|
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
773
772
|
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
@@ -790,16 +789,14 @@ FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
|
790
789
|
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
791
790
|
DAMAGES.
|
792
791
|
|
793
|
-
|
792
|
+
END OF TERMS AND CONDITIONS
|
794
793
|
|
795
794
|
|
796
795
|
Appendix C: The MPL License
|
797
|
-
|
796
|
+
---------------------------
|
798
797
|
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
===============
|
798
|
+
MOZILLA PUBLIC LICENSE
|
799
|
+
Version 1.1
|
803
800
|
|
804
801
|
1. Definitions.
|
805
802
|
|
@@ -1265,63 +1262,3 @@ EXHIBIT A -Mozilla Public License.
|
|
1265
1262
|
the notices in the Source Code files of the Original Code. You should
|
1266
1263
|
use the text of this Exhibit A rather than the text found in the
|
1267
1264
|
Original Code Source Code for Your Modifications.]
|
1268
|
-
|
1269
|
-
== END TEXT ONLY VERSION ==
|
1270
|
-
-->
|
1271
|
-
<html xmlns="http://www.w3.org/1999/xhtml">
|
1272
|
-
<head>
|
1273
|
-
<title>License - CKEditor</title>
|
1274
|
-
</head>
|
1275
|
-
<body>
|
1276
|
-
<h1>
|
1277
|
-
Software License Agreement
|
1278
|
-
</h1>
|
1279
|
-
<p>
|
1280
|
-
<strong>CKEditor™</strong> - The text editor for Internet™ - <a href="http://ckeditor.com">
|
1281
|
-
http://ckeditor.com</a><br />
|
1282
|
-
Copyright © 2003-2012, <a href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved.
|
1283
|
-
</p>
|
1284
|
-
<p>
|
1285
|
-
Licensed under the terms of any of the following licenses at your choice:
|
1286
|
-
</p>
|
1287
|
-
<ul>
|
1288
|
-
<li><a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a> Version
|
1289
|
-
2 or later (the "GPL");</li>
|
1290
|
-
<li><a href="http://www.gnu.org/licenses/lgpl.html">GNU Lesser General Public License</a>
|
1291
|
-
Version 2.1 or later (the "LGPL");</li>
|
1292
|
-
<li><a href="http://www.mozilla.org/MPL/MPL-1.1.html">Mozilla Public License</a> Version
|
1293
|
-
1.1 or later (the "MPL").</li>
|
1294
|
-
</ul>
|
1295
|
-
<p>
|
1296
|
-
You are not required to, but if you want to explicitly declare the license you have
|
1297
|
-
chosen to be bound to when using, reproducing, modifying and distributing this software,
|
1298
|
-
just include a text file titled "LEGAL" in your version of this software, indicating
|
1299
|
-
your license choice. In any case, your choice will not restrict any recipient of
|
1300
|
-
your version of this software to use, reproduce, modify and distribute this software
|
1301
|
-
under any of the above licenses.
|
1302
|
-
</p>
|
1303
|
-
<h2>
|
1304
|
-
Sources of Intellectual Property Included in CKEditor
|
1305
|
-
</h2>
|
1306
|
-
<p>
|
1307
|
-
Where not otherwise indicated, all CKEditor content is authored by CKSource engineers
|
1308
|
-
and consists of CKSource-owned intellectual property. In some specific instances,
|
1309
|
-
CKEditor will incorporate work done by developers outside of CKSource with their
|
1310
|
-
express permission.
|
1311
|
-
</p>
|
1312
|
-
<p>
|
1313
|
-
<a href="http://developer.yahoo.com/yui/yuitest/">YUI Test</a>: At _source/tests/yuitest.js
|
1314
|
-
can be found part of the source code of YUI, which is licensed under the terms of
|
1315
|
-
the <a href="http://developer.yahoo.com/yui/license.txt">BSD License</a>. YUI is
|
1316
|
-
Copyright © 2008, Yahoo! Inc.
|
1317
|
-
</p>
|
1318
|
-
<h2>
|
1319
|
-
Trademarks
|
1320
|
-
</h2>
|
1321
|
-
<p>
|
1322
|
-
CKEditor is a trademark of CKSource - Frederico Knabben. All other brand and product
|
1323
|
-
names are trademarks, registered trademarks or service marks of their respective
|
1324
|
-
holders.
|
1325
|
-
</p>
|
1326
|
-
</body>
|
1327
|
-
</html>
|