frontendeditor_ckeditor 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +29 -0
- data/Rakefile +1 -0
- data/lib/frontendeditor_ckeditor/engine.rb +8 -0
- data/lib/frontendeditor_ckeditor/version.rb +3 -0
- data/lib/frontendeditor_ckeditor.rb +3 -0
- data/vendor/assets/javascripts/ckeditor/API-CHANGES.md +195 -0
- data/vendor/assets/javascripts/ckeditor/LICENSE.md +1274 -0
- data/vendor/assets/javascripts/ckeditor/ckeditor.js +847 -0
- data/vendor/assets/javascripts/ckeditor/ckeditor_actions.coffee +37 -0
- data/vendor/assets/javascripts/ckeditor/config.js +11 -0
- data/vendor/assets/javascripts/ckeditor/contents.css +25 -0
- data/vendor/assets/javascripts/ckeditor/init_ckeditor.coffee +6 -0
- data/vendor/assets/javascripts/ckeditor/lang/_languages.js +7 -0
- data/vendor/assets/javascripts/ckeditor/lang/_translationstatus.txt +63 -0
- data/vendor/assets/javascripts/ckeditor/lang/af.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ar.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/bg.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/bn.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/bs.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ca.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/cs.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/cy.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/da.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/de.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/el.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/en-au.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/en-ca.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/en-gb.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/en.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/eo.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/es.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/et.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/eu.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/fa.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/fi.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/fo.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/fr-ca.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/fr.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/gl.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/gu.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/he.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/hi.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/hr.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/hu.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/is.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/it.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ja.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ka.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/km.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ko.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/lt.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/lv.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/mk.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/mn.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ms.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/nb.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/nl.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/no.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/pl.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/pt-br.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/pt.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ro.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ru.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/sk.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/sl.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/sr-latn.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/sr.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/sv.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/th.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/tr.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ug.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/uk.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/vi.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/zh-cn.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/zh.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +25 -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/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/it.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/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/pt-br.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/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/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 -0
- data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/adobeair/plugin.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/ajax/plugin.js +6 -0
- data/vendor/assets/javascripts/ckeditor/plugins/autogrow/plugin.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/bbcode/plugin.js +22 -0
- data/vendor/assets/javascripts/ckeditor/plugins/bbcode/samples/bbcode.html +172 -0
- data/vendor/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/clipboard/samples/clipboard.html +210 -0
- data/vendor/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/_translationstatus.txt +27 -0
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/bg.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/cs.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/cy.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/da.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/de.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/el.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/en.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/eo.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/et.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/fa.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/fi.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/fr.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/gu.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/he.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/hr.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/it.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/nb.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/nl.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/no.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/pl.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/tr.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/ug.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/uk.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/vi.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/zh-cn.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/devtools/plugin.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +4 -0
- data/vendor/assets/javascripts/ckeditor/plugins/dialogadvtab/plugin.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/div/dialogs/div.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/divarea/plugin.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/dialogs/docprops.js +25 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/icons/docprops-rtl.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/icons/docprops.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/af.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/ar.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/bg.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/bn.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/bs.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/ca.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/cs.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/cy.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/da.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/de.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/el.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/en-au.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/en-ca.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/en-gb.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/en.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/eo.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/es.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/et.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/eu.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/fa.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/fi.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/fo.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/fr-ca.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/fr.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/gl.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/gu.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/he.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/hi.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/hr.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/hu.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/is.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/it.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/ja.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/ka.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/km.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/ko.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/lt.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/lv.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/mk.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/mn.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/ms.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/nb.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/nl.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/no.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/pl.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/pt-br.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/pt.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/ro.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/ru.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/sk.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/sl.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/sr-latn.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/sr.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/sv.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/th.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/tr.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/ug.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/uk.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/vi.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/zh-cn.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/zh.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/docprops/plugin.js +6 -0
- data/vendor/assets/javascripts/ckeditor/plugins/fakeobjects/images/spacer.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/find/dialogs/find.js +25 -0
- data/vendor/assets/javascripts/ckeditor/plugins/flash/dialogs/flash.js +23 -0
- data/vendor/assets/javascripts/ckeditor/plugins/flash/images/placeholder.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/button.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/form.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/radio.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/select.js +20 -0
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/icons.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/iframe/images/placeholder.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/iframedialog/plugin.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +41 -0
- data/vendor/assets/javascripts/ckeditor/plugins/image/images/noimage.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +36 -0
- data/vendor/assets/javascripts/ckeditor/plugins/link/images/anchor.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/magicline/images/icon.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/magicline/samples/sample.html +544 -0
- data/vendor/assets/javascripts/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +30 -0
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/dialogs/placeholder.js +6 -0
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/icons/createplaceholder.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/icons/editplaceholder.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/_translationstatus.txt +26 -0
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/bg.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/cs.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/cy.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/da.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/de.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/el.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/en.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/eo.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/et.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/fa.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/fi.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/fr.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/he.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/hr.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/it.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/nb.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/nl.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/no.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/pl.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/tr.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/ug.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/uk.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/vi.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/zh-cn.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/placeholder/plugin.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/preview/preview.html +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/options.js +19 -0
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/toolbar.css +71 -0
- data/vendor/assets/javascripts/ckeditor/plugins/selectionmark/plugin.js +9 -0
- 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 +10 -0
- 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/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/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/specialchar/dialogs/lang/_translationstatus.txt +20 -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/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/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/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 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylesheetparser/plugin.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +20 -0
- data/vendor/assets/javascripts/ckeditor/plugins/tableresize/plugin.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +18 -0
- data/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.css +84 -0
- data/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/default.js +6 -0
- 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/toolbar/samples/toolbar.html +80 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/dialogs/uicolor.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/icons/uicolor.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/_translationstatus.txt +27 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/bg.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/cs.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/cy.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/da.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/de.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/el.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/en.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/eo.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/et.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/fa.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/fi.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/fr.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/he.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/hr.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/it.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/mk.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/nb.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/nl.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/no.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/pl.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/tr.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/ug.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/uk.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/vi.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/zh-cn.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/plugin.js +5 -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 +15 -0
- data/vendor/assets/javascripts/ckeditor/plugins/uicolor/yui/yui.js +225 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +49 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +52 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css +82 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/xml/plugin.js +7 -0
- data/vendor/assets/javascripts/ckeditor/samples/ajax.html +82 -0
- data/vendor/assets/javascripts/ckeditor/samples/api.html +210 -0
- data/vendor/assets/javascripts/ckeditor/samples/apidialog.html +164 -0
- data/vendor/assets/javascripts/ckeditor/samples/appendto.html +92 -0
- data/vendor/assets/javascripts/ckeditor/samples/assets/apidialog/my_dialog.js +5 -0
- data/vendor/assets/javascripts/ckeditor/samples/assets/inlineall/logo.png +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/assets/outputforflash/outputforflash.fla +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/assets/outputforflash/outputforflash.swf +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/assets/outputforflash/swfobject.js +18 -0
- data/vendor/assets/javascripts/ckeditor/samples/assets/outputxhtml/outputxhtml.css +204 -0
- data/vendor/assets/javascripts/ckeditor/samples/assets/posteddata.php +59 -0
- data/vendor/assets/javascripts/ckeditor/samples/assets/sample.css +3 -0
- data/vendor/assets/javascripts/ckeditor/samples/assets/stylesheetparser/sample.css +70 -0
- data/vendor/assets/javascripts/ckeditor/samples/autogrow.html +96 -0
- data/vendor/assets/javascripts/ckeditor/samples/bbcode.html +106 -0
- data/vendor/assets/javascripts/ckeditor/samples/devtools.html +80 -0
- data/vendor/assets/javascripts/ckeditor/samples/divarea.html +96 -0
- data/vendor/assets/javascripts/ckeditor/samples/divreplace.html +141 -0
- data/vendor/assets/javascripts/ckeditor/samples/enterkey.html +99 -0
- data/vendor/assets/javascripts/ckeditor/samples/fullpage.html +109 -0
- data/vendor/assets/javascripts/ckeditor/samples/index.html +133 -0
- data/vendor/assets/javascripts/ckeditor/samples/inlineall.html +338 -0
- data/vendor/assets/javascripts/ckeditor/samples/inlinebycode.html +138 -0
- data/vendor/assets/javascripts/ckeditor/samples/magicline.html +198 -0
- data/vendor/assets/javascripts/ckeditor/samples/outputforflash.html +246 -0
- data/vendor/assets/javascripts/ckeditor/samples/outputhtml.html +228 -0
- data/vendor/assets/javascripts/ckeditor/samples/outputxhtml.html +217 -0
- data/vendor/assets/javascripts/ckeditor/samples/placeholder.html +69 -0
- data/vendor/assets/javascripts/ckeditor/samples/readonly.html +73 -0
- data/vendor/assets/javascripts/ckeditor/samples/replacebyclass.html +95 -0
- data/vendor/assets/javascripts/ckeditor/samples/replacebycode.html +93 -0
- data/vendor/assets/javascripts/ckeditor/samples/sample.css +261 -0
- data/vendor/assets/javascripts/ckeditor/samples/sample_posteddata.php +16 -0
- data/vendor/assets/javascripts/ckeditor/samples/stylesheetparser.html +77 -0
- data/vendor/assets/javascripts/ckeditor/samples/tabindex.html +80 -0
- data/vendor/assets/javascripts/ckeditor/samples/tableresize.html +101 -0
- data/vendor/assets/javascripts/ckeditor/samples/uicolor.html +137 -0
- data/vendor/assets/javascripts/ckeditor/samples/uilanguages.html +119 -0
- data/vendor/assets/javascripts/ckeditor/styles.js +86 -0
- data/vendor/assets/stylesheets/ckeditor/skins/kama/dialog.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/kama/dialog_ie.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/kama/dialog_ie7.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/kama/dialog_ie8.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/kama/dialog_iequirks.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/kama/dialog_opera.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/kama/editor.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/kama/editor_ie.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/kama/editor_ie7.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/kama/editor_ie8.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/kama/editor_iequirks.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/kama/icons.png +0 -0
- data/vendor/assets/stylesheets/ckeditor/skins/kama/images/dialog_sides.gif +0 -0
- data/vendor/assets/stylesheets/ckeditor/skins/kama/images/dialog_sides.png +0 -0
- data/vendor/assets/stylesheets/ckeditor/skins/kama/images/dialog_sides_rtl.png +0 -0
- data/vendor/assets/stylesheets/ckeditor/skins/kama/images/mini.gif +0 -0
- data/vendor/assets/stylesheets/ckeditor/skins/kama/images/sprites.png +0 -0
- data/vendor/assets/stylesheets/ckeditor/skins/kama/images/sprites_ie6.png +0 -0
- data/vendor/assets/stylesheets/ckeditor/skins/kama/images/toolbar_start.gif +0 -0
- data/vendor/assets/stylesheets/ckeditor/skins/kama/readme.md +26 -0
- metadata +490 -0
@@ -0,0 +1,198 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<!--
|
3
|
+
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
4
|
+
For licensing, see LICENSE.html or http://ckeditor.com/license
|
5
|
+
-->
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>Using Magicline plugin — 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> » Using Magicline plugin
|
16
|
+
</h1>
|
17
|
+
<div class="description">
|
18
|
+
<p>
|
19
|
+
This sample shows the advantages of <strong>Magicline</strong> plugin
|
20
|
+
which is to enhance the editing process. Thanks to this plugin,
|
21
|
+
a number of difficult focus spaces which are inaccessible due to
|
22
|
+
browser issues can now be focused.
|
23
|
+
</p>
|
24
|
+
<p>
|
25
|
+
<strong>Magicline</strong> plugin shows a red line with a handler
|
26
|
+
which, when clicked, inserts a paragraph and allows typing. To see this,
|
27
|
+
focus an editor and move your mouse above the focus space you want
|
28
|
+
to access. The plugin is enabled by default so no additional
|
29
|
+
configuration is necessary.
|
30
|
+
</p>
|
31
|
+
</div>
|
32
|
+
<div>
|
33
|
+
<label for="editor1">
|
34
|
+
Editor 1:
|
35
|
+
</label>
|
36
|
+
<div class="description">
|
37
|
+
<p>
|
38
|
+
This editor uses a default <strong>Magicline</strong> setup.
|
39
|
+
</p>
|
40
|
+
</div>
|
41
|
+
<textarea cols="80" id="editor1" name="editor1" rows="10">
|
42
|
+
<table border="1" cellpadding="1" cellspacing="1" style="width: 100%; ">
|
43
|
+
<tbody>
|
44
|
+
<tr>
|
45
|
+
<td>This table</td>
|
46
|
+
<td>is the</td>
|
47
|
+
<td>very first</td>
|
48
|
+
<td>element of the document.</td>
|
49
|
+
</tr>
|
50
|
+
<tr>
|
51
|
+
<td>We are still</td>
|
52
|
+
<td>able to acces</td>
|
53
|
+
<td>the space before it.</td>
|
54
|
+
<td>
|
55
|
+
<table border="1" cellpadding="1" cellspacing="1" style="width: 100%; ">
|
56
|
+
<tbody>
|
57
|
+
<tr>
|
58
|
+
<td>This table is inside of a cell of another table.</td>
|
59
|
+
</tr>
|
60
|
+
<tr>
|
61
|
+
<td>We can type&nbsp;either before or after it though.</td>
|
62
|
+
</tr>
|
63
|
+
</tbody>
|
64
|
+
</table>
|
65
|
+
</td>
|
66
|
+
</tr>
|
67
|
+
</tbody>
|
68
|
+
</table>
|
69
|
+
|
70
|
+
<p>Two succesive horizontal lines (<tt>HR</tt> tags). We can access the space in between:</p>
|
71
|
+
|
72
|
+
<hr />
|
73
|
+
<hr />
|
74
|
+
<ol>
|
75
|
+
<li>This numbered list...</li>
|
76
|
+
<li>...is a neighbour of a horizontal line...</li>
|
77
|
+
<li>...and another list.</li>
|
78
|
+
</ol>
|
79
|
+
|
80
|
+
<ul>
|
81
|
+
<li>We can type between the lists...</li>
|
82
|
+
<li>...thanks to <strong>Magicline</strong>.</li>
|
83
|
+
</ul>
|
84
|
+
|
85
|
+
<p>Lorem ipsum dolor sit amet dui. Morbi vel turpis. Nullam et leo. Etiam rutrum, urna tellus dui vel tincidunt mattis egestas, justo fringilla vel, massa. Phasellus.</p>
|
86
|
+
|
87
|
+
<p>Quisque iaculis, dui lectus varius vitae, tortor. Proin lacus. Pellentesque ac lacus. Aenean nonummy commodo nec, pede. Etiam blandit risus elit.</p>
|
88
|
+
|
89
|
+
<p>Ut pretium. Vestibulum rutrum in, adipiscing elit. Sed in quam in purus sem vitae pede. Pellentesque bibendum, urna sem vel risus. Vivamus posuere metus. Aliquam gravida iaculis nisl. Nam enim. Aliquam erat ac lacus tellus ac felis.</p>
|
90
|
+
|
91
|
+
<div style="border: 2px dashed green; background: #ddd; text-align: center;">
|
92
|
+
<p>This text is wrapped in a&nbsp;<tt>DIV</tt>&nbsp;element. We can type after this element though.</p>
|
93
|
+
</div>
|
94
|
+
</textarea>
|
95
|
+
<script>
|
96
|
+
|
97
|
+
// This call can be placed at any point after the
|
98
|
+
// <textarea>, or inside a <head><script> in a
|
99
|
+
// window.onload event handler.
|
100
|
+
|
101
|
+
CKEDITOR.replace( 'editor1' );
|
102
|
+
|
103
|
+
</script>
|
104
|
+
</div>
|
105
|
+
<br>
|
106
|
+
<div>
|
107
|
+
<label for="editor2">
|
108
|
+
Editor 2:
|
109
|
+
</label>
|
110
|
+
<div class="description">
|
111
|
+
<p>
|
112
|
+
This editor is using a blue line with slight opacity.
|
113
|
+
</p>
|
114
|
+
<pre class="samples">
|
115
|
+
CKEDITOR.replace( 'editor2', {
|
116
|
+
magicline_color : 'blue',
|
117
|
+
magicline_opacity : .8
|
118
|
+
});</pre>
|
119
|
+
</div>
|
120
|
+
<textarea cols="80" id="editor2" name="editor2" rows="10">
|
121
|
+
<table border="1" cellpadding="1" cellspacing="1" style="width: 100%; ">
|
122
|
+
<tbody>
|
123
|
+
<tr>
|
124
|
+
<td>This table</td>
|
125
|
+
<td>is the</td>
|
126
|
+
<td>very first</td>
|
127
|
+
<td>element of the document.</td>
|
128
|
+
</tr>
|
129
|
+
<tr>
|
130
|
+
<td>We are still</td>
|
131
|
+
<td>able to acces</td>
|
132
|
+
<td>the space before it.</td>
|
133
|
+
<td>
|
134
|
+
<table border="1" cellpadding="1" cellspacing="1" style="width: 100%; ">
|
135
|
+
<tbody>
|
136
|
+
<tr>
|
137
|
+
<td>This table is inside of a cell of another table.</td>
|
138
|
+
</tr>
|
139
|
+
<tr>
|
140
|
+
<td>We can type&nbsp;either before or after it though.</td>
|
141
|
+
</tr>
|
142
|
+
</tbody>
|
143
|
+
</table>
|
144
|
+
</td>
|
145
|
+
</tr>
|
146
|
+
</tbody>
|
147
|
+
</table>
|
148
|
+
|
149
|
+
<p>Two succesive horizontal lines (<tt>HR</tt> tags). We can access the space in between:</p>
|
150
|
+
|
151
|
+
<hr />
|
152
|
+
<hr />
|
153
|
+
<ol>
|
154
|
+
<li>This numbered list...</li>
|
155
|
+
<li>...is a neighbour of a horizontal line...</li>
|
156
|
+
<li>...and another list.</li>
|
157
|
+
</ol>
|
158
|
+
|
159
|
+
<ul>
|
160
|
+
<li>We can type between the lists...</li>
|
161
|
+
<li>...thanks to <strong>Magicline</strong>.</li>
|
162
|
+
</ul>
|
163
|
+
|
164
|
+
<p>Lorem ipsum dolor sit amet dui. Morbi vel turpis. Nullam et leo. Etiam rutrum, urna tellus dui vel tincidunt mattis egestas, justo fringilla vel, massa. Phasellus.</p>
|
165
|
+
|
166
|
+
<p>Quisque iaculis, dui lectus varius vitae, tortor. Proin lacus. Pellentesque ac lacus. Aenean nonummy commodo nec, pede. Etiam blandit risus elit.</p>
|
167
|
+
|
168
|
+
<p>Ut pretium. Vestibulum rutrum in, adipiscing elit. Sed in quam in purus sem vitae pede. Pellentesque bibendum, urna sem vel risus. Vivamus posuere metus. Aliquam gravida iaculis nisl. Nam enim. Aliquam erat ac lacus tellus ac felis.</p>
|
169
|
+
|
170
|
+
<div style="border: 2px dashed green; background: #ddd; text-align: center;">
|
171
|
+
<p>This text is wrapped in a&nbsp;<tt>DIV</tt>&nbsp;element. We can type after this element though.</p>
|
172
|
+
</div>
|
173
|
+
</textarea>
|
174
|
+
<script>
|
175
|
+
|
176
|
+
// This call can be placed at any point after the
|
177
|
+
// <textarea>, or inside a <head><script> in a
|
178
|
+
// window.onload event handler.
|
179
|
+
|
180
|
+
CKEDITOR.replace( 'editor2', {
|
181
|
+
magicline_color : 'blue', // Blue line
|
182
|
+
magicline_opacity : .5
|
183
|
+
});
|
184
|
+
|
185
|
+
</script>
|
186
|
+
</div>
|
187
|
+
<footer>
|
188
|
+
<hr>
|
189
|
+
<p>
|
190
|
+
CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
|
191
|
+
</p>
|
192
|
+
<p id="copy">
|
193
|
+
Copyright © 2003-2012, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
|
194
|
+
Knabben. All rights reserved.
|
195
|
+
</p>
|
196
|
+
</footer>
|
197
|
+
</body>
|
198
|
+
</html>
|
@@ -0,0 +1,246 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<!--
|
3
|
+
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
4
|
+
For licensing, see LICENSE.html or http://ckeditor.com/license
|
5
|
+
-->
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>Output for Flash — CKEditor Sample</title>
|
9
|
+
<meta charset="utf-8">
|
10
|
+
<script src="../ckeditor.js"></script>
|
11
|
+
<script src="assets/outputforflash/swfobject.js"></script>
|
12
|
+
<link href="sample.css" rel="stylesheet">
|
13
|
+
</head>
|
14
|
+
<body>
|
15
|
+
<h1 class="samples">
|
16
|
+
<a href="index.html">CKEditor Samples</a> » Producing Flash Compliant HTML Output
|
17
|
+
</h1>
|
18
|
+
<div class="description">
|
19
|
+
<p>
|
20
|
+
This sample shows how to configure CKEditor to output
|
21
|
+
HTML code that can be used with
|
22
|
+
<a class="samples" href="http://www.adobe.com/livedocs/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000922.html">
|
23
|
+
Adobe Flash</a>.
|
24
|
+
The code will contain a subset of standard HTML elements like <code><b></code>,
|
25
|
+
<code><i></code>, and <code><p></code> as well as HTML attributes.
|
26
|
+
</p>
|
27
|
+
<p>
|
28
|
+
To add a CKEditor instance outputting Flash compliant HTML code, load the editor using a standard
|
29
|
+
JavaScript call, and define CKEditor features to use HTML elements and attributes.
|
30
|
+
</p>
|
31
|
+
<p>
|
32
|
+
For details on how to create this setup check the source code of this sample page.
|
33
|
+
</p>
|
34
|
+
</div>
|
35
|
+
<p>
|
36
|
+
To see how it works, create some content in the editing area of CKEditor on the left
|
37
|
+
and send it to the Flash object on the right side of the page by using the
|
38
|
+
<strong>Send to Flash</strong> button.
|
39
|
+
</p>
|
40
|
+
<table style="width: 100%; border-spacing: 0; border-collapse:collapse;">
|
41
|
+
<tr>
|
42
|
+
<td style="width: 100%">
|
43
|
+
<textarea cols="80" id="editor1" name="editor1" rows="10"><p>This is some <b>sample text</b>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p></textarea>
|
44
|
+
<script>
|
45
|
+
|
46
|
+
if ( document.location.protocol == 'file:' )
|
47
|
+
alert( 'Warning: This samples does not work when loaded from local filesystem' +
|
48
|
+
'due to security restrictions implemented in Flash.' +
|
49
|
+
'\n\nPlease load the sample from a web server instead.' );
|
50
|
+
|
51
|
+
CKEDITOR.replace( 'editor1', {
|
52
|
+
height: 290,
|
53
|
+
width: '100%',
|
54
|
+
toolbar: [
|
55
|
+
[ 'Source', '-', 'Bold', 'Italic', 'Underline', '-', 'BulletedList', '-', 'Link', 'Unlink' ],
|
56
|
+
[ 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock' ],
|
57
|
+
'/',
|
58
|
+
[ 'Font', 'FontSize' ],
|
59
|
+
[ 'TextColor', '-', 'About' ]
|
60
|
+
],
|
61
|
+
|
62
|
+
/*
|
63
|
+
* Style sheet for the contents
|
64
|
+
*/
|
65
|
+
contentsCss: 'body {color:#000; background-color#FFF; font-family: Arial; font-size:80%;} p, ol, ul {margin-top: 0px; margin-bottom: 0px;}',
|
66
|
+
|
67
|
+
/*
|
68
|
+
* Quirks doctype
|
69
|
+
*/
|
70
|
+
docType: '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">',
|
71
|
+
|
72
|
+
/*
|
73
|
+
* Core styles.
|
74
|
+
*/
|
75
|
+
coreStyles_bold: { element: 'b' },
|
76
|
+
coreStyles_italic: { element: 'i' },
|
77
|
+
coreStyles_underline: { element: 'u' },
|
78
|
+
|
79
|
+
/*
|
80
|
+
* Font face.
|
81
|
+
*/
|
82
|
+
|
83
|
+
// Define the way font elements will be applied to the document. The "font"
|
84
|
+
// element will be used.
|
85
|
+
font_style: {
|
86
|
+
element: 'font',
|
87
|
+
attributes: { 'face': '#(family)' }
|
88
|
+
},
|
89
|
+
|
90
|
+
/*
|
91
|
+
* Font sizes.
|
92
|
+
*/
|
93
|
+
|
94
|
+
// The CSS part of the font sizes isn't used by Flash, it is there to get the
|
95
|
+
// font rendered correctly in CKEditor.
|
96
|
+
fontSize_sizes: '8px/8;9px/9;10px/10;11px/11;12px/12;14px/14;16px/16;18px/18;20px/20;22px/22;24px/24;26px/26;28px/28;36px/36;48px/48;72px/72',
|
97
|
+
fontSize_style: {
|
98
|
+
element: 'font',
|
99
|
+
attributes: { 'size': '#(size)' },
|
100
|
+
styles: { 'font-size': '#(size)px' }
|
101
|
+
} ,
|
102
|
+
|
103
|
+
/*
|
104
|
+
* Font colors.
|
105
|
+
*/
|
106
|
+
colorButton_enableMore: true,
|
107
|
+
|
108
|
+
colorButton_foreStyle: {
|
109
|
+
element: 'font',
|
110
|
+
attributes: { 'color': '#(color)' }
|
111
|
+
},
|
112
|
+
|
113
|
+
colorButton_backStyle: {
|
114
|
+
element: 'font',
|
115
|
+
styles: { 'background-color': '#(color)' }
|
116
|
+
},
|
117
|
+
|
118
|
+
on: { 'instanceReady': configureFlashOutput }
|
119
|
+
});
|
120
|
+
|
121
|
+
/*
|
122
|
+
* Adjust the behavior of the dataProcessor to match the
|
123
|
+
* requirements of Flash
|
124
|
+
*/
|
125
|
+
function configureFlashOutput( ev ) {
|
126
|
+
var editor = ev.editor,
|
127
|
+
dataProcessor = editor.dataProcessor,
|
128
|
+
htmlFilter = dataProcessor && dataProcessor.htmlFilter;
|
129
|
+
|
130
|
+
// Out self closing tags the HTML4 way, like <br>.
|
131
|
+
dataProcessor.writer.selfClosingEnd = '>';
|
132
|
+
|
133
|
+
// Make output formatting match Flash expectations
|
134
|
+
var dtd = CKEDITOR.dtd;
|
135
|
+
for ( var e in CKEDITOR.tools.extend( {}, dtd.$nonBodyContent, dtd.$block, dtd.$listItem, dtd.$tableContent ) ) {
|
136
|
+
dataProcessor.writer.setRules( e, {
|
137
|
+
indent: false,
|
138
|
+
breakBeforeOpen: false,
|
139
|
+
breakAfterOpen: false,
|
140
|
+
breakBeforeClose: false,
|
141
|
+
breakAfterClose: false
|
142
|
+
});
|
143
|
+
}
|
144
|
+
dataProcessor.writer.setRules( 'br', {
|
145
|
+
indent: false,
|
146
|
+
breakBeforeOpen: false,
|
147
|
+
breakAfterOpen: false,
|
148
|
+
breakBeforeClose: false,
|
149
|
+
breakAfterClose: false
|
150
|
+
});
|
151
|
+
|
152
|
+
// Output properties as attributes, not styles.
|
153
|
+
htmlFilter.addRules( {
|
154
|
+
elements: {
|
155
|
+
$: function( element ) {
|
156
|
+
var style, match, width, height, align;
|
157
|
+
|
158
|
+
// Output dimensions of images as width and height
|
159
|
+
if ( element.name == 'img' ) {
|
160
|
+
style = element.attributes.style;
|
161
|
+
|
162
|
+
if ( style ) {
|
163
|
+
// Get the width from the style.
|
164
|
+
match = /(?:^|\s)width\s*:\s*(\d+)px/i.exec( style );
|
165
|
+
width = match && match[1];
|
166
|
+
|
167
|
+
// Get the height from the style.
|
168
|
+
match = /(?:^|\s)height\s*:\s*(\d+)px/i.exec( style );
|
169
|
+
height = match && match[1];
|
170
|
+
|
171
|
+
if ( width ) {
|
172
|
+
element.attributes.style = element.attributes.style.replace( /(?:^|\s)width\s*:\s*(\d+)px;?/i , '' );
|
173
|
+
element.attributes.width = width;
|
174
|
+
}
|
175
|
+
|
176
|
+
if ( height ) {
|
177
|
+
element.attributes.style = element.attributes.style.replace( /(?:^|\s)height\s*:\s*(\d+)px;?/i , '' );
|
178
|
+
element.attributes.height = height;
|
179
|
+
}
|
180
|
+
}
|
181
|
+
}
|
182
|
+
|
183
|
+
// Output alignment of paragraphs using align
|
184
|
+
if ( element.name == 'p' ) {
|
185
|
+
style = element.attributes.style;
|
186
|
+
|
187
|
+
if ( style ) {
|
188
|
+
// Get the align from the style.
|
189
|
+
match = /(?:^|\s)text-align\s*:\s*(\w*);?/i.exec( style );
|
190
|
+
align = match && match[1];
|
191
|
+
|
192
|
+
if ( align ) {
|
193
|
+
element.attributes.style = element.attributes.style.replace( /(?:^|\s)text-align\s*:\s*(\w*);?/i , '' );
|
194
|
+
element.attributes.align = align;
|
195
|
+
}
|
196
|
+
}
|
197
|
+
}
|
198
|
+
|
199
|
+
if ( element.attributes.style === '' )
|
200
|
+
delete element.attributes.style;
|
201
|
+
|
202
|
+
return element;
|
203
|
+
}
|
204
|
+
}
|
205
|
+
});
|
206
|
+
}
|
207
|
+
|
208
|
+
function sendToFlash() {
|
209
|
+
var html = CKEDITOR.instances.editor1.getData() ;
|
210
|
+
var flash = document.getElementById( 'ckFlashContainer' ) ;
|
211
|
+
flash.setData( html ) ;
|
212
|
+
}
|
213
|
+
|
214
|
+
CKEDITOR.domReady( function() {
|
215
|
+
swfobject.embedSWF(
|
216
|
+
'assets/outputforflash/outputforflash.swf',
|
217
|
+
'ckFlashContainer',
|
218
|
+
'550',
|
219
|
+
'400',
|
220
|
+
'8',
|
221
|
+
{ wmode: 'transparent' }
|
222
|
+
);
|
223
|
+
});
|
224
|
+
|
225
|
+
</script>
|
226
|
+
<p>
|
227
|
+
<input type="button" value="Send to Flash" onclick="sendToFlash();">
|
228
|
+
</p>
|
229
|
+
</td>
|
230
|
+
<td style="vertical-align: top; padding-left: 20px">
|
231
|
+
<div id="ckFlashContainer"></div>
|
232
|
+
</td>
|
233
|
+
</tr>
|
234
|
+
</table>
|
235
|
+
<div id="footer">
|
236
|
+
<hr>
|
237
|
+
<p>
|
238
|
+
CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
|
239
|
+
</p>
|
240
|
+
<p id="copy">
|
241
|
+
Copyright © 2003-2012, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
|
242
|
+
Knabben. All rights reserved.
|
243
|
+
</p>
|
244
|
+
</div>
|
245
|
+
</body>
|
246
|
+
</html>
|
@@ -0,0 +1,228 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<!--
|
3
|
+
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
4
|
+
For licensing, see LICENSE.html or http://ckeditor.com/license
|
5
|
+
-->
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>HTML Compliant Output — CKEditor Sample</title>
|
9
|
+
<meta charset="utf-8">
|
10
|
+
<script src="../ckeditor.js"></script>
|
11
|
+
<link href="sample.css" rel="stylesheet">
|
12
|
+
</head>
|
13
|
+
<body>
|
14
|
+
<h1 class="samples">
|
15
|
+
<a href="index.html">CKEditor Samples</a> » Producing HTML Compliant Output
|
16
|
+
</h1>
|
17
|
+
<div class="description">
|
18
|
+
<p>
|
19
|
+
This sample shows how to configure CKEditor to output valid
|
20
|
+
<a class="samples" href="http://www.w3.org/TR/html401/">HTML 4.01</a> code.
|
21
|
+
Traditional HTML elements like <code><b></code>,
|
22
|
+
<code><i></code>, and <code><font></code> are used in place of
|
23
|
+
<code><strong></code>, <code><em></code>, and CSS styles.
|
24
|
+
</p>
|
25
|
+
<p>
|
26
|
+
To add a CKEditor instance outputting legacy HTML 4.01 code, load the editor using a standard
|
27
|
+
JavaScript call, and define CKEditor features to use the HTML compliant elements and attributes.
|
28
|
+
</p>
|
29
|
+
<p>
|
30
|
+
A snippet of the configuration code can be seen below; check the source of this page for
|
31
|
+
full definition:
|
32
|
+
</p>
|
33
|
+
<pre class="samples">
|
34
|
+
CKEDITOR.replace( '<em>textarea_id</em>', {
|
35
|
+
coreStyles_bold: { element: 'b' },
|
36
|
+
coreStyles_italic: { element: 'i' },
|
37
|
+
|
38
|
+
fontSize_style: {
|
39
|
+
element: 'font',
|
40
|
+
attributes: { 'size': '#(size)' }
|
41
|
+
}
|
42
|
+
|
43
|
+
...
|
44
|
+
});</pre>
|
45
|
+
</div>
|
46
|
+
<form action="sample_posteddata.php" method="post">
|
47
|
+
<p>
|
48
|
+
<label for="editor1">
|
49
|
+
Editor 1:
|
50
|
+
</label>
|
51
|
+
<textarea cols="80" id="editor1" name="editor1" rows="10"><p>This is some <b>sample text</b>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p></textarea>
|
52
|
+
<script>
|
53
|
+
|
54
|
+
CKEDITOR.replace( 'editor1', {
|
55
|
+
/*
|
56
|
+
* Style sheet for the contents
|
57
|
+
*/
|
58
|
+
contentsCss: 'body {color:#000; background-color#:FFF;}',
|
59
|
+
|
60
|
+
/*
|
61
|
+
* Simple HTML5 doctype
|
62
|
+
*/
|
63
|
+
docType: '<!DOCTYPE HTML>',
|
64
|
+
|
65
|
+
/*
|
66
|
+
* Core styles.
|
67
|
+
*/
|
68
|
+
coreStyles_bold: { element: 'b' },
|
69
|
+
coreStyles_italic: { element: 'i' },
|
70
|
+
coreStyles_underline: { element: 'u' },
|
71
|
+
coreStyles_strike: { element: 'strike' },
|
72
|
+
|
73
|
+
/*
|
74
|
+
* Font face.
|
75
|
+
*/
|
76
|
+
|
77
|
+
// Define the way font elements will be applied to the document.
|
78
|
+
// The "font" element will be used.
|
79
|
+
font_style: {
|
80
|
+
element: 'font',
|
81
|
+
attributes: { 'face': '#(family)' }
|
82
|
+
},
|
83
|
+
|
84
|
+
/*
|
85
|
+
* Font sizes.
|
86
|
+
*/
|
87
|
+
fontSize_sizes: 'xx-small/1;x-small/2;small/3;medium/4;large/5;x-large/6;xx-large/7',
|
88
|
+
fontSize_style: {
|
89
|
+
element: 'font',
|
90
|
+
attributes: { 'size': '#(size)' }
|
91
|
+
} ,
|
92
|
+
|
93
|
+
/*
|
94
|
+
* Font colors.
|
95
|
+
*/
|
96
|
+
colorButton_enableMore: true,
|
97
|
+
|
98
|
+
colorButton_foreStyle: {
|
99
|
+
element: 'font',
|
100
|
+
attributes: { 'color': '#(color)' }
|
101
|
+
},
|
102
|
+
|
103
|
+
colorButton_backStyle: {
|
104
|
+
element: 'font',
|
105
|
+
styles: { 'background-color': '#(color)' }
|
106
|
+
},
|
107
|
+
|
108
|
+
/*
|
109
|
+
* Styles combo.
|
110
|
+
*/
|
111
|
+
stylesSet: [
|
112
|
+
{ name: 'Computer Code', element: 'code' },
|
113
|
+
{ name: 'Keyboard Phrase', element: 'kbd' },
|
114
|
+
{ name: 'Sample Text', element: 'samp' },
|
115
|
+
{ name: 'Variable', element: 'var' },
|
116
|
+
{ name: 'Deleted Text', element: 'del' },
|
117
|
+
{ name: 'Inserted Text', element: 'ins' },
|
118
|
+
{ name: 'Cited Work', element: 'cite' },
|
119
|
+
{ name: 'Inline Quotation', element: 'q' }
|
120
|
+
],
|
121
|
+
|
122
|
+
on : { 'instanceReady': configureHtmlOutput }
|
123
|
+
});
|
124
|
+
|
125
|
+
/*
|
126
|
+
* Adjust the behavior of the dataProcessor to avoid styles
|
127
|
+
* and make it look like FCKeditor HTML output.
|
128
|
+
*/
|
129
|
+
function configureHtmlOutput( ev )
|
130
|
+
{
|
131
|
+
var editor = ev.editor,
|
132
|
+
dataProcessor = editor.dataProcessor,
|
133
|
+
htmlFilter = dataProcessor && dataProcessor.htmlFilter;
|
134
|
+
|
135
|
+
// Out self closing tags the HTML4 way, like <br>.
|
136
|
+
dataProcessor.writer.selfClosingEnd = '>';
|
137
|
+
|
138
|
+
// Make output formatting behave similar to FCKeditor
|
139
|
+
var dtd = CKEDITOR.dtd;
|
140
|
+
for ( var e in CKEDITOR.tools.extend( {}, dtd.$nonBodyContent, dtd.$block, dtd.$listItem, dtd.$tableContent ) ) {
|
141
|
+
dataProcessor.writer.setRules( e, {
|
142
|
+
indent: true,
|
143
|
+
breakBeforeOpen: true,
|
144
|
+
breakAfterOpen: false,
|
145
|
+
breakBeforeClose: !dtd[ e ][ '#' ],
|
146
|
+
breakAfterClose: true
|
147
|
+
});
|
148
|
+
}
|
149
|
+
|
150
|
+
// Output properties as attributes, not styles.
|
151
|
+
htmlFilter.addRules( {
|
152
|
+
elements: {
|
153
|
+
$: function( element ) {
|
154
|
+
// Output dimensions of images as width and height
|
155
|
+
if ( element.name == 'img' ) {
|
156
|
+
var style = element.attributes.style;
|
157
|
+
|
158
|
+
if ( style ) {
|
159
|
+
// Get the width from the style.
|
160
|
+
var match = /(?:^|\s)width\s*:\s*(\d+)px/i.exec( style ),
|
161
|
+
width = match && match[ 1 ];
|
162
|
+
|
163
|
+
// Get the height from the style.
|
164
|
+
match = /(?:^|\s)height\s*:\s*(\d+)px/i.exec( style );
|
165
|
+
var height = match && match[ 1 ];
|
166
|
+
|
167
|
+
if ( width ) {
|
168
|
+
element.attributes.style = element.attributes.style.replace( /(?:^|\s)width\s*:\s*(\d+)px;?/i , '' );
|
169
|
+
element.attributes.width = width;
|
170
|
+
}
|
171
|
+
|
172
|
+
if ( height ) {
|
173
|
+
element.attributes.style = element.attributes.style.replace( /(?:^|\s)height\s*:\s*(\d+)px;?/i , '' );
|
174
|
+
element.attributes.height = height;
|
175
|
+
}
|
176
|
+
}
|
177
|
+
}
|
178
|
+
|
179
|
+
// Output alignment of paragraphs using align
|
180
|
+
if ( element.name == 'p' ) {
|
181
|
+
style = element.attributes.style;
|
182
|
+
|
183
|
+
if ( style ) {
|
184
|
+
// Get the align from the style.
|
185
|
+
match = /(?:^|\s)text-align\s*:\s*(\w*);/i.exec( style );
|
186
|
+
var align = match && match[ 1 ];
|
187
|
+
|
188
|
+
if ( align ) {
|
189
|
+
element.attributes.style = element.attributes.style.replace( /(?:^|\s)text-align\s*:\s*(\w*);?/i , '' );
|
190
|
+
element.attributes.align = align;
|
191
|
+
}
|
192
|
+
}
|
193
|
+
}
|
194
|
+
|
195
|
+
if ( !element.attributes.style )
|
196
|
+
delete element.attributes.style;
|
197
|
+
|
198
|
+
return element;
|
199
|
+
}
|
200
|
+
},
|
201
|
+
|
202
|
+
attributes: {
|
203
|
+
style: function( value, element ) {
|
204
|
+
// Return #RGB for background and border colors
|
205
|
+
return CKEDITOR.tools.convertRgbToHex( value );
|
206
|
+
}
|
207
|
+
}
|
208
|
+
});
|
209
|
+
}
|
210
|
+
|
211
|
+
</script>
|
212
|
+
</p>
|
213
|
+
<p>
|
214
|
+
<input type="submit" value="Submit">
|
215
|
+
</p>
|
216
|
+
</form>
|
217
|
+
<div id="footer">
|
218
|
+
<hr>
|
219
|
+
<p>
|
220
|
+
CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
|
221
|
+
</p>
|
222
|
+
<p id="copy">
|
223
|
+
Copyright © 2003-2012, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
|
224
|
+
Knabben. All rights reserved.
|
225
|
+
</p>
|
226
|
+
</div>
|
227
|
+
</body>
|
228
|
+
</html>
|