├── README.rdoc
├── Rakefile
├── app
├── controllers
│ └── ckeditor_controller.rb
├── helpers
│ └── ckeditor_helper.rb
└── views
│ ├── ckeditor
│ ├── _asset.html.erb
│ ├── _swfupload.html.erb
│ ├── files.html.erb
│ └── images.html.erb
│ └── layouts
│ └── ckeditor.html.erb
├── ckeditor.gemspec
├── config
└── routes.rb
├── examples
├── migrations
│ ├── attachment_fu
│ │ └── create_assets.rb
│ └── paperclip
│ │ └── create_assets.rb
├── models
│ ├── attachment_fu
│ │ ├── asset.rb
│ │ ├── attachment_file.rb
│ │ └── picture.rb
│ └── paperclip
│ │ ├── asset.rb
│ │ ├── attachment_file.rb
│ │ └── picture.rb
└── s3
│ ├── attachment_file.rb
│ ├── picture.rb
│ └── s3.yml
├── generators
├── ckeditor_install
│ ├── USAGE
│ ├── ckeditor_install_generator.rb
│ └── templates
│ │ ├── README
│ │ ├── ckeditor.rb
│ │ └── ckeditor
│ │ ├── CHANGES.html
│ │ ├── INSTALL.html
│ │ ├── LICENSE.html
│ │ ├── _samples
│ │ ├── ajax.html
│ │ ├── api.html
│ │ ├── api_dialog.html
│ │ ├── api_dialog
│ │ │ └── my_dialog.js
│ │ ├── asp
│ │ │ ├── advanced.asp
│ │ │ ├── events.asp
│ │ │ ├── index.html
│ │ │ ├── replace.asp
│ │ │ ├── replaceall.asp
│ │ │ ├── sample_posteddata.asp
│ │ │ └── standalone.asp
│ │ ├── assets
│ │ │ ├── output_for_flash.fla
│ │ │ ├── output_for_flash.swf
│ │ │ ├── output_xhtml.css
│ │ │ └── swfobject.js
│ │ ├── autogrow.html
│ │ ├── divreplace.html
│ │ ├── enterkey.html
│ │ ├── fullpage.html
│ │ ├── index.html
│ │ ├── jqueryadapter.html
│ │ ├── output_for_flash.html
│ │ ├── output_html.html
│ │ ├── output_xhtml.html
│ │ ├── php
│ │ │ ├── advanced.php
│ │ │ ├── events.php
│ │ │ ├── replace.php
│ │ │ ├── replaceall.php
│ │ │ └── standalone.php
│ │ ├── replacebyclass.html
│ │ ├── replacebycode.html
│ │ ├── sample.css
│ │ ├── sample.js
│ │ ├── sample_posteddata.php
│ │ ├── sharedspaces.html
│ │ ├── skins.html
│ │ ├── ui_color.html
│ │ └── ui_languages.html
│ │ ├── _source
│ │ ├── adapters
│ │ │ └── jquery.js
│ │ ├── core
│ │ │ ├── _bootstrap.js
│ │ │ ├── ajax.js
│ │ │ ├── ckeditor.js
│ │ │ ├── ckeditor_base.js
│ │ │ ├── ckeditor_basic.js
│ │ │ ├── command.js
│ │ │ ├── commanddefinition.js
│ │ │ ├── config.js
│ │ │ ├── dataprocessor.js
│ │ │ ├── dom.js
│ │ │ ├── dom
│ │ │ │ ├── comment.js
│ │ │ │ ├── document.js
│ │ │ │ ├── documentfragment.js
│ │ │ │ ├── domobject.js
│ │ │ │ ├── element.js
│ │ │ │ ├── elementpath.js
│ │ │ │ ├── event.js
│ │ │ │ ├── node.js
│ │ │ │ ├── nodelist.js
│ │ │ │ ├── range.js
│ │ │ │ ├── rangelist.js
│ │ │ │ ├── text.js
│ │ │ │ ├── walker.js
│ │ │ │ └── window.js
│ │ │ ├── dtd.js
│ │ │ ├── editor.js
│ │ │ ├── editor_basic.js
│ │ │ ├── env.js
│ │ │ ├── event.js
│ │ │ ├── eventInfo.js
│ │ │ ├── focusmanager.js
│ │ │ ├── htmlparser.js
│ │ │ ├── htmlparser
│ │ │ │ ├── basicwriter.js
│ │ │ │ ├── cdata.js
│ │ │ │ ├── comment.js
│ │ │ │ ├── element.js
│ │ │ │ ├── filter.js
│ │ │ │ ├── fragment.js
│ │ │ │ └── text.js
│ │ │ ├── imagecacher.js
│ │ │ ├── lang.js
│ │ │ ├── loader.js
│ │ │ ├── plugindefinition.js
│ │ │ ├── plugins.js
│ │ │ ├── resourcemanager.js
│ │ │ ├── scriptloader.js
│ │ │ ├── skins.js
│ │ │ ├── themes.js
│ │ │ ├── tools.js
│ │ │ ├── ui.js
│ │ │ └── xml.js
│ │ ├── lang
│ │ │ ├── _languages.js
│ │ │ ├── _translationstatus.txt
│ │ │ ├── af.js
│ │ │ ├── ar.js
│ │ │ ├── bg.js
│ │ │ ├── bn.js
│ │ │ ├── bs.js
│ │ │ ├── ca.js
│ │ │ ├── cs.js
│ │ │ ├── cy.js
│ │ │ ├── da.js
│ │ │ ├── de.js
│ │ │ ├── el.js
│ │ │ ├── en-au.js
│ │ │ ├── en-ca.js
│ │ │ ├── en-gb.js
│ │ │ ├── en.js
│ │ │ ├── eo.js
│ │ │ ├── es.js
│ │ │ ├── et.js
│ │ │ ├── eu.js
│ │ │ ├── fa.js
│ │ │ ├── fi.js
│ │ │ ├── fo.js
│ │ │ ├── fr-ca.js
│ │ │ ├── fr.js
│ │ │ ├── gl.js
│ │ │ ├── gu.js
│ │ │ ├── he.js
│ │ │ ├── hi.js
│ │ │ ├── hr.js
│ │ │ ├── hu.js
│ │ │ ├── is.js
│ │ │ ├── it.js
│ │ │ ├── ja.js
│ │ │ ├── km.js
│ │ │ ├── ko.js
│ │ │ ├── lt.js
│ │ │ ├── lv.js
│ │ │ ├── mn.js
│ │ │ ├── ms.js
│ │ │ ├── nb.js
│ │ │ ├── nl.js
│ │ │ ├── no.js
│ │ │ ├── pl.js
│ │ │ ├── pt-br.js
│ │ │ ├── pt.js
│ │ │ ├── ro.js
│ │ │ ├── ru.js
│ │ │ ├── sk.js
│ │ │ ├── sl.js
│ │ │ ├── sr-latn.js
│ │ │ ├── sr.js
│ │ │ ├── sv.js
│ │ │ ├── th.js
│ │ │ ├── tr.js
│ │ │ ├── uk.js
│ │ │ ├── vi.js
│ │ │ ├── zh-cn.js
│ │ │ └── zh.js
│ │ ├── plugins
│ │ │ ├── a11yhelp
│ │ │ │ ├── dialogs
│ │ │ │ │ └── a11yhelp.js
│ │ │ │ ├── lang
│ │ │ │ │ ├── en.js
│ │ │ │ │ └── he.js
│ │ │ │ └── plugin.js
│ │ │ ├── about
│ │ │ │ ├── dialogs
│ │ │ │ │ ├── about.js
│ │ │ │ │ └── logo_ckeditor.png
│ │ │ │ └── plugin.js
│ │ │ ├── ajax_save
│ │ │ │ └── plugin.js
│ │ │ ├── attachment
│ │ │ │ ├── dialogs
│ │ │ │ │ └── attachment.js
│ │ │ │ ├── images
│ │ │ │ │ └── attachment.png
│ │ │ │ ├── lang
│ │ │ │ │ ├── en.js
│ │ │ │ │ ├── ru.js
│ │ │ │ │ └── uk.js
│ │ │ │ └── plugin.js
│ │ │ ├── autogrow
│ │ │ │ └── plugin.js
│ │ │ ├── basicstyles
│ │ │ │ └── plugin.js
│ │ │ ├── bidi
│ │ │ │ └── plugin.js
│ │ │ ├── blockquote
│ │ │ │ └── plugin.js
│ │ │ ├── button
│ │ │ │ └── plugin.js
│ │ │ ├── clipboard
│ │ │ │ ├── dialogs
│ │ │ │ │ └── paste.js
│ │ │ │ └── plugin.js
│ │ │ ├── colorbutton
│ │ │ │ └── plugin.js
│ │ │ ├── colordialog
│ │ │ │ ├── dialogs
│ │ │ │ │ └── colordialog.js
│ │ │ │ └── plugin.js
│ │ │ ├── contextmenu
│ │ │ │ └── plugin.js
│ │ │ ├── dialog
│ │ │ │ ├── dialogDefinition.js
│ │ │ │ └── plugin.js
│ │ │ ├── dialogadvtab
│ │ │ │ └── plugin.js
│ │ │ ├── dialogui
│ │ │ │ └── plugin.js
│ │ │ ├── div
│ │ │ │ ├── dialogs
│ │ │ │ │ └── div.js
│ │ │ │ └── plugin.js
│ │ │ ├── domiterator
│ │ │ │ └── plugin.js
│ │ │ ├── editingblock
│ │ │ │ └── plugin.js
│ │ │ ├── elementspath
│ │ │ │ └── plugin.js
│ │ │ ├── embed
│ │ │ │ ├── dialogs
│ │ │ │ │ └── embed.js
│ │ │ │ ├── images
│ │ │ │ │ └── embed.png
│ │ │ │ ├── lang
│ │ │ │ │ ├── en.js
│ │ │ │ │ ├── ru.js
│ │ │ │ │ └── uk.js
│ │ │ │ └── plugin.js
│ │ │ ├── enterkey
│ │ │ │ └── plugin.js
│ │ │ ├── entities
│ │ │ │ └── plugin.js
│ │ │ ├── fakeobjects
│ │ │ │ └── plugin.js
│ │ │ ├── filebrowser
│ │ │ │ └── plugin.js
│ │ │ ├── find
│ │ │ │ ├── dialogs
│ │ │ │ │ └── find.js
│ │ │ │ └── plugin.js
│ │ │ ├── flash
│ │ │ │ ├── dialogs
│ │ │ │ │ └── flash.js
│ │ │ │ ├── images
│ │ │ │ │ └── placeholder.png
│ │ │ │ └── plugin.js
│ │ │ ├── floatpanel
│ │ │ │ └── plugin.js
│ │ │ ├── font
│ │ │ │ └── plugin.js
│ │ │ ├── format
│ │ │ │ └── plugin.js
│ │ │ ├── forms
│ │ │ │ ├── dialogs
│ │ │ │ │ ├── button.js
│ │ │ │ │ ├── checkbox.js
│ │ │ │ │ ├── form.js
│ │ │ │ │ ├── hiddenfield.js
│ │ │ │ │ ├── radio.js
│ │ │ │ │ ├── select.js
│ │ │ │ │ ├── textarea.js
│ │ │ │ │ └── textfield.js
│ │ │ │ ├── images
│ │ │ │ │ └── hiddenfield.gif
│ │ │ │ └── plugin.js
│ │ │ ├── horizontalrule
│ │ │ │ └── plugin.js
│ │ │ ├── htmldataprocessor
│ │ │ │ └── plugin.js
│ │ │ ├── htmlwriter
│ │ │ │ └── plugin.js
│ │ │ ├── iframedialog
│ │ │ │ └── plugin.js
│ │ │ ├── image
│ │ │ │ ├── dialogs
│ │ │ │ │ └── image.js
│ │ │ │ └── plugin.js
│ │ │ ├── indent
│ │ │ │ └── plugin.js
│ │ │ ├── justify
│ │ │ │ └── plugin.js
│ │ │ ├── keystrokes
│ │ │ │ └── plugin.js
│ │ │ ├── link
│ │ │ │ ├── dialogs
│ │ │ │ │ ├── anchor.js
│ │ │ │ │ └── link.js
│ │ │ │ ├── images
│ │ │ │ │ └── anchor.gif
│ │ │ │ └── plugin.js
│ │ │ ├── list
│ │ │ │ └── plugin.js
│ │ │ ├── listblock
│ │ │ │ └── plugin.js
│ │ │ ├── liststyle
│ │ │ │ ├── dialogs
│ │ │ │ │ └── liststyle.js
│ │ │ │ └── plugin.js
│ │ │ ├── maximize
│ │ │ │ └── plugin.js
│ │ │ ├── menu
│ │ │ │ └── plugin.js
│ │ │ ├── menubutton
│ │ │ │ └── plugin.js
│ │ │ ├── newpage
│ │ │ │ └── plugin.js
│ │ │ ├── pagebreak
│ │ │ │ ├── images
│ │ │ │ │ └── pagebreak.gif
│ │ │ │ └── plugin.js
│ │ │ ├── panel
│ │ │ │ └── plugin.js
│ │ │ ├── panelbutton
│ │ │ │ └── plugin.js
│ │ │ ├── pastefromword
│ │ │ │ ├── filter
│ │ │ │ │ └── default.js
│ │ │ │ └── plugin.js
│ │ │ ├── pastetext
│ │ │ │ ├── dialogs
│ │ │ │ │ └── pastetext.js
│ │ │ │ └── plugin.js
│ │ │ ├── popup
│ │ │ │ └── plugin.js
│ │ │ ├── preview
│ │ │ │ └── plugin.js
│ │ │ ├── print
│ │ │ │ └── plugin.js
│ │ │ ├── removeformat
│ │ │ │ └── plugin.js
│ │ │ ├── resize
│ │ │ │ └── plugin.js
│ │ │ ├── richcombo
│ │ │ │ └── plugin.js
│ │ │ ├── save
│ │ │ │ └── plugin.js
│ │ │ ├── scayt
│ │ │ │ ├── dialogs
│ │ │ │ │ ├── options.js
│ │ │ │ │ └── toolbar.css
│ │ │ │ └── plugin.js
│ │ │ ├── selection
│ │ │ │ └── plugin.js
│ │ │ ├── showblocks
│ │ │ │ ├── images
│ │ │ │ │ ├── block_address.png
│ │ │ │ │ ├── block_blockquote.png
│ │ │ │ │ ├── block_div.png
│ │ │ │ │ ├── block_h1.png
│ │ │ │ │ ├── block_h2.png
│ │ │ │ │ ├── block_h3.png
│ │ │ │ │ ├── block_h4.png
│ │ │ │ │ ├── block_h5.png
│ │ │ │ │ ├── block_h6.png
│ │ │ │ │ ├── block_p.png
│ │ │ │ │ └── block_pre.png
│ │ │ │ └── plugin.js
│ │ │ ├── showborders
│ │ │ │ └── plugin.js
│ │ │ ├── smiley
│ │ │ │ ├── dialogs
│ │ │ │ │ └── smiley.js
│ │ │ │ ├── images
│ │ │ │ │ ├── angel_smile.gif
│ │ │ │ │ ├── angry_smile.gif
│ │ │ │ │ ├── broken_heart.gif
│ │ │ │ │ ├── confused_smile.gif
│ │ │ │ │ ├── cry_smile.gif
│ │ │ │ │ ├── devil_smile.gif
│ │ │ │ │ ├── embaressed_smile.gif
│ │ │ │ │ ├── envelope.gif
│ │ │ │ │ ├── heart.gif
│ │ │ │ │ ├── kiss.gif
│ │ │ │ │ ├── lightbulb.gif
│ │ │ │ │ ├── omg_smile.gif
│ │ │ │ │ ├── regular_smile.gif
│ │ │ │ │ ├── sad_smile.gif
│ │ │ │ │ ├── shades_smile.gif
│ │ │ │ │ ├── teeth_smile.gif
│ │ │ │ │ ├── thumbs_down.gif
│ │ │ │ │ ├── thumbs_up.gif
│ │ │ │ │ ├── tounge_smile.gif
│ │ │ │ │ ├── whatchutalkingabout_smile.gif
│ │ │ │ │ └── wink_smile.gif
│ │ │ │ └── plugin.js
│ │ │ ├── sourcearea
│ │ │ │ └── plugin.js
│ │ │ ├── specialchar
│ │ │ │ ├── dialogs
│ │ │ │ │ └── specialchar.js
│ │ │ │ └── plugin.js
│ │ │ ├── styles
│ │ │ │ ├── plugin.js
│ │ │ │ └── styles
│ │ │ │ │ └── default.js
│ │ │ ├── stylescombo
│ │ │ │ └── plugin.js
│ │ │ ├── tab
│ │ │ │ └── plugin.js
│ │ │ ├── table
│ │ │ │ ├── dialogs
│ │ │ │ │ └── table.js
│ │ │ │ └── plugin.js
│ │ │ ├── tableresize
│ │ │ │ └── plugin.js
│ │ │ ├── tabletools
│ │ │ │ ├── dialogs
│ │ │ │ │ └── tableCell.js
│ │ │ │ └── plugin.js
│ │ │ ├── templates
│ │ │ │ ├── dialogs
│ │ │ │ │ └── templates.js
│ │ │ │ ├── plugin.js
│ │ │ │ └── templates
│ │ │ │ │ ├── default.js
│ │ │ │ │ └── images
│ │ │ │ │ ├── template1.gif
│ │ │ │ │ ├── template2.gif
│ │ │ │ │ └── template3.gif
│ │ │ ├── toolbar
│ │ │ │ └── plugin.js
│ │ │ ├── uicolor
│ │ │ │ ├── dialogs
│ │ │ │ │ └── uicolor.js
│ │ │ │ ├── lang
│ │ │ │ │ ├── en.js
│ │ │ │ │ └── he.js
│ │ │ │ ├── plugin.js
│ │ │ │ ├── uicolor.gif
│ │ │ │ └── yui
│ │ │ │ │ ├── assets
│ │ │ │ │ ├── hue_bg.png
│ │ │ │ │ ├── hue_thumb.png
│ │ │ │ │ ├── picker_mask.png
│ │ │ │ │ ├── picker_thumb.png
│ │ │ │ │ └── yui.css
│ │ │ │ │ └── yui.js
│ │ │ ├── undo
│ │ │ │ └── plugin.js
│ │ │ ├── wsc
│ │ │ │ ├── dialogs
│ │ │ │ │ ├── ciframe.html
│ │ │ │ │ ├── tmpFrameset.html
│ │ │ │ │ ├── wsc.css
│ │ │ │ │ └── wsc.js
│ │ │ │ └── plugin.js
│ │ │ └── wysiwygarea
│ │ │ │ └── plugin.js
│ │ ├── skins
│ │ │ ├── kama
│ │ │ │ ├── dialog.css
│ │ │ │ ├── editor.css
│ │ │ │ ├── elementspath.css
│ │ │ │ ├── icons.css
│ │ │ │ ├── icons.png
│ │ │ │ ├── icons_rtl.png
│ │ │ │ ├── images
│ │ │ │ │ ├── dialog_sides.gif
│ │ │ │ │ ├── dialog_sides.png
│ │ │ │ │ ├── dialog_sides_rtl.png
│ │ │ │ │ ├── mini.gif
│ │ │ │ │ ├── noimage.png
│ │ │ │ │ ├── sprites.png
│ │ │ │ │ ├── sprites_ie6.png
│ │ │ │ │ └── toolbar_start.gif
│ │ │ │ ├── mainui.css
│ │ │ │ ├── menu.css
│ │ │ │ ├── panel.css
│ │ │ │ ├── presets.css
│ │ │ │ ├── reset.css
│ │ │ │ ├── richcombo.css
│ │ │ │ ├── skin.js
│ │ │ │ ├── templates.css
│ │ │ │ └── toolbar.css
│ │ │ ├── office2003
│ │ │ │ ├── dialog.css
│ │ │ │ ├── editor.css
│ │ │ │ ├── elementspath.css
│ │ │ │ ├── icons.css
│ │ │ │ ├── icons.png
│ │ │ │ ├── icons_rtl.png
│ │ │ │ ├── images
│ │ │ │ │ ├── dialog_sides.gif
│ │ │ │ │ ├── dialog_sides.png
│ │ │ │ │ ├── dialog_sides_rtl.png
│ │ │ │ │ ├── mini.gif
│ │ │ │ │ ├── noimage.png
│ │ │ │ │ ├── sprites.png
│ │ │ │ │ └── sprites_ie6.png
│ │ │ │ ├── mainui.css
│ │ │ │ ├── menu.css
│ │ │ │ ├── panel.css
│ │ │ │ ├── presets.css
│ │ │ │ ├── reset.css
│ │ │ │ ├── richcombo.css
│ │ │ │ ├── skin.js
│ │ │ │ ├── templates.css
│ │ │ │ └── toolbar.css
│ │ │ └── v2
│ │ │ │ ├── dialog.css
│ │ │ │ ├── editor.css
│ │ │ │ ├── elementspath.css
│ │ │ │ ├── icons.css
│ │ │ │ ├── icons.png
│ │ │ │ ├── icons_rtl.png
│ │ │ │ ├── images
│ │ │ │ ├── dialog_sides.gif
│ │ │ │ ├── dialog_sides.png
│ │ │ │ ├── dialog_sides_rtl.png
│ │ │ │ ├── mini.gif
│ │ │ │ ├── noimage.png
│ │ │ │ ├── sprites.png
│ │ │ │ ├── sprites_ie6.png
│ │ │ │ └── toolbar_start.gif
│ │ │ │ ├── mainui.css
│ │ │ │ ├── menu.css
│ │ │ │ ├── panel.css
│ │ │ │ ├── presets.css
│ │ │ │ ├── reset.css
│ │ │ │ ├── richcombo.css
│ │ │ │ ├── skin.js
│ │ │ │ ├── templates.css
│ │ │ │ └── toolbar.css
│ │ └── themes
│ │ │ └── default
│ │ │ └── theme.js
│ │ ├── adapters
│ │ └── jquery.js
│ │ ├── ckeditor.js
│ │ ├── ckeditor.pack
│ │ ├── ckeditor_basic.js
│ │ ├── ckeditor_basic_source.js
│ │ ├── ckeditor_source.js
│ │ ├── config.js
│ │ ├── contents.css
│ │ ├── css
│ │ ├── ckfinder.css
│ │ ├── fck_dialog.css
│ │ ├── fck_editor.css
│ │ └── swfupload.css
│ │ ├── images
│ │ ├── add.gif
│ │ ├── cancelbutton.gif
│ │ ├── ckfnothumb.gif
│ │ ├── doc.gif
│ │ ├── mp3.gif
│ │ ├── pdf.gif
│ │ ├── rar.gif
│ │ ├── refresh.gif
│ │ ├── select_files.png
│ │ ├── spacer.gif
│ │ ├── swf.gif
│ │ ├── toolbar.start.gif
│ │ └── xls.gif
│ │ ├── lang
│ │ ├── _languages.js
│ │ ├── _translationstatus.txt
│ │ ├── af.js
│ │ ├── ar.js
│ │ ├── bg.js
│ │ ├── bn.js
│ │ ├── bs.js
│ │ ├── ca.js
│ │ ├── cs.js
│ │ ├── cy.js
│ │ ├── da.js
│ │ ├── de.js
│ │ ├── el.js
│ │ ├── en-au.js
│ │ ├── en-ca.js
│ │ ├── en-gb.js
│ │ ├── en.js
│ │ ├── eo.js
│ │ ├── es.js
│ │ ├── et.js
│ │ ├── eu.js
│ │ ├── fa.js
│ │ ├── fi.js
│ │ ├── fo.js
│ │ ├── fr-ca.js
│ │ ├── fr.js
│ │ ├── gl.js
│ │ ├── gu.js
│ │ ├── he.js
│ │ ├── hi.js
│ │ ├── hr.js
│ │ ├── hu.js
│ │ ├── is.js
│ │ ├── it.js
│ │ ├── ja.js
│ │ ├── km.js
│ │ ├── ko.js
│ │ ├── lt.js
│ │ ├── lv.js
│ │ ├── mn.js
│ │ ├── ms.js
│ │ ├── nb.js
│ │ ├── nl.js
│ │ ├── no.js
│ │ ├── pl.js
│ │ ├── pt-br.js
│ │ ├── pt.js
│ │ ├── ro.js
│ │ ├── ru.js
│ │ ├── sk.js
│ │ ├── sl.js
│ │ ├── sr-latn.js
│ │ ├── sr.js
│ │ ├── sv.js
│ │ ├── th.js
│ │ ├── tr.js
│ │ ├── uk.js
│ │ ├── vi.js
│ │ ├── zh-cn.js
│ │ └── zh.js
│ │ ├── plugins
│ │ ├── a11yhelp
│ │ │ ├── dialogs
│ │ │ │ └── a11yhelp.js
│ │ │ └── lang
│ │ │ │ ├── en.js
│ │ │ │ └── he.js
│ │ ├── about
│ │ │ └── dialogs
│ │ │ │ ├── about.js
│ │ │ │ └── logo_ckeditor.png
│ │ ├── ajax_save
│ │ │ └── plugin.js
│ │ ├── attachment
│ │ │ ├── dialogs
│ │ │ │ └── attachment.js
│ │ │ ├── images
│ │ │ │ └── attachment.png
│ │ │ ├── lang
│ │ │ │ ├── en.js
│ │ │ │ ├── ru.js
│ │ │ │ └── uk.js
│ │ │ └── plugin.js
│ │ ├── autogrow
│ │ │ └── plugin.js
│ │ ├── clipboard
│ │ │ └── dialogs
│ │ │ │ └── paste.js
│ │ ├── colordialog
│ │ │ └── dialogs
│ │ │ │ └── colordialog.js
│ │ ├── dialog
│ │ │ └── dialogDefinition.js
│ │ ├── div
│ │ │ └── dialogs
│ │ │ │ └── div.js
│ │ ├── embed
│ │ │ ├── dialogs
│ │ │ │ └── embed.js
│ │ │ ├── images
│ │ │ │ └── embed.png
│ │ │ ├── lang
│ │ │ │ ├── en.js
│ │ │ │ ├── ru.js
│ │ │ │ └── uk.js
│ │ │ └── plugin.js
│ │ ├── find
│ │ │ └── dialogs
│ │ │ │ └── find.js
│ │ ├── flash
│ │ │ ├── dialogs
│ │ │ │ └── flash.js
│ │ │ └── images
│ │ │ │ └── placeholder.png
│ │ ├── forms
│ │ │ ├── dialogs
│ │ │ │ ├── button.js
│ │ │ │ ├── checkbox.js
│ │ │ │ ├── form.js
│ │ │ │ ├── hiddenfield.js
│ │ │ │ ├── radio.js
│ │ │ │ ├── select.js
│ │ │ │ ├── textarea.js
│ │ │ │ └── textfield.js
│ │ │ └── images
│ │ │ │ └── hiddenfield.gif
│ │ ├── iframedialog
│ │ │ └── plugin.js
│ │ ├── image
│ │ │ └── dialogs
│ │ │ │ └── image.js
│ │ ├── link
│ │ │ ├── dialogs
│ │ │ │ ├── anchor.js
│ │ │ │ └── link.js
│ │ │ └── images
│ │ │ │ └── anchor.gif
│ │ ├── liststyle
│ │ │ └── dialogs
│ │ │ │ └── liststyle.js
│ │ ├── pagebreak
│ │ │ └── images
│ │ │ │ └── pagebreak.gif
│ │ ├── pastefromword
│ │ │ └── filter
│ │ │ │ └── default.js
│ │ ├── pastetext
│ │ │ └── dialogs
│ │ │ │ └── pastetext.js
│ │ ├── scayt
│ │ │ └── dialogs
│ │ │ │ ├── options.js
│ │ │ │ └── toolbar.css
│ │ ├── showblocks
│ │ │ └── images
│ │ │ │ ├── block_address.png
│ │ │ │ ├── block_blockquote.png
│ │ │ │ ├── block_div.png
│ │ │ │ ├── block_h1.png
│ │ │ │ ├── block_h2.png
│ │ │ │ ├── block_h3.png
│ │ │ │ ├── block_h4.png
│ │ │ │ ├── block_h5.png
│ │ │ │ ├── block_h6.png
│ │ │ │ ├── block_p.png
│ │ │ │ └── block_pre.png
│ │ ├── smiley
│ │ │ ├── dialogs
│ │ │ │ └── smiley.js
│ │ │ └── images
│ │ │ │ ├── angel_smile.gif
│ │ │ │ ├── angry_smile.gif
│ │ │ │ ├── broken_heart.gif
│ │ │ │ ├── confused_smile.gif
│ │ │ │ ├── cry_smile.gif
│ │ │ │ ├── devil_smile.gif
│ │ │ │ ├── embaressed_smile.gif
│ │ │ │ ├── envelope.gif
│ │ │ │ ├── heart.gif
│ │ │ │ ├── kiss.gif
│ │ │ │ ├── lightbulb.gif
│ │ │ │ ├── omg_smile.gif
│ │ │ │ ├── regular_smile.gif
│ │ │ │ ├── sad_smile.gif
│ │ │ │ ├── shades_smile.gif
│ │ │ │ ├── teeth_smile.gif
│ │ │ │ ├── thumbs_down.gif
│ │ │ │ ├── thumbs_up.gif
│ │ │ │ ├── tounge_smile.gif
│ │ │ │ ├── whatchutalkingabout_smile.gif
│ │ │ │ └── wink_smile.gif
│ │ ├── specialchar
│ │ │ └── dialogs
│ │ │ │ └── specialchar.js
│ │ ├── styles
│ │ │ └── styles
│ │ │ │ └── default.js
│ │ ├── table
│ │ │ └── dialogs
│ │ │ │ └── table.js
│ │ ├── tableresize
│ │ │ └── plugin.js
│ │ ├── tabletools
│ │ │ └── dialogs
│ │ │ │ └── tableCell.js
│ │ ├── templates
│ │ │ ├── dialogs
│ │ │ │ └── templates.js
│ │ │ └── templates
│ │ │ │ ├── default.js
│ │ │ │ └── images
│ │ │ │ ├── template1.gif
│ │ │ │ ├── template2.gif
│ │ │ │ └── template3.gif
│ │ ├── uicolor
│ │ │ ├── dialogs
│ │ │ │ └── uicolor.js
│ │ │ ├── lang
│ │ │ │ ├── en.js
│ │ │ │ └── he.js
│ │ │ ├── plugin.js
│ │ │ ├── uicolor.gif
│ │ │ └── yui
│ │ │ │ ├── assets
│ │ │ │ ├── hue_bg.png
│ │ │ │ ├── hue_thumb.png
│ │ │ │ ├── picker_mask.png
│ │ │ │ ├── picker_thumb.png
│ │ │ │ └── yui.css
│ │ │ │ └── yui.js
│ │ └── wsc
│ │ │ └── dialogs
│ │ │ ├── ciframe.html
│ │ │ ├── tmpFrameset.html
│ │ │ ├── wsc.css
│ │ │ └── wsc.js
│ │ ├── skins
│ │ ├── kama
│ │ │ ├── dialog.css
│ │ │ ├── editor.css
│ │ │ ├── icons.png
│ │ │ ├── icons_rtl.png
│ │ │ ├── images
│ │ │ │ ├── dialog_sides.gif
│ │ │ │ ├── dialog_sides.png
│ │ │ │ ├── dialog_sides_rtl.png
│ │ │ │ ├── mini.gif
│ │ │ │ ├── noimage.png
│ │ │ │ ├── sprites.png
│ │ │ │ ├── sprites_ie6.png
│ │ │ │ └── toolbar_start.gif
│ │ │ ├── skin.js
│ │ │ └── templates.css
│ │ ├── office2003
│ │ │ ├── dialog.css
│ │ │ ├── editor.css
│ │ │ ├── icons.png
│ │ │ ├── icons_rtl.png
│ │ │ ├── images
│ │ │ │ ├── dialog_sides.gif
│ │ │ │ ├── dialog_sides.png
│ │ │ │ ├── dialog_sides_rtl.png
│ │ │ │ ├── mini.gif
│ │ │ │ ├── noimage.png
│ │ │ │ ├── sprites.png
│ │ │ │ └── sprites_ie6.png
│ │ │ ├── skin.js
│ │ │ └── templates.css
│ │ └── v2
│ │ │ ├── dialog.css
│ │ │ ├── editor.css
│ │ │ ├── icons.png
│ │ │ ├── icons_rtl.png
│ │ │ ├── images
│ │ │ ├── dialog_sides.gif
│ │ │ ├── dialog_sides.png
│ │ │ ├── dialog_sides_rtl.png
│ │ │ ├── mini.gif
│ │ │ ├── noimage.png
│ │ │ ├── sprites.png
│ │ │ ├── sprites_ie6.png
│ │ │ └── toolbar_start.gif
│ │ │ ├── skin.js
│ │ │ └── templates.css
│ │ ├── swfupload
│ │ ├── fileprogress.js
│ │ ├── handlers.js
│ │ ├── mootools-1.2.3-core-yc.js
│ │ ├── querystring.js
│ │ ├── swfupload.js
│ │ ├── swfupload.queue.js
│ │ ├── swfupload.swf
│ │ └── swfupload.swfobject.js
│ │ └── themes
│ │ └── default
│ │ └── theme.js
└── ckeditor_migration
│ ├── USAGE
│ ├── ckeditor_migration_generator.rb
│ └── templates
│ └── models
│ ├── attachment_fu
│ ├── asset.rb
│ ├── attachment_file.rb
│ ├── migration.rb
│ └── picture.rb
│ └── paperclip
│ ├── asset.rb
│ ├── attachment_file.rb
│ ├── migration.rb
│ └── picture.rb
├── init.rb
├── lib
├── ckeditor.rb
└── ckeditor
│ ├── form_builder.rb
│ ├── formtastic.rb
│ ├── middleware.rb
│ ├── safe_buffer.rb
│ ├── utils.rb
│ ├── version.rb
│ └── view_helper.rb
├── tasks
└── ckeditor_tasks.rake
└── uninstall.rb
/README.rdoc:
--------------------------------------------------------------------------------
1 | == Rails CKEditor integration plugin with SWFUpload support
2 |
3 | This repository moved to https://github.com/galetahub/ckeditor.
4 |
5 | Sorry for the inconvenience.
6 |
--------------------------------------------------------------------------------
/Rakefile:
--------------------------------------------------------------------------------
1 | # encoding: utf-8
2 | require 'rake'
3 | require 'rake/testtask'
4 | require 'rake/rdoctask'
5 | require File.join(File.dirname(__FILE__), 'lib', 'ckeditor', 'version')
6 |
7 | desc 'Default: run unit tests.'
8 | task :default => :test
9 |
10 | desc 'Test the ckeditor plugin.'
11 | Rake::TestTask.new(:test) do |t|
12 | t.libs << 'lib'
13 | t.pattern = 'test/**/*_test.rb'
14 | t.verbose = true
15 | end
16 |
17 | desc 'Generate documentation for the ckeditor plugin.'
18 | Rake::RDocTask.new(:rdoc) do |rdoc|
19 | rdoc.rdoc_dir = 'rdoc'
20 | rdoc.title = 'Ckeditor'
21 | rdoc.options << '--line-numbers' << '--inline-source'
22 | rdoc.rdoc_files.include('README')
23 | rdoc.rdoc_files.include('lib/**/*.rb')
24 | end
25 |
26 | begin
27 | require 'jeweler'
28 | Jeweler::Tasks.new do |gemspec|
29 | gemspec.name = "ckeditor"
30 | gemspec.version = Ckeditor::Version.dup
31 | gemspec.summary = "Rails plugin for integration ckeditor 3.x"
32 | gemspec.description = "CKEditor is a WYSIWYG editor to be used inside web pages"
33 | gemspec.email = "galeta.igor@gmail.com"
34 | gemspec.homepage = "http://github.com/galetahub/rails-ckeditor"
35 | gemspec.authors = ["Igor Galeta"]
36 | gemspec.files = FileList["[A-Z]*", "{app,config,lib,generators,examples}/**/*"]
37 | gemspec.rubyforge_project = "ckeditor"
38 |
39 | gemspec.add_dependency('mime-types', '>= 1.16')
40 | end
41 |
42 | Jeweler::GemcutterTasks.new
43 | rescue LoadError
44 | puts "Jeweler not available. Install it with: gem install jeweler"
45 | end
46 |
--------------------------------------------------------------------------------
/app/helpers/ckeditor_helper.rb:
--------------------------------------------------------------------------------
1 | module CkeditorHelper
2 | def ckeditor_attachment_path(kind)
3 | path = case kind
4 | when :image then Ckeditor.file_manager_image_upload_uri
5 | when :file then Ckeditor.file_manager_upload_uri
6 | else '/ckeditor/create/default'
7 | end
8 |
9 | session_key = ActionController::Base.session_options[:key]
10 |
11 | options = ActionController::Routing::Routes.recognize_path(path, :method => :post)
12 |
13 | options[:protocol] = "http://"
14 | options[session_key] = Rack::Utils.escape(cookies[session_key])
15 |
16 | if protect_against_forgery?
17 | options[request_forgery_protection_token] = Rack::Utils.escape(form_authenticity_token)
18 | end
19 |
20 | url_for(options)
21 | end
22 |
23 | def file_image_tag(filename, path)
24 | extname = File.extname(filename)
25 |
26 | image = case extname.to_s
27 | when '.swf' then '/javascripts/ckeditor/images/swf.gif'
28 | when '.pdf' then '/javascripts/ckeditor/images/pdf.gif'
29 | when '.doc', '.txt' then '/javascripts/ckeditor/images/doc.gif'
30 | when '.mp3' then '/javascripts/ckeditor/images/mp3.gif'
31 | when '.rar', '.zip', '.tg' then '/javascripts/ckeditor/images/rar.gif'
32 | when '.xls' then '/javascripts/ckeditor/images/xls.gif'
33 | else '/javascripts/ckeditor/images/ckfnothumb.gif'
34 | end
35 |
36 | image_tag(image, :alt=>path, :title=>filename, :onerror=>"this.src='/javascripts/ckeditor/images/ckfnothumb.gif'", :class=>'image')
37 | end
38 | end
39 |
--------------------------------------------------------------------------------
/app/views/ckeditor/_asset.html.erb:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | <%= image_tag(asset.url_thumb, :alt => asset.url_content, :title => asset.filename, :onerror=>"this.src='/javascripts/ckeditor/images/ckfnothumb.gif'", :class=>'image') %>
7 | |
8 |
9 |
10 |
11 |
12 |
<%= asset.filename %>
13 |
<%= asset.format_created_at %>
14 |
<%= number_to_human_size(asset.size, :precision => 2) %>
15 |
16 |
--------------------------------------------------------------------------------
/app/views/ckeditor/_swfupload.html.erb:
--------------------------------------------------------------------------------
1 |
52 |
--------------------------------------------------------------------------------
/app/views/layouts/ckeditor.html.erb:
--------------------------------------------------------------------------------
1 |
2 |
3 | CKEditor Files Manager
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
25 |
26 |
27 | <%= yield %>
28 |
29 |
30 |
--------------------------------------------------------------------------------
/config/routes.rb:
--------------------------------------------------------------------------------
1 | ActionController::Routing::Routes.draw do |map|
2 | map.connect 'ckeditor/images', :controller => 'ckeditor', :action => 'images'
3 | map.connect 'ckeditor/files', :controller => 'ckeditor', :action => 'files'
4 | map.connect 'ckeditor/create/:kind', :controller => 'ckeditor', :action => 'create'
5 | end
6 |
--------------------------------------------------------------------------------
/examples/migrations/attachment_fu/create_assets.rb:
--------------------------------------------------------------------------------
1 | class CreateAssets < ActiveRecord::Migration
2 | def self.up
3 | create_table :assets do |t|
4 | t.integer "parent_id"
5 | t.string "content_type"
6 | t.string "filename", :limit=>80
7 | t.string "thumbnail", :limit=>20
8 | t.integer "size"
9 | t.integer "width"
10 | t.integer "height"
11 | t.string "type", :limit=>40
12 | t.integer "user_id"
13 | t.integer "assetable_id"
14 | t.string "assetable_type", :limit=>40
15 |
16 | t.timestamps
17 | end
18 |
19 | add_index "assets", ["assetable_id", "assetable_type", "type"], :name => "ndx_type_assetable"
20 | add_index "assets", ["assetable_id", "assetable_type"], :name => "fk_assets"
21 | add_index "assets", ["parent_id", "type"], :name => "ndx_type_name"
22 | add_index "assets", ["thumbnail", "parent_id"], :name => "assets_thumbnail_parent_id"
23 | add_index "assets", ["user_id", "assetable_type", "assetable_id"], :name => "assets_user_type_assetable_id"
24 | add_index :assets, :user_id, :name=>"fk_user"
25 | end
26 |
27 | def self.down
28 | drop_table :assets
29 | end
30 | end
31 |
--------------------------------------------------------------------------------
/examples/migrations/paperclip/create_assets.rb:
--------------------------------------------------------------------------------
1 | class CreateAssets < ActiveRecord::Migration
2 | def self.up
3 | create_table :assets do |t|
4 | t.string :data_file_name
5 | t.string :data_content_type
6 | t.integer :data_file_size
7 |
8 | t.integer :assetable_id
9 | t.string :assetable_type, :limit=>25
10 | t.string :type, :limit=>25
11 |
12 | t.integer :user_id
13 |
14 | t.timestamps
15 | end
16 |
17 | add_index "assets", ["assetable_id", "assetable_type", "type"], :name => "ndx_type_assetable"
18 | add_index "assets", ["assetable_id", "assetable_type"], :name => "fk_assets"
19 | add_index "assets", ["user_id"], :name => "fk_user"
20 | end
21 |
22 | def self.down
23 | drop_table :assets
24 | end
25 | end
26 |
--------------------------------------------------------------------------------
/examples/models/attachment_fu/asset.rb:
--------------------------------------------------------------------------------
1 | class Asset < ActiveRecord::Base
2 |
3 | # === List of columns ===
4 | # id : integer
5 | # parent_id : integer
6 | # content_type : string
7 | # filename : string
8 | # thumbnail : string
9 | # size : integer
10 | # width : integer
11 | # height : integer
12 | # type : string
13 | # user_id : integer
14 | # assetable_id : integer
15 | # assetable_type : string
16 | # created_at : datetime
17 | # updated_at : datetime
18 | # =======================
19 |
20 | belongs_to :assetable, :polymorphic => true
21 |
22 | def url(*args)
23 | public_filename(*args)
24 | end
25 |
26 | def format_created_at
27 | I18n.l(self.created_at, :format=>"%d.%m.%Y %H:%M")
28 | end
29 |
30 | def to_xml(options = {})
31 | xml = options[:builder] ||= Builder::XmlMarkup.new(:indent => options[:indent])
32 |
33 | xml.tag!(self.read_attribute(:type).to_s.downcase) do
34 | xml.filename{ xml.cdata!(self.filename) }
35 | xml.size self.size
36 | xml.path{ xml.cdata!(self.public_filename) }
37 |
38 | xml.thumbnails do
39 | self.thumbnails.each do |t|
40 | xml.tag!(t.thumbnail, self.public_filename(t.thumbnail))
41 | end
42 | end unless self.thumbnails.empty?
43 | end
44 | end
45 | end
46 |
--------------------------------------------------------------------------------
/examples/models/attachment_fu/attachment_file.rb:
--------------------------------------------------------------------------------
1 | class AttachmentFile < Asset
2 |
3 | # === List of columns ===
4 | # id : integer
5 | # parent_id : integer
6 | # content_type : string
7 | # filename : string
8 | # thumbnail : string
9 | # size : integer
10 | # width : integer
11 | # height : integer
12 | # type : string
13 | # user_id : integer
14 | # assetable_id : integer
15 | # assetable_type : string
16 | # created_at : datetime
17 | # updated_at : datetime
18 | # =======================
19 |
20 | belongs_to :user
21 |
22 | has_attachment :storage => :file_system, :path_prefix => 'public/attachments/files',
23 | :max_size => 10.megabytes
24 |
25 | validates_as_attachment
26 |
27 | named_scope :masters, :conditions => {:parent_id => nil}
28 |
29 | # Map file extensions to mime types.
30 | # Thanks to bug in Flash 8 the content type is always set to application/octet-stream.
31 | # From: http://blog.airbladesoftware.com/2007/8/8/uploading-files-with-swfupload
32 | def swf_uploaded_data=(data)
33 | data.content_type = MIME::Types.type_for(data.original_filename)
34 | self.uploaded_data = data
35 | end
36 |
37 | def full_filename(thumbnail = nil)
38 | file_system_path = self.attachment_options[:path_prefix]
39 | File.join(RAILS_ROOT, file_system_path, file_name_for(self.id))
40 | end
41 |
42 | def file_name_for(asset = nil)
43 | extension = filename.scan(/\.\w+$/)
44 | return "#{asset}_#{filename}"
45 | end
46 | end
47 |
--------------------------------------------------------------------------------
/examples/models/attachment_fu/picture.rb:
--------------------------------------------------------------------------------
1 | class Picture < Asset
2 |
3 | # === List of columns ===
4 | # id : integer
5 | # parent_id : integer
6 | # content_type : string
7 | # filename : string
8 | # thumbnail : string
9 | # size : integer
10 | # width : integer
11 | # height : integer
12 | # type : string
13 | # user_id : integer
14 | # assetable_id : integer
15 | # assetable_type : string
16 | # created_at : datetime
17 | # updated_at : datetime
18 | # =======================
19 |
20 | belongs_to :user
21 | has_attachment :content_type => :image,
22 | :storage => :file_system, :path_prefix => 'public/attachments/pictures',
23 | :max_size => 2.megabytes,
24 | :size => 0.kilobytes..2000.kilobytes,
25 | :processor => 'Rmagick',
26 | :thumbnails => { :content => '575>', :thumb => '100x100!' }
27 |
28 | validates_as_attachment
29 |
30 | named_scope :masters, :conditions=>"parent_id IS NULL", :order=>'filename'
31 |
32 | def url_content
33 | public_filename(:content)
34 | end
35 |
36 | def url_thumb
37 | public_filename(:thumb)
38 | end
39 |
40 | def to_json(options = {})
41 | options[:methods] ||= []
42 | options[:methods] << :url_content
43 | options[:methods] << :url_thumb
44 | super options
45 | end
46 | end
47 |
--------------------------------------------------------------------------------
/examples/models/paperclip/asset.rb:
--------------------------------------------------------------------------------
1 | class Asset < ActiveRecord::Base
2 |
3 | # === List of columns ===
4 | # id : integer
5 | # data_file_name : string
6 | # data_content_type : string
7 | # data_file_size : integer
8 | # assetable_id : integer
9 | # assetable_type : string
10 | # type : string
11 | # locale : integer
12 | # user_id : integer
13 | # created_at : datetime
14 | # updated_at : datetime
15 | # =======================
16 |
17 |
18 | belongs_to :user
19 | belongs_to :assetable, :polymorphic => true
20 |
21 | def url(*args)
22 | data.url(*args)
23 | end
24 | alias :public_filename :url
25 |
26 | def filename
27 | data_file_name
28 | end
29 |
30 | def content_type
31 | data_content_type
32 | end
33 |
34 | def size
35 | data_file_size
36 | end
37 |
38 | def path
39 | data.path
40 | end
41 |
42 | def styles
43 | data.styles
44 | end
45 |
46 | def format_created_at
47 | I18n.l(self.created_at, :format=>"%d.%m.%Y %H:%M")
48 | end
49 |
50 | def to_xml(options = {})
51 | xml = options[:builder] ||= Builder::XmlMarkup.new(:indent => options[:indent])
52 |
53 | xml.tag!(self.type.to_s.downcase) do
54 | xml.filename{ xml.cdata!(self.filename) }
55 | xml.size self.size
56 | xml.path{ xml.cdata!(self.url) }
57 |
58 | xml.styles do
59 | self.styles.each do |style|
60 | xml.tag!(style.first, self.url(style.first))
61 | end
62 | end unless self.styles.empty?
63 | end
64 | end
65 | end
66 |
--------------------------------------------------------------------------------
/examples/models/paperclip/attachment_file.rb:
--------------------------------------------------------------------------------
1 | class AttachmentFile < Asset
2 |
3 | # === List of columns ===
4 | # id : integer
5 | # data_file_name : string
6 | # data_content_type : string
7 | # data_file_size : integer
8 | # assetable_id : integer
9 | # assetable_type : string
10 | # type : string
11 | # locale : integer
12 | # user_id : integer
13 | # created_at : datetime
14 | # updated_at : datetime
15 | # =======================
16 |
17 | has_attached_file :data,
18 | :url => "/assets/attachments/:id/:filename",
19 | :path => ":rails_root/public/assets/attachments/:id/:filename"
20 |
21 | validates_attachment_size :data, :less_than=>10.megabytes
22 | end
23 |
--------------------------------------------------------------------------------
/examples/models/paperclip/picture.rb:
--------------------------------------------------------------------------------
1 | class Picture < Asset
2 |
3 | # === List of columns ===
4 | # id : integer
5 | # data_file_name : string
6 | # data_content_type : string
7 | # data_file_size : integer
8 | # assetable_id : integer
9 | # assetable_type : string
10 | # type : string
11 | # locale : integer
12 | # user_id : integer
13 | # created_at : datetime
14 | # updated_at : datetime
15 | # =======================
16 |
17 |
18 | has_attached_file :data,
19 | :url => "/assets/pictures/:id/:style_:basename.:extension",
20 | :path => ":rails_root/public/assets/pictures/:id/:style_:basename.:extension",
21 | :styles => { :content => '575>', :thumb => '100x100' }
22 |
23 | validates_attachment_size :data, :less_than=>2.megabytes
24 |
25 | def url_content
26 | url(:content)
27 | end
28 |
29 | def url_thumb
30 | url(:thumb)
31 | end
32 |
33 | def to_json(options = {})
34 | options[:methods] ||= []
35 | options[:methods] << :url_content
36 | options[:methods] << :url_thumb
37 | super options
38 | end
39 | end
40 |
--------------------------------------------------------------------------------
/examples/s3/attachment_file.rb:
--------------------------------------------------------------------------------
1 | class AttachmentFile < Asset
2 |
3 | # === List of columns ===
4 | # id : integer
5 | # data_file_name : string
6 | # data_content_type : string
7 | # data_file_size : integer
8 | # assetable_id : integer
9 | # assetable_type : string
10 | # type : string
11 | # locale : integer
12 | # user_id : integer
13 | # created_at : datetime
14 | # updated_at : datetime
15 | # =======================
16 |
17 | has_attached_file :data,
18 | :s3_credentials => "#{Rails.root}/config/s3.yml", :bucket => "yourbucket",
19 | :storage => :s3,
20 | :path => "#{APP_NAME}/files/:id/:filename"
21 |
22 | validates_attachment_size :data, :less_than => 10.megabytes
23 | end
24 |
--------------------------------------------------------------------------------
/examples/s3/picture.rb:
--------------------------------------------------------------------------------
1 | class Picture < Asset
2 |
3 | # === List of columns ===
4 | # id : integer
5 | # data_file_name : string
6 | # data_content_type : string
7 | # data_file_size : integer
8 | # assetable_id : integer
9 | # assetable_type : string
10 | # type : string
11 | # locale : integer
12 | # user_id : integer
13 | # created_at : datetime
14 | # updated_at : datetime
15 | # =======================
16 |
17 |
18 |
19 | has_attached_file :data,
20 | :s3_credentials => "#{Rails.root}/config/s3.yml", :bucket => "yourbucket",
21 | :storage => :s3,
22 | :path => "#{APP_NAME}/images/:id/:style_:basename.:extension",
23 | :styles => { :content => '575>', :thumb => '100x100' }
24 |
25 | validates_attachment_size :data, :less_than=>2.megabytes
26 |
27 | def url_content
28 | url(:content)
29 | end
30 |
31 | def url_thumb
32 | url(:thumb)
33 | end
34 |
35 | def to_json(options = {})
36 | options[:methods] ||= []
37 | options[:methods] << :url_content
38 | options[:methods] << :url_thumb
39 | super options
40 | end
41 | end
42 |
--------------------------------------------------------------------------------
/examples/s3/s3.yml:
--------------------------------------------------------------------------------
1 | access_key_id: "YOUR KEY ID"
2 | secret_access_key: "YOUR SECRET KEY"
3 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/USAGE:
--------------------------------------------------------------------------------
1 | CKEditor
2 | ========
3 |
4 | # Copy ckeditor's core files into 'public/javascripts'
5 | # and generate configuration file in 'config/initializers/ckeditor.rb'
6 |
7 | ./script/generate ckeditor_install
8 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/ckeditor_install_generator.rb:
--------------------------------------------------------------------------------
1 | require 'fileutils'
2 |
3 | class CkeditorInstallGenerator < Rails::Generator::Base
4 |
5 | def manifest
6 | record do |m|
7 | copy_initializer(m)
8 | copy_javascripts(m)
9 |
10 | m.readme "README"
11 | end
12 | end
13 |
14 | private
15 |
16 | def copy_initializer(m)
17 | m.directory "config/initializers"
18 | m.template "ckeditor.rb", "config/initializers/ckeditor.rb"
19 | end
20 |
21 | def copy_javascripts(m)
22 | src_dir = File.join(@source_root, 'ckeditor')
23 | dst_dir = File.join(RAILS_ROOT, 'public', 'javascripts')
24 |
25 | FileUtils.cp_r src_dir, dst_dir, :verbose => true
26 | end
27 |
28 | end
29 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/README:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/README
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_samples/api_dialog/my_dialog.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | CKEDITOR.dialog.add( 'myDialog', function( editor )
7 | {
8 | return {
9 | title : 'My Dialog',
10 | minWidth : 400,
11 | minHeight : 200,
12 | contents : [
13 | {
14 | id : 'tab1',
15 | label : 'First Tab',
16 | title : 'First Tab',
17 | elements :
18 | [
19 | {
20 | id : 'input1',
21 | type : 'text',
22 | label : 'Input 1'
23 | }
24 | ]
25 | }
26 | ]
27 | };
28 | } );
29 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_samples/asp/sample_posteddata.asp:
--------------------------------------------------------------------------------
1 | <%@ codepage="65001" language="VBScript" %>
2 | <% Option Explicit %>
3 |
4 |
8 |
9 |
10 | Sample - CKEditor
11 |
12 |
13 |
14 |
15 |
16 | CKEditor - Posted Data
17 |
18 |
19 |
20 |
21 |
22 | Field Name |
23 | Value |
24 |
25 |
26 | <%
27 | Dim sForm
28 | For Each sForm in Request.Form
29 | %>
30 |
31 | <%=Server.HTMLEncode( sForm )%> |
32 | <%=Server.HTMLEncode( Request.Form(sForm) )%> |
33 |
34 | <% Next %>
35 |
36 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_samples/assets/output_for_flash.fla:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_samples/assets/output_for_flash.fla
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_samples/assets/output_for_flash.swf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_samples/assets/output_for_flash.swf
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_samples/replacebyclass.html:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 | Replace Textareas by Class Name - CKEditor Sample
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 | CKEditor Sample
17 |
18 |
19 |
20 |
27 |
28 |
38 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_samples/sample.css:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | fieldset
7 | {
8 | margin: 0;
9 | padding: 10px;
10 | }
11 |
12 | form
13 | {
14 | margin: 0;
15 | padding: 0;
16 | }
17 |
18 | pre
19 | {
20 | background-color: #F7F7F7;
21 | border: 1px solid #D7D7D7;
22 | overflow: auto;
23 | margin: 0;
24 | padding: 0.25em;
25 | }
26 |
27 | #alerts
28 | {
29 | color: Red;
30 | }
31 |
32 | #footer hr
33 | {
34 | margin: 10px 0 15px 0;
35 | height: 1px;
36 | border: solid 1px gray;
37 | border-bottom: none;
38 | }
39 |
40 | #footer p
41 | {
42 | margin: 0 10px 10px 10px;
43 | float: left;
44 | }
45 |
46 | #footer #copy
47 | {
48 | float: right;
49 | }
50 |
51 | #outputSample
52 | {
53 | width: 100%;
54 | table-layout: fixed;
55 | }
56 |
57 | #outputSample thead th
58 | {
59 | color: #dddddd;
60 | background-color: #999999;
61 | padding: 4px;
62 | white-space: nowrap;
63 | }
64 |
65 | #outputSample tbody th
66 | {
67 | vertical-align: top;
68 | text-align: left;
69 | }
70 |
71 | #outputSample pre
72 | {
73 | margin: 0;
74 | padding: 0;
75 | white-space: pre; /* CSS2 */
76 | white-space: -moz-pre-wrap; /* Mozilla*/
77 | white-space: -o-pre-wrap; /* Opera 7 */
78 | white-space: pre-wrap; /* CSS 2.1 */
79 | white-space: pre-line; /* CSS 3 (and 2.1 as well, actually) */
80 | word-wrap: break-word; /* IE */
81 | }
82 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_samples/sample.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | // This file is not required by CKEditor and may be safely ignored.
7 | // It is just a helper file that displays a red message about browser compatibility
8 | // at the top of the samples (if incompatible browser is detected).
9 |
10 | if ( window.CKEDITOR )
11 | {
12 | (function()
13 | {
14 | var showCompatibilityMsg = function()
15 | {
16 | var env = CKEDITOR.env;
17 |
18 | var html = 'Your browser is not compatible with CKEditor.';
19 |
20 | var browsers =
21 | {
22 | gecko : 'Firefox 2.0',
23 | ie : 'Internet Explorer 6.0',
24 | opera : 'Opera 9.5',
25 | webkit : 'Safari 3.0'
26 | };
27 |
28 | var alsoBrowsers = '';
29 |
30 | for ( var key in env )
31 | {
32 | if ( browsers[ key ] )
33 | {
34 | if ( env[key] )
35 | html += ' CKEditor is compatible with ' + browsers[ key ] + ' or higher.';
36 | else
37 | alsoBrowsers += browsers[ key ] + '+, ';
38 | }
39 | }
40 |
41 | alsoBrowsers = alsoBrowsers.replace( /\+,([^,]+), $/, '+ and $1' );
42 |
43 | html += ' It is also compatible with ' + alsoBrowsers + '.';
44 |
45 | html += '
With non compatible browsers, you should still be able to see and edit the contents (HTML) in a plain text field.
';
46 |
47 | var alertsEl = document.getElementById( 'alerts' );
48 | alertsEl && ( alertsEl.innerHTML = html );
49 | };
50 |
51 | var onload = function()
52 | {
53 | // Show a friendly compatibility message as soon as the page is loaded,
54 | // for those browsers that are not compatible with CKEditor.
55 | if ( !CKEDITOR.env.isCompatible )
56 | showCompatibilityMsg();
57 | };
58 |
59 | // Register the onload listener.
60 | if ( window.addEventListener )
61 | window.addEventListener( 'load', onload, false );
62 | else if ( window.attachEvent )
63 | window.attachEvent( 'onload', onload );
64 | })();
65 | }
66 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_samples/sample_posteddata.php:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 | Sample - CKEditor
11 |
12 |
13 |
14 |
15 |
16 | CKEditor - Posted Data
17 |
18 |
19 |
20 |
21 |
22 | Field Name |
23 | Value |
24 |
25 |
26 | $value )
34 | {
35 | if ( get_magic_quotes_gpc() )
36 | $postedValue = htmlspecialchars( stripslashes( $value ) ) ;
37 | else
38 | $postedValue = htmlspecialchars( $value ) ;
39 |
40 | ?>
41 |
42 | |
43 | |
44 |
45 |
48 |
49 |
58 |
59 |
60 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/core/dom.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | /**
7 | * @fileOverview Defines the {@link CKEDITOR.dom} object, which contains DOM
8 | * manipulation objects and function.
9 | */
10 |
11 | /**
12 | * @namespace DOM manipulation objects, classes and functions.
13 | * @see CKEDITOR.dom.element
14 | * @see CKEDITOR.dom.node
15 | * @example
16 | */
17 | CKEDITOR.dom =
18 | {};
19 |
20 | // PACKAGER_RENAME( CKEDITOR.dom )
21 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/core/dom/comment.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | /**
7 | * @fileOverview Defines the {@link CKEDITOR.dom.comment} class, which represents
8 | * a DOM comment node.
9 | */
10 |
11 | CKEDITOR.dom.comment = CKEDITOR.tools.createClass(
12 | {
13 | base : CKEDITOR.dom.node,
14 |
15 | $ : function( text, ownerDocument )
16 | {
17 | if ( typeof text == 'string' )
18 | text = ( ownerDocument ? ownerDocument.$ : document ).createComment( text );
19 |
20 | this.base( text );
21 | },
22 |
23 | proto :
24 | {
25 | type : CKEDITOR.NODE_COMMENT,
26 |
27 | getOuterHtml : function()
28 | {
29 | return '';
30 | }
31 | }
32 | });
33 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/core/dom/documentfragment.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | /**
7 | * @class DocumentFragment is a "lightweight" or "minimal" Document object. It is
8 | * commonly used to extract a portion of a document's tree or to create a new
9 | * fragment of a document. Various operations may take DocumentFragment objects
10 | * as arguments and results in all the child nodes of the DocumentFragment being
11 | * moved to the child list of this node.
12 | * @param {Object} ownerDocument
13 | */
14 | CKEDITOR.dom.documentFragment = function( ownerDocument )
15 | {
16 | ownerDocument = ownerDocument || CKEDITOR.document;
17 | this.$ = ownerDocument.$.createDocumentFragment();
18 | };
19 |
20 | CKEDITOR.tools.extend( CKEDITOR.dom.documentFragment.prototype,
21 | CKEDITOR.dom.element.prototype,
22 | {
23 | type : CKEDITOR.NODE_DOCUMENT_FRAGMENT,
24 | insertAfterNode : function( node )
25 | {
26 | node = node.$;
27 | node.parentNode.insertBefore( this.$, node.nextSibling );
28 | }
29 | },
30 | true,
31 | {
32 | 'append' : 1,
33 | 'appendBogus' : 1,
34 | 'getFirst' : 1,
35 | 'getLast' : 1,
36 | 'appendTo' : 1,
37 | 'moveChildren' : 1,
38 | 'insertBefore' : 1,
39 | 'insertAfterNode' : 1,
40 | 'replace' : 1,
41 | 'trim' : 1,
42 | 'type' : 1,
43 | 'ltrim' : 1,
44 | 'rtrim' : 1,
45 | 'getDocument' : 1,
46 | 'getChildCount' : 1,
47 | 'getChild' : 1,
48 | 'getChildren' : 1
49 | } );
50 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/core/dom/nodelist.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | /**
7 | * @class
8 | */
9 | CKEDITOR.dom.nodeList = function( nativeList )
10 | {
11 | this.$ = nativeList;
12 | };
13 |
14 | CKEDITOR.dom.nodeList.prototype =
15 | {
16 | count : function()
17 | {
18 | return this.$.length;
19 | },
20 |
21 | getItem : function( index )
22 | {
23 | var $node = this.$[ index ];
24 | return $node ? new CKEDITOR.dom.node( $node ) : null;
25 | }
26 | };
27 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/core/htmlparser/cdata.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | (function()
7 | {
8 |
9 | /**
10 | * A lightweight representation of HTML text.
11 | * @constructor
12 | * @example
13 | */
14 | CKEDITOR.htmlParser.cdata = function( value )
15 | {
16 | /**
17 | * The CDATA value.
18 | * @type String
19 | * @example
20 | */
21 | this.value = value;
22 | };
23 |
24 | CKEDITOR.htmlParser.cdata.prototype =
25 | {
26 | /**
27 | * CDATA has the same type as {@link CKEDITOR.htmlParser.text} This is
28 | * a constant value set to {@link CKEDITOR.NODE_TEXT}.
29 | * @type Number
30 | * @example
31 | */
32 | type : CKEDITOR.NODE_TEXT,
33 |
34 | /**
35 | * Writes write the CDATA with no special manipulations.
36 | * @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML.
37 | */
38 | writeHtml : function( writer )
39 | {
40 | writer.write( this.value );
41 | }
42 | };
43 | })();
44 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/core/htmlparser/comment.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | /**
7 | * A lightweight representation of an HTML comment.
8 | * @constructor
9 | * @example
10 | */
11 | CKEDITOR.htmlParser.comment = function( value )
12 | {
13 | /**
14 | * The comment text.
15 | * @type String
16 | * @example
17 | */
18 | this.value = value;
19 |
20 | /** @private */
21 | this._ =
22 | {
23 | isBlockLike : false
24 | };
25 | };
26 |
27 | CKEDITOR.htmlParser.comment.prototype =
28 | {
29 | /**
30 | * The node type. This is a constant value set to {@link CKEDITOR.NODE_COMMENT}.
31 | * @type Number
32 | * @example
33 | */
34 | type : CKEDITOR.NODE_COMMENT,
35 |
36 | /**
37 | * Writes the HTML representation of this comment to a CKEDITOR.htmlWriter.
38 | * @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML.
39 | * @example
40 | */
41 | writeHtml : function( writer, filter )
42 | {
43 | var comment = this.value;
44 |
45 | if ( filter )
46 | {
47 | if ( !( comment = filter.onComment( comment, this ) ) )
48 | return;
49 |
50 | if ( typeof comment != 'string' )
51 | {
52 | comment.parent = this.parent;
53 | comment.writeHtml( writer, filter );
54 | return;
55 | }
56 | }
57 |
58 | writer.comment( comment );
59 | }
60 | };
61 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/core/htmlparser/text.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | (function()
7 | {
8 | var spacesRegex = /[\t\r\n ]{2,}|[\t\r\n]/g;
9 |
10 | /**
11 | * A lightweight representation of HTML text.
12 | * @constructor
13 | * @example
14 | */
15 | CKEDITOR.htmlParser.text = function( value )
16 | {
17 | /**
18 | * The text value.
19 | * @type String
20 | * @example
21 | */
22 | this.value = value;
23 |
24 | /** @private */
25 | this._ =
26 | {
27 | isBlockLike : false
28 | };
29 | };
30 |
31 | CKEDITOR.htmlParser.text.prototype =
32 | {
33 | /**
34 | * The node type. This is a constant value set to {@link CKEDITOR.NODE_TEXT}.
35 | * @type Number
36 | * @example
37 | */
38 | type : CKEDITOR.NODE_TEXT,
39 |
40 | /**
41 | * Writes the HTML representation of this text to a CKEDITOR.htmlWriter.
42 | * @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML.
43 | * @example
44 | */
45 | writeHtml : function( writer, filter )
46 | {
47 | var text = this.value;
48 |
49 | if ( filter && !( text = filter.onText( text, this ) ) )
50 | return;
51 |
52 | writer.text( text );
53 | }
54 | };
55 | })();
56 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/core/themes.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | /**
7 | * @fileOverview Defines the {@link CKEDITOR.themes} object, which is used to
8 | * manage themes registration and loading.
9 | */
10 |
11 | /**
12 | * Manages themes registration and loading.
13 | * @namespace
14 | * @augments CKEDITOR.resourceManager
15 | * @example
16 | */
17 | CKEDITOR.themes = new CKEDITOR.resourceManager(
18 | '_source/'+ // @Packager.RemoveLine
19 | 'themes/', 'theme' );
20 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/a11yhelp/plugin.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | /**
7 | * @fileOverview Plugin definition for the a11yhelp, which provides a dialog
8 | * with accessibility related help.
9 | */
10 |
11 | (function()
12 | {
13 | var pluginName = 'a11yhelp',
14 | commandName = 'a11yHelp';
15 |
16 | CKEDITOR.plugins.add( pluginName,
17 | {
18 | // List of available localizations.
19 | availableLangs : { en:1, he:1 },
20 |
21 | init : function( editor )
22 | {
23 | var plugin = this;
24 | editor.addCommand( commandName,
25 | {
26 | exec : function()
27 | {
28 | var langCode = editor.langCode;
29 | langCode = plugin.availableLangs[ langCode ] ? langCode : 'en';
30 |
31 | CKEDITOR.scriptLoader.load(
32 | CKEDITOR.getUrl( plugin.path + 'lang/' + langCode + '.js' ),
33 | function()
34 | {
35 | CKEDITOR.tools.extend( editor.lang, plugin.lang[ langCode ] );
36 | editor.openDialog( commandName );
37 | });
38 | },
39 | modes : { wysiwyg:1, source:1 },
40 | canUndo : false
41 | });
42 |
43 | CKEDITOR.dialog.add( commandName, this.path + 'dialogs/a11yhelp.js' );
44 | }
45 | });
46 | })();
47 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/about/dialogs/logo_ckeditor.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/about/dialogs/logo_ckeditor.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/about/plugin.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | CKEDITOR.plugins.add( 'about',
7 | {
8 | requires : [ 'dialog' ],
9 | init : function( editor )
10 | {
11 | var command = editor.addCommand( 'about', new CKEDITOR.dialogCommand( 'about' ) );
12 | command.modes = { wysiwyg:1, source:1 };
13 | command.canUndo = false;
14 |
15 | editor.ui.addButton( 'About',
16 | {
17 | label : editor.lang.about.title,
18 | command : 'about'
19 | });
20 |
21 | CKEDITOR.dialog.add( 'about', this.path + 'dialogs/about.js' );
22 | }
23 | });
24 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/ajax_save/plugin.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | /**
7 | * @file Paste as plain text plugin
8 | */
9 |
10 | (function()
11 | {
12 | // The pastetext command definition.
13 | var embedCmd =
14 | {
15 | exec : function( editor )
16 | {
17 | editor.openDialog( 'embed' );
18 | return;
19 | }
20 | };
21 |
22 | // Register the plugin.
23 | CKEDITOR.plugins.add( 'embed',
24 | {
25 | lang : [ 'en', 'ru', 'uk' ],
26 | requires : [ 'dialog' ],
27 |
28 | init : function( editor )
29 | {
30 | var commandName = 'embed';
31 | editor.addCommand( commandName, embedCmd );
32 |
33 | editor.ui.addButton( 'Embed',
34 | {
35 | label : editor.lang.embed.button,
36 | command : commandName,
37 | icon: this.path + "images/embed.png"
38 | });
39 | CKEDITOR.dialog.add( commandName, CKEDITOR.getUrl( this.path + 'dialogs/embed.js' ) );
40 | }
41 | });
42 |
43 | })();
44 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/attachment/images/attachment.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/attachment/images/attachment.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/attachment/lang/en.js:
--------------------------------------------------------------------------------
1 | CKEDITOR.plugins.setLang('attachment', 'en',
2 | {
3 | attachment :
4 | {
5 | title : "Insert attachment",
6 | url: "URL",
7 | name: "Title",
8 | button : "Insert attachment"
9 | }
10 | });
11 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/attachment/lang/ru.js:
--------------------------------------------------------------------------------
1 | CKEDITOR.plugins.setLang('attachment', 'ru',
2 | {
3 | attachment :
4 | {
5 | title : "Включить вложения",
6 | url: "URL",
7 | name: "Название",
8 | button : "Вставить"
9 | }
10 | });
11 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/attachment/lang/uk.js:
--------------------------------------------------------------------------------
1 | CKEDITOR.plugins.setLang('attachment', 'uk',
2 | {
3 | attachment :
4 | {
5 | title : "Вставити файл",
6 | url: "URL",
7 | name: "Назва",
8 | button : "Вставити"
9 | }
10 | });
11 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/attachment/plugin.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | /**
7 | * @file Paste as plain text plugin
8 | */
9 |
10 | (function()
11 | {
12 | // The pastetext command definition.
13 | var attachmentCmd =
14 | {
15 | exec : function( editor )
16 | {
17 | editor.openDialog( 'attachment' );
18 | return;
19 | }
20 | };
21 |
22 | // Register the plugin.
23 | CKEDITOR.plugins.add( 'attachment',
24 | {
25 | lang : [ 'en', 'ru', 'uk' ],
26 | requires : [ 'dialog' ],
27 |
28 | init : function( editor )
29 | {
30 | var commandName = 'attachment';
31 | editor.addCommand( commandName, attachmentCmd );
32 |
33 | editor.ui.addButton( 'Attachment',
34 | {
35 | label : editor.lang.attachment.button,
36 | command : commandName,
37 | icon: this.path + "images/attachment.png"
38 | });
39 |
40 | CKEDITOR.dialog.add( commandName, CKEDITOR.getUrl( this.path + 'dialogs/attachment.js' ) );
41 | }
42 | });
43 |
44 | })();
45 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/colordialog/plugin.js:
--------------------------------------------------------------------------------
1 | ( function()
2 | {
3 | CKEDITOR.plugins.colordialog =
4 | {
5 | init : function( editor )
6 | {
7 | editor.addCommand( 'colordialog', new CKEDITOR.dialogCommand( 'colordialog' ) );
8 | CKEDITOR.dialog.add( 'colordialog', this.path + 'dialogs/colordialog.js' );
9 | }
10 | };
11 |
12 | CKEDITOR.plugins.add( 'colordialog', CKEDITOR.plugins.colordialog );
13 | } )();
14 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/embed/dialogs/embed.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | (function()
7 | {
8 | CKEDITOR.dialog.add( 'embed', function( editor )
9 | {
10 | return {
11 | title : editor.lang.embed.title,
12 |
13 | minWidth : CKEDITOR.env.ie && CKEDITOR.env.quirks ? 368 : 350,
14 | minHeight : 240,
15 |
16 | onShow : function()
17 | {
18 | // Reset the textarea value.
19 | this.getContentElement( 'general', 'content' ).getInputElement().setValue( '' );
20 | },
21 |
22 | onOk : function()
23 | {
24 | // Get the textarea value.
25 | var text = this.getContentElement( 'general', 'content' ).getInputElement().getValue();
26 |
27 | // Inserts the html.
28 | this.getParentEditor().insertHtml( text );
29 | },
30 |
31 | contents :
32 | [
33 | {
34 | label : editor.lang.common.generalTab,
35 | id : 'general',
36 | elements :
37 | [
38 | {
39 | type : 'html',
40 | id : 'pasteMsg',
41 | html : '' + editor.lang.embed.pasteMsg + '
'
42 | },
43 | {
44 | type : 'html',
45 | id : 'content',
46 | style : 'width:340px;height:170px',
47 | html :
48 | '',
55 | focus : function()
56 | {
57 | this.getElement().focus();
58 | }
59 | }
60 | ]
61 | }
62 | ]
63 | };
64 | });
65 | })();
66 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/embed/images/embed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/embed/images/embed.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/embed/lang/en.js:
--------------------------------------------------------------------------------
1 | CKEDITOR.plugins.setLang('embed', 'en',
2 | {
3 | embed :
4 | {
5 | title : "Paste embed",
6 | button : "Paste embed",
7 | pasteMsg : "Please, paste embed-code from Youtube, Myspace, Flickr and others sources into rectangle, using the keyboard (Ctrl + V), and click OK."
8 | }
9 | });
10 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/embed/lang/ru.js:
--------------------------------------------------------------------------------
1 | CKEDITOR.plugins.setLang('embed', 'ru',
2 | {
3 | embed :
4 | {
5 | title : "Вставить embed",
6 | button : "Вставить embed",
7 | pasteMsg : "Пожалуйста, вставьте embed-код с Youtube, Myspace, Flickr и других ресурсов в прямоугольник, используя сочетание клавиш (Ctrl+V), и нажмите OK."
8 | }
9 | });
10 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/embed/lang/uk.js:
--------------------------------------------------------------------------------
1 | CKEDITOR.plugins.setLang('embed', 'uk',
2 | {
3 | embed :
4 | {
5 | title : "Вставити embed",
6 | button : "Вставити embed",
7 | pasteMsg : "Будь ласка, вставте embed-код з Youtube, Myspace, Flickr та інших ресурсів в прямокутник, використовуючи (Ctrl+V), та нажміть OK."
8 | }
9 | });
10 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/embed/plugin.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | /**
7 | * @file Paste as plain text plugin
8 | */
9 |
10 | (function()
11 | {
12 | // The pastetext command definition.
13 | var embedCmd =
14 | {
15 | exec : function( editor )
16 | {
17 | editor.openDialog( 'embed' );
18 | return;
19 | }
20 | };
21 |
22 | // Register the plugin.
23 | CKEDITOR.plugins.add( 'embed',
24 | {
25 | lang : [ 'en', 'ru', 'uk' ],
26 | requires : [ 'dialog' ],
27 |
28 | init : function( editor )
29 | {
30 | var commandName = 'embed';
31 | editor.addCommand( commandName, embedCmd );
32 |
33 | editor.ui.addButton( 'Embed',
34 | {
35 | label : editor.lang.embed.button,
36 | command : commandName,
37 | icon: this.path + "images/embed.png"
38 | });
39 | CKEDITOR.dialog.add( commandName, CKEDITOR.getUrl( this.path + 'dialogs/embed.js' ) );
40 | }
41 | });
42 |
43 | })();
44 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/find/plugin.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | CKEDITOR.plugins.add( 'find',
7 | {
8 | init : function( editor )
9 | {
10 | var forms = CKEDITOR.plugins.find;
11 | editor.ui.addButton( 'Find',
12 | {
13 | label : editor.lang.findAndReplace.find,
14 | command : 'find'
15 | });
16 | var findCommand = editor.addCommand( 'find', new CKEDITOR.dialogCommand( 'find' ) );
17 | findCommand.canUndo = false;
18 |
19 | editor.ui.addButton( 'Replace',
20 | {
21 | label : editor.lang.findAndReplace.replace,
22 | command : 'replace'
23 | });
24 | var replaceCommand = editor.addCommand( 'replace', new CKEDITOR.dialogCommand( 'replace' ) );
25 | replaceCommand.canUndo = false;
26 |
27 | CKEDITOR.dialog.add( 'find', this.path + 'dialogs/find.js' );
28 | CKEDITOR.dialog.add( 'replace', this.path + 'dialogs/find.js' );
29 | },
30 |
31 | requires : [ 'styles' ]
32 | } );
33 |
34 | /**
35 | * Defines the style to be used to highlight results with the find dialog.
36 | * @type Object
37 | * @default { element : 'span', styles : { 'background-color' : '#004', 'color' : '#fff' } }
38 | * @example
39 | * // Highlight search results with blue on yellow.
40 | * config.find_highlight =
41 | * {
42 | * element : 'span',
43 | * styles : { 'background-color' : '#ff0', 'color' : '#00f' }
44 | * };
45 | */
46 | CKEDITOR.config.find_highlight = { element : 'span', styles : { 'background-color' : '#004', 'color' : '#fff' } };
47 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/flash/images/placeholder.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/flash/images/placeholder.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/forms/images/hiddenfield.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/forms/images/hiddenfield.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/horizontalrule/plugin.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | /**
7 | * @file Horizontal Rule plugin.
8 | */
9 |
10 | (function()
11 | {
12 | var horizontalruleCmd =
13 | {
14 | canUndo : false, // The undo snapshot will be handled by 'insertElement'.
15 | exec : function( editor )
16 | {
17 | editor.insertElement( editor.document.createElement( 'hr' ) );
18 | }
19 | };
20 |
21 | var pluginName = 'horizontalrule';
22 |
23 | // Register a plugin named "horizontalrule".
24 | CKEDITOR.plugins.add( pluginName,
25 | {
26 | init : function( editor )
27 | {
28 | editor.addCommand( pluginName, horizontalruleCmd );
29 | editor.ui.addButton( 'HorizontalRule',
30 | {
31 | label : editor.lang.horizontalrule,
32 | command : pluginName
33 | });
34 | }
35 | });
36 | })();
37 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/link/images/anchor.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/link/images/anchor.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/liststyle/plugin.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | (function()
7 | {
8 | CKEDITOR.plugins.liststyle =
9 | {
10 | requires : [ 'dialog' ],
11 | init : function( editor )
12 | {
13 | editor.addCommand( 'numberedListStyle', new CKEDITOR.dialogCommand( 'numberedListStyle' ) );
14 | CKEDITOR.dialog.add( 'numberedListStyle', this.path + 'dialogs/liststyle.js' );
15 | editor.addCommand( 'bulletedListStyle', new CKEDITOR.dialogCommand( 'bulletedListStyle' ) );
16 | CKEDITOR.dialog.add( 'bulletedListStyle', this.path + 'dialogs/liststyle.js' );
17 |
18 | // If the "menu" plugin is loaded, register the menu items.
19 | if ( editor.addMenuItems )
20 | {
21 | //Register map group;
22 | editor.addMenuGroup("list", 108);
23 |
24 | editor.addMenuItems(
25 | {
26 | numberedlist :
27 | {
28 | label : editor.lang.list.numberedTitle,
29 | group : 'list',
30 | command: 'numberedListStyle'
31 | },
32 | bulletedlist :
33 | {
34 | label : editor.lang.list.bulletedTitle,
35 | group : 'list',
36 | command: 'bulletedListStyle'
37 | }
38 | });
39 | }
40 |
41 | // If the "contextmenu" plugin is loaded, register the listeners.
42 | if ( editor.contextMenu )
43 | {
44 | editor.contextMenu.addListener( function( element, selection )
45 | {
46 | if ( !element || element.isReadOnly() )
47 | return null;
48 |
49 | while ( element )
50 | {
51 | var name = element.getName();
52 | if ( name == 'ol' )
53 | return { numberedlist: CKEDITOR.TRISTATE_OFF };
54 | else if ( name == 'ul' )
55 | return { bulletedlist: CKEDITOR.TRISTATE_OFF };
56 |
57 | element = element.getParent();
58 | }
59 | return null;
60 | });
61 | }
62 | }
63 | };
64 |
65 | CKEDITOR.plugins.add( 'liststyle', CKEDITOR.plugins.liststyle );
66 | })();
67 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/newpage/plugin.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | /**
7 | * @file Horizontal Page Break
8 | */
9 |
10 | // Register a plugin named "newpage".
11 | CKEDITOR.plugins.add( 'newpage',
12 | {
13 | init : function( editor )
14 | {
15 | editor.addCommand( 'newpage',
16 | {
17 | modes : { wysiwyg:1, source:1 },
18 |
19 | exec : function( editor )
20 | {
21 | var command = this;
22 | editor.setData( editor.config.newpage_html || '', function()
23 | {
24 | // Save the undo snapshot after all document changes are affected. (#4889)
25 | setTimeout( function ()
26 | {
27 | editor.fire( 'afterCommandExec',
28 | {
29 | name: command.name,
30 | command: command
31 | } );
32 |
33 | }, 200 );
34 | } );
35 | editor.focus();
36 | },
37 | async : true
38 | });
39 |
40 | editor.ui.addButton( 'NewPage',
41 | {
42 | label : editor.lang.newPage,
43 | command : 'newpage'
44 | });
45 | }
46 | });
47 | /**
48 | * The HTML to load in the editor when the "new page" command is executed.
49 | * @type String
50 | * @default ''
51 | * @example
52 | * config.newpage_html = '<p>Type your text here.</p>';
53 | */
54 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/pagebreak/images/pagebreak.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/pagebreak/images/pagebreak.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | (function()
7 | {
8 | CKEDITOR.dialog.add( 'pastetext', function( editor )
9 | {
10 | return {
11 | title : editor.lang.pasteText.title,
12 |
13 | minWidth : CKEDITOR.env.ie && CKEDITOR.env.quirks ? 368 : 350,
14 | minHeight : 240,
15 |
16 | onShow : function()
17 | {
18 | // Reset the textarea value.
19 | this.getContentElement( 'general', 'content' ).getInputElement().setValue( '' );
20 | },
21 |
22 | onOk : function()
23 | {
24 | // Get the textarea value.
25 | var text = this.getContentElement( 'general', 'content' ).getInputElement().getValue(),
26 | editor = this.getParentEditor();
27 |
28 | setTimeout( function()
29 | {
30 | editor.fire( 'paste', { 'text' : text } );
31 | }, 0 );
32 | },
33 |
34 | contents :
35 | [
36 | {
37 | label : editor.lang.common.generalTab,
38 | id : 'general',
39 | elements :
40 | [
41 | {
42 | type : 'html',
43 | id : 'pasteMsg',
44 | html : '' + editor.lang.clipboard.pasteMsg + '
'
45 | },
46 | {
47 | type : 'textarea',
48 | id : 'content',
49 | className : 'cke_pastetext',
50 |
51 | onLoad : function()
52 | {
53 | var label = this.getDialog().getContentElement( 'general', 'pasteMsg' ).getElement(),
54 | input = this.getElement().getElementsByTag( 'textarea' ).getItem( 0 );
55 |
56 | input.setAttribute( 'aria-labelledby', label.$.id );
57 | input.setStyle( 'direction', editor.config.contentsLangDirection );
58 | },
59 |
60 | focus : function()
61 | {
62 | this.getElement().focus();
63 | }
64 | }
65 | ]
66 | }
67 | ]
68 | };
69 | });
70 | })();
71 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/print/plugin.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | /**
7 | * @file Print Plugin
8 | */
9 |
10 | CKEDITOR.plugins.add( 'print',
11 | {
12 | init : function( editor )
13 | {
14 | var pluginName = 'print';
15 |
16 | // Register the command.
17 | var command = editor.addCommand( pluginName, CKEDITOR.plugins.print );
18 |
19 | // Register the toolbar button.
20 | editor.ui.addButton( 'Print',
21 | {
22 | label : editor.lang.print,
23 | command : pluginName
24 | });
25 | }
26 | } );
27 |
28 | CKEDITOR.plugins.print =
29 | {
30 | exec : function( editor )
31 | {
32 | if ( CKEDITOR.env.opera )
33 | return;
34 | else if ( CKEDITOR.env.gecko )
35 | editor.window.$.print();
36 | else
37 | editor.document.$.execCommand( "Print" );
38 | },
39 | canUndo : false,
40 | modes : { wysiwyg : !( CKEDITOR.env.opera ) } // It is imposible to print the inner document in Opera.
41 | };
42 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/save/plugin.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | /**
7 | * @fileSave plugin.
8 | */
9 |
10 | (function()
11 | {
12 | var saveCmd =
13 | {
14 | modes : { wysiwyg:1, source:1 },
15 |
16 | exec : function( editor )
17 | {
18 | var $form = editor.element.$.form;
19 |
20 | if ( $form )
21 | {
22 | try
23 | {
24 | $form.submit();
25 | }
26 | catch( e )
27 | {
28 | // If there's a button named "submit" then the form.submit
29 | // function is masked and can't be called in IE/FF, so we
30 | // call the click() method of that button.
31 | if ( $form.submit.click )
32 | $form.submit.click();
33 | }
34 | }
35 | }
36 | };
37 |
38 | var pluginName = 'save';
39 |
40 | // Register a plugin named "save".
41 | CKEDITOR.plugins.add( pluginName,
42 | {
43 | init : function( editor )
44 | {
45 | var command = editor.addCommand( pluginName, saveCmd );
46 | command.modes = { wysiwyg : !!( editor.element.$.form ) };
47 |
48 | editor.ui.addButton( 'Save',
49 | {
50 | label : editor.lang.save,
51 | command : pluginName
52 | });
53 | }
54 | });
55 | })();
56 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/scayt/dialogs/toolbar.css:
--------------------------------------------------------------------------------
1 | a
2 | {
3 | text-decoration:none;
4 | padding: 2px 4px 4px 6px;
5 | display : block;
6 | border-width: 1px;
7 | border-style: solid;
8 | margin : 0px;
9 | }
10 |
11 | a.cke_scayt_toogle:hover,
12 | a.cke_scayt_toogle:focus,
13 | a.cke_scayt_toogle:active
14 | {
15 | border-color: #316ac5;
16 | background-color: #dff1ff;
17 | color : #000;
18 | cursor: pointer;
19 | margin : 0px;
20 | }
21 | a.cke_scayt_toogle {
22 | color : #316ac5;
23 | border-color: #fff;
24 | }
25 | .scayt_enabled a.cke_scayt_item {
26 | color : #316ac5;
27 | border-color: #fff;
28 | margin : 0px;
29 | }
30 | .scayt_disabled a.cke_scayt_item {
31 | color : gray;
32 | border-color : #fff;
33 | }
34 | .scayt_enabled a.cke_scayt_item:hover,
35 | .scayt_enabled a.cke_scayt_item:focus,
36 | .scayt_enabled a.cke_scayt_item:active
37 | {
38 | border-color: #316ac5;
39 | background-color: #dff1ff;
40 | color : #000;
41 | cursor: pointer;
42 | }
43 | .scayt_disabled a.cke_scayt_item:hover,
44 | .scayt_disabled a.cke_scayt_item:focus,
45 | .scayt_disabled a.cke_scayt_item:active
46 | {
47 | border-color: gray;
48 | background-color: #dff1ff;
49 | color : gray;
50 | cursor: no-drop;
51 | }
52 | .cke_scayt_set_on, .cke_scayt_set_off
53 | {
54 | display: none;
55 | }
56 | .scayt_enabled .cke_scayt_set_on
57 | {
58 | display: none;
59 | }
60 | .scayt_disabled .cke_scayt_set_on
61 | {
62 | display: inline;
63 | }
64 | .scayt_disabled .cke_scayt_set_off
65 | {
66 | display: none;
67 | }
68 | .scayt_enabled .cke_scayt_set_off
69 | {
70 | display: inline;
71 | }
72 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/showblocks/images/block_address.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/showblocks/images/block_address.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/showblocks/images/block_blockquote.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/showblocks/images/block_blockquote.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/showblocks/images/block_div.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/showblocks/images/block_div.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/showblocks/images/block_h1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/showblocks/images/block_h1.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/showblocks/images/block_h2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/showblocks/images/block_h2.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/showblocks/images/block_h3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/showblocks/images/block_h3.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/showblocks/images/block_h4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/showblocks/images/block_h4.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/showblocks/images/block_h5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/showblocks/images/block_h5.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/showblocks/images/block_h6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/showblocks/images/block_h6.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/showblocks/images/block_p.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/showblocks/images/block_p.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/showblocks/images/block_pre.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/showblocks/images/block_pre.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/angel_smile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/angel_smile.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/angry_smile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/angry_smile.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/broken_heart.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/broken_heart.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/confused_smile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/confused_smile.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/cry_smile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/cry_smile.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/devil_smile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/devil_smile.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/embaressed_smile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/embaressed_smile.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/envelope.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/envelope.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/heart.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/heart.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/kiss.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/kiss.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/lightbulb.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/lightbulb.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/omg_smile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/omg_smile.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/regular_smile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/regular_smile.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/sad_smile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/sad_smile.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/shades_smile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/shades_smile.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/teeth_smile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/teeth_smile.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/thumbs_down.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/thumbs_down.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/thumbs_up.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/thumbs_up.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/tounge_smile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/tounge_smile.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/whatchutalkingabout_smile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/whatchutalkingabout_smile.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/wink_smile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/images/wink_smile.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/specialchar/plugin.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | /**
7 | * @file Special Character plugin
8 | */
9 |
10 | CKEDITOR.plugins.add( 'specialchar',
11 | {
12 | init : function( editor )
13 | {
14 | var pluginName = 'specialchar';
15 |
16 | // Register the dialog.
17 | CKEDITOR.dialog.add( pluginName, this.path + 'dialogs/specialchar.js' );
18 |
19 | // Register the command.
20 | editor.addCommand( pluginName, new CKEDITOR.dialogCommand( pluginName ) );
21 |
22 | // Register the toolbar button.
23 | editor.ui.addButton( 'SpecialChar',
24 | {
25 | label : editor.lang.specialChar.toolbar,
26 | command : pluginName
27 | });
28 | }
29 | } );
30 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/table/plugin.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | CKEDITOR.plugins.add( 'table',
7 | {
8 | init : function( editor )
9 | {
10 | var table = CKEDITOR.plugins.table,
11 | lang = editor.lang.table;
12 |
13 | editor.addCommand( 'table', new CKEDITOR.dialogCommand( 'table' ) );
14 | editor.addCommand( 'tableProperties', new CKEDITOR.dialogCommand( 'tableProperties' ) );
15 |
16 | editor.ui.addButton( 'Table',
17 | {
18 | label : lang.toolbar,
19 | command : 'table'
20 | });
21 |
22 | CKEDITOR.dialog.add( 'table', this.path + 'dialogs/table.js' );
23 | CKEDITOR.dialog.add( 'tableProperties', this.path + 'dialogs/table.js' );
24 |
25 | // If the "menu" plugin is loaded, register the menu items.
26 | if ( editor.addMenuItems )
27 | {
28 | editor.addMenuItems(
29 | {
30 | table :
31 | {
32 | label : lang.menu,
33 | command : 'tableProperties',
34 | group : 'table',
35 | order : 5
36 | },
37 |
38 | tabledelete :
39 | {
40 | label : lang.deleteTable,
41 | command : 'tableDelete',
42 | group : 'table',
43 | order : 1
44 | }
45 | } );
46 | }
47 |
48 | editor.on( 'doubleclick', function( evt )
49 | {
50 | var element = evt.data.element;
51 |
52 | if ( element.is( 'table' ) )
53 | evt.data.dialog = 'tableProperties';
54 | });
55 |
56 | // If the "contextmenu" plugin is loaded, register the listeners.
57 | if ( editor.contextMenu )
58 | {
59 | editor.contextMenu.addListener( function( element, selection )
60 | {
61 | if ( !element || element.isReadOnly() )
62 | return null;
63 |
64 | var isTable = element.hasAscendant( 'table', 1 );
65 |
66 | if ( isTable )
67 | {
68 | return {
69 | tabledelete : CKEDITOR.TRISTATE_OFF,
70 | table : CKEDITOR.TRISTATE_OFF
71 | };
72 | }
73 |
74 | return null;
75 | } );
76 | }
77 | }
78 | } );
79 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/templates/templates/images/template1.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/templates/templates/images/template1.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/templates/templates/images/template2.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/templates/templates/images/template2.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/templates/templates/images/template3.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/templates/templates/images/template3.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/uicolor/lang/en.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | CKEDITOR.plugins.setLang( 'uicolor', 'en',
7 | {
8 | uicolor :
9 | {
10 | title : 'UI Color Picker',
11 | preview : 'Live preview',
12 | config : 'Paste this string into your config.js file',
13 | predefined : 'Predefined color sets'
14 | }
15 | });
16 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/uicolor/lang/he.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | CKEDITOR.plugins.setLang( 'uicolor', 'he',
7 | {
8 | uicolor :
9 | {
10 | title : 'בחירת צבע ממשק משתמש',
11 | preview : 'תצוגה מקדימה',
12 | config : 'הדבק את הטקסט הבא לתוך הקובץ config.js',
13 | predefined : 'קבוצות צבעים מוגדרות מראש'
14 | }
15 | });
16 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/uicolor/plugin.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | CKEDITOR.plugins.add( 'uicolor',
7 | {
8 | requires : [ 'dialog' ],
9 | lang : [ 'en', 'he' ],
10 |
11 | init : function( editor )
12 | {
13 | if ( CKEDITOR.env.ie6Compat )
14 | return;
15 |
16 | editor.addCommand( 'uicolor', new CKEDITOR.dialogCommand( 'uicolor' ) );
17 | editor.ui.addButton( 'UIColor',
18 | {
19 | label : editor.lang.uicolor.title,
20 | command : 'uicolor',
21 | icon : this.path + 'uicolor.gif'
22 | });
23 | CKEDITOR.dialog.add( 'uicolor', this.path + 'dialogs/uicolor.js' );
24 |
25 | // Load YUI js files.
26 | CKEDITOR.scriptLoader.load( CKEDITOR.getUrl(
27 | '_source/' + // @Packager.RemoveLine
28 | 'plugins/uicolor/yui/yui.js'
29 | ));
30 |
31 | // Load YUI css files.
32 | editor.element.getDocument().appendStyleSheet( CKEDITOR.getUrl(
33 | '_source/' + // @Packager.RemoveLine
34 | 'plugins/uicolor/yui/assets/yui.css'
35 | ));
36 | }
37 | } );
38 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/uicolor/uicolor.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/uicolor/uicolor.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/uicolor/yui/assets/hue_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/uicolor/yui/assets/hue_bg.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/uicolor/yui/assets/hue_thumb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/uicolor/yui/assets/hue_thumb.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/uicolor/yui/assets/picker_mask.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/uicolor/yui/assets/picker_mask.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/uicolor/yui/assets/picker_thumb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/plugins/uicolor/yui/assets/picker_thumb.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/wsc/dialogs/ciframe.html:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/wsc/dialogs/wsc.css:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | html, body
7 | {
8 | background-color: transparent;
9 | margin: 0px;
10 | padding: 0px;
11 | }
12 |
13 | body
14 | {
15 | padding: 10px;
16 | }
17 |
18 | body, td, input, select, textarea
19 | {
20 | font-size: 11px;
21 | font-family: 'Microsoft Sans Serif' , Arial, Helvetica, Verdana;
22 | }
23 |
24 | .midtext
25 | {
26 | padding:0px;
27 | margin:10px;
28 | }
29 |
30 | .midtext p
31 | {
32 | padding:0px;
33 | margin:10px;
34 | }
35 |
36 | .Button
37 | {
38 | border: #737357 1px solid;
39 | color: #3b3b1f;
40 | background-color: #c7c78f;
41 | }
42 |
43 | .PopupTabArea
44 | {
45 | color: #737357;
46 | background-color: #e3e3c7;
47 | }
48 |
49 | .PopupTitleBorder
50 | {
51 | border-bottom: #d5d59d 1px solid;
52 | }
53 | .PopupTabEmptyArea
54 | {
55 | padding-left: 10px;
56 | border-bottom: #d5d59d 1px solid;
57 | }
58 |
59 | .PopupTab, .PopupTabSelected
60 | {
61 | border-right: #d5d59d 1px solid;
62 | border-top: #d5d59d 1px solid;
63 | border-left: #d5d59d 1px solid;
64 | padding: 3px 5px 3px 5px;
65 | color: #737357;
66 | }
67 |
68 | .PopupTab
69 | {
70 | margin-top: 1px;
71 | border-bottom: #d5d59d 1px solid;
72 | cursor: pointer;
73 | }
74 |
75 | .PopupTabSelected
76 | {
77 | font-weight: bold;
78 | cursor: default;
79 | padding-top: 4px;
80 | border-bottom: #f1f1e3 1px solid;
81 | background-color: #f1f1e3;
82 | }
83 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/plugins/wsc/plugin.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | /**
7 | * @file Spell checker
8 | */
9 |
10 | // Register a plugin named "wsc".
11 | CKEDITOR.plugins.add( 'wsc',
12 | {
13 | requires : [ 'dialog' ],
14 | init : function( editor )
15 | {
16 | var commandName = 'checkspell';
17 |
18 | var command = editor.addCommand( commandName, new CKEDITOR.dialogCommand( commandName ) );
19 |
20 | // SpellChecker doesn't work in Opera and with custom domain
21 | command.modes = { wysiwyg : ( !CKEDITOR.env.opera && document.domain == window.location.hostname ) };
22 |
23 | editor.ui.addButton( 'SpellChecker',
24 | {
25 | label : editor.lang.spellCheck.toolbar,
26 | command : commandName
27 | });
28 | CKEDITOR.dialog.add( commandName, this.path + 'dialogs/wsc.js' );
29 | }
30 | });
31 |
32 | CKEDITOR.config.wsc_customerId = CKEDITOR.config.wsc_customerId || '1:ua3xw1-2XyGJ3-GWruD3-6OFNT1-oXcuB1-nR6Bp4-hgQHc-EcYng3-sdRXG3-NOfFk' ;
33 | CKEDITOR.config.wsc_customLoaderScript = CKEDITOR.config.wsc_customLoaderScript || null;
34 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/editor.css:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | @import url("reset.css");
7 | @import url("mainui.css");
8 | @import url("panel.css");
9 | @import url("toolbar.css");
10 | @import url("menu.css");
11 | @import url("richcombo.css");
12 | @import url("elementspath.css");
13 | @import url("icons.css");
14 | @import url("presets.css");
15 |
16 | /* Restore the container visibility */
17 | html .cke_skin_kama
18 | {
19 | visibility: inherit;
20 | }
21 |
22 | html.cke_skin_kama_container
23 | {
24 | visibility: visible;
25 | }
26 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/elementspath.css:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | @media print
7 | {
8 | .cke_path
9 | {
10 | display: none;
11 | }
12 | }
13 |
14 | .cke_skin_kama .cke_path
15 | {
16 | display: inline-block;
17 | float: left;
18 | margin-top: 5px;
19 | }
20 |
21 | .cke_skin_kama .cke_rtl .cke_path
22 | {
23 | float: right;
24 | }
25 |
26 | .cke_shared .cke_skin_kama .cke_path
27 | {
28 | _width: 100%;
29 | margin: 0 0 5px;
30 | }
31 |
32 | .cke_skin_kama .cke_path a,
33 | .cke_skin_kama .cke_path .cke_empty
34 | {
35 | display: inline-block;
36 | float: left;
37 | padding: 1px 4px 0;
38 | color: #60676a;
39 | cursor: default;
40 | }
41 |
42 | .cke_skin_kama .cke_path .cke_empty
43 | {
44 | visibility: hidden;
45 | }
46 |
47 | .cke_skin_kama .cke_rtl .cke_path a,
48 | .cke_skin_kama .cke_rtl .cke_path cke_empty
49 | {
50 | float: right;
51 | }
52 |
53 | .cke_skin_kama .cke_path a:hover,
54 | .cke_skin_kama .cke_path a:focus,
55 | .cke_skin_kama .cke_path a:active /* IE */
56 | {
57 | background-color: #dff1ff;
58 | padding: 1px 4px 0;
59 | outline: none;
60 | color : #000;
61 | }
62 |
63 | /* IE double float-right workaround */
64 | .cke_skin_kama .cke_browser_ie .cke_rtl .cke_path a,
65 | .cke_skin_kama .cke_browser_ie .cke_rtl .cke_path .cke_empty
66 | {
67 | float: none;
68 | }
69 |
70 | .cke_skin_kama .cke_path .cke_label
71 | {
72 | display: none;
73 | }
74 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/icons.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/icons.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/icons_rtl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/icons_rtl.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/images/dialog_sides.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/images/dialog_sides.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/images/dialog_sides.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/images/dialog_sides.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/images/dialog_sides_rtl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/images/dialog_sides_rtl.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/images/mini.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/images/mini.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/images/noimage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/images/noimage.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/images/sprites.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/images/sprites.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/images/sprites_ie6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/images/sprites_ie6.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/images/toolbar_start.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/images/toolbar_start.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/presets.css:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | /* "Source" button label */
7 | .cke_skin_kama .cke_button_source .cke_label
8 | {
9 | display: inline;
10 | }
11 |
12 | /* "Styles" panel size */
13 | .cke_skin_kama .cke_styles_panel
14 | {
15 | width: 150px;
16 | height: 170px;
17 | }
18 |
19 | /* "Format" panel size */
20 | .cke_skin_kama .cke_format_panel
21 | {
22 | width: 150px;
23 | height: 170px;
24 | }
25 |
26 | /* "Font" panel size */
27 | .cke_skin_kama .cke_font_panel
28 | {
29 | width: 150px;
30 | height: 170px;
31 | }
32 |
33 | /* "Font Size" panel size */
34 | .cke_skin_kama .cke_fontSize_panel
35 | {
36 | height: 170px;
37 | }
38 |
39 | /* "Font Size" combo width */
40 | .cke_skin_kama .cke_fontSize .cke_text
41 | {
42 | width: 25px;
43 | }
44 |
45 | /* "Font Size" combo width (IE Quirks) */
46 | .cke_skin_kama .cke_browser_iequirks .cke_fontSize .cke_text
47 | {
48 | width: 32px;
49 | }
50 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/reset.css:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | /**
7 | * Reset and Default Values
8 | */
9 | .cke_skin_kama *,
10 | .cke_skin_kama a:hover,
11 | .cke_skin_kama a:link,
12 | .cke_skin_kama a:visited,
13 | .cke_skin_kama a:active
14 | {
15 | margin: 0;
16 | padding: 0;
17 | border: 0;
18 | background: transparent;
19 | text-decoration: none;
20 | font: normal normal normal 100% Sans-Serif;
21 | width: auto;
22 | height: auto;
23 | border-collapse: collapse;
24 | text-align: left;
25 | vertical-align: baseline;
26 | white-space: nowrap;
27 | cursor: auto;
28 | color: #000;
29 |
30 | font-size: 12px;
31 | font-family: Arial,Helvetica,Tahoma,Verdana,Sans-Serif;
32 | }
33 |
34 | .cke_skin_kama .cke_rtl *,
35 | .cke_skin_kama .cke_rtl a:hover,
36 | .cke_skin_kama .cke_rtl a:link,
37 | .cke_skin_kama .cke_rtl a:visited,
38 | .cke_skin_kama .cke_rtl a:active,
39 | .cke_rtl .cke_skin_kama *,
40 | .cke_rtl .cke_skin_kama a:hover,
41 | .cke_rtl .cke_skin_kama a:link,
42 | .cke_rtl .cke_skin_kama a:visited,
43 | .cke_rtl .cke_skin_kama a:active
44 | {
45 | text-align: right;
46 | }
47 |
48 | .cke_skin_kama iframe
49 | {
50 | vertical-align: inherit; /** For IE */
51 | }
52 |
53 | .cke_skin_kama textarea
54 | {
55 | white-space: pre;
56 | }
57 |
58 | .cke_skin_kama .cke_browser_gecko textarea
59 | {
60 | cursor: text;
61 | }
62 |
63 | .cke_skin_kama .cke_browser_gecko textarea[disabled]
64 | {
65 | cursor: default;
66 | }
67 |
68 | .cke_skin_kama input[type="text"],
69 | .cke_skin_kama input[type="password"]
70 | {
71 | cursor: text;
72 | }
73 |
74 | .cke_skin_kama input[type="text"][disabled],
75 | .cke_skin_kama input[type="password"][disabled]
76 | {
77 | cursor: default;
78 | }
79 |
80 | .cke_skin_kama fieldset
81 | {
82 | padding: 10px;
83 | border: 2px groove #E0DFE3;
84 | }
85 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/editor.css:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | @import url("reset.css");
7 | @import url("mainui.css");
8 | @import url("panel.css");
9 | @import url("toolbar.css");
10 | @import url("menu.css");
11 | @import url("richcombo.css");
12 | @import url("elementspath.css");
13 | @import url("icons.css");
14 | @import url("presets.css");
15 |
16 | /* Restore the container visibility */
17 | html .cke_skin_office2003
18 | {
19 | visibility: inherit;
20 | }
21 |
22 | html.cke_skin_office2003_container
23 | {
24 | visibility: visible;
25 | }
26 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/elementspath.css:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | @media print
7 | {
8 | .cke_path
9 | {
10 | display: none;
11 | }
12 | }
13 |
14 | .cke_skin_office2003 .cke_path
15 | {
16 | padding: 3px 3px 0 3px;
17 | display: inline-block;
18 | float: left;
19 | }
20 |
21 | .cke_skin_office2003 .cke_rtl .cke_path
22 | {
23 | float: right;
24 | }
25 |
26 | .cke_skin_office2003 .cke_path a,
27 | .cke_skin_office2003 .cke_path .cke_empty
28 | {
29 | display: inline-block;
30 | float: left;
31 | border: solid 1px #f7f8fd;
32 | background-color: #f7f8fd;
33 | padding-top: 1px;
34 | padding-bottom: 1px;
35 | padding-left: 4px;
36 | padding-right: 4px;
37 | margin-bottom : 3px;
38 | cursor: default;
39 | }
40 |
41 | .cke_skin_office2003 .cke_path .cke_empty
42 | {
43 | visibility: hidden;
44 | }
45 |
46 | .cke_skin_office2003 .cke_rtl .cke_path a,
47 | .cke_skin_office2003 .cke_rtl .cke_path cke_empty
48 | {
49 | float: right;
50 | }
51 |
52 | .cke_skin_office2003 .cke_path a:hover,
53 | .cke_skin_office2003 .cke_path a:focus,
54 | .cke_skin_office2003 .cke_path a:active /* IE */
55 | {
56 | border: solid 1px #316ac5;
57 | background-color: #dff1ff;
58 | padding-top: 1px;
59 | padding-bottom: 1px;
60 | padding-left: 4px;
61 | padding-right: 4px;
62 | outline: none;
63 | }
64 |
65 | .cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_path a,
66 | .cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_path .cke_empty
67 | {
68 | float: none;
69 | }
70 |
71 | .cke_skin_office2003 .cke_path .cke_label
72 | {
73 | display: none;
74 | }
75 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/icons.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/icons.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/icons_rtl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/icons_rtl.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/images/dialog_sides.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/images/dialog_sides.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/images/dialog_sides.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/images/dialog_sides.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/images/dialog_sides_rtl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/images/dialog_sides_rtl.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/images/mini.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/images/mini.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/images/noimage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/images/noimage.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/images/sprites.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/images/sprites.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/images/sprites_ie6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/images/sprites_ie6.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/presets.css:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | /* "Source" button label */
7 | .cke_skin_office2003 .cke_button_source .cke_label
8 | {
9 | display: inline;
10 | }
11 |
12 | /* "Styles" panel size */
13 | .cke_skin_office2003 .cke_styles_panel
14 | {
15 | width: 150px;
16 | height: 170px;
17 | }
18 |
19 | /* "Format" panel size */
20 | .cke_skin_office2003 .cke_format_panel
21 | {
22 | width: 150px;
23 | height: 170px;
24 | }
25 |
26 | /* "Font" panel size */
27 | .cke_skin_office2003 .cke_font_panel
28 | {
29 | width: 150px;
30 | height: 170px;
31 | }
32 |
33 | /* "Font Size" panel size */
34 | .cke_skin_office2003 .cke_fontSize_panel
35 | {
36 | height: 170px;
37 | }
38 |
39 | /* "Font Size" combo width */
40 | .cke_skin_office2003 .cke_fontSize .cke_text
41 | {
42 | width: 20px;
43 | }
44 |
45 | /* "Font Size" combo width (IE Quirks) */
46 | .cke_skin_office2003 .cke_browser_iequirks .cke_fontSize .cke_text
47 | {
48 | width: 32px;
49 | }
50 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/editor.css:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | @import url("reset.css");
7 | @import url("mainui.css");
8 | @import url("panel.css");
9 | @import url("toolbar.css");
10 | @import url("menu.css");
11 | @import url("richcombo.css");
12 | @import url("elementspath.css");
13 | @import url("icons.css");
14 | @import url("presets.css");
15 |
16 | /* Restore the container visibility */
17 | html .cke_skin_v2
18 | {
19 | visibility: inherit;
20 | }
21 |
22 | html.cke_skin_v2_container
23 | {
24 | visibility: visible;
25 | }
26 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/elementspath.css:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | @media print
7 | {
8 | .cke_path
9 | {
10 | display: none;
11 | }
12 | }
13 |
14 | .cke_skin_v2 .cke_path
15 | {
16 | padding: 3px 3px 0 3px;
17 | display: inline-block;
18 | float: left;
19 | }
20 |
21 | .cke_skin_v2 .cke_rtl .cke_path
22 | {
23 | float: right;
24 | }
25 |
26 | .cke_skin_v2 .cke_path a,
27 | .cke_skin_v2 .cke_path .cke_empty
28 | {
29 | display: inline-block;
30 | float: left;
31 | border: solid 1px #efefde;
32 | background-color: #efefde;
33 | padding-top: 1px;
34 | padding-bottom: 1px;
35 | padding-left: 4px;
36 | padding-right: 4px;
37 | margin-bottom : 3px;
38 | cursor: default;
39 | }
40 |
41 | .cke_skin_v2 .cke_path .cke_empty
42 | {
43 | visibility: hidden;
44 | }
45 |
46 | .cke_skin_v2 .cke_rtl .cke_path a,
47 | .cke_skin_v2 .cke_rtl .cke_path cke_empty
48 | {
49 | float: right;
50 | }
51 |
52 | .cke_skin_v2 .cke_path a:hover,
53 | .cke_skin_v2 .cke_path a:focus,
54 | .cke_skin_v2 .cke_path a:active /* IE */
55 | {
56 | border: solid 1px #316ac5;
57 | background-color: #dff1ff;
58 | padding-top: 1px;
59 | padding-bottom: 1px;
60 | padding-left: 4px;
61 | padding-right: 4px;
62 | outline: none;
63 | }
64 |
65 | .cke_skin_v2 .cke_browser_ie .cke_rtl .cke_path a,
66 | .cke_skin_v2 .cke_browser_ie .cke_rtl .cke_path .cke_empty
67 | {
68 | float: none;
69 | }
70 |
71 | .cke_skin_v2 .cke_path .cke_label
72 | {
73 | display: none;
74 | }
75 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/icons.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/icons.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/icons_rtl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/icons_rtl.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/images/dialog_sides.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/images/dialog_sides.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/images/dialog_sides.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/images/dialog_sides.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/images/dialog_sides_rtl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/images/dialog_sides_rtl.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/images/mini.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/images/mini.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/images/noimage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/images/noimage.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/images/sprites.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/images/sprites.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/images/sprites_ie6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/images/sprites_ie6.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/images/toolbar_start.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/images/toolbar_start.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/presets.css:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | /* "Source" button label */
7 | .cke_skin_v2 .cke_button_source .cke_label
8 | {
9 | display: inline; /* FF2 */
10 | display: inline-block;
11 | }
12 |
13 | /* "Styles" panel size */
14 | .cke_skin_v2 .cke_styles_panel
15 | {
16 | width: 150px;
17 | height: 170px;
18 | }
19 |
20 | /* "Format" panel size */
21 | .cke_skin_v2 .cke_format_panel
22 | {
23 | width: 150px;
24 | height: 170px;
25 | }
26 |
27 | /* "Font" panel size */
28 | .cke_skin_v2 .cke_font_panel
29 | {
30 | width: 150px;
31 | height: 170px;
32 | }
33 |
34 | /* "Font Size" panel size */
35 | .cke_skin_v2 .cke_fontSize_panel
36 | {
37 | height: 170px;
38 | }
39 |
40 | /* "Font Size" combo width */
41 | .cke_skin_v2 .cke_fontSize .cke_text
42 | {
43 | width: 20px;
44 | }
45 |
46 | /* "Font Size" combo width (IE Quirks) */
47 | .cke_skin_v2 .cke_browser_iequirks .cke_fontSize .cke_text
48 | {
49 | width: 32px;
50 | }
51 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/reset.css:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | /**
7 | * Reset and Default Values
8 | */
9 | .cke_skin_v2 *,
10 | .cke_skin_v2 a:hover,
11 | .cke_skin_v2 a:link,
12 | .cke_skin_v2 a:visited,
13 | .cke_skin_v2 a:active
14 | {
15 | margin: 0;
16 | padding: 0;
17 | border: 0;
18 | background: transparent;
19 | text-decoration: none;
20 | font: normal normal normal 100% Sans-Serif;
21 | width: auto;
22 | height: auto;
23 | border-collapse: collapse;
24 | text-align: left;
25 | vertical-align: baseline;
26 | white-space: nowrap;
27 | cursor: auto;
28 | color: #000;
29 |
30 | font-size: 11px;
31 | font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif;
32 | }
33 |
34 | .cke_skin_v2 .cke_rtl *,
35 | .cke_skin_v2 .cke_rtl a:hover,
36 | .cke_skin_v2 .cke_rtl a:link,
37 | .cke_skin_v2 .cke_rtl a:visited,
38 | .cke_skin_v2 .cke_rtl a:active,
39 | .cke_rtl .cke_skin_v2 *,
40 | .cke_rtl .cke_skin_v2 a:hover,
41 | .cke_rtl .cke_skin_v2 a:link,
42 | .cke_rtl .cke_skin_v2 a:visited,
43 | .cke_rtl .cke_skin_v2 a:active
44 | {
45 | text-align: right;
46 | }
47 |
48 | .cke_skin_v2 iframe
49 | {
50 | vertical-align: inherit; /** For IE */
51 | }
52 |
53 | .cke_skin_v2 textarea
54 | {
55 | white-space: pre;
56 | }
57 |
58 | .cke_skin_v2 .cke_browser_gecko textarea
59 | {
60 | cursor: text;
61 | }
62 |
63 | .cke_skin_v2 .cke_browser_gecko textarea[disabled]
64 | {
65 | cursor: default;
66 | }
67 |
68 | .cke_skin_v2 input[type="text"],
69 | .cke_skin_v2 input[type="password"]
70 | {
71 | cursor: text;
72 | }
73 |
74 | .cke_skin_v2 input[type="text"][disabled],
75 | .cke_skin_v2 input[type="password"][disabled]
76 | {
77 | cursor: default;
78 | }
79 |
80 | .cke_skin_v2 fieldset
81 | {
82 | padding: 10px;
83 | border: 2px groove #E0DFE3;
84 | }
85 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/ckeditor_basic_source.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | // Compressed version of core/ckeditor_base.js. See original for instructions.
7 | /*jsl:ignore*/
8 | if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'',version:'3.4.2',revision:'6041',_:{},status:'unloaded',basePath:(function(){var d=window.CKEDITOR_BASEPATH||'';if(!d){var e=document.getElementsByTagName('script');for(var f=0;f=0?'&':'?')+('t=')+this.timestamp;return d;}},b=window.CKEDITOR_GETURL;if(b){var c=a.getUrl;a.getUrl=function(d){return b.call(a,d)||c.call(a,d);};}return a;})();
9 | /*jsl:end*/
10 |
11 | // Uncomment the following line to have a new timestamp generated for each
12 | // request, having clear cache load of the editor code.
13 | // CKEDITOR.timestamp = ( new Date() ).valueOf();
14 |
15 | // Set the script name to be loaded by the loader.
16 | CKEDITOR._autoLoad = 'core/ckeditor_basic';
17 |
18 | // Include the loader script.
19 | document.write(
20 | '' );
21 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/ckeditor_source.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | // Compressed version of core/ckeditor_base.js. See original for instructions.
7 | /*jsl:ignore*/
8 | if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'',version:'3.4.2',revision:'6041',_:{},status:'unloaded',basePath:(function(){var d=window.CKEDITOR_BASEPATH||'';if(!d){var e=document.getElementsByTagName('script');for(var f=0;f=0?'&':'?')+('t=')+this.timestamp;return d;}},b=window.CKEDITOR_GETURL;if(b){var c=a.getUrl;a.getUrl=function(d){return b.call(a,d)||c.call(a,d);};}return a;})();
9 | /*jsl:end*/
10 |
11 | // Uncomment the following line to have a new timestamp generated for each
12 | // request, having clear cache load of the editor code.
13 | // CKEDITOR.timestamp = ( new Date() ).valueOf();
14 |
15 | if ( CKEDITOR.loader )
16 | CKEDITOR.loader.load( 'core/ckeditor' );
17 | else
18 | {
19 | // Set the script name to be loaded by the loader.
20 | CKEDITOR._autoLoad = 'core/ckeditor';
21 |
22 | // Include the loader script.
23 | document.write(
24 | '' );
25 | }
26 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/config.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | CKEDITOR.editorConfig = function( config )
7 | {
8 | config.PreserveSessionOnFileBrowser = true;
9 | // Define changes to default configuration here. For example:
10 | config.language = 'en';
11 | // config.uiColor = '#AADC6E';
12 |
13 | //config.ContextMenu = ['Generic','Anchor','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','Table','Form'] ;
14 |
15 | config.height = '400px';
16 | config.width = '600px';
17 |
18 | //config.resize_enabled = false;
19 | //config.resize_maxHeight = 2000;
20 | //config.resize_maxWidth = 750;
21 |
22 | //config.startupFocus = true;
23 |
24 | // works only with en, ru, uk languages
25 | config.extraPlugins = "embed,attachment";
26 |
27 | config.toolbar = 'Easy';
28 |
29 | config.toolbar_Easy =
30 | [
31 | ['Source','-','Preview','Templates'],
32 | ['Cut','Copy','Paste','PasteText','PasteFromWord',],
33 | ['Maximize','-','About'],
34 | ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
35 | ['Styles','Format'],
36 | ['Bold','Italic','Underline','Strike','-','Subscript','Superscript', 'TextColor'],
37 | ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
38 | ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
39 | ['Link','Unlink','Anchor'],
40 | ['Image','Embed','Flash','Attachment','Table','HorizontalRule','Smiley','SpecialChar','PageBreak']
41 | ];
42 | };
43 |
44 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/contents.css:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | body
7 | {
8 | /* Font */
9 | font-family: Arial, Verdana, sans-serif;
10 | font-size: 12px;
11 |
12 | /* Text color */
13 | color: #222;
14 |
15 | /* Remove the background color to make it transparent */
16 | background-color: #fff;
17 | }
18 |
19 | html
20 | {
21 | /* #3658: [IE6] Editor document has horizontal scrollbar on long lines
22 | To prevent this misbehavior, we show the scrollbar always */
23 | _overflow-y: scroll;
24 | /* #6341: The text cursor must be set on the editor area. */
25 | cursor: text;
26 | /* #6632: Avoid having "text" shape of cursor in IE7 scrollbars.*/
27 | *cursor:auto;
28 | }
29 |
30 | img:-moz-broken
31 | {
32 | -moz-force-broken-image-icon : 1;
33 | width : 24px;
34 | height : 24px;
35 | }
36 | img, input, textarea
37 | {
38 | cursor: default;
39 | }
40 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/css/swfupload.css:
--------------------------------------------------------------------------------
1 | .progressWrapper {
2 | width: 357px;
3 | overflow: hidden;
4 | }
5 |
6 | .progressContainer {
7 | margin: 5px;
8 | padding: 4px;
9 | border: solid 1px #E8E8E8;
10 | background-color: #F7F7F7;
11 | overflow: hidden;
12 | }
13 | /* Message */
14 | .message {
15 | margin: 1em 0;
16 | padding: 10px 20px;
17 | border: solid 1px #FFDD99;
18 | background-color: #FFFFCC;
19 | overflow: hidden;
20 | }
21 | /* Error */
22 | .red {
23 | border: solid 1px #B50000;
24 | background-color: #FFEBEB;
25 | }
26 |
27 | /* Current */
28 | .green {
29 | border: solid 1px #DDF0DD;
30 | background-color: #EBFFEB;
31 | }
32 |
33 | /* Complete */
34 | .blue {
35 | border: solid 1px #CEE2F2;
36 | background-color: #F0F5FF;
37 | }
38 | .progressName {
39 | font-size: 8pt;
40 | font-weight: 700;
41 | color: #555;
42 | width: 323px;
43 | height: 14px;
44 | text-align: left;
45 | white-space: nowrap;
46 | overflow: hidden;
47 | }
48 |
49 | .progressBarInProgress,
50 | .progressBarComplete,
51 | .progressBarError {
52 | font-size: 0;
53 | width: 0%;
54 | height: 2px;
55 | background-color: blue;
56 | margin-top: 2px;
57 | }
58 |
59 | .progressBarComplete {
60 | width: 100%;
61 | background-color: green;
62 | visibility: hidden;
63 | }
64 |
65 | .progressBarError {
66 | width: 100%;
67 | background-color: red;
68 | visibility: hidden;
69 | }
70 |
71 | .progressBarStatus {
72 | margin-top: 2px;
73 | width: 337px;
74 | font-size: 7pt;
75 | font-family: Arial;
76 | text-align: left;
77 | white-space: nowrap;
78 | }
79 |
80 | a.progressCancel {
81 | font-size: 0;
82 | display: block;
83 | height: 14px;
84 | width: 14px;
85 | background-image: url(/javascripts/ckeditor/images/cancelbutton.gif);
86 | background-repeat: no-repeat;
87 | background-position: -14px 0px;
88 | float: right;
89 | }
90 |
91 | a.progressCancel:hover {
92 | background-position: 0px 0px;
93 | }
94 |
95 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/images/add.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/images/add.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/images/cancelbutton.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/images/cancelbutton.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/images/ckfnothumb.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/images/ckfnothumb.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/images/doc.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/images/doc.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/images/mp3.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/images/mp3.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/images/pdf.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/images/pdf.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/images/rar.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/images/rar.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/images/refresh.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/images/refresh.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/images/select_files.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/images/select_files.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/images/spacer.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/images/spacer.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/images/swf.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/images/swf.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/images/toolbar.start.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/images/toolbar.start.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/images/xls.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/images/xls.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/lang/_languages.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | var CKEDITOR_LANGS=(function(){var b={af:'Afrikaans',ar:'Arabic',bg:'Bulgarian',bn:'Bengali/Bangla',bs:'Bosnian',ca:'Catalan',cs:'Czech',cy:'Welsh',da:'Danish',de:'German',el:'Greek',en:'English','en-au':'English (Australia)','en-ca':'English (Canadian)','en-gb':'English (United Kingdom)',eo:'Esperanto',es:'Spanish',et:'Estonian',eu:'Basque',fa:'Persian',fi:'Finnish',fo:'Faroese',fr:'French','fr-ca':'French (Canada)',gl:'Galician',gu:'Gujarati',he:'Hebrew',hi:'Hindi',hr:'Croatian',hu:'Hungarian',is:'Icelandic',it:'Italian',ja:'Japanese',km:'Khmer',ko:'Korean',lt:'Lithuanian',lv:'Latvian',mn:'Mongolian',ms:'Malay',nb:'Norwegian Bokmal',nl:'Dutch',no:'Norwegian',pl:'Polish',pt:'Portuguese (Portugal)','pt-br':'Portuguese (Brazil)',ro:'Romanian',ru:'Russian',sk:'Slovak',sl:'Slovenian',sr:'Serbian (Cyrillic)','sr-latn':'Serbian (Latin)',sv:'Swedish',th:'Thai',tr:'Turkish',uk:'Ukrainian',vi:'Vietnamese',zh:'Chinese Traditional','zh-cn':'Chinese Simplified'},c=[];for(var d in b)c.push({code:d,name:b[d]});c.sort(function(e,f){return e.name.cke_about_container{color:#000 !important;padding:10px 10px 0;margin-top:5px}.cke_about_container p{margin: 0 0 10px;}.cke_about_container .cke_about_logo{height:81px;background-color:#fff;background-image:url('+CKEDITOR.plugins.get('about').path+'dialogs/logo_ckeditor.png);'+'background-position:center; '+'background-repeat:no-repeat;'+'margin-bottom:10px;'+'}'+'.cke_about_container a'+'{'+'cursor:pointer !important;'+'color:blue !important;'+'text-decoration:underline !important;'+'}'+''+''}]}],buttons:[CKEDITOR.dialog.cancelButton]};});
7 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/about/dialogs/logo_ckeditor.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/about/dialogs/logo_ckeditor.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/ajax_save/plugin.js:
--------------------------------------------------------------------------------
1 | (function(){var embedCmd={exec:function(editor){editor.openDialog('embed');return}};CKEDITOR.plugins.add('embed',{lang:['en','ru','uk'],requires:['dialog'],init:function(editor){var commandName='embed';editor.addCommand(commandName,embedCmd);editor.ui.addButton('Embed',{label:editor.lang.embed.button,command:commandName,icon:this.path+"images/embed.png"});CKEDITOR.dialog.add(commandName,CKEDITOR.getUrl(this.path+'dialogs/embed.js'))}})})();
2 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/attachment/images/attachment.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/attachment/images/attachment.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/attachment/lang/en.js:
--------------------------------------------------------------------------------
1 | CKEDITOR.plugins.setLang('attachment', 'en',
2 | {
3 | attachment :
4 | {
5 | title : "Insert attachment",
6 | url: "URL",
7 | name: "Title",
8 | button : "Insert attachment"
9 | }
10 | });
11 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/attachment/lang/ru.js:
--------------------------------------------------------------------------------
1 | CKEDITOR.plugins.setLang('attachment', 'ru',
2 | {
3 | attachment :
4 | {
5 | title : "Включить вложения",
6 | url: "URL",
7 | name: "Название",
8 | button : "Вставить"
9 | }
10 | });
11 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/attachment/lang/uk.js:
--------------------------------------------------------------------------------
1 | CKEDITOR.plugins.setLang('attachment', 'uk',
2 | {
3 | attachment :
4 | {
5 | title : "Вставити файл",
6 | url: "URL",
7 | name: "Назва",
8 | button : "Вставити"
9 | }
10 | });
11 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/attachment/plugin.js:
--------------------------------------------------------------------------------
1 | (function(){var attachmentCmd={exec:function(editor){editor.openDialog('attachment');return}};CKEDITOR.plugins.add('attachment',{lang:['en','ru','uk'],requires:['dialog'],init:function(editor){var commandName='attachment';editor.addCommand(commandName,attachmentCmd);editor.ui.addButton('Attachment',{label:editor.lang.attachment.button,command:commandName,icon:this.path+"images/attachment.png"});CKEDITOR.dialog.add(commandName,CKEDITOR.getUrl(this.path+'dialogs/attachment.js'))}})})();
2 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/autogrow/plugin.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | (function(){var a=function(b){var c=b.document,d=b.window.getViewPaneSize().height,e;if(CKEDITOR.env.ie||CKEDITOR.env.gecko)e=c.getBody().$.scrollHeight+(CKEDITOR.env.ie&&CKEDITOR.env.quirks?0:24);else e=c.getDocumentElement().$.offsetHeight;var f=b.config.autoGrow_minHeight,g=b.config.autoGrow_maxHeight;f==undefined&&(b.config.autoGrow_minHeight=f=200);if(f)e=Math.max(e,f);if(g)e=Math.min(e,g);if(e!=d){e=b.fire('autoGrow',{currentHeight:d,newHeight:e}).newHeight;b.resize(b.container.getStyle('width'),e,true);}};CKEDITOR.plugins.add('autogrow',{init:function(b){for(var c in {contentDom:1,key:1,selectionChange:1,insertElement:1})b.on(c,function(d){var e=b.getCommand('maximize');if(d.editor.mode=='wysiwyg'&&(!e||e.state!=CKEDITOR.TRISTATE_ON))setTimeout(function(){a(d.editor);},100);});}});})();
7 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/dialog/dialogDefinition.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/embed/dialogs/embed.js:
--------------------------------------------------------------------------------
1 | (function(){CKEDITOR.dialog.add('embed',function(editor){return{title:editor.lang.embed.title,minWidth:CKEDITOR.env.ie&&CKEDITOR.env.quirks?368:350,minHeight:240,onShow:function(){this.getContentElement('general','content').getInputElement().setValue('')},onOk:function(){var text=this.getContentElement('general','content').getInputElement().getValue();this.getParentEditor().insertHtml(text)},contents:[{label:editor.lang.common.generalTab,id:'general',elements:[{type:'html',id:'pasteMsg',html:''+editor.lang.embed.pasteMsg+'
'},{type:'html',id:'content',style:'width:340px;height:170px',html:'',focus:function(){this.getElement().focus()}}]}]}})})();
2 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/embed/images/embed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/embed/images/embed.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/embed/lang/en.js:
--------------------------------------------------------------------------------
1 | CKEDITOR.plugins.setLang('embed', 'en',
2 | {
3 | embed :
4 | {
5 | title : "Paste embed",
6 | button : "Paste embed",
7 | pasteMsg : "Please, paste embed-code from Youtube, Myspace, Flickr and others sources into rectangle, using the keyboard (Ctrl + V), and click OK."
8 | }
9 | });
10 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/embed/lang/ru.js:
--------------------------------------------------------------------------------
1 | CKEDITOR.plugins.setLang('embed', 'ru',
2 | {
3 | embed :
4 | {
5 | title : "Вставить embed",
6 | button : "Вставить embed",
7 | pasteMsg : "Пожалуйста, вставьте embed-код с Youtube, Myspace, Flickr и других ресурсов в прямоугольник, используя сочетание клавиш (Ctrl+V), и нажмите OK."
8 | }
9 | });
10 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/embed/lang/uk.js:
--------------------------------------------------------------------------------
1 | CKEDITOR.plugins.setLang('embed', 'uk',
2 | {
3 | embed :
4 | {
5 | title : "Вставити embed",
6 | button : "Вставити embed",
7 | pasteMsg : "Будь ласка, вставте embed-код з Youtube, Myspace, Flickr та інших ресурсів в прямокутник, використовуючи (Ctrl+V), та нажміть OK."
8 | }
9 | });
10 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/embed/plugin.js:
--------------------------------------------------------------------------------
1 | (function(){var embedCmd={exec:function(editor){editor.openDialog('embed');return}};CKEDITOR.plugins.add('embed',{lang:['en','ru','uk'],requires:['dialog'],init:function(editor){var commandName='embed';editor.addCommand(commandName,embedCmd);editor.ui.addButton('Embed',{label:editor.lang.embed.button,command:commandName,icon:this.path+"images/embed.png"});CKEDITOR.dialog.add(commandName,CKEDITOR.getUrl(this.path+'dialogs/embed.js'))}})})();
2 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/flash/images/placeholder.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/flash/images/placeholder.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/forms/dialogs/button.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | CKEDITOR.dialog.add('button',function(a){return{title:a.lang.button.title,minWidth:350,minHeight:150,onShow:function(){var d=this;delete d.button;var b=d.getParentEditor().getSelection().getSelectedElement();if(b&&b.is('input')){var c=b.getAttribute('type');if(c in {button:1,reset:1,submit:1}){d.button=b;d.setupContent(b);}}},onOk:function(){var b,c=this.button,d=!c;if(d){b=this.getParentEditor();c=b.document.createElement('input');}if(d)b.insertElement(c);this.commitContent({element:c});},contents:[{id:'info',label:a.lang.button.title,title:a.lang.button.title,elements:[{id:'_cke_saved_name',type:'text',label:a.lang.common.name,'default':'',setup:function(b){this.setValue(b.getAttribute('_cke_saved_name')||b.getAttribute('name')||'');},commit:function(b){var c=b.element;if(this.getValue())c.setAttribute('_cke_saved_name',this.getValue());else{c.removeAttribute('_cke_saved_name');c.removeAttribute('name');}}},{id:'value',type:'text',label:a.lang.button.text,accessKey:'V','default':'',setup:function(b){this.setValue(b.getAttribute('value')||'');},commit:function(b){var c=b.element;if(this.getValue())c.setAttribute('value',this.getValue());else c.removeAttribute('value');}},{id:'type',type:'select',label:a.lang.button.type,'default':'button',accessKey:'T',items:[[a.lang.button.typeBtn,'button'],[a.lang.button.typeSbm,'submit'],[a.lang.button.typeRst,'reset']],setup:function(b){this.setValue(b.getAttribute('type')||'');},commit:function(b){var c=b.element;if(CKEDITOR.env.ie){var d=c.getAttribute('type'),e=this.getValue();if(e!=d){var f=CKEDITOR.dom.element.createFromHtml('',a.document);c.copyAttributes(f,{type:1});f.replace(c);a.getSelection().selectElement(f);b.element=f;}}else c.setAttribute('type',this.getValue());}}]}]};});
7 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/forms/dialogs/form.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | CKEDITOR.dialog.add('form',function(a){var b={action:1,id:1,method:1,enctype:1,target:1};return{title:a.lang.form.title,minWidth:350,minHeight:200,onShow:function(){var e=this;delete e.form;var c=e.getParentEditor().getSelection().getStartElement(),d=c&&c.getAscendant('form',true);if(d){e.form=d;e.setupContent(d);}},onOk:function(){var c,d=this.form,e=!d;if(e){c=this.getParentEditor();d=c.document.createElement('form');d.append(c.document.createElement('br'));}if(e)c.insertElement(d);this.commitContent(d);},onLoad:function(){function c(e){this.setValue(e.getAttribute(this.id)||'');};function d(e){var f=this;if(f.getValue())e.setAttribute(f.id,f.getValue());else e.removeAttribute(f.id);};this.foreach(function(e){if(b[e.id]){e.setup=c;e.commit=d;}});},contents:[{id:'info',label:a.lang.form.title,title:a.lang.form.title,elements:[{id:'txtName',type:'text',label:a.lang.common.name,'default':'',accessKey:'N',setup:function(c){this.setValue(c.getAttribute('_cke_saved_name')||c.getAttribute('name')||'');},commit:function(c){if(this.getValue())c.setAttribute('_cke_saved_name',this.getValue());else{c.removeAttribute('_cke_saved_name');c.removeAttribute('name');}}},{id:'action',type:'text',label:a.lang.form.action,'default':'',accessKey:'T'},{type:'hbox',widths:['45%','55%'],children:[{id:'id',type:'text',label:a.lang.common.id,'default':'',accessKey:'I'},{id:'enctype',type:'select',label:a.lang.form.encoding,style:'width:100%',accessKey:'E','default':'',items:[[''],['text/plain'],['multipart/form-data'],['application/x-www-form-urlencoded']]}]},{type:'hbox',widths:['45%','55%'],children:[{id:'target',type:'select',label:a.lang.common.target,style:'width:100%',accessKey:'M','default':'',items:[[a.lang.common.notSet,''],[a.lang.common.targetNew,'_blank'],[a.lang.common.targetTop,'_top'],[a.lang.common.targetSelf,'_self'],[a.lang.common.targetParent,'_parent']]},{id:'method',type:'select',label:a.lang.form.method,accessKey:'M','default':'GET',items:[['GET','get'],['POST','post']]}]}]}]};});
7 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/forms/dialogs/hiddenfield.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | CKEDITOR.dialog.add('hiddenfield',function(a){return{title:a.lang.hidden.title,hiddenField:null,minWidth:350,minHeight:110,onShow:function(){var e=this;delete e.hiddenField;var b=e.getParentEditor(),c=b.getSelection(),d=c.getSelectedElement();if(d&&d.getAttribute('_cke_real_element_type')&&d.getAttribute('_cke_real_element_type')=='hiddenfield'){e.hiddenField=d;d=b.restoreRealElement(e.hiddenField);e.setupContent(d);c.selectElement(e.hiddenField);}},onOk:function(){var g=this;var b=g.getValueOf('info','_cke_saved_name'),c=g.getValueOf('info','value'),d=g.getParentEditor(),e=CKEDITOR.env.ie?d.document.createElement(''):d.document.createElement('input');e.setAttribute('type','hidden');g.commitContent(e);var f=d.createFakeElement(e,'cke_hidden','hiddenfield');if(!g.hiddenField)d.insertElement(f);else{f.replace(g.hiddenField);d.getSelection().selectElement(f);}return true;},contents:[{id:'info',label:a.lang.hidden.title,title:a.lang.hidden.title,elements:[{id:'_cke_saved_name',type:'text',label:a.lang.hidden.name,'default':'',accessKey:'N',setup:function(b){this.setValue(b.getAttribute('_cke_saved_name')||b.getAttribute('name')||'');},commit:function(b){if(this.getValue())b.setAttribute('name',this.getValue());else b.removeAttribute('name');}},{id:'value',type:'text',label:a.lang.hidden.value,'default':'',accessKey:'V',setup:function(b){this.setValue(b.getAttribute('value')||'');},commit:function(b){if(this.getValue())b.setAttribute('value',this.getValue());else b.removeAttribute('value');}}]}]};});
7 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/forms/dialogs/radio.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | CKEDITOR.dialog.add('radio',function(a){return{title:a.lang.checkboxAndRadio.radioTitle,minWidth:350,minHeight:140,onShow:function(){var c=this;delete c.radioButton;var b=c.getParentEditor().getSelection().getSelectedElement();if(b&&b.getName()=='input'&&b.getAttribute('type')=='radio'){c.radioButton=b;c.setupContent(b);}},onOk:function(){var b,c=this.radioButton,d=!c;if(d){b=this.getParentEditor();c=b.document.createElement('input');c.setAttribute('type','radio');}if(d)b.insertElement(c);this.commitContent({element:c});},contents:[{id:'info',label:a.lang.checkboxAndRadio.radioTitle,title:a.lang.checkboxAndRadio.radioTitle,elements:[{id:'name',type:'text',label:a.lang.common.name,'default':'',accessKey:'N',setup:function(b){this.setValue(b.getAttribute('_cke_saved_name')||b.getAttribute('name')||'');},commit:function(b){var c=b.element;if(this.getValue())c.setAttribute('_cke_saved_name',this.getValue());else{c.removeAttribute('_cke_saved_name');c.removeAttribute('name');}}},{id:'value',type:'text',label:a.lang.checkboxAndRadio.value,'default':'',accessKey:'V',setup:function(b){this.setValue(b.getAttribute('value')||'');},commit:function(b){var c=b.element;if(this.getValue())c.setAttribute('value',this.getValue());else c.removeAttribute('value');}},{id:'checked',type:'checkbox',label:a.lang.checkboxAndRadio.selected,'default':'',accessKey:'S',value:'checked',setup:function(b){this.setValue(b.getAttribute('checked'));},commit:function(b){var c=b.element;if(!CKEDITOR.env.ie){if(this.getValue())c.setAttribute('checked','checked');else c.removeAttribute('checked');}else{var d=c.getAttribute('checked'),e=!!this.getValue();if(d!=e){var f=CKEDITOR.dom.element.createFromHtml('',a.document);c.copyAttributes(f,{type:1,checked:1});f.replace(c);a.getSelection().selectElement(f);b.element=f;}}}}]}]};});
7 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/forms/dialogs/textarea.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | CKEDITOR.dialog.add('textarea',function(a){return{title:a.lang.textarea.title,minWidth:350,minHeight:150,onShow:function(){var c=this;delete c.textarea;var b=c.getParentEditor().getSelection().getSelectedElement();if(b&&b.getName()=='textarea'){c.textarea=b;c.setupContent(b);}},onOk:function(){var b,c=this.textarea,d=!c;if(d){b=this.getParentEditor();c=b.document.createElement('textarea');}this.commitContent(c);if(d)b.insertElement(c);},contents:[{id:'info',label:a.lang.textarea.title,title:a.lang.textarea.title,elements:[{id:'_cke_saved_name',type:'text',label:a.lang.common.name,'default':'',accessKey:'N',setup:function(b){this.setValue(b.getAttribute('_cke_saved_name')||b.getAttribute('name')||'');},commit:function(b){if(this.getValue())b.setAttribute('_cke_saved_name',this.getValue());else{b.removeAttribute('_cke_saved_name');b.removeAttribute('name');}}},{id:'cols',type:'text',label:a.lang.textarea.cols,'default':'',accessKey:'C',style:'width:50px',validate:CKEDITOR.dialog.validate.integer(a.lang.common.validateNumberFailed),setup:function(b){var c=b.hasAttribute('cols')&&b.getAttribute('cols');this.setValue(c||'');},commit:function(b){if(this.getValue())b.setAttribute('cols',this.getValue());else b.removeAttribute('cols');}},{id:'rows',type:'text',label:a.lang.textarea.rows,'default':'',accessKey:'R',style:'width:50px',validate:CKEDITOR.dialog.validate.integer(a.lang.common.validateNumberFailed),setup:function(b){var c=b.hasAttribute('rows')&&b.getAttribute('rows');this.setValue(c||'');},commit:function(b){if(this.getValue())b.setAttribute('rows',this.getValue());else b.removeAttribute('rows');}}]}]};});
7 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/forms/images/hiddenfield.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/forms/images/hiddenfield.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/iframedialog/plugin.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | CKEDITOR.plugins.add('iframedialog',{requires:['dialog'],onLoad:function(){CKEDITOR.dialog.addIframe=function(a,b,c,d,e,f){var g={type:'iframe',src:c,width:'100%',height:'100%'};if(typeof f=='function')g.onContentLoad=f;var h={title:b,minWidth:d,minHeight:e,contents:[{id:'iframe',label:b,expand:true,elements:[g]}]};return this.add(a,function(){return h;});};(function(){var a=function(b,c,d){if(arguments.length<3)return;var e=this._||(this._={}),f=c.onContentLoad&&CKEDITOR.tools.bind(c.onContentLoad,this),g=CKEDITOR.tools.cssLength(c.width),h=CKEDITOR.tools.cssLength(c.height);e.frameId=CKEDITOR.tools.getNextId()+'_iframe';b.on('load',function(){var k=CKEDITOR.document.getById(e.frameId),l=k.getParent();l.setStyles({width:g,height:h});});var i={src:'%2',id:e.frameId,frameborder:0,allowtransparency:true},j=[];if(typeof c.onContentLoad=='function')i.onload='CKEDITOR.tools.callFunction(%1);';CKEDITOR.ui.dialog.uiElement.call(this,b,c,j,'iframe',{width:g,height:h},i,'');d.push('');j=j.join('');b.on('show',function(){var k=CKEDITOR.document.getById(e.frameId),l=k.getParent(),m=CKEDITOR.tools.addFunction(f),n=j.replace('%1',m).replace('%2',CKEDITOR.tools.htmlEncode(c.src));l.setHtml(n);});};a.prototype=new CKEDITOR.ui.dialog.uiElement();CKEDITOR.dialog.addUIElement('iframe',{build:function(b,c,d){return new a(b,c,d);}});})();}});
7 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/link/dialogs/anchor.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | CKEDITOR.dialog.add('anchor',function(a){var b=function(c,d,e){var g=this;g.editMode=true;g.editObj=e;var f=g.editObj.getAttribute('name');if(f)g.setValueOf('info','txtName',f);else g.setValueOf('info','txtName','');};return{title:a.lang.anchor.title,minWidth:300,minHeight:60,onOk:function(){var f=this;var c=f.getValueOf('info','txtName'),d=CKEDITOR.env.ie?a.document.createElement(''):a.document.createElement('a');if(f.editMode){f.editObj.copyAttributes(d,{name:1});f.editObj.moveChildren(d);}d.removeAttribute('_cke_saved_name');d.setAttribute('name',c);var e=a.createFakeElement(d,'cke_anchor','anchor');if(!f.editMode)a.insertElement(e);else{e.replace(f.fakeObj);a.getSelection().selectElement(e);}return true;},onShow:function(){var e=this;e.editObj=false;e.fakeObj=false;e.editMode=false;var c=a.getSelection(),d=c.getSelectedElement();if(d&&d.getAttribute('_cke_real_element_type')&&d.getAttribute('_cke_real_element_type')=='anchor'){e.fakeObj=d;d=a.restoreRealElement(e.fakeObj);b.apply(e,[a,c,d]);c.selectElement(e.fakeObj);}e.getContentElement('info','txtName').focus();},contents:[{id:'info',label:a.lang.anchor.title,accessKey:'I',elements:[{type:'text',id:'txtName',label:a.lang.anchor.name,required:true,validate:function(){if(!this.getValue()){alert(a.lang.anchor.errorName);return false;}return true;}}]}]};});
7 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/link/images/anchor.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/link/images/anchor.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/pagebreak/images/pagebreak.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/pagebreak/images/pagebreak.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/pastetext/dialogs/pastetext.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | (function(){CKEDITOR.dialog.add('pastetext',function(a){return{title:a.lang.pasteText.title,minWidth:CKEDITOR.env.ie&&CKEDITOR.env.quirks?368:350,minHeight:240,onShow:function(){this.getContentElement('general','content').getInputElement().setValue('');},onOk:function(){var b=this.getContentElement('general','content').getInputElement().getValue(),c=this.getParentEditor();setTimeout(function(){c.fire('paste',{text:b});},0);},contents:[{label:a.lang.common.generalTab,id:'general',elements:[{type:'html',id:'pasteMsg',html:''+a.lang.clipboard.pasteMsg+'
'},{type:'textarea',id:'content',className:'cke_pastetext',onLoad:function(){var b=this.getDialog().getContentElement('general','pasteMsg').getElement(),c=this.getElement().getElementsByTag('textarea').getItem(0);c.setAttribute('aria-labelledby',b.$.id);c.setStyle('direction',a.config.contentsLangDirection);},focus:function(){this.getElement().focus();}}]}]};});})();
7 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/scayt/dialogs/toolbar.css:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | a{text-decoration:none;padding:2px 4px 4px 6px;display:block;border-width:1px;border-style:solid;margin:0;}a.cke_scayt_toogle:hover,a.cke_scayt_toogle:focus,a.cke_scayt_toogle:active{border-color:#316ac5;background-color:#dff1ff;color:#000;cursor:pointer;margin:0;}a.cke_scayt_toogle{color:#316ac5;border-color:#fff;}.scayt_enabled a.cke_scayt_item{color:#316ac5;border-color:#fff;margin:0;}.scayt_disabled a.cke_scayt_item{color:gray;border-color:#fff;}.scayt_enabled a.cke_scayt_item:hover,.scayt_enabled a.cke_scayt_item:focus,.scayt_enabled a.cke_scayt_item:active{border-color:#316ac5;background-color:#dff1ff;color:#000;cursor:pointer;}.scayt_disabled a.cke_scayt_item:hover,.scayt_disabled a.cke_scayt_item:focus,.scayt_disabled a.cke_scayt_item:active{border-color:gray;background-color:#dff1ff;color:gray;cursor:no-drop;}.cke_scayt_set_on,.cke_scayt_set_off{display:none;}.scayt_enabled .cke_scayt_set_on{display:none;}.scayt_disabled .cke_scayt_set_on{display:inline;}.scayt_disabled .cke_scayt_set_off{display:none;}.scayt_enabled .cke_scayt_set_off{display:inline;}
7 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/showblocks/images/block_address.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/showblocks/images/block_address.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/showblocks/images/block_blockquote.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/showblocks/images/block_blockquote.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/showblocks/images/block_div.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/showblocks/images/block_div.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/showblocks/images/block_h1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/showblocks/images/block_h1.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/showblocks/images/block_h2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/showblocks/images/block_h2.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/showblocks/images/block_h3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/showblocks/images/block_h3.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/showblocks/images/block_h4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/showblocks/images/block_h4.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/showblocks/images/block_h5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/showblocks/images/block_h5.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/showblocks/images/block_h6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/showblocks/images/block_h6.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/showblocks/images/block_p.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/showblocks/images/block_p.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/showblocks/images/block_pre.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/showblocks/images/block_pre.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/angel_smile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/angel_smile.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/angry_smile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/angry_smile.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/broken_heart.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/broken_heart.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/confused_smile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/confused_smile.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/cry_smile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/cry_smile.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/devil_smile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/devil_smile.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/embaressed_smile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/embaressed_smile.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/envelope.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/envelope.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/heart.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/heart.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/kiss.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/kiss.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/lightbulb.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/lightbulb.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/omg_smile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/omg_smile.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/regular_smile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/regular_smile.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/sad_smile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/sad_smile.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/shades_smile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/shades_smile.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/teeth_smile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/teeth_smile.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/thumbs_down.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/thumbs_down.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/thumbs_up.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/thumbs_up.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/tounge_smile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/tounge_smile.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/wink_smile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/smiley/images/wink_smile.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/styles/styles/default.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | CKEDITOR.stylesSet.add('default',[{name:'Blue Title',element:'h3',styles:{color:'Blue'}},{name:'Red Title',element:'h3',styles:{color:'Red'}},{name:'Marker: Yellow',element:'span',styles:{'background-color':'Yellow'}},{name:'Marker: Green',element:'span',styles:{'background-color':'Lime'}},{name:'Big',element:'big'},{name:'Small',element:'small'},{name:'Typewriter',element:'tt'},{name:'Computer Code',element:'code'},{name:'Keyboard Phrase',element:'kbd'},{name:'Sample Text',element:'samp'},{name:'Variable',element:'var'},{name:'Deleted Text',element:'del'},{name:'Inserted Text',element:'ins'},{name:'Cited Work',element:'cite'},{name:'Inline Quotation',element:'q'},{name:'Language: RTL',element:'span',attributes:{dir:'rtl'}},{name:'Language: LTR',element:'span',attributes:{dir:'ltr'}},{name:'Image on Left',element:'img',attributes:{style:'padding: 5px; margin-right: 5px',border:'2',align:'left'}},{name:'Image on Right',element:'img',attributes:{style:'padding: 5px; margin-left: 5px',border:'2',align:'right'}},{name:'Borderless Table',element:'table',styles:{'border-style':'hidden','background-color':'#E6E6FA'}},{name:'Square Bulleted List',element:'ul',styles:{'list-style-type':'square'}}]);
7 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/templates/templates/default.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | CKEDITOR.addTemplates('default',{imagesPath:CKEDITOR.getUrl(CKEDITOR.plugins.getPath('templates')+'templates/images/'),templates:[{title:'Image and Title',image:'template1.gif',description:'One main image with a title and text that surround the image.',html:'
Type the title here
Type the text here
'},{title:'Strange Template',image:'template2.gif',description:'A template that defines two colums, each one with a title, and some text.',html:'Title 1 | | Title 2 |
Text 1 | | Text 2 |
More text goes here.
'},{title:'Text and Table',image:'template3.gif',description:'A title with some text and a table.',html:'Title goes here
Type the text here
'}]});
7 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/templates/templates/images/template1.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/templates/templates/images/template1.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/templates/templates/images/template2.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/templates/templates/images/template2.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/templates/templates/images/template3.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/templates/templates/images/template3.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/uicolor/lang/en.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | CKEDITOR.plugins.setLang('uicolor','en',{uicolor:{title:'UI Color Picker',preview:'Live preview',config:'Paste this string into your config.js file',predefined:'Predefined color sets'}});
7 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/uicolor/lang/he.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | CKEDITOR.plugins.setLang('uicolor','he',{uicolor:{title:'בחירת צבע ממשק משתמש',preview:'תצוגה מקדימה',config:'הדבק את הטקסט הבא לתוך הקובץ config.js',predefined:'קבוצות צבעים מוגדרות מראש'}});
7 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/uicolor/plugin.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | CKEDITOR.plugins.add('uicolor',{requires:['dialog'],lang:['en','he'],init:function(a){if(CKEDITOR.env.ie6Compat)return;a.addCommand('uicolor',new CKEDITOR.dialogCommand('uicolor'));a.ui.addButton('UIColor',{label:a.lang.uicolor.title,command:'uicolor',icon:this.path+'uicolor.gif'});CKEDITOR.dialog.add('uicolor',this.path+'dialogs/uicolor.js');CKEDITOR.scriptLoader.load(CKEDITOR.getUrl('plugins/uicolor/yui/yui.js'));a.element.getDocument().appendStyleSheet(CKEDITOR.getUrl('plugins/uicolor/yui/assets/yui.css'));}});
7 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/uicolor/uicolor.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/uicolor/uicolor.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/uicolor/yui/assets/hue_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/uicolor/yui/assets/hue_bg.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/uicolor/yui/assets/hue_thumb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/uicolor/yui/assets/hue_thumb.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/uicolor/yui/assets/picker_mask.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/uicolor/yui/assets/picker_mask.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/uicolor/yui/assets/picker_thumb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/plugins/uicolor/yui/assets/picker_thumb.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/wsc/dialogs/ciframe.html:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/plugins/wsc/dialogs/wsc.css:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | html,body{background-color:transparent;margin:0;padding:0;}body{padding:10px;}body,td,input,select,textarea{font-size:11px;font-family:'Microsoft Sans Serif',Arial,Helvetica,Verdana;}.midtext{padding:0;margin:10px;}.midtext p{padding:0;margin:10px;}.Button{border:#737357 1px solid;color:#3b3b1f;background-color:#c7c78f;}.PopupTabArea{color:#737357;background-color:#e3e3c7;}.PopupTitleBorder{border-bottom:#d5d59d 1px solid;}.PopupTabEmptyArea{padding-left:10px;border-bottom:#d5d59d 1px solid;}.PopupTab,.PopupTabSelected{border-right:#d5d59d 1px solid;border-top:#d5d59d 1px solid;border-left:#d5d59d 1px solid;padding:3px 5px 3px 5px;color:#737357;}.PopupTab{margin-top:1px;border-bottom:#d5d59d 1px solid;cursor:pointer;}.PopupTabSelected{font-weight:bold;cursor:default;padding-top:4px;border-bottom:#f1f1e3 1px solid;background-color:#f1f1e3;}
7 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/kama/icons.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/skins/kama/icons.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/kama/icons_rtl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/skins/kama/icons_rtl.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/kama/images/dialog_sides.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/skins/kama/images/dialog_sides.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/kama/images/dialog_sides.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/skins/kama/images/dialog_sides.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/kama/images/dialog_sides_rtl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/skins/kama/images/dialog_sides_rtl.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/kama/images/mini.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/skins/kama/images/mini.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/kama/images/noimage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/skins/kama/images/noimage.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/kama/images/sprites.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/skins/kama/images/sprites.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/kama/images/sprites_ie6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/skins/kama/images/sprites_ie6.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/kama/images/toolbar_start.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/skins/kama/images/toolbar_start.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/kama/templates.css:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | .cke_skin_kama .cke_tpl_list{border:#dcdcdc 2px solid;background-color:#fff;overflow-y:auto;overflow-x:hidden;width:100%;height:220px;}.cke_skin_kama .cke_tpl_item{margin:5px;padding:7px;border:#eee 1px solid;*width:88%;}.cke_skin_kama .cke_tpl_preview{border-collapse:separate;text-indent:0;width:100%;}.cke_skin_kama .cke_tpl_preview td{padding:2px;vertical-align:middle;}.cke_skin_kama .cke_tpl_preview .cke_tpl_preview_img{width:100px;}.cke_skin_kama .cke_tpl_preview span{white-space:normal;}.cke_skin_kama .cke_tpl_title{font-weight:bold;}.cke_skin_kama .cke_tpl_list a:active .cke_tpl_item,.cke_skin_kama .cke_tpl_list a:hover .cke_tpl_item,.cke_skin_kama .cke_tpl_list a:focus .cke_tpl_item{border:#f93 1px solid;background-color:#fffacd;}.cke_skin_kama .cke_tpl_list a:active *,.cke_skin_kama .cke_tpl_list a:hover *,.cke_skin_kama .cke_tpl_list a:focus *{cursor:pointer;}.cke_skin_kama .cke_browser_ie6 .cke_tpl_list a:active,.cke_skin_kama .cke_browser_ie6 .cke_tpl_list a:hover,.cke_skin_kama .cke_browser_ie6 .cke_tpl_list a:focus{background-position:0 0;}.cke_skin_kama .cke_hc .cke_tpl_list a:active .cke_tpl_item,.cke_skin_kama .cke_hc .cke_tpl_list a:hover .cke_tpl_item,.cke_skin_kama .cke_hc .cke_tpl_list a:focus .cke_tpl_item{border-width:3px;}.cke_skin_kama .cke_tpl_empty,.cke_tpl_loading{text-align:center;padding:5px;}
7 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/office2003/icons.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/skins/office2003/icons.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/office2003/icons_rtl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/skins/office2003/icons_rtl.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/office2003/images/dialog_sides.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/skins/office2003/images/dialog_sides.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/office2003/images/dialog_sides.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/skins/office2003/images/dialog_sides.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/office2003/images/dialog_sides_rtl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/skins/office2003/images/dialog_sides_rtl.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/office2003/images/mini.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/skins/office2003/images/mini.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/office2003/images/noimage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/skins/office2003/images/noimage.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/office2003/images/sprites.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/skins/office2003/images/sprites.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/office2003/images/sprites_ie6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/skins/office2003/images/sprites_ie6.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/office2003/skin.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | CKEDITOR.skins.add('office2003',(function(){var a=[];if(CKEDITOR.env.ie&&CKEDITOR.env.version<7)a.push('icons.png','images/sprites_ie6.png','images/dialog_sides.gif');return{preload:a,editor:{css:['editor.css']},dialog:{css:['dialog.css']},templates:{css:['templates.css']},margins:[0,14,18,14]};})());(function(){CKEDITOR.dialog?a():CKEDITOR.on('dialogPluginReady',a);function a(){CKEDITOR.dialog.on('resize',function(b){var c=b.data,d=c.width,e=c.height,f=c.dialog,g=f.parts.contents;if(c.skin!='office2003')return;g.setStyles({width:d+'px',height:e+'px'});if(!CKEDITOR.env.ie)return;var h=function(){var i=f.parts.dialog.getChild([0,0,0]),j=i.getChild(0),k=i.getChild(2);k.setStyle('width',j.$.offsetWidth+'px');k=i.getChild(7);k.setStyle('width',j.$.offsetWidth-28+'px');k=i.getChild(4);k.setStyle('height',e+j.getChild(0).$.offsetHeight+'px');k=i.getChild(5);k.setStyle('height',e+j.getChild(0).$.offsetHeight+'px');};setTimeout(h,100);if(b.editor.lang.dir=='rtl')setTimeout(h,1000);});};})();
7 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/office2003/templates.css:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | .cke_skin_office2003 .cke_tpl_list{border:#dcdcdc 2px solid;background-color:#fff;overflow:auto;width:100%;height:220px;}.cke_skin_office2003 .cke_tpl_item{margin:5px;padding:7px;border:#eee 1px solid;*width:88%;}.cke_skin_office2003 .cke_tpl_preview{border-collapse:separate;text-indent:0;width:100%;}.cke_skin_office2003 .cke_tpl_preview td{padding:2px;vertical-align:middle;}.cke_skin_office2003 .cke_tpl_preview .cke_tpl_preview_img{width:100px;}.cke_skin_office2003 .cke_tpl_preview span{white-space:normal;}.cke_skin_office2003 .cke_tpl_title{font-weight:bold;}.cke_skin_office2003 .cke_tpl_list a:active .cke_tpl_item,.cke_skin_office2003 .cke_tpl_list a:hover .cke_tpl_item,.cke_skin_office2003 .cke_tpl_list a:focus .cke_tpl_item{border:#f93 1px solid!important;background-color:#fffacd!important;}.cke_skin_office2003 .cke_tpl_list a:active *,.cke_skin_office2003 .cke_tpl_list a:hover *,.cke_skin_office2003 .cke_tpl_list a:focus *{cursor:pointer;}.cke_skin_office2003 .cke_browser_ie6 .cke_tpl_list a:active,.cke_skin_office2003 .cke_browser_ie6 .cke_tpl_list a:hover,.cke_skin_office2003 .cke_browser_ie6 .cke_tpl_list a:focus{background-position:0 0;}.cke_skin_office2003 .cke_tpl_list a:active .cke_tpl_item,.cke_skin_office2003 .cke_tpl_list a:hover .cke_tpl_item,.cke_skin_office2003 .cke_tpl_list a:focus .cke_tpl_item{border-width:3px;}.cke_skin_office2003 .cke_tpl_empty,.cke_tpl_loading{text-align:center;padding:5px;}
7 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/v2/icons.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/skins/v2/icons.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/v2/icons_rtl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/skins/v2/icons_rtl.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/v2/images/dialog_sides.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/skins/v2/images/dialog_sides.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/v2/images/dialog_sides.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/skins/v2/images/dialog_sides.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/v2/images/dialog_sides_rtl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/skins/v2/images/dialog_sides_rtl.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/v2/images/mini.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/skins/v2/images/mini.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/v2/images/noimage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/skins/v2/images/noimage.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/v2/images/sprites.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/skins/v2/images/sprites.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/v2/images/sprites_ie6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/skins/v2/images/sprites_ie6.png
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/v2/images/toolbar_start.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/skins/v2/images/toolbar_start.gif
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/v2/skin.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | CKEDITOR.skins.add('v2',(function(){var a=[];if(CKEDITOR.env.ie&&CKEDITOR.env.version<7)a.push('icons.png','images/sprites_ie6.png','images/dialog_sides.gif');return{preload:a,editor:{css:['editor.css']},dialog:{css:['dialog.css']},templates:{css:['templates.css']},margins:[0,14,18,14]};})());(function(){CKEDITOR.dialog?a():CKEDITOR.on('dialogPluginReady',a);function a(){CKEDITOR.dialog.on('resize',function(b){var c=b.data,d=c.width,e=c.height,f=c.dialog,g=f.parts.contents;if(c.skin!='v2')return;g.setStyles({width:d+'px',height:e+'px'});if(!CKEDITOR.env.ie)return;setTimeout(function(){var h=f.parts.dialog.getChild([0,0,0]),i=h.getChild(0),j=h.getChild(2);j.setStyle('width',i.$.offsetWidth+'px');j=h.getChild(7);j.setStyle('width',i.$.offsetWidth-28+'px');j=h.getChild(4);j.setStyle('height',e+i.getChild(0).$.offsetHeight+'px');j=h.getChild(5);j.setStyle('height',e+i.getChild(0).$.offsetHeight+'px');},100);});};})();
7 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/skins/v2/templates.css:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
4 | */
5 |
6 | .cke_skin_v2 .cke_tpl_list{border:#dcdcdc 2px solid;background-color:#fff;overflow:auto;width:100%;height:220px;}.cke_skin_v2 .cke_tpl_item{margin:5px;padding:7px;border:#eee 1px solid;*width:88%;}.cke_skin_v2 .cke_tpl_preview{border-collapse:separate;text-indent:0;width:100%;}.cke_skin_v2 .cke_tpl_preview td{padding:2px;vertical-align:middle;}.cke_skin_v2 .cke_tpl_preview .cke_tpl_preview_img{width:100px;}.cke_skin_v2 .cke_tpl_preview span{white-space:normal;}.cke_skin_v2 .cke_tpl_title{font-weight:bold;}.cke_skin_v2 .cke_tpl_list a:active .cke_tpl_item,.cke_skin_v2 .cke_tpl_list a:hover .cke_tpl_item,.cke_skin_v2 .cke_tpl_list a:focus .cke_tpl_item{border:#f93 1px solid!important;background-color:#fffacd!important;}.cke_skin_v2 .cke_tpl_list a:active *,.cke_skin_v2 .cke_tpl_list a:hover *,.cke_skin_v2 .cke_tpl_list a:focus *{cursor:pointer;}.cke_skin_v2 .cke_browser_ie6 .cke_tpl_list a:active,.cke_skin_v2 .cke_browser_ie6 .cke_tpl_list a:hover,.cke_skin_v2 .cke_browser_ie6 .cke_tpl_list a:focus{background-position:0 0;}.cke_skin_v2 .cke_tpl_list a:active .cke_tpl_item,.cke_skin_v2 .cke_tpl_list a:hover .cke_tpl_item,.cke_skin_v2 .cke_tpl_list a:focus .cke_tpl_item{border-width:3px;}.cke_skin_v2 .cke_tpl_empty,.cke_tpl_loading{text-align:center;padding:5px;}
7 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/swfupload/querystring.js:
--------------------------------------------------------------------------------
1 | /* Client-side access to querystring name=value pairs
2 | Version 1.3
3 | 28 May 2008
4 |
5 | License (Simplified BSD):
6 | http://adamv.com/dev/javascript/qslicense.txt
7 | */
8 | function Querystring(qs) { // optionally pass a querystring to parse
9 | this.params = {};
10 |
11 | if (qs == null) qs = location.search.substring(1, location.search.length);
12 | if (qs.length == 0) return;
13 |
14 | // Turn back to
15 | // See: http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.13.4.1
16 | qs = qs.replace(/\+/g, ' ');
17 | var args = qs.split('&'); // parse out name/value pairs separated via &
18 |
19 | // split out each name=value pair
20 | for (var i = 0; i < args.length; i++) {
21 | var pair = args[i].split('=');
22 | var name = decodeURIComponent(pair[0]);
23 |
24 | var value = (pair.length==2)
25 | ? decodeURIComponent(pair[1])
26 | : name;
27 |
28 | this.params[name] = value;
29 | }
30 | }
31 |
32 | Querystring.prototype.get = function(key, default_) {
33 | var value = this.params[key];
34 | return (value != null) ? value : default_;
35 | }
36 |
37 | Querystring.prototype.contains = function(key) {
38 | var value = this.params[key];
39 | return (value != null);
40 | }
41 |
--------------------------------------------------------------------------------
/generators/ckeditor_install/templates/ckeditor/swfupload/swfupload.swf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galetahub/rails-ckeditor/0c1bfe706026816553db773b28f81ca2f8c4be75/generators/ckeditor_install/templates/ckeditor/swfupload/swfupload.swf
--------------------------------------------------------------------------------
/generators/ckeditor_migration/USAGE:
--------------------------------------------------------------------------------
1 | CKEditor
2 | ========
3 |
4 | # Generate models to store uploaded images and files from ckeditor
5 | # It generate three models: Ckeditor::Asset, Ckeditor::Picture and Ckeditor::AttachmentFile,
6 | # and migration for "ckeditor_assets" table
7 | # By default backend is paperclip
8 |
9 | ./script/generate ckeditor_migration
10 |
11 | # options:
12 | --backend, [--backend=PROCESSOR] # Configure for selected file uploader (options: paperclip/attachment_fu)
13 |
--------------------------------------------------------------------------------
/generators/ckeditor_migration/ckeditor_migration_generator.rb:
--------------------------------------------------------------------------------
1 | class CkeditorMigrationGenerator < Rails::Generator::Base
2 |
3 | def manifest
4 | record do |m|
5 | create_models(m)
6 | create_migration(m)
7 | end
8 | end
9 |
10 | protected
11 |
12 | def create_models(m)
13 | m.directory(File.join('app', 'models', ckeditor_dir))
14 |
15 | m.template "models/#{generator_dir}/asset.rb",
16 | File.join('app/models', ckeditor_dir, "asset.rb")
17 |
18 | m.template "models/#{generator_dir}/picture.rb",
19 | File.join('app/models', ckeditor_dir, "picture.rb")
20 |
21 | m.template "models/#{generator_dir}/attachment_file.rb",
22 | File.join('app/models', ckeditor_dir, "attachment_file.rb")
23 | end
24 |
25 | def create_migration(m)
26 | m.migration_template "models/#{generator_dir}/migration.rb", 'db/migrate', :migration_file_name => "create_ckeditor_assets.rb"
27 | end
28 |
29 | def ckeditor_dir
30 | 'ckeditor'
31 | end
32 |
33 | def generator_dir
34 | options[:backend] || "paperclip"
35 | end
36 | end
37 |
--------------------------------------------------------------------------------
/generators/ckeditor_migration/templates/models/attachment_fu/asset.rb:
--------------------------------------------------------------------------------
1 | class Ckeditor::Asset < ActiveRecord::Base
2 | set_table_name "ckeditor_assets"
3 |
4 | belongs_to :user
5 | belongs_to :assetable, :polymorphic => true
6 |
7 | scope :masters, where("parent_id IS NULL")
8 |
9 | def url(*args)
10 | public_filename(*args)
11 | end
12 |
13 | def format_created_at
14 | I18n.l(self.created_at, :format=>"%d.%m.%Y %H:%M")
15 | end
16 |
17 | def to_xml(options = {})
18 | xml = options[:builder] ||= Builder::XmlMarkup.new(:indent => options[:indent])
19 |
20 | xml.tag!(self.read_attribute(:type).to_s.downcase) do
21 | xml.filename{ xml.cdata!(self.filename) }
22 | xml.size self.size
23 | xml.path{ xml.cdata!(self.public_filename) }
24 |
25 | xml.thumbnails do
26 | self.thumbnails.each do |t|
27 | xml.tag!(t.thumbnail, self.public_filename(t.thumbnail))
28 | end
29 | end unless self.thumbnails.empty?
30 | end
31 | end
32 | end
33 |
--------------------------------------------------------------------------------
/generators/ckeditor_migration/templates/models/attachment_fu/attachment_file.rb:
--------------------------------------------------------------------------------
1 | class Ckeditor::AttachmentFile < Ckeditor::Asset
2 | has_attachment :storage => :file_system, :path_prefix => 'public/assets/attachments',
3 | :max_size => 10.megabytes
4 |
5 | validates_as_attachment
6 |
7 | # Map file extensions to mime types.
8 | # Thanks to bug in Flash 8 the content type is always set to application/octet-stream.
9 | # From: http://blog.airbladesoftware.com/2007/8/8/uploading-files-with-swfupload
10 | def swf_uploaded_data=(data)
11 | data.content_type = MIME::Types.type_for(data.original_filename)
12 | self.uploaded_data = data
13 | end
14 |
15 | def full_filename(thumbnail = nil)
16 | file_system_path = self.attachment_options[:path_prefix]
17 | Rails.root.join(file_system_path, file_name_for(self.id))
18 | end
19 |
20 | def file_name_for(asset = nil)
21 | extension = filename.scan(/\.\w+$/)
22 | return "#{asset}_#{filename}"
23 | end
24 | end
25 |
--------------------------------------------------------------------------------
/generators/ckeditor_migration/templates/models/attachment_fu/migration.rb:
--------------------------------------------------------------------------------
1 | class CreateCkeditorAssets < ActiveRecord::Migration
2 | def self.up
3 | create_table :ckeditor_assets do |t|
4 | t.integer "parent_id"
5 | t.string "content_type"
6 | t.string "filename", :limit=>80
7 | t.string "thumbnail", :limit=>20
8 | t.integer "size"
9 | t.integer "width"
10 | t.integer "height"
11 | t.string "type", :limit=>40
12 | t.integer "user_id"
13 | t.integer "assetable_id"
14 | t.string "assetable_type", :limit=>40
15 |
16 | t.timestamps
17 | end
18 |
19 | add_index "ckeditor_assets", ["assetable_id", "assetable_type", "type"], :name => "ndx_type_assetable"
20 | add_index "ckeditor_assets", ["assetable_id", "assetable_type"], :name => "fk_assets"
21 | add_index "ckeditor_assets", ["parent_id", "type"], :name => "ndx_type_name"
22 | add_index "ckeditor_assets", ["thumbnail", "parent_id"], :name => "assets_thumbnail_parent_id"
23 | add_index "ckeditor_assets", ["user_id", "assetable_type", "assetable_id"], :name => "assets_user_type_assetable_id"
24 | add_index :ckeditor_assets, :user_id, :name => "fk_user"
25 | end
26 |
27 | def self.down
28 | drop_table :ckeditor_assets
29 | end
30 | end
31 |
--------------------------------------------------------------------------------
/generators/ckeditor_migration/templates/models/attachment_fu/picture.rb:
--------------------------------------------------------------------------------
1 | class Ckeditor::Picture < Ckeditor::Asset
2 | has_attachment :content_type => :image,
3 | :storage => :file_system, :path_prefix => 'public/assets/pictures',
4 | :max_size => 2.megabytes,
5 | :size => 0.kilobytes..2000.kilobytes,
6 | :processor => 'Rmagick',
7 | :thumbnails => { :content => '575>', :thumb => '100x100!' }
8 |
9 | validates_as_attachment
10 |
11 | def url_content
12 | public_filename(:content)
13 | end
14 |
15 | def url_thumb
16 | public_filename(:thumb)
17 | end
18 |
19 | def to_json(options = {})
20 | options[:methods] ||= []
21 | options[:methods] << :url_content
22 | options[:methods] << :url_thumb
23 | super options
24 | end
25 | end
26 |
--------------------------------------------------------------------------------
/generators/ckeditor_migration/templates/models/paperclip/attachment_file.rb:
--------------------------------------------------------------------------------
1 | class Ckeditor::AttachmentFile < Ckeditor::Asset
2 | has_attached_file :data,
3 | :url => "/ckeditor_assets/attachments/:id/:filename",
4 | :path => ":rails_root/public/ckeditor_assets/attachments/:id/:filename"
5 |
6 | validates_attachment_size :data, :less_than=>100.megabytes
7 |
8 | def url(*args)
9 | if [:thumb, :content].include?(args.first)
10 | send("url_#{args.first}")
11 | else
12 | data.url(*args)
13 | end
14 | end
15 |
16 | def url_content
17 | data.url
18 | end
19 |
20 | def url_thumb
21 | extname = File.extname(filename)
22 |
23 | case extname.to_s
24 | when '.swf' then '/javascripts/ckeditor/images/swf.gif'
25 | when '.pdf' then '/javascripts/ckeditor/images/pdf.gif'
26 | when '.doc', '.txt' then '/javascripts/ckeditor/images/doc.gif'
27 | when '.mp3' then '/javascripts/ckeditor/images/mp3.gif'
28 | when '.rar', '.zip', '.tg' then '/javascripts/ckeditor/images/rar.gif'
29 | when '.xls' then '/javascripts/ckeditor/images/xls.gif'
30 | else '/javascripts/ckeditor/images/ckfnothumb.gif'
31 | end
32 | end
33 |
34 | def to_json(options = {})
35 | options[:methods] ||= []
36 | options[:methods] << :url_content
37 | options[:methods] << :url_thumb
38 | super options
39 | end
40 | end
41 |
--------------------------------------------------------------------------------
/generators/ckeditor_migration/templates/models/paperclip/migration.rb:
--------------------------------------------------------------------------------
1 | class CreateCkeditorAssets < ActiveRecord::Migration
2 | def self.up
3 | create_table :ckeditor_assets do |t|
4 | t.string :data_file_name, :null => false
5 | t.string :data_content_type
6 | t.integer :data_file_size
7 |
8 | t.integer :assetable_id
9 | t.string :assetable_type, :limit => 30
10 | t.string :type, :limit => 25
11 | t.string :guid, :limit => 10
12 |
13 | t.integer :locale, :limit => 1, :default => 0
14 | t.integer :user_id
15 |
16 | # Uncomment it to save images dimensions, if your need it
17 | # t.integer :width
18 | # t.integer :height
19 |
20 | t.timestamps
21 | end
22 |
23 | add_index "ckeditor_assets", ["assetable_type", "type", "assetable_id"], :name => "idx_assetable_type"
24 | add_index "ckeditor_assets", ["assetable_type", "assetable_id"], :name => "fk_assetable"
25 | add_index "ckeditor_assets", ["user_id"], :name => "fk_user"
26 | end
27 |
28 | def self.down
29 | drop_table :ckeditor_assets
30 | end
31 | end
32 |
--------------------------------------------------------------------------------
/generators/ckeditor_migration/templates/models/paperclip/picture.rb:
--------------------------------------------------------------------------------
1 | class Ckeditor::Picture < Ckeditor::Asset
2 | has_attached_file :data,
3 | :url => "/ckeditor_assets/pictures/:id/:style_:basename.:extension",
4 | :path => ":rails_root/public/ckeditor_assets/pictures/:id/:style_:basename.:extension",
5 | :styles => { :content => '575>', :thumb => '80x80#' }
6 |
7 | validates_attachment_size :data, :less_than=>2.megabytes
8 |
9 | def url_content
10 | url(:content)
11 | end
12 |
13 | def url_thumb
14 | url(:thumb)
15 | end
16 |
17 | def to_json(options = {})
18 | options[:methods] ||= []
19 | options[:methods] << :url_content
20 | options[:methods] << :url_thumb
21 | super options
22 | end
23 | end
24 |
--------------------------------------------------------------------------------
/init.rb:
--------------------------------------------------------------------------------
1 | # encoding: utf-8
2 | require File.join(File.dirname(__FILE__), "lib", "ckeditor")
3 |
--------------------------------------------------------------------------------
/lib/ckeditor/form_builder.rb:
--------------------------------------------------------------------------------
1 | module Ckeditor
2 | module FormBuilder
3 | def self.included(base)
4 | base.send(:include, Ckeditor::ViewHelper)
5 | base.send(:include, Ckeditor::FormBuilder::ClassMethods)
6 | end
7 |
8 | module ClassMethods
9 | # Example:
10 | # <% form_for :post, :url => posts_path do |form| %>
11 | # ...
12 | # <%= form.cktext_area :notes, :toolbar=>'Full', :width=>'400px', :heigth=>'200px' %>
13 | # <% end %>
14 | #
15 | # With swfupload options:
16 | # <%= form.cktext_area :content, :swf_params=>{:assetable_type=>'User', :assetable_id=>current_user.id} %>
17 | def cktext_area(method, options = {})
18 | ckeditor_textarea(@object_name, method, objectify_options(options))
19 | end
20 | end
21 | end
22 | end
23 |
--------------------------------------------------------------------------------
/lib/ckeditor/formtastic.rb:
--------------------------------------------------------------------------------
1 | module Ckeditor
2 | class CustomFormBuilder < Formtastic::SemanticFormBuilder
3 |
4 | private
5 |
6 | def ckeditor_input(method, options)
7 | html_options = options.delete(:input_html) || {}
8 | self.label(method, options_for_label(options)) <<
9 | self.send(:ckeditor_textarea, sanitized_object_name, method, html_options)
10 | end
11 | end
12 | end
13 |
--------------------------------------------------------------------------------
/lib/ckeditor/middleware.rb:
--------------------------------------------------------------------------------
1 | require 'rack/utils'
2 |
3 | module Ckeditor
4 | class Middleware
5 | def initialize(app, session_key = '_session_id')
6 | @app = app
7 | @session_key = session_key
8 | end
9 |
10 | def call(env)
11 | if env['HTTP_USER_AGENT'] =~ /^(Adobe|Shockwave) Flash/
12 | params = ::Rack::Utils.parse_query(env['QUERY_STRING'])
13 | env['HTTP_COOKIE'] = [ @session_key, ::Rack::Utils.escape(params[@session_key]) ].join('=').freeze unless params[@session_key].nil?
14 | end
15 | @app.call(env)
16 | end
17 | end
18 | end
19 |
--------------------------------------------------------------------------------
/lib/ckeditor/safe_buffer.rb:
--------------------------------------------------------------------------------
1 | module ActiveSupport #:nodoc:
2 | class SafeBuffer < String
3 | alias safe_concat concat
4 |
5 | def concat(value)
6 | if value.html_safe?
7 | super(value)
8 | else
9 | super(ERB::Util.h(value))
10 | end
11 | end
12 | alias << concat
13 |
14 | def +(other)
15 | dup.concat(other)
16 | end
17 |
18 | def html_safe?
19 | true
20 | end
21 |
22 | def html_safe
23 | self
24 | end
25 |
26 | def to_s
27 | self
28 | end
29 |
30 | def to_yaml(*args)
31 | to_str.to_yaml(*args)
32 | end
33 | end
34 | end
35 |
--------------------------------------------------------------------------------
/lib/ckeditor/utils.rb:
--------------------------------------------------------------------------------
1 | require 'fileutils'
2 |
3 | module Ckeditor
4 | module Utils
5 | CKEDITOR_INSTALL_DIRECTORY = File.join(RAILS_ROOT, '/public/javascripts/ckeditor/')
6 |
7 | ##################################################################
8 | # remove the existing install (if any)
9 | def self.destroy
10 | if File.exist?(CKEDITOR_INSTALL_DIRECTORY)
11 | FileUtils.rm_r(CKEDITOR_INSTALL_DIRECTORY)
12 | end
13 | end
14 |
15 | def self.escape_single_quotes(str)
16 | str.gsub('\\','\0\0').gsub('','<\/').gsub(/\r\n|\n|\r/, "\\n").gsub(/["']/) { |m| "\\#{m}" }
17 | end
18 | end
19 | end
20 |
--------------------------------------------------------------------------------
/lib/ckeditor/version.rb:
--------------------------------------------------------------------------------
1 | module Ckeditor
2 | module Version
3 | MAJOR = 3
4 | MINOR = 4
5 | RELEASE = 3
6 |
7 | def self.dup
8 | "#{MAJOR}.#{MINOR}.#{RELEASE}"
9 | end
10 | end
11 | end
12 |
--------------------------------------------------------------------------------
/tasks/ckeditor_tasks.rake:
--------------------------------------------------------------------------------
1 | # Ckeditor tasks
2 | #namespace :ckeditor do
3 | #end
4 |
--------------------------------------------------------------------------------
/uninstall.rb:
--------------------------------------------------------------------------------
1 | # encoding: utf-8
2 | require File.join(File.dirname(__FILE__), "lib", "ckeditor")
3 |
4 | Ckeditor::Utils.destroy
5 |
--------------------------------------------------------------------------------