glebtv-ckeditor 4.0.2.7 → 4.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.rdoc +5 -195
- data/{vendor → app}/assets/javascripts/ckeditor/CHANGES.md +56 -0
- data/{vendor → app}/assets/javascripts/ckeditor/LICENSE.md +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/README.md +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/build-config.js +0 -0
- data/app/assets/javascripts/ckeditor/ckeditor.js +881 -0
- data/{vendor → app}/assets/javascripts/ckeditor/config.js.erb +0 -0
- data/app/assets/javascripts/ckeditor/contents.css +103 -0
- data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/gal_add.jpg +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/gal_add.png +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/gal_del.png +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/gal_more.gif +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/preloader.gif +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/avi.gif +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/ckfnothumb.gif +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/doc.gif +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/docx.gif +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/exe.gif +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/gz.gif +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/htm.gif +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/jpg.gif +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/mp3.gif +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/mpg.gif +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/pdf.gif +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/psd.gif +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/rar.gif +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/swf.gif +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/tar.gif +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/txt.gif +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/unknown.gif +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/wmv.gif +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/xls.gif +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/xlsx.gif +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/zip.gif +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/javascripts/application.js +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/javascripts/fileuploader.js +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/javascripts/jquery.min.js +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/javascripts/jquery.tmpl.min.js +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/javascripts/rails.js +0 -0
- data/app/assets/javascripts/ckeditor/filebrowser/stylesheets/uploader.css +118 -0
- data/app/assets/javascripts/ckeditor/{init.js → init.js.erb} +1 -1
- data/{vendor → app}/assets/javascripts/ckeditor/lang/en.js +1 -1
- data/{vendor → app}/assets/javascripts/ckeditor/lang/ru.js +1 -1
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/CKCss/ckcss.png +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/CKCss/css/styles.css +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/CKCss/dialogs/ckcss.js +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/CKCss/lang/en.js +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/CKCss/lang/ru.js +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/CKCss/plugin.js +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/LoremIpsum/images/icon.png +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/LoremIpsum/images/icon1.png +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/LoremIpsum/plugin.js +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/css/codemirror.ckeditor.css +38 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/css/codemirror.css +246 -245
- data/app/assets/javascripts/ckeditor/plugins/codemirror/css/codemirror.min.css +1 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/icons/AutoComplete.png +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/icons/AutoFormat.png +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/icons/CommentSelectedRange.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/icons/SearchCode.png +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/icons/UncommentSelectedRange.png +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/js/addon/dialog/dialog.js +81 -76
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/addon/edit/closebrackets.js +52 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/js/addon/edit/closetag.js +1 -2
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/addon/edit/continuecomment.js +44 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/addon/edit/continuelist.js +25 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/js/addon/edit/matchbrackets.js +0 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/addon/fold/brace-fold.js +31 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/addon/fold/foldcode.js +32 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/addon/fold/xml-fold.js +64 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/js/addon/format/autoFormatAll.js +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/js/addon/format/formatting.js +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/js/addon/search/match-highlighter.js +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/js/addon/search/search.js +131 -131
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/js/addon/search/searchcursor.js +8 -9
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.addons.min.js +1 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.js +264 -132
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.min.js +1 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.modes.min.js +1 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.search-addons.min.js +1 -0
- data/{vendor/assets/javascripts/ckeditor/plugins/codemirror/js → app/assets/javascripts/ckeditor/plugins/codemirror/js/mode}/css.js +337 -235
- data/{vendor/assets/javascripts/ckeditor/plugins/codemirror/js → app/assets/javascripts/ckeditor/plugins/codemirror/js/mode}/htmlmixed.js +0 -0
- data/{vendor/assets/javascripts/ckeditor/plugins/codemirror/js → app/assets/javascripts/ckeditor/plugins/codemirror/js/mode}/javascript.js +17 -6
- data/{vendor/assets/javascripts/ckeditor/plugins/codemirror/js → app/assets/javascripts/ckeditor/plugins/codemirror/js/mode}/xml.js +9 -5
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/lang/en.js +4 -2
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/lang/ru.js +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/plugin.js +146 -34
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/theme/ambiance-mobile.css +0 -1
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/theme/ambiance.css +0 -1
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/theme/blackboard.css +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/theme/cobalt.css +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/theme/eclipse.css +1 -1
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/theme/elegant.css +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/theme/erlang-dark.css +5 -5
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/theme/lesser-dark.css +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/theme/monokai.css +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/theme/neat.css +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/theme/night.css +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/theme/rubyblue.css +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/theme/solarized.css +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/theme/twilight.css +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/theme/vibrant-ink.css +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/theme/xq-dark.css +0 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/theme/xq-light.css +43 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/colorbutton/icons/bgcolor.png +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/colorbutton/icons/textcolor.png +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/colorbutton/lang/en.js +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/colorbutton/lang/ru.js +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/colorbutton/plugin.js +6 -2
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/colordialog/lang/en.js +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/colordialog/lang/ru.js +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/colordialog/plugin.js +1 -1
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/fakeobjects/images/spacer.gif +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/flash/dialogs/flash.js +10 -9
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/flash/images/placeholder.png +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/font/lang/en.js +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/font/lang/ru.js +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/font/plugin.js +5 -2
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/highslide/dialogs/hs.js +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/highslide/icon.png +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/highslide/lang/en.js +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/highslide/lang/ru.js +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/highslide/plugin.js +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/highslide/readme.txt +0 -0
- data/app/assets/javascripts/ckeditor/plugins/icons.png +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/iframedialog/plugin.js +0 -0
- data/app/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +43 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/image/images/noimage.png +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +15 -15
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/link/images/anchor.png +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/magicline/images/icon.png +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/mediaembed/images/icon.png +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/oembed/images/icon.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/oembed/libs/jquery.oembed.js +68 -0
- data/app/assets/javascripts/ckeditor/plugins/oembed/libs/jquery.oembed.min.js +68 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/panelbutton/plugin.js +0 -0
- data/app/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +31 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/scayt/LICENSE.md +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/scayt/README.md +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/scayt/dialogs/options.js +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/scayt/dialogs/toolbar.css +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en.js +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +0 -0
- data/app/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +21 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/wsc/LICENSE.md +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/wsc/README.md +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +0 -0
- data/app/assets/javascripts/ckeditor/samples/ajax.html +82 -0
- data/app/assets/javascripts/ckeditor/samples/api.html +207 -0
- data/app/assets/javascripts/ckeditor/samples/appendto.html +57 -0
- data/app/assets/javascripts/ckeditor/samples/assets/inlineall/logo.png +0 -0
- data/app/assets/javascripts/ckeditor/samples/assets/outputxhtml/outputxhtml.css +204 -0
- data/app/assets/javascripts/ckeditor/samples/assets/posteddata.php +59 -0
- data/app/assets/javascripts/ckeditor/samples/assets/sample.css +3 -0
- data/app/assets/javascripts/ckeditor/samples/assets/sample.jpg +0 -0
- data/app/assets/javascripts/ckeditor/samples/assets/uilanguages/languages.js +7 -0
- data/app/assets/javascripts/ckeditor/samples/datafiltering.html +401 -0
- data/app/assets/javascripts/ckeditor/samples/divreplace.html +141 -0
- data/app/assets/javascripts/ckeditor/samples/index.html +125 -0
- data/app/assets/javascripts/ckeditor/samples/inlineall.html +311 -0
- data/app/assets/javascripts/ckeditor/samples/inlinebycode.html +122 -0
- data/app/assets/javascripts/ckeditor/samples/plugins/dialog/assets/my_dialog.js +48 -0
- data/app/assets/javascripts/ckeditor/samples/plugins/dialog/dialog.html +187 -0
- data/app/assets/javascripts/ckeditor/samples/plugins/enterkey/enterkey.html +103 -0
- data/app/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/outputforflash.fla +0 -0
- data/app/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/outputforflash.swf +0 -0
- data/app/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/swfobject.js +18 -0
- data/app/assets/javascripts/ckeditor/samples/plugins/htmlwriter/outputforflash.html +280 -0
- data/app/assets/javascripts/ckeditor/samples/plugins/htmlwriter/outputhtml.html +221 -0
- data/app/assets/javascripts/ckeditor/samples/plugins/magicline/magicline.html +207 -0
- data/{vendor/assets/javascripts/ckeditor/plugins/stylesheetparser/samples → app/assets/javascripts/ckeditor/samples/plugins/stylesheetparser}/assets/sample.css +70 -70
- data/{vendor/assets/javascripts/ckeditor/plugins/stylesheetparser/samples → app/assets/javascripts/ckeditor/samples/plugins/stylesheetparser}/stylesheetparser.html +82 -82
- data/app/assets/javascripts/ckeditor/samples/plugins/toolbar/toolbar.html +232 -0
- data/app/assets/javascripts/ckeditor/samples/plugins/wysiwygarea/fullpage.html +77 -0
- data/app/assets/javascripts/ckeditor/samples/readonly.html +73 -0
- data/app/assets/javascripts/ckeditor/samples/replacebyclass.html +57 -0
- data/app/assets/javascripts/ckeditor/samples/replacebycode.html +56 -0
- data/app/assets/javascripts/ckeditor/samples/sample.css +339 -0
- data/app/assets/javascripts/ckeditor/samples/sample.js +33 -0
- data/app/assets/javascripts/ckeditor/samples/sample_posteddata.php +16 -0
- data/app/assets/javascripts/ckeditor/samples/tabindex.html +75 -0
- data/app/assets/javascripts/ckeditor/samples/uicolor.html +69 -0
- data/app/assets/javascripts/ckeditor/samples/uilanguages.html +119 -0
- data/app/assets/javascripts/ckeditor/samples/xhtmlstyle.html +231 -0
- data/{vendor → app}/assets/javascripts/ckeditor/skins/moono/dialog.css +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/skins/moono/dialog_ie.css +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/skins/moono/dialog_ie7.css +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/skins/moono/dialog_ie8.css +0 -0
- data/app/assets/javascripts/ckeditor/skins/moono/dialog_iequirks.css +5 -0
- data/{vendor → app}/assets/javascripts/ckeditor/skins/moono/dialog_opera.css +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/skins/moono/editor.css +1 -1
- data/{vendor/assets/javascripts/ckeditor/skins/moono/editor_ie.css → app/assets/javascripts/ckeditor/skins/moono/editor_gecko.css} +1 -1
- data/{vendor/assets/javascripts/ckeditor/skins/moono/editor_ie8.css → app/assets/javascripts/ckeditor/skins/moono/editor_ie.css} +1 -1
- data/{vendor → app}/assets/javascripts/ckeditor/skins/moono/editor_ie7.css +1 -1
- data/app/assets/javascripts/ckeditor/skins/moono/editor_ie8.css +5 -0
- data/{vendor/assets/javascripts/ckeditor/skins/moono/editor_gecko.css → app/assets/javascripts/ckeditor/skins/moono/editor_iequirks.css} +1 -1
- data/app/assets/javascripts/ckeditor/skins/moono/icons.png +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/skins/moono/images/arrow.png +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/skins/moono/images/close.png +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/skins/moono/images/mini.png +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/skins/moono/readme.md +0 -0
- data/{vendor → app}/assets/javascripts/ckeditor/styles.js +1 -2
- data/app/controllers/ckeditor/application_controller.rb +6 -12
- data/app/controllers/ckeditor/attachment_files_controller.rb +6 -2
- data/app/controllers/ckeditor/pictures_controller.rb +6 -2
- data/app/views/ckeditor/shared/_asset.html.erb +4 -4
- data/app/views/ckeditor/shared/_asset_tmpl.html.erb +1 -1
- data/lib/ckeditor.rb +91 -19
- data/lib/ckeditor/engine.rb +5 -8
- data/lib/ckeditor/helpers/controllers.rb +7 -3
- data/lib/ckeditor/helpers/form_builder.rb +1 -1
- data/lib/ckeditor/helpers/form_helper.rb +12 -15
- data/lib/ckeditor/helpers/view_helper.rb +1 -1
- data/lib/ckeditor/hooks/cancan.rb +46 -0
- data/lib/ckeditor/hooks/simple_form.rb +11 -0
- data/lib/ckeditor/orm/active_record.rb +1 -3
- data/lib/ckeditor/orm/base.rb +4 -0
- data/lib/ckeditor/orm/mongoid.rb +1 -3
- data/lib/ckeditor/utils.rb +25 -8
- data/lib/ckeditor/version.rb +2 -2
- data/lib/generators/ckeditor/install_generator.rb +2 -2
- data/lib/generators/ckeditor/templates/active_record/carrierwave/ckeditor/asset.rb +2 -2
- data/lib/generators/ckeditor/templates/active_record/carrierwave/ckeditor/attachment_file.rb +4 -4
- data/lib/generators/ckeditor/templates/active_record/carrierwave/ckeditor/picture.rb +4 -4
- data/lib/generators/ckeditor/templates/active_record/carrierwave/migration.rb +1 -1
- data/lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/attachment_file.rb +4 -4
- data/lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/picture.rb +8 -8
- data/lib/generators/ckeditor/templates/active_record/paperclip/migration.rb +6 -6
- data/lib/generators/ckeditor/templates/base/carrierwave/uploaders/ckeditor_attachment_file_uploader.rb +1 -7
- data/lib/generators/ckeditor/templates/base/carrierwave/uploaders/ckeditor_picture_uploader.rb +1 -7
- data/lib/generators/ckeditor/templates/base/dragonfly/initializer.rb +3 -3
- data/lib/generators/ckeditor/templates/ckeditor.rb +3 -0
- data/lib/generators/ckeditor/templates/mongoid/carrierwave/ckeditor/asset.rb +1 -1
- data/lib/generators/ckeditor/templates/mongoid/carrierwave/ckeditor/attachment_file.rb +4 -4
- data/lib/generators/ckeditor/templates/mongoid/carrierwave/ckeditor/picture.rb +4 -4
- data/test/dummy/app/views/posts/_form.html.erb +3 -3
- data/test/dummy/script/rails +0 -0
- data/test/functional/posts_controller_test.rb +3 -3
- metadata +346 -321
- data/vendor/assets/javascripts/ckeditor/ckeditor.js +0 -830
- data/vendor/assets/javascripts/ckeditor/filebrowser/stylesheets/uploader.css.sass +0 -102
- data/vendor/assets/javascripts/ckeditor/plugins/code/code/code.js +0 -48
- data/vendor/assets/javascripts/ckeditor/plugins/code/images/code.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/code/plugin.js +0 -17
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/css/codemirror.min.css +0 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/addon/edit/closebrackets.js +0 -29
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/addon/edit/continuelist.js +0 -28
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/addon/foldcode/foldcode.js +0 -183
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.addons.min.js +0 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.min.js +0 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.modes.min.js +0 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.search-addons.min.js +0 -1
- data/vendor/assets/javascripts/ckeditor/plugins/icons.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +0 -41
- data/vendor/assets/javascripts/ckeditor/plugins/mediaembed/plugin.js +0 -67
- data/vendor/assets/javascripts/ckeditor/plugins/oembed/lang/de.js +0 -12
- data/vendor/assets/javascripts/ckeditor/plugins/oembed/lang/en.js +0 -12
- data/vendor/assets/javascripts/ckeditor/plugins/oembed/lang/fr.js +0 -14
- data/vendor/assets/javascripts/ckeditor/plugins/oembed/lang/nl.js +0 -12
- data/vendor/assets/javascripts/ckeditor/plugins/oembed/lang/ru.js +0 -12
- data/vendor/assets/javascripts/ckeditor/plugins/oembed/libs/jquery.oembed.js +0 -912
- data/vendor/assets/javascripts/ckeditor/plugins/oembed/libs/jquery.oembed.min.js +0 -1
- data/vendor/assets/javascripts/ckeditor/plugins/oembed/plugin.js +0 -102
- data/vendor/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +0 -31
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ru.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/stylesheetparser/plugin.js +0 -138
- data/vendor/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +0 -20
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_iequirks.css +0 -689
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_iequirks.css +0 -1245
- data/vendor/assets/javascripts/ckeditor/skins/moono/icons.png +0 -0
@@ -0,0 +1,207 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<!--
|
3
|
+
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
4
|
+
For licensing, see LICENSE.html or http://ckeditor.com/license
|
5
|
+
-->
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>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
|
+
<meta name="ckeditor-sample-name" content="Magicline plugin">
|
13
|
+
<meta name="ckeditor-sample-group" content="Plugins">
|
14
|
+
<meta name="ckeditor-sample-description" content="Using the Magicline plugin to access difficult focus spaces.">
|
15
|
+
<meta name="ckeditor-sample-isnew" content="1">
|
16
|
+
</head>
|
17
|
+
<body>
|
18
|
+
<h1 class="samples">
|
19
|
+
<a href="../../index.html">CKEditor Samples</a> » Using Magicline plugin
|
20
|
+
</h1>
|
21
|
+
<div class="description">
|
22
|
+
<p>
|
23
|
+
This sample shows the advantages of <strong>Magicline</strong> plugin
|
24
|
+
which is to enhance the editing process. Thanks to this plugin,
|
25
|
+
a number of difficult focus spaces which are inaccessible due to
|
26
|
+
browser issues can now be focused.
|
27
|
+
</p>
|
28
|
+
<p>
|
29
|
+
<strong>Magicline</strong> plugin shows a red line with a handler
|
30
|
+
which, when clicked, inserts a paragraph and allows typing. To see this,
|
31
|
+
focus an editor and move your mouse above the focus space you want
|
32
|
+
to access. The plugin is enabled by default so no additional
|
33
|
+
configuration is necessary.
|
34
|
+
</p>
|
35
|
+
</div>
|
36
|
+
<div>
|
37
|
+
<label for="editor1">
|
38
|
+
Editor 1:
|
39
|
+
</label>
|
40
|
+
<div class="description">
|
41
|
+
<p>
|
42
|
+
This editor uses a default <strong>Magicline</strong> setup.
|
43
|
+
</p>
|
44
|
+
</div>
|
45
|
+
<textarea cols="80" id="editor1" name="editor1" rows="10">
|
46
|
+
<table border="1" cellpadding="1" cellspacing="1" style="width: 100%; ">
|
47
|
+
<tbody>
|
48
|
+
<tr>
|
49
|
+
<td>This table</td>
|
50
|
+
<td>is the</td>
|
51
|
+
<td>very first</td>
|
52
|
+
<td>element of the document.</td>
|
53
|
+
</tr>
|
54
|
+
<tr>
|
55
|
+
<td>We are still</td>
|
56
|
+
<td>able to acces</td>
|
57
|
+
<td>the space before it.</td>
|
58
|
+
<td>
|
59
|
+
<table border="1" cellpadding="1" cellspacing="1" style="width: 100%; ">
|
60
|
+
<tbody>
|
61
|
+
<tr>
|
62
|
+
<td>This table is inside of a cell of another table.</td>
|
63
|
+
</tr>
|
64
|
+
<tr>
|
65
|
+
<td>We can type&nbsp;either before or after it though.</td>
|
66
|
+
</tr>
|
67
|
+
</tbody>
|
68
|
+
</table>
|
69
|
+
</td>
|
70
|
+
</tr>
|
71
|
+
</tbody>
|
72
|
+
</table>
|
73
|
+
|
74
|
+
<p>Two succesive horizontal lines (<tt>HR</tt> tags). We can access the space in between:</p>
|
75
|
+
|
76
|
+
<hr />
|
77
|
+
<hr />
|
78
|
+
<ol>
|
79
|
+
<li>This numbered list...</li>
|
80
|
+
<li>...is a neighbour of a horizontal line...</li>
|
81
|
+
<li>...and another list.</li>
|
82
|
+
</ol>
|
83
|
+
|
84
|
+
<ul>
|
85
|
+
<li>We can type between the lists...</li>
|
86
|
+
<li>...thanks to <strong>Magicline</strong>.</li>
|
87
|
+
</ul>
|
88
|
+
|
89
|
+
<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>
|
90
|
+
|
91
|
+
<p>Quisque iaculis, dui lectus varius vitae, tortor. Proin lacus. Pellentesque ac lacus. Aenean nonummy commodo nec, pede. Etiam blandit risus elit.</p>
|
92
|
+
|
93
|
+
<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>
|
94
|
+
|
95
|
+
<div style="border: 2px dashed green; background: #ddd; text-align: center;">
|
96
|
+
<p>This text is wrapped in a&nbsp;<tt>DIV</tt>&nbsp;element. We can type after this element though.</p>
|
97
|
+
</div>
|
98
|
+
</textarea>
|
99
|
+
<script>
|
100
|
+
|
101
|
+
// This call can be placed at any point after the
|
102
|
+
// <textarea>, or inside a <head><script> in a
|
103
|
+
// window.onload event handler.
|
104
|
+
|
105
|
+
CKEDITOR.replace( 'editor1', {
|
106
|
+
extraPlugins: 'magicline', // Ensure that magicline plugin, which is required for this sample, is loaded.
|
107
|
+
allowedContent: true // Switch off the ACF, so very complex content created to
|
108
|
+
// show magicline's power isn't filtered.
|
109
|
+
} );
|
110
|
+
|
111
|
+
</script>
|
112
|
+
</div>
|
113
|
+
<br>
|
114
|
+
<div>
|
115
|
+
<label for="editor2">
|
116
|
+
Editor 2:
|
117
|
+
</label>
|
118
|
+
<div class="description">
|
119
|
+
<p>
|
120
|
+
This editor is using a blue line.
|
121
|
+
</p>
|
122
|
+
<pre class="samples">
|
123
|
+
CKEDITOR.replace( 'editor2', {
|
124
|
+
magicline_color: 'blue'
|
125
|
+
});</pre>
|
126
|
+
</div>
|
127
|
+
<textarea cols="80" id="editor2" name="editor2" rows="10">
|
128
|
+
<table border="1" cellpadding="1" cellspacing="1" style="width: 100%; ">
|
129
|
+
<tbody>
|
130
|
+
<tr>
|
131
|
+
<td>This table</td>
|
132
|
+
<td>is the</td>
|
133
|
+
<td>very first</td>
|
134
|
+
<td>element of the document.</td>
|
135
|
+
</tr>
|
136
|
+
<tr>
|
137
|
+
<td>We are still</td>
|
138
|
+
<td>able to acces</td>
|
139
|
+
<td>the space before it.</td>
|
140
|
+
<td>
|
141
|
+
<table border="1" cellpadding="1" cellspacing="1" style="width: 100%; ">
|
142
|
+
<tbody>
|
143
|
+
<tr>
|
144
|
+
<td>This table is inside of a cell of another table.</td>
|
145
|
+
</tr>
|
146
|
+
<tr>
|
147
|
+
<td>We can type&nbsp;either before or after it though.</td>
|
148
|
+
</tr>
|
149
|
+
</tbody>
|
150
|
+
</table>
|
151
|
+
</td>
|
152
|
+
</tr>
|
153
|
+
</tbody>
|
154
|
+
</table>
|
155
|
+
|
156
|
+
<p>Two succesive horizontal lines (<tt>HR</tt> tags). We can access the space in between:</p>
|
157
|
+
|
158
|
+
<hr />
|
159
|
+
<hr />
|
160
|
+
<ol>
|
161
|
+
<li>This numbered list...</li>
|
162
|
+
<li>...is a neighbour of a horizontal line...</li>
|
163
|
+
<li>...and another list.</li>
|
164
|
+
</ol>
|
165
|
+
|
166
|
+
<ul>
|
167
|
+
<li>We can type between the lists...</li>
|
168
|
+
<li>...thanks to <strong>Magicline</strong>.</li>
|
169
|
+
</ul>
|
170
|
+
|
171
|
+
<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>
|
172
|
+
|
173
|
+
<p>Quisque iaculis, dui lectus varius vitae, tortor. Proin lacus. Pellentesque ac lacus. Aenean nonummy commodo nec, pede. Etiam blandit risus elit.</p>
|
174
|
+
|
175
|
+
<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>
|
176
|
+
|
177
|
+
<div style="border: 2px dashed green; background: #ddd; text-align: center;">
|
178
|
+
<p>This text is wrapped in a&nbsp;<tt>DIV</tt>&nbsp;element. We can type after this element though.</p>
|
179
|
+
</div>
|
180
|
+
</textarea>
|
181
|
+
<script>
|
182
|
+
|
183
|
+
// This call can be placed at any point after the
|
184
|
+
// <textarea>, or inside a <head><script> in a
|
185
|
+
// window.onload event handler.
|
186
|
+
|
187
|
+
CKEDITOR.replace( 'editor2', {
|
188
|
+
extraPlugins: 'magicline', // Ensure that magicline plugin, which is required for this sample, is loaded.
|
189
|
+
magicline_color: 'blue', // Blue line
|
190
|
+
allowedContent: true // Switch off the ACF, so very complex content created to
|
191
|
+
// show magicline's power isn't filtered.
|
192
|
+
});
|
193
|
+
|
194
|
+
</script>
|
195
|
+
</div>
|
196
|
+
<div id="footer">
|
197
|
+
<hr>
|
198
|
+
<p>
|
199
|
+
CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
|
200
|
+
</p>
|
201
|
+
<p id="copy">
|
202
|
+
Copyright © 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
|
203
|
+
Knabben. All rights reserved.
|
204
|
+
</p>
|
205
|
+
</div>
|
206
|
+
</body>
|
207
|
+
</html>
|
@@ -1,70 +1,70 @@
|
|
1
|
-
body
|
2
|
-
{
|
3
|
-
font-family: Arial, Verdana, sans-serif;
|
4
|
-
font-size: 12px;
|
5
|
-
color: #222;
|
6
|
-
background-color: #fff;
|
7
|
-
}
|
8
|
-
|
9
|
-
/* preserved spaces for rtl list item bullets. (#6249)*/
|
10
|
-
ol,ul,dl
|
11
|
-
{
|
12
|
-
padding-right:40px;
|
13
|
-
}
|
14
|
-
|
15
|
-
h1,h2,h3,h4
|
16
|
-
{
|
17
|
-
font-family: Georgia, Times, serif;
|
18
|
-
}
|
19
|
-
|
20
|
-
h1.lightBlue
|
21
|
-
{
|
22
|
-
color: #00A6C7;
|
23
|
-
font-size: 1.8em;
|
24
|
-
font-weight:normal;
|
25
|
-
}
|
26
|
-
|
27
|
-
h3.green
|
28
|
-
{
|
29
|
-
color: #739E39;
|
30
|
-
font-weight:normal;
|
31
|
-
}
|
32
|
-
|
33
|
-
span.markYellow { background-color: yellow; }
|
34
|
-
span.markGreen { background-color: lime; }
|
35
|
-
|
36
|
-
img.left
|
37
|
-
{
|
38
|
-
padding: 5px;
|
39
|
-
margin-right: 5px;
|
40
|
-
float:left;
|
41
|
-
border:2px solid #DDD;
|
42
|
-
}
|
43
|
-
|
44
|
-
img.right
|
45
|
-
{
|
46
|
-
padding: 5px;
|
47
|
-
margin-right: 5px;
|
48
|
-
float:right;
|
49
|
-
border:2px solid #DDD;
|
50
|
-
}
|
51
|
-
|
52
|
-
a.green
|
53
|
-
{
|
54
|
-
color:#739E39;
|
55
|
-
}
|
56
|
-
|
57
|
-
table.grey
|
58
|
-
{
|
59
|
-
background-color : #F5F5F5;
|
60
|
-
}
|
61
|
-
|
62
|
-
table.grey th
|
63
|
-
{
|
64
|
-
background-color : #DDD;
|
65
|
-
}
|
66
|
-
|
67
|
-
ul.square
|
68
|
-
{
|
69
|
-
list-style-type : square;
|
70
|
-
}
|
1
|
+
body
|
2
|
+
{
|
3
|
+
font-family: Arial, Verdana, sans-serif;
|
4
|
+
font-size: 12px;
|
5
|
+
color: #222;
|
6
|
+
background-color: #fff;
|
7
|
+
}
|
8
|
+
|
9
|
+
/* preserved spaces for rtl list item bullets. (#6249)*/
|
10
|
+
ol,ul,dl
|
11
|
+
{
|
12
|
+
padding-right:40px;
|
13
|
+
}
|
14
|
+
|
15
|
+
h1,h2,h3,h4
|
16
|
+
{
|
17
|
+
font-family: Georgia, Times, serif;
|
18
|
+
}
|
19
|
+
|
20
|
+
h1.lightBlue
|
21
|
+
{
|
22
|
+
color: #00A6C7;
|
23
|
+
font-size: 1.8em;
|
24
|
+
font-weight:normal;
|
25
|
+
}
|
26
|
+
|
27
|
+
h3.green
|
28
|
+
{
|
29
|
+
color: #739E39;
|
30
|
+
font-weight:normal;
|
31
|
+
}
|
32
|
+
|
33
|
+
span.markYellow { background-color: yellow; }
|
34
|
+
span.markGreen { background-color: lime; }
|
35
|
+
|
36
|
+
img.left
|
37
|
+
{
|
38
|
+
padding: 5px;
|
39
|
+
margin-right: 5px;
|
40
|
+
float:left;
|
41
|
+
border:2px solid #DDD;
|
42
|
+
}
|
43
|
+
|
44
|
+
img.right
|
45
|
+
{
|
46
|
+
padding: 5px;
|
47
|
+
margin-right: 5px;
|
48
|
+
float:right;
|
49
|
+
border:2px solid #DDD;
|
50
|
+
}
|
51
|
+
|
52
|
+
a.green
|
53
|
+
{
|
54
|
+
color:#739E39;
|
55
|
+
}
|
56
|
+
|
57
|
+
table.grey
|
58
|
+
{
|
59
|
+
background-color : #F5F5F5;
|
60
|
+
}
|
61
|
+
|
62
|
+
table.grey th
|
63
|
+
{
|
64
|
+
background-color : #DDD;
|
65
|
+
}
|
66
|
+
|
67
|
+
ul.square
|
68
|
+
{
|
69
|
+
list-style-type : square;
|
70
|
+
}
|
@@ -1,82 +1,82 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<!--
|
3
|
-
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
4
|
-
For licensing, see LICENSE.html or http://ckeditor.com/license
|
5
|
-
-->
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>Using Stylesheet Parser Plugin — CKEditor Sample</title>
|
9
|
-
<meta charset="utf-8">
|
10
|
-
<script src="../../../ckeditor.js"></script>
|
11
|
-
<script src="
|
12
|
-
<link rel="stylesheet" href="
|
13
|
-
<meta name="ckeditor-sample-required-plugins" content="stylescombo">
|
14
|
-
<meta name="ckeditor-sample-name" content="Stylesheet Parser plugin">
|
15
|
-
<meta name="ckeditor-sample-description" content="Using the Stylesheet Parser plugin to fill the Styles drop-down list based on the CSS classes available in the document stylesheet.">
|
16
|
-
<meta name="ckeditor-sample-group" content="Plugins">
|
17
|
-
</head>
|
18
|
-
<body>
|
19
|
-
<h1 class="samples">
|
20
|
-
<a href="
|
21
|
-
</h1>
|
22
|
-
<div class="description">
|
23
|
-
<p>
|
24
|
-
This sample shows how to configure CKEditor instances to use the
|
25
|
-
<strong>Stylesheet Parser</strong> (<code>stylesheetparser</code>) plugin that fills
|
26
|
-
the <strong>Styles</strong> drop-down list based on the CSS rules available in the document stylesheet.
|
27
|
-
</p>
|
28
|
-
<p>
|
29
|
-
To add a CKEditor instance using the <code>stylesheetparser</code> plugin, insert
|
30
|
-
the following JavaScript call into your code:
|
31
|
-
</p>
|
32
|
-
<pre class="samples">
|
33
|
-
CKEDITOR.replace( '<em>textarea_id</em>', {
|
34
|
-
<strong>extraPlugins: 'stylesheetparser'</strong>
|
35
|
-
});</pre>
|
36
|
-
<p>
|
37
|
-
Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of
|
38
|
-
the <code><textarea></code> element to be replaced with CKEditor.
|
39
|
-
</p>
|
40
|
-
</div>
|
41
|
-
<form action="
|
42
|
-
<p>
|
43
|
-
<label for="editor1">
|
44
|
-
CKEditor using the <code>stylesheetparser</code> plugin with its default configuration:
|
45
|
-
</label>
|
46
|
-
<textarea cols="80" id="editor1" name="editor1" rows="10"><p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p></textarea>
|
47
|
-
<script>
|
48
|
-
|
49
|
-
// This call can be placed at any point after the
|
50
|
-
// <textarea>, or inside a <head><script> in a
|
51
|
-
// window.onload event handler.
|
52
|
-
|
53
|
-
// Replace the <textarea id="editor"> with an CKEditor
|
54
|
-
// instance, using default configurations.
|
55
|
-
CKEDITOR.replace( 'editor1' , {
|
56
|
-
extraPlugins: 'stylesheetparser',
|
57
|
-
|
58
|
-
// Stylesheet for the contents.
|
59
|
-
contentsCss: 'assets/sample.css',
|
60
|
-
|
61
|
-
// Do not load the default Styles configuration.
|
62
|
-
stylesSet: []
|
63
|
-
});
|
64
|
-
|
65
|
-
</script>
|
66
|
-
</p>
|
67
|
-
<p>
|
68
|
-
<input type="submit" value="Submit">
|
69
|
-
</p>
|
70
|
-
</form>
|
71
|
-
<div id="footer">
|
72
|
-
<hr>
|
73
|
-
<p>
|
74
|
-
CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
|
75
|
-
</p>
|
76
|
-
<p id="copy">
|
77
|
-
Copyright © 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
|
78
|
-
Knabben. All rights reserved.
|
79
|
-
</p>
|
80
|
-
</div>
|
81
|
-
</body>
|
82
|
-
</html>
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<!--
|
3
|
+
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
4
|
+
For licensing, see LICENSE.html or http://ckeditor.com/license
|
5
|
+
-->
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>Using Stylesheet Parser Plugin — CKEditor Sample</title>
|
9
|
+
<meta charset="utf-8">
|
10
|
+
<script src="../../../ckeditor.js"></script>
|
11
|
+
<script src="../../sample.js"></script>
|
12
|
+
<link rel="stylesheet" href="../../sample.css">
|
13
|
+
<meta name="ckeditor-sample-required-plugins" content="stylescombo">
|
14
|
+
<meta name="ckeditor-sample-name" content="Stylesheet Parser plugin">
|
15
|
+
<meta name="ckeditor-sample-description" content="Using the Stylesheet Parser plugin to fill the Styles drop-down list based on the CSS classes available in the document stylesheet.">
|
16
|
+
<meta name="ckeditor-sample-group" content="Plugins">
|
17
|
+
</head>
|
18
|
+
<body>
|
19
|
+
<h1 class="samples">
|
20
|
+
<a href="../../index.html">CKEditor Samples</a> » Using the Stylesheet Parser Plugin
|
21
|
+
</h1>
|
22
|
+
<div class="description">
|
23
|
+
<p>
|
24
|
+
This sample shows how to configure CKEditor instances to use the
|
25
|
+
<strong>Stylesheet Parser</strong> (<code>stylesheetparser</code>) plugin that fills
|
26
|
+
the <strong>Styles</strong> drop-down list based on the CSS rules available in the document stylesheet.
|
27
|
+
</p>
|
28
|
+
<p>
|
29
|
+
To add a CKEditor instance using the <code>stylesheetparser</code> plugin, insert
|
30
|
+
the following JavaScript call into your code:
|
31
|
+
</p>
|
32
|
+
<pre class="samples">
|
33
|
+
CKEDITOR.replace( '<em>textarea_id</em>', {
|
34
|
+
<strong>extraPlugins: 'stylesheetparser'</strong>
|
35
|
+
});</pre>
|
36
|
+
<p>
|
37
|
+
Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of
|
38
|
+
the <code><textarea></code> element to be replaced with CKEditor.
|
39
|
+
</p>
|
40
|
+
</div>
|
41
|
+
<form action="../../sample_posteddata.php" method="post">
|
42
|
+
<p>
|
43
|
+
<label for="editor1">
|
44
|
+
CKEditor using the <code>stylesheetparser</code> plugin with its default configuration:
|
45
|
+
</label>
|
46
|
+
<textarea cols="80" id="editor1" name="editor1" rows="10"><p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p></textarea>
|
47
|
+
<script>
|
48
|
+
|
49
|
+
// This call can be placed at any point after the
|
50
|
+
// <textarea>, or inside a <head><script> in a
|
51
|
+
// window.onload event handler.
|
52
|
+
|
53
|
+
// Replace the <textarea id="editor"> with an CKEditor
|
54
|
+
// instance, using default configurations.
|
55
|
+
CKEDITOR.replace( 'editor1' , {
|
56
|
+
extraPlugins: 'stylesheetparser',
|
57
|
+
|
58
|
+
// Stylesheet for the contents.
|
59
|
+
contentsCss: 'assets/sample.css',
|
60
|
+
|
61
|
+
// Do not load the default Styles configuration.
|
62
|
+
stylesSet: []
|
63
|
+
});
|
64
|
+
|
65
|
+
</script>
|
66
|
+
</p>
|
67
|
+
<p>
|
68
|
+
<input type="submit" value="Submit">
|
69
|
+
</p>
|
70
|
+
</form>
|
71
|
+
<div id="footer">
|
72
|
+
<hr>
|
73
|
+
<p>
|
74
|
+
CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
|
75
|
+
</p>
|
76
|
+
<p id="copy">
|
77
|
+
Copyright © 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
|
78
|
+
Knabben. All rights reserved.
|
79
|
+
</p>
|
80
|
+
</div>
|
81
|
+
</body>
|
82
|
+
</html>
|