ckeditor 3.5.0 → 3.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +30 -6
- data/app/controllers/ckeditor/attachments_controller.rb +1 -1
- data/app/controllers/ckeditor/base_controller.rb +1 -1
- data/app/controllers/ckeditor/pictures_controller.rb +1 -1
- data/app/helpers/ckeditor/base_helper.rb +1 -1
- data/app/views/ckeditor/_asset.html.erb +18 -13
- data/app/views/ckeditor/_swfupload.html.erb +22 -0
- data/app/views/ckeditor/attachments/index.html.erb +2 -40
- data/app/views/ckeditor/pictures/index.html.erb +1 -39
- data/app/views/layouts/ckeditor.html.erb +5 -2
- data/config/locales/en.ckeditor.yml +11 -0
- data/config/locales/ru.ckeditor.yml +11 -0
- data/config/locales/uk.ckeditor.yml +11 -0
- data/lib/ckeditor.rb +5 -1
- data/lib/ckeditor/engine.rb +5 -1
- data/lib/ckeditor/hooks/formtastic.rb +15 -0
- data/lib/ckeditor/hooks/simple_form.rb +28 -0
- data/lib/ckeditor/utils.rb +45 -16
- data/lib/ckeditor/version.rb +1 -1
- data/lib/generators/ckeditor/base/USAGE +3 -1
- data/lib/generators/ckeditor/base/base_generator.rb +28 -1
- data/lib/generators/ckeditor/base/templates/ckeditor/css/ckfinder.css +17 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/swfupload/fileprogress.js +114 -123
- data/lib/generators/ckeditor/base/templates/ckeditor/swfupload/handlers.js +11 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/swfupload/jquery-1.5.1.min.js +16 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/swfupload/rails.js +158 -0
- data/lib/generators/ckeditor/migration/templates/models/paperclip/asset.rb +2 -0
- metadata +17 -643
- data/lib/ckeditor/formtastic.rb +0 -12
- data/lib/generators/ckeditor/base/templates/ckeditor/CHANGES.html +0 -1063
- data/lib/generators/ckeditor/base/templates/ckeditor/INSTALL.html +0 -92
- data/lib/generators/ckeditor/base/templates/ckeditor/LICENSE.html +0 -1334
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/adobeair/application.xml +0 -32
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/adobeair/run.bat +0 -9
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/adobeair/run.sh +0 -8
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/adobeair/sample.html +0 -45
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/ajax.html +0 -87
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/api.html +0 -174
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/api_dialog.html +0 -188
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/api_dialog/my_dialog.js +0 -28
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/asp/advanced.asp +0 -105
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/asp/events.asp +0 -136
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/asp/index.html +0 -103
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/asp/replace.asp +0 -72
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/asp/replaceall.asp +0 -77
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/asp/sample_posteddata.asp +0 -46
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/asp/standalone.asp +0 -72
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/assets/output_for_flash.fla +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/assets/output_for_flash.swf +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/assets/output_xhtml.css +0 -204
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/assets/swfobject.js +0 -18
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/autogrow.html +0 -75
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/divreplace.html +0 -137
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/enterkey.html +0 -88
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/fullpage.html +0 -62
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/index.html +0 -58
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/jqueryadapter.html +0 -73
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/output_for_flash.html +0 -257
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/output_html.html +0 -259
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/output_xhtml.html +0 -159
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/php/advanced.php +0 -93
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/php/events.php +0 -130
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/php/replace.php +0 -63
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/php/replaceall.php +0 -68
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/php/standalone.php +0 -64
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/placeholder.html +0 -62
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/replacebyclass.html +0 -49
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/replacebycode.html +0 -80
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/sample.css +0 -81
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/sample.js +0 -65
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/sample_posteddata.php +0 -59
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/sharedspaces.html +0 -131
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/skins.html +0 -83
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/ui_color.html +0 -87
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/ui_languages.html +0 -103
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/adapters/jquery.js +0 -300
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/_bootstrap.js +0 -96
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/ajax.js +0 -142
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/ckeditor.js +0 -133
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/ckeditor_base.js +0 -196
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/ckeditor_basic.js +0 -239
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/command.js +0 -209
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/commanddefinition.js +0 -129
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/config.js +0 -431
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dataprocessor.js +0 -65
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom.js +0 -20
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/comment.js +0 -32
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/document.js +0 -251
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/documentfragment.js +0 -49
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/domobject.js +0 -258
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/element.js +0 -1615
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/elementpath.js +0 -119
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/event.js +0 -142
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/node.js +0 -696
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/nodelist.js +0 -26
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/range.js +0 -1893
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/rangelist.js +0 -213
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/text.js +0 -123
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/walker.js +0 -444
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/window.js +0 -96
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dtd.js +0 -238
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/editor.js +0 -943
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/editor_basic.js +0 -182
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/env.js +0 -272
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/event.js +0 -342
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/eventInfo.js +0 -120
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/focusmanager.js +0 -152
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/htmlparser.js +0 -224
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/htmlparser/basicwriter.js +0 -145
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/htmlparser/cdata.js +0 -43
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/htmlparser/comment.js +0 -60
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/htmlparser/element.js +0 -240
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/htmlparser/filter.js +0 -288
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/htmlparser/fragment.js +0 -504
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/htmlparser/text.js +0 -55
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/lang.js +0 -156
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/loader.js +0 -242
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/plugindefinition.js +0 -66
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/plugins.js +0 -85
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/resourcemanager.js +0 -238
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/scriptloader.js +0 -200
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/skins.js +0 -184
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/themes.js +0 -19
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/tools.js +0 -734
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/ui.js +0 -118
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/xml.js +0 -165
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/_languages.js +0 -83
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/_translationstatus.txt +0 -60
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/af.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/ar.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/bg.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/bn.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/bs.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/ca.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/cs.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/cy.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/da.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/de.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/el.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/en-au.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/en-ca.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/en-gb.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/en.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/eo.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/es.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/et.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/eu.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/fa.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/fi.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/fo.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/fr-ca.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/fr.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/gl.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/gu.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/he.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/hi.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/hr.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/hu.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/is.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/it.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/ja.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/km.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/ko.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/lt.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/lv.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/mn.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/ms.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/nb.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/nl.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/no.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/pl.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/pt-br.js +0 -751
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/pt.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/ro.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/ru.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/sk.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/sl.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/sr-latn.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/sr.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/sv.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/th.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/tr.js +0 -751
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/uk.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/vi.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/zh-cn.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/zh.js +0 -752
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/a11yhelp/dialogs/a11yhelp.js +0 -211
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/a11yhelp/lang/en.js +0 -108
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/a11yhelp/lang/he.js +0 -216
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/a11yhelp/plugin.js +0 -46
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/about/dialogs/about.js +0 -73
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/about/plugin.js +0 -23
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/adobeair/plugin.js +0 -228
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/ajax_save/plugin.js +0 -43
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/attachment/dialogs/attachment.js +0 -384
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/attachment/images/attachment.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/attachment/lang/en.js +0 -10
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/attachment/lang/ru.js +0 -10
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/attachment/lang/uk.js +0 -10
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/attachment/plugin.js +0 -44
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/autogrow/plugin.js +0 -86
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/basicstyles/plugin.js +0 -101
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/bidi/plugin.js +0 -265
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/blockquote/plugin.js +0 -301
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/button/plugin.js +0 -295
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/clipboard/dialogs/paste.js +0 -212
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/clipboard/plugin.js +0 -412
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/colorbutton/plugin.js +0 -291
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/colordialog/dialogs/colordialog.js +0 -340
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/colordialog/plugin.js +0 -13
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/contextmenu/plugin.js +0 -177
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/dialog/dialogDefinition.js +0 -315
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/dialog/plugin.js +0 -3067
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/dialogadvtab/plugin.js +0 -213
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/dialogui/plugin.js +0 -1523
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/div/dialogs/div.js +0 -535
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/div/plugin.js +0 -121
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/domiterator/plugin.js +0 -356
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/editingblock/plugin.js +0 -229
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/elementspath/plugin.js +0 -201
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/embed/dialogs/embed.js +0 -65
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/embed/images/embed.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/embed/lang/en.js +0 -9
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/embed/lang/ru.js +0 -9
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/embed/lang/uk.js +0 -9
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/embed/plugin.js +0 -43
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/enterkey/plugin.js +0 -381
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/entities/plugin.js +0 -226
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/fakeobjects/plugin.js +0 -126
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/filebrowser/plugin.js +0 -501
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/find/dialogs/find.js +0 -890
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/find/plugin.js +0 -46
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/flash/dialogs/flash.js +0 -698
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/flash/images/placeholder.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/flash/plugin.js +0 -168
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/floatpanel/plugin.js +0 -405
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/font/plugin.js +0 -234
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/format/plugin.js +0 -194
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/dialogs/button.js +0 -135
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/dialogs/checkbox.js +0 -153
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/dialogs/form.js +0 -177
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/dialogs/hiddenfield.js +0 -98
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/dialogs/radio.js +0 -135
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/dialogs/select.js +0 -556
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/dialogs/textarea.js +0 -114
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/dialogs/textfield.js +0 -199
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/images/hiddenfield.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/plugin.js +0 -284
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/horizontalrule/plugin.js +0 -36
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/htmldataprocessor/plugin.js +0 -543
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/htmlwriter/plugin.js +0 -319
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/iframe/dialogs/iframe.js +0 -257
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/iframe/images/placeholder.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/iframe/plugin.js +0 -106
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/iframedialog/plugin.js +0 -136
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/image/dialogs/image.js +0 -1388
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/image/plugin.js +0 -81
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/indent/plugin.js +0 -468
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/justify/plugin.js +0 -239
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/keystrokes/plugin.js +0 -225
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/link/dialogs/anchor.js +0 -99
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/link/dialogs/link.js +0 -1426
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/link/images/anchor.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/link/plugin.js +0 -241
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/list/plugin.js +0 -723
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/listblock/plugin.js +0 -257
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/liststyle/dialogs/liststyle.js +0 -204
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/liststyle/plugin.js +0 -66
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/maximize/plugin.js +0 -340
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/menu/plugin.js +0 -505
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/menubutton/plugin.js +0 -98
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/newpage/plugin.js +0 -53
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/pagebreak/images/pagebreak.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/pagebreak/plugin.js +0 -120
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/panel/plugin.js +0 -395
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/panelbutton/plugin.js +0 -146
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/pastefromword/filter/default.js +0 -1175
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/pastefromword/plugin.js +0 -122
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js +0 -70
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/pastetext/plugin.js +0 -85
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/placeholder/dialogs/placeholder.js +0 -78
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/placeholder/lang/en.js +0 -16
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/placeholder/placeholder.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/placeholder/plugin.js +0 -160
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/popup/plugin.js +0 -64
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/preview/plugin.js +0 -108
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/print/plugin.js +0 -41
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/removeformat/plugin.js +0 -184
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/resize/plugin.js +0 -157
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/richcombo/plugin.js +0 -371
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/save/plugin.js +0 -55
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/scayt/dialogs/options.js +0 -534
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/scayt/dialogs/toolbar.css +0 -71
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/scayt/plugin.js +0 -947
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/selection/plugin.js +0 -1375
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/images/block_address.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/images/block_blockquote.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/images/block_div.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/images/block_h1.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/images/block_h2.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/images/block_h3.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/images/block_h4.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/images/block_h5.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/images/block_h6.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/images/block_p.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/images/block_pre.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/plugin.js +0 -156
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showborders/plugin.js +0 -203
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/dialogs/smiley.js +0 -223
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/angel_smile.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/angry_smile.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/broken_heart.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/confused_smile.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/cry_smile.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/devil_smile.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/embaressed_smile.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/envelope.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/heart.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/kiss.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/lightbulb.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/omg_smile.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/regular_smile.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/sad_smile.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/shades_smile.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/teeth_smile.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/thumbs_down.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/thumbs_up.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/tounge_smile.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/wink_smile.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/plugin.js +0 -94
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/sourcearea/plugin.js +0 -196
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/specialchar/dialogs/specialchar.js +0 -347
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/specialchar/lang/en.js +0 -89
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/specialchar/plugin.js +0 -70
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/styles/plugin.js +0 -1564
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/styles/styles/default.js +0 -88
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/stylescombo/plugin.js +0 -206
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/tab/plugin.js +0 -367
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/table/dialogs/table.js +0 -672
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/table/plugin.js +0 -78
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/tableresize/plugin.js +0 -450
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/tabletools/dialogs/tableCell.js +0 -525
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/tabletools/plugin.js +0 -1120
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/templates/dialogs/templates.js +0 -233
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/templates/plugin.js +0 -99
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/templates/templates/default.js +0 -94
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/templates/templates/images/template1.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/templates/templates/images/template2.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/templates/templates/images/template3.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/toolbar/plugin.js +0 -482
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/uicolor/dialogs/uicolor.js +0 -205
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/uicolor/lang/en.js +0 -15
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/uicolor/lang/he.js +0 -15
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/uicolor/plugin.js +0 -37
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/uicolor/uicolor.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/uicolor/yui/assets/hue_bg.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/uicolor/yui/assets/picker_mask.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/uicolor/yui/assets/yui.css +0 -15
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/uicolor/yui/yui.js +0 -71
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/undo/plugin.js +0 -554
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/wsc/dialogs/ciframe.html +0 -49
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/wsc/dialogs/tmpFrameset.html +0 -52
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/wsc/dialogs/wsc.css +0 -82
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/wsc/dialogs/wsc.js +0 -191
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/wsc/plugin.js +0 -33
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/wysiwygarea/plugin.js +0 -1224
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/dialog.css +0 -915
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/editor.css +0 -25
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/elementspath.css +0 -73
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/icons.css +0 -361
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/icons.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/icons_rtl.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/images/dialog_sides.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/images/dialog_sides.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/images/dialog_sides_rtl.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/images/mini.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/images/noimage.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/images/sprites.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/images/sprites_ie6.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/images/toolbar_start.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/mainui.css +0 -202
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/menu.css +0 -244
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/panel.css +0 -217
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/presets.css +0 -49
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/reset.css +0 -84
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/richcombo.css +0 -287
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/skin.js +0 -259
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/templates.css +0 -88
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/toolbar.css +0 -448
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/dialog.css +0 -826
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/editor.css +0 -25
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/elementspath.css +0 -74
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/icons.css +0 -358
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/icons.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/icons_rtl.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/images/dialog_sides.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/images/dialog_sides.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/images/dialog_sides_rtl.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/images/mini.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/images/noimage.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/images/sprites.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/images/sprites_ie6.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/mainui.css +0 -152
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/menu.css +0 -241
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/panel.css +0 -212
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/presets.css +0 -49
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/reset.css +0 -84
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/richcombo.css +0 -318
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/skin.js +0 -71
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/templates.css +0 -87
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/toolbar.css +0 -510
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/dialog.css +0 -842
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/editor.css +0 -25
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/elementspath.css +0 -74
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/icons.css +0 -358
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/icons.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/icons_rtl.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/images/dialog_sides.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/images/dialog_sides.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/images/dialog_sides_rtl.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/images/mini.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/images/noimage.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/images/sprites.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/images/sprites_ie6.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/images/toolbar_start.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/mainui.css +0 -161
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/menu.css +0 -244
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/panel.css +0 -212
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/presets.css +0 -50
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/reset.css +0 -84
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/richcombo.css +0 -317
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/skin.js +0 -67
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/templates.css +0 -87
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/toolbar.css +0 -453
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/themes/default/theme.js +0 -368
- data/lib/generators/ckeditor/base/templates/ckeditor/adapters/jquery.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/ckeditor.js +0 -139
- data/lib/generators/ckeditor/base/templates/ckeditor/ckeditor.pack +0 -211
- data/lib/generators/ckeditor/base/templates/ckeditor/ckeditor_basic.js +0 -8
- data/lib/generators/ckeditor/base/templates/ckeditor/ckeditor_basic_source.js +0 -20
- data/lib/generators/ckeditor/base/templates/ckeditor/ckeditor_source.js +0 -25
- data/lib/generators/ckeditor/base/templates/ckeditor/contents.css +0 -39
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/_languages.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/_translationstatus.txt +0 -60
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/af.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/ar.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/bg.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/bn.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/bs.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/ca.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/cs.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/cy.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/da.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/de.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/el.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/en-au.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/en-ca.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/en-gb.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/en.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/eo.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/es.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/et.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/eu.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/fa.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/fi.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/fo.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/fr-ca.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/fr.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/gl.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/gu.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/he.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/hi.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/hr.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/hu.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/is.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/it.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/ja.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/km.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/ko.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/lt.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/lv.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/mn.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/ms.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/nb.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/nl.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/no.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/pl.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/pt-br.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/pt.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/ro.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/ru.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/sk.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/sl.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/sr-latn.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/sr.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/sv.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/th.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/tr.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/uk.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/vi.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/zh-cn.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/zh.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +0 -7
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/a11yhelp/lang/en.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/a11yhelp/lang/he.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/about/dialogs/about.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/adobeair/plugin.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/ajax_save/plugin.js +0 -1
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/dialogs/attachment.js +0 -1
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/images/attachment.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/lang/en.js +0 -10
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/lang/ru.js +0 -10
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/lang/uk.js +0 -10
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/plugin.js +0 -1
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/autogrow/plugin.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/clipboard/dialogs/paste.js +0 -7
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/colordialog/dialogs/colordialog.js +0 -7
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/dialog/dialogDefinition.js +0 -4
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/div/dialogs/div.js +0 -8
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/dialogs/embed.js +0 -1
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/images/embed.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/lang/en.js +0 -9
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/lang/ru.js +0 -9
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/lang/uk.js +0 -9
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/plugin.js +0 -1
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/find/dialogs/find.js +0 -9
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/flash/dialogs/flash.js +0 -9
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/flash/images/placeholder.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/dialogs/button.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/dialogs/checkbox.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/dialogs/form.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/dialogs/hiddenfield.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/dialogs/radio.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/dialogs/select.js +0 -9
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/dialogs/textarea.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/dialogs/textfield.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/iframe/dialogs/iframe.js +0 -7
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/iframe/images/placeholder.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/iframedialog/plugin.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/image/dialogs/image.js +0 -13
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/link/dialogs/anchor.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/link/dialogs/link.js +0 -11
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/link/images/anchor.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/liststyle/dialogs/liststyle.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/pastefromword/filter/default.js +0 -10
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/pastetext/dialogs/pastetext.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/placeholder/dialogs/placeholder.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/placeholder/lang/en.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/placeholder/placeholder.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/placeholder/plugin.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/scayt/dialogs/options.js +0 -8
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/scayt/dialogs/toolbar.css +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/showblocks/images/block_address.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/showblocks/images/block_div.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/showblocks/images/block_p.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/dialogs/smiley.js +0 -7
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/envelope.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/heart.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/kiss.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/specialchar/dialogs/specialchar.js +0 -7
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/specialchar/lang/en.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/styles/styles/default.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/table/dialogs/table.js +0 -9
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/tableresize/plugin.js +0 -7
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/tabletools/dialogs/tableCell.js +0 -8
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/templates/dialogs/templates.js +0 -7
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/templates/templates/default.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/uicolor/dialogs/uicolor.js +0 -7
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/uicolor/lang/en.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/uicolor/lang/he.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/uicolor/plugin.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/uicolor/uicolor.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/uicolor/yui/assets/hue_bg.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/uicolor/yui/assets/picker_mask.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/uicolor/yui/assets/yui.css +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/uicolor/yui/yui.js +0 -76
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/wsc/dialogs/ciframe.html +0 -49
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +0 -52
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/wsc/dialogs/wsc.css +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/wsc/dialogs/wsc.js +0 -7
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/dialog.css +0 -9
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/editor.css +0 -13
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/icons.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/icons_rtl.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/images/dialog_sides.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/images/dialog_sides.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/images/dialog_sides_rtl.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/images/mini.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/images/noimage.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/images/sprites.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/images/sprites_ie6.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/images/toolbar_start.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/skin.js +0 -7
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/templates.css +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/dialog.css +0 -9
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/editor.css +0 -14
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/icons.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/icons_rtl.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/images/dialog_sides.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/images/dialog_sides.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/images/dialog_sides_rtl.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/images/mini.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/images/noimage.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/images/sprites.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/images/sprites_ie6.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/skin.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/templates.css +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/dialog.css +0 -9
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/editor.css +0 -13
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/icons.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/icons_rtl.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/images/dialog_sides.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/images/dialog_sides.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/images/dialog_sides_rtl.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/images/mini.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/images/noimage.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/images/sprites.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/images/sprites_ie6.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/images/toolbar_start.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/skin.js +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/templates.css +0 -6
- data/lib/generators/ckeditor/base/templates/ckeditor/swfupload/mootools-1.2.3-core-yc.js +0 -356
- data/lib/generators/ckeditor/base/templates/ckeditor/themes/default/theme.js +0 -8
data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/scayt/dialogs/toolbar.css
DELETED
@@ -1,71 +0,0 @@
|
|
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
|
-
}
|
@@ -1,947 +0,0 @@
|
|
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 Spell Check As You Type (SCAYT).
|
8
|
-
* Button name : Scayt.
|
9
|
-
*/
|
10
|
-
|
11
|
-
(function()
|
12
|
-
{
|
13
|
-
var commandName = 'scaytcheck',
|
14
|
-
openPage = '';
|
15
|
-
|
16
|
-
// Checks if a value exists in an array
|
17
|
-
function in_array( needle, haystack )
|
18
|
-
{
|
19
|
-
var found = 0,
|
20
|
-
key;
|
21
|
-
for ( key in haystack )
|
22
|
-
{
|
23
|
-
if ( haystack[ key ] == needle )
|
24
|
-
{
|
25
|
-
found = 1;
|
26
|
-
break;
|
27
|
-
}
|
28
|
-
}
|
29
|
-
return found;
|
30
|
-
}
|
31
|
-
|
32
|
-
var onEngineLoad = function()
|
33
|
-
{
|
34
|
-
var editor = this;
|
35
|
-
|
36
|
-
var createInstance = function() // Create new instance every time Document is created.
|
37
|
-
{
|
38
|
-
var config = editor.config;
|
39
|
-
// Initialise Scayt instance.
|
40
|
-
var oParams = {};
|
41
|
-
// Get the iframe.
|
42
|
-
oParams.srcNodeRef = editor.document.getWindow().$.frameElement;
|
43
|
-
// syntax : AppName.AppVersion@AppRevision
|
44
|
-
oParams.assocApp = 'CKEDITOR.' + CKEDITOR.version + '@' + CKEDITOR.revision;
|
45
|
-
oParams.customerid = config.scayt_customerid || '1:WvF0D4-UtPqN1-43nkD4-NKvUm2-daQqk3-LmNiI-z7Ysb4-mwry24-T8YrS3-Q2tpq2';
|
46
|
-
oParams.customDictionaryIds = config.scayt_customDictionaryIds || '';
|
47
|
-
oParams.userDictionaryName = config.scayt_userDictionaryName || '';
|
48
|
-
oParams.sLang = config.scayt_sLang || 'en_US';
|
49
|
-
|
50
|
-
// Introduce SCAYT onLoad callback. (#5632)
|
51
|
-
oParams.onLoad = function()
|
52
|
-
{
|
53
|
-
// Draw down word marker to avoid being covered by background-color style.(#5466)
|
54
|
-
if ( !( CKEDITOR.env.ie && CKEDITOR.env.version < 8 ) )
|
55
|
-
this.addStyle( this.selectorCss(), 'padding-bottom: 2px !important;' );
|
56
|
-
|
57
|
-
// Call scayt_control.focus when SCAYT loaded
|
58
|
-
// and only if editor has focus and scayt control creates at first time (#5720)
|
59
|
-
if ( editor.focusManager.hasFocus && !plugin.isControlRestored( editor ) )
|
60
|
-
this.focus();
|
61
|
-
|
62
|
-
};
|
63
|
-
|
64
|
-
oParams.onBeforeChange = function()
|
65
|
-
{
|
66
|
-
if ( plugin.getScayt( editor ) && !editor.checkDirty() )
|
67
|
-
setTimeout( function(){ editor.resetDirty(); }, 0 );
|
68
|
-
};
|
69
|
-
|
70
|
-
var scayt_custom_params = window.scayt_custom_params;
|
71
|
-
if ( typeof scayt_custom_params == 'object' )
|
72
|
-
{
|
73
|
-
for ( var k in scayt_custom_params )
|
74
|
-
oParams[ k ] = scayt_custom_params[ k ];
|
75
|
-
}
|
76
|
-
// needs for restoring a specific scayt control settings
|
77
|
-
if ( plugin.getControlId( editor ) )
|
78
|
-
oParams.id = plugin.getControlId( editor );
|
79
|
-
|
80
|
-
var scayt_control = new window.scayt( oParams );
|
81
|
-
|
82
|
-
scayt_control.afterMarkupRemove.push( function( node )
|
83
|
-
{
|
84
|
-
( new CKEDITOR.dom.element( node, scayt_control.document ) ).mergeSiblings();
|
85
|
-
} );
|
86
|
-
|
87
|
-
// Copy config.
|
88
|
-
var lastInstance = plugin.instances[ editor.name ];
|
89
|
-
if ( lastInstance )
|
90
|
-
{
|
91
|
-
scayt_control.sLang = lastInstance.sLang;
|
92
|
-
scayt_control.option( lastInstance.option() );
|
93
|
-
scayt_control.paused = lastInstance.paused;
|
94
|
-
}
|
95
|
-
|
96
|
-
plugin.instances[ editor.name ] = scayt_control;
|
97
|
-
|
98
|
-
//window.scayt.uiTags
|
99
|
-
var menuGroup = 'scaytButton';
|
100
|
-
var uiTabs = window.scayt.uiTags;
|
101
|
-
var fTabs = [];
|
102
|
-
|
103
|
-
for ( var i = 0, l=4; i < l; i++ )
|
104
|
-
fTabs.push( uiTabs[i] && plugin.uiTabs[i] );
|
105
|
-
|
106
|
-
plugin.uiTabs = fTabs;
|
107
|
-
try {
|
108
|
-
scayt_control.setDisabled( plugin.isPaused( editor ) === false );
|
109
|
-
} catch (e) {}
|
110
|
-
|
111
|
-
editor.fire( 'showScaytState' );
|
112
|
-
};
|
113
|
-
|
114
|
-
editor.on( 'contentDom', createInstance );
|
115
|
-
editor.on( 'contentDomUnload', function()
|
116
|
-
{
|
117
|
-
// Remove scripts.
|
118
|
-
var scripts = CKEDITOR.document.getElementsByTag( 'script' ),
|
119
|
-
scaytIdRegex = /^dojoIoScript(\d+)$/i,
|
120
|
-
scaytSrcRegex = /^https?:\/\/svc\.spellchecker\.net\/spellcheck\/script\/ssrv\.cgi/i;
|
121
|
-
|
122
|
-
for ( var i=0; i < scripts.count(); i++ )
|
123
|
-
{
|
124
|
-
var script = scripts.getItem( i ),
|
125
|
-
id = script.getId(),
|
126
|
-
src = script.getAttribute( 'src' );
|
127
|
-
|
128
|
-
if ( id && src && id.match( scaytIdRegex ) && src.match( scaytSrcRegex ))
|
129
|
-
script.remove();
|
130
|
-
}
|
131
|
-
});
|
132
|
-
|
133
|
-
editor.on( 'beforeCommandExec', function( ev ) // Disable SCAYT before Source command execution.
|
134
|
-
{
|
135
|
-
if ( ( ev.data.name == 'source' || ev.data.name == 'newpage' ) && editor.mode == 'wysiwyg' )
|
136
|
-
{
|
137
|
-
var scayt_instance = plugin.getScayt( editor );
|
138
|
-
if ( scayt_instance )
|
139
|
-
{
|
140
|
-
plugin.setPaused( editor, !scayt_instance.disabled );
|
141
|
-
// store a control id for restore a specific scayt control settings
|
142
|
-
plugin.setControlId( editor, scayt_instance.id );
|
143
|
-
scayt_instance.destroy( true );
|
144
|
-
delete plugin.instances[ editor.name ];
|
145
|
-
}
|
146
|
-
}
|
147
|
-
// Catch on source mode switch off (#5720)
|
148
|
-
else if ( ev.data.name == 'source' && editor.mode == 'source' )
|
149
|
-
plugin.markControlRestore( editor );
|
150
|
-
});
|
151
|
-
|
152
|
-
editor.on( 'afterCommandExec', function( ev )
|
153
|
-
{
|
154
|
-
if ( !plugin.isScaytEnabled( editor ) )
|
155
|
-
return;
|
156
|
-
|
157
|
-
if ( editor.mode == 'wysiwyg' && ( ev.data.name == 'undo' || ev.data.name == 'redo' ) )
|
158
|
-
window.setTimeout( function() { plugin.getScayt( editor ).refresh(); }, 10 );
|
159
|
-
});
|
160
|
-
|
161
|
-
editor.on( 'destroy', function( ev )
|
162
|
-
{
|
163
|
-
var editor = ev.editor,
|
164
|
-
scayt_instance = plugin.getScayt( editor );
|
165
|
-
|
166
|
-
// SCAYT instance might already get destroyed by mode switch (#5744).
|
167
|
-
if ( !scayt_instance )
|
168
|
-
return;
|
169
|
-
|
170
|
-
delete plugin.instances[ editor.name ];
|
171
|
-
// store a control id for restore a specific scayt control settings
|
172
|
-
plugin.setControlId( editor, scayt_instance.id );
|
173
|
-
scayt_instance.destroy( true );
|
174
|
-
});
|
175
|
-
|
176
|
-
// Listen to data manipulation to reflect scayt markup.
|
177
|
-
editor.on( 'afterSetData', function()
|
178
|
-
{
|
179
|
-
if ( plugin.isScaytEnabled( editor ) ) {
|
180
|
-
window.setTimeout( function()
|
181
|
-
{
|
182
|
-
var instance = plugin.getScayt( editor );
|
183
|
-
instance && instance.refresh();
|
184
|
-
}, 10 );
|
185
|
-
}
|
186
|
-
});
|
187
|
-
|
188
|
-
// Reload spell-checking for current word after insertion completed.
|
189
|
-
editor.on( 'insertElement', function()
|
190
|
-
{
|
191
|
-
var scayt_instance = plugin.getScayt( editor );
|
192
|
-
if ( plugin.isScaytEnabled( editor ) )
|
193
|
-
{
|
194
|
-
// Unlock the selection before reload, SCAYT will take
|
195
|
-
// care selection update.
|
196
|
-
if ( CKEDITOR.env.ie )
|
197
|
-
editor.getSelection().unlock( true );
|
198
|
-
|
199
|
-
// Return focus to the editor and refresh SCAYT markup (#5573).
|
200
|
-
window.setTimeout( function()
|
201
|
-
{
|
202
|
-
scayt_instance.focus();
|
203
|
-
scayt_instance.refresh();
|
204
|
-
}, 10 );
|
205
|
-
}
|
206
|
-
}, this, null, 50 );
|
207
|
-
|
208
|
-
editor.on( 'insertHtml', function()
|
209
|
-
{
|
210
|
-
var scayt_instance = plugin.getScayt( editor );
|
211
|
-
if ( plugin.isScaytEnabled( editor ) )
|
212
|
-
{
|
213
|
-
// Unlock the selection before reload, SCAYT will take
|
214
|
-
// care selection update.
|
215
|
-
if ( CKEDITOR.env.ie )
|
216
|
-
editor.getSelection().unlock( true );
|
217
|
-
|
218
|
-
// Return focus to the editor (#5573)
|
219
|
-
// Refresh SCAYT markup
|
220
|
-
window.setTimeout( function()
|
221
|
-
{
|
222
|
-
scayt_instance.focus();
|
223
|
-
scayt_instance.refresh();
|
224
|
-
}, 10 );
|
225
|
-
}
|
226
|
-
}, this, null, 50 );
|
227
|
-
|
228
|
-
editor.on( 'scaytDialog', function( ev ) // Communication with dialog.
|
229
|
-
{
|
230
|
-
ev.data.djConfig = window.djConfig;
|
231
|
-
ev.data.scayt_control = plugin.getScayt( editor );
|
232
|
-
ev.data.tab = openPage;
|
233
|
-
ev.data.scayt = window.scayt;
|
234
|
-
});
|
235
|
-
|
236
|
-
var dataProcessor = editor.dataProcessor,
|
237
|
-
htmlFilter = dataProcessor && dataProcessor.htmlFilter;
|
238
|
-
|
239
|
-
if ( htmlFilter )
|
240
|
-
{
|
241
|
-
htmlFilter.addRules(
|
242
|
-
{
|
243
|
-
elements :
|
244
|
-
{
|
245
|
-
span : function( element )
|
246
|
-
{
|
247
|
-
if ( element.attributes[ 'data-scayt_word' ]
|
248
|
-
&& element.attributes[ 'data-scaytid' ] )
|
249
|
-
{
|
250
|
-
delete element.name; // Write children, but don't write this node.
|
251
|
-
return element;
|
252
|
-
}
|
253
|
-
}
|
254
|
-
}
|
255
|
-
}
|
256
|
-
);
|
257
|
-
}
|
258
|
-
|
259
|
-
// Override Image.equals method avoid CK snapshot module to add SCAYT markup to snapshots. (#5546)
|
260
|
-
var undoImagePrototype = CKEDITOR.plugins.undo.Image.prototype;
|
261
|
-
undoImagePrototype.equals = CKEDITOR.tools.override( undoImagePrototype.equals, function( org )
|
262
|
-
{
|
263
|
-
return function( otherImage )
|
264
|
-
{
|
265
|
-
var thisContents = this.contents,
|
266
|
-
otherContents = otherImage.contents;
|
267
|
-
var scayt_instance = plugin.getScayt( this.editor );
|
268
|
-
// Making the comparison based on content without SCAYT word markers.
|
269
|
-
if ( scayt_instance && plugin.isScaytReady( this.editor ) )
|
270
|
-
{
|
271
|
-
// scayt::reset might return value undefined. (#5742)
|
272
|
-
this.contents = scayt_instance.reset( thisContents ) || '';
|
273
|
-
otherImage.contents = scayt_instance.reset( otherContents ) || '';
|
274
|
-
}
|
275
|
-
|
276
|
-
var retval = org.apply( this, arguments );
|
277
|
-
|
278
|
-
this.contents = thisContents;
|
279
|
-
otherImage.contents = otherContents;
|
280
|
-
return retval;
|
281
|
-
};
|
282
|
-
});
|
283
|
-
|
284
|
-
if ( editor.document )
|
285
|
-
createInstance();
|
286
|
-
};
|
287
|
-
|
288
|
-
CKEDITOR.plugins.scayt =
|
289
|
-
{
|
290
|
-
engineLoaded : false,
|
291
|
-
instances : {},
|
292
|
-
// Data storage for SCAYT control, based on editor instances
|
293
|
-
controlInfo : {},
|
294
|
-
setControlInfo : function( editor, o )
|
295
|
-
{
|
296
|
-
if ( editor && editor.name && typeof ( this.controlInfo[ editor.name ] ) != 'object' )
|
297
|
-
this.controlInfo[ editor.name ] = {};
|
298
|
-
|
299
|
-
for ( var infoOpt in o )
|
300
|
-
this.controlInfo[ editor.name ][ infoOpt ] = o[ infoOpt ];
|
301
|
-
},
|
302
|
-
isControlRestored : function( editor )
|
303
|
-
{
|
304
|
-
if ( editor &&
|
305
|
-
editor.name &&
|
306
|
-
this.controlInfo[ editor.name ] )
|
307
|
-
{
|
308
|
-
return this.controlInfo[ editor.name ].restored ;
|
309
|
-
}
|
310
|
-
return false;
|
311
|
-
},
|
312
|
-
markControlRestore : function( editor )
|
313
|
-
{
|
314
|
-
this.setControlInfo( editor, { restored:true } );
|
315
|
-
},
|
316
|
-
setControlId: function( editor, id )
|
317
|
-
{
|
318
|
-
this.setControlInfo( editor, { id:id } );
|
319
|
-
},
|
320
|
-
getControlId: function( editor )
|
321
|
-
{
|
322
|
-
if ( editor &&
|
323
|
-
editor.name &&
|
324
|
-
this.controlInfo[ editor.name ] &&
|
325
|
-
this.controlInfo[ editor.name ].id )
|
326
|
-
{
|
327
|
-
return this.controlInfo[ editor.name ].id;
|
328
|
-
}
|
329
|
-
return null;
|
330
|
-
},
|
331
|
-
setPaused: function( editor , bool )
|
332
|
-
{
|
333
|
-
this.setControlInfo( editor, { paused:bool } );
|
334
|
-
},
|
335
|
-
isPaused: function( editor )
|
336
|
-
{
|
337
|
-
if ( editor &&
|
338
|
-
editor.name &&
|
339
|
-
this.controlInfo[editor.name] )
|
340
|
-
{
|
341
|
-
return this.controlInfo[editor.name].paused;
|
342
|
-
}
|
343
|
-
return undefined;
|
344
|
-
},
|
345
|
-
getScayt : function( editor )
|
346
|
-
{
|
347
|
-
return this.instances[ editor.name ];
|
348
|
-
},
|
349
|
-
isScaytReady : function( editor )
|
350
|
-
{
|
351
|
-
return this.engineLoaded === true &&
|
352
|
-
'undefined' !== typeof window.scayt && this.getScayt( editor );
|
353
|
-
},
|
354
|
-
isScaytEnabled : function( editor )
|
355
|
-
{
|
356
|
-
var scayt_instance = this.getScayt( editor );
|
357
|
-
return ( scayt_instance ) ? scayt_instance.disabled === false : false;
|
358
|
-
},
|
359
|
-
loadEngine : function( editor )
|
360
|
-
{
|
361
|
-
// SCAYT doesn't work with Firefox2, Opera and AIR.
|
362
|
-
if ( CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 || CKEDITOR.env.opera || CKEDITOR.env.air )
|
363
|
-
return editor.fire( 'showScaytState' );
|
364
|
-
|
365
|
-
if ( this.engineLoaded === true )
|
366
|
-
return onEngineLoad.apply( editor ); // Add new instance.
|
367
|
-
else if ( this.engineLoaded == -1 ) // We are waiting.
|
368
|
-
return CKEDITOR.on( 'scaytReady', function(){ onEngineLoad.apply( editor ); } ); // Use function(){} to avoid rejection as duplicate.
|
369
|
-
|
370
|
-
CKEDITOR.on( 'scaytReady', onEngineLoad, editor );
|
371
|
-
CKEDITOR.on( 'scaytReady', function()
|
372
|
-
{
|
373
|
-
this.engineLoaded = true;
|
374
|
-
},
|
375
|
-
this,
|
376
|
-
null,
|
377
|
-
0
|
378
|
-
); // First to run.
|
379
|
-
|
380
|
-
this.engineLoaded = -1; // Loading in progress.
|
381
|
-
|
382
|
-
// compose scayt url
|
383
|
-
var protocol = document.location.protocol;
|
384
|
-
// Default to 'http' for unknown.
|
385
|
-
protocol = protocol.search( /https?:/) != -1? protocol : 'http:';
|
386
|
-
var baseUrl = 'svc.spellchecker.net/scayt26/loader__base.js';
|
387
|
-
|
388
|
-
var scaytUrl = editor.config.scayt_srcUrl || ( protocol + '//' + baseUrl );
|
389
|
-
var scaytConfigBaseUrl = plugin.parseUrl( scaytUrl ).path + '/';
|
390
|
-
|
391
|
-
if( window.scayt == undefined )
|
392
|
-
{
|
393
|
-
CKEDITOR._djScaytConfig =
|
394
|
-
{
|
395
|
-
baseUrl: scaytConfigBaseUrl,
|
396
|
-
addOnLoad:
|
397
|
-
[
|
398
|
-
function()
|
399
|
-
{
|
400
|
-
CKEDITOR.fireOnce( 'scaytReady' );
|
401
|
-
}
|
402
|
-
],
|
403
|
-
isDebug: false
|
404
|
-
};
|
405
|
-
// Append javascript code.
|
406
|
-
CKEDITOR.document.getHead().append(
|
407
|
-
CKEDITOR.document.createElement( 'script',
|
408
|
-
{
|
409
|
-
attributes :
|
410
|
-
{
|
411
|
-
type : 'text/javascript',
|
412
|
-
async : 'true',
|
413
|
-
src : scaytUrl
|
414
|
-
}
|
415
|
-
})
|
416
|
-
);
|
417
|
-
}
|
418
|
-
else
|
419
|
-
CKEDITOR.fireOnce( 'scaytReady' );
|
420
|
-
|
421
|
-
return null;
|
422
|
-
},
|
423
|
-
parseUrl : function ( data )
|
424
|
-
{
|
425
|
-
var match;
|
426
|
-
if ( data.match && ( match = data.match(/(.*)[\/\\](.*?\.\w+)$/) ) )
|
427
|
-
return { path: match[1], file: match[2] };
|
428
|
-
else
|
429
|
-
return data;
|
430
|
-
}
|
431
|
-
};
|
432
|
-
|
433
|
-
var plugin = CKEDITOR.plugins.scayt;
|
434
|
-
|
435
|
-
// Context menu constructing.
|
436
|
-
var addButtonCommand = function( editor, buttonName, buttonLabel, commandName, command, menugroup, menuOrder )
|
437
|
-
{
|
438
|
-
editor.addCommand( commandName, command );
|
439
|
-
|
440
|
-
// If the "menu" plugin is loaded, register the menu item.
|
441
|
-
editor.addMenuItem( commandName,
|
442
|
-
{
|
443
|
-
label : buttonLabel,
|
444
|
-
command : commandName,
|
445
|
-
group : menugroup,
|
446
|
-
order : menuOrder
|
447
|
-
});
|
448
|
-
};
|
449
|
-
|
450
|
-
var commandDefinition =
|
451
|
-
{
|
452
|
-
preserveState : true,
|
453
|
-
editorFocus : false,
|
454
|
-
canUndo : false,
|
455
|
-
|
456
|
-
exec: function( editor )
|
457
|
-
{
|
458
|
-
if ( plugin.isScaytReady( editor ) )
|
459
|
-
{
|
460
|
-
var isEnabled = plugin.isScaytEnabled( editor );
|
461
|
-
|
462
|
-
this.setState( isEnabled ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_ON );
|
463
|
-
|
464
|
-
var scayt_control = plugin.getScayt( editor );
|
465
|
-
// the place where the status of editor focus should be restored
|
466
|
-
// after there will be ability to store its state before SCAYT button click
|
467
|
-
// if (storedFocusState is focused )
|
468
|
-
// scayt_control.focus();
|
469
|
-
//
|
470
|
-
// now focus is set certainly
|
471
|
-
scayt_control.focus();
|
472
|
-
scayt_control.setDisabled( isEnabled );
|
473
|
-
}
|
474
|
-
else if ( !editor.config.scayt_autoStartup && plugin.engineLoaded >= 0 ) // Load first time
|
475
|
-
{
|
476
|
-
this.setState( CKEDITOR.TRISTATE_DISABLED );
|
477
|
-
plugin.loadEngine( editor );
|
478
|
-
}
|
479
|
-
}
|
480
|
-
};
|
481
|
-
|
482
|
-
// Add scayt plugin.
|
483
|
-
CKEDITOR.plugins.add( 'scayt',
|
484
|
-
{
|
485
|
-
requires : [ 'menubutton' ],
|
486
|
-
|
487
|
-
beforeInit : function( editor )
|
488
|
-
{
|
489
|
-
var items_order = editor.config.scayt_contextMenuItemsOrder
|
490
|
-
|| 'suggest|moresuggest|control',
|
491
|
-
items_order_str = "";
|
492
|
-
|
493
|
-
items_order = items_order.split( '|' );
|
494
|
-
|
495
|
-
if ( items_order && items_order.length )
|
496
|
-
{
|
497
|
-
for ( var pos = 0 ; pos < items_order.length ; pos++ )
|
498
|
-
items_order_str += 'scayt_' + items_order[ pos ] + ( items_order.length != parseInt( pos, 10 ) + 1 ? ',' : '' );
|
499
|
-
}
|
500
|
-
|
501
|
-
// Put it on top of all context menu items (#5717)
|
502
|
-
editor.config.menu_groups = items_order_str + ',' + editor.config.menu_groups;
|
503
|
-
},
|
504
|
-
|
505
|
-
init : function( editor )
|
506
|
-
{
|
507
|
-
var moreSuggestions = {},
|
508
|
-
mainSuggestions = {};
|
509
|
-
|
510
|
-
// Scayt command.
|
511
|
-
var command = editor.addCommand( commandName, commandDefinition );
|
512
|
-
|
513
|
-
// Add Options dialog.
|
514
|
-
CKEDITOR.dialog.add( commandName, CKEDITOR.getUrl( this.path + 'dialogs/options.js' ) );
|
515
|
-
// read ui tags
|
516
|
-
var confuiTabs = editor.config.scayt_uiTabs || '1,1,1';
|
517
|
-
var uiTabs =[];
|
518
|
-
// string to array convert
|
519
|
-
confuiTabs = confuiTabs.split( ',' );
|
520
|
-
// check array length ! always must be 3 filled with 1 or 0
|
521
|
-
for ( var i=0, l=3; i < l; i++ )
|
522
|
-
{
|
523
|
-
var flag = parseInt( confuiTabs[i] || '1', 10 );
|
524
|
-
uiTabs.push( flag );
|
525
|
-
}
|
526
|
-
|
527
|
-
var menuGroup = 'scaytButton';
|
528
|
-
editor.addMenuGroup( menuGroup );
|
529
|
-
// combine menu items to render
|
530
|
-
var uiMuneItems = {};
|
531
|
-
|
532
|
-
var lang = editor.lang.scayt;
|
533
|
-
|
534
|
-
// always added
|
535
|
-
uiMuneItems.scaytToggle =
|
536
|
-
{
|
537
|
-
label : lang.enable,
|
538
|
-
command : commandName,
|
539
|
-
group : menuGroup
|
540
|
-
};
|
541
|
-
|
542
|
-
if ( uiTabs[0] == 1 )
|
543
|
-
uiMuneItems.scaytOptions =
|
544
|
-
{
|
545
|
-
label : lang.options,
|
546
|
-
group : menuGroup,
|
547
|
-
onClick : function()
|
548
|
-
{
|
549
|
-
openPage = 'options';
|
550
|
-
editor.openDialog( commandName );
|
551
|
-
}
|
552
|
-
};
|
553
|
-
|
554
|
-
if ( uiTabs[1] == 1 )
|
555
|
-
uiMuneItems.scaytLangs =
|
556
|
-
{
|
557
|
-
label : lang.langs,
|
558
|
-
group : menuGroup,
|
559
|
-
onClick : function()
|
560
|
-
{
|
561
|
-
openPage = 'langs';
|
562
|
-
editor.openDialog( commandName );
|
563
|
-
}
|
564
|
-
};
|
565
|
-
if ( uiTabs[2] == 1 )
|
566
|
-
uiMuneItems.scaytDict =
|
567
|
-
{
|
568
|
-
label : lang.dictionariesTab,
|
569
|
-
group : menuGroup,
|
570
|
-
onClick : function()
|
571
|
-
{
|
572
|
-
openPage = 'dictionaries';
|
573
|
-
editor.openDialog( commandName );
|
574
|
-
}
|
575
|
-
};
|
576
|
-
// always added
|
577
|
-
uiMuneItems.scaytAbout =
|
578
|
-
{
|
579
|
-
label : editor.lang.scayt.about,
|
580
|
-
group : menuGroup,
|
581
|
-
onClick : function()
|
582
|
-
{
|
583
|
-
openPage = 'about';
|
584
|
-
editor.openDialog( commandName );
|
585
|
-
}
|
586
|
-
};
|
587
|
-
|
588
|
-
uiTabs[3] = 1; // about us tab is always on
|
589
|
-
plugin.uiTabs = uiTabs;
|
590
|
-
|
591
|
-
editor.addMenuItems( uiMuneItems );
|
592
|
-
|
593
|
-
editor.ui.add( 'Scayt', CKEDITOR.UI_MENUBUTTON,
|
594
|
-
{
|
595
|
-
label : lang.title,
|
596
|
-
title : CKEDITOR.env.opera ? lang.opera_title : lang.title,
|
597
|
-
className : 'cke_button_scayt',
|
598
|
-
modes : { wysiwyg : 1 },
|
599
|
-
onRender: function()
|
600
|
-
{
|
601
|
-
command.on( 'state', function()
|
602
|
-
{
|
603
|
-
this.setState( command.state );
|
604
|
-
},
|
605
|
-
this);
|
606
|
-
},
|
607
|
-
onMenu : function()
|
608
|
-
{
|
609
|
-
var isEnabled = plugin.isScaytEnabled( editor );
|
610
|
-
|
611
|
-
editor.getMenuItem( 'scaytToggle' ).label = lang[ isEnabled ? 'disable' : 'enable' ];
|
612
|
-
|
613
|
-
return {
|
614
|
-
scaytToggle : CKEDITOR.TRISTATE_OFF,
|
615
|
-
scaytOptions : isEnabled && plugin.uiTabs[0] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED,
|
616
|
-
scaytLangs : isEnabled && plugin.uiTabs[1] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED,
|
617
|
-
scaytDict : isEnabled && plugin.uiTabs[2] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED,
|
618
|
-
scaytAbout : isEnabled && plugin.uiTabs[3] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED
|
619
|
-
};
|
620
|
-
}
|
621
|
-
});
|
622
|
-
|
623
|
-
// If the "contextmenu" plugin is loaded, register the listeners.
|
624
|
-
if ( editor.contextMenu && editor.addMenuItems )
|
625
|
-
{
|
626
|
-
editor.contextMenu.addListener( function( element, selection )
|
627
|
-
{
|
628
|
-
if ( !plugin.isScaytEnabled( editor )
|
629
|
-
|| selection.getCommonAncestor().isReadOnly() )
|
630
|
-
return null;
|
631
|
-
|
632
|
-
var scayt_control = plugin.getScayt( editor ),
|
633
|
-
node = scayt_control.getScaytNode();
|
634
|
-
|
635
|
-
if ( !node )
|
636
|
-
return null;
|
637
|
-
|
638
|
-
var word = scayt_control.getWord( node );
|
639
|
-
|
640
|
-
if ( !word )
|
641
|
-
return null;
|
642
|
-
|
643
|
-
var sLang = scayt_control.getLang(),
|
644
|
-
_r = {},
|
645
|
-
items_suggestion = window.scayt.getSuggestion( word, sLang );
|
646
|
-
if ( !items_suggestion || !items_suggestion.length )
|
647
|
-
return null;
|
648
|
-
// Remove unused commands and menuitems
|
649
|
-
for ( i in moreSuggestions )
|
650
|
-
{
|
651
|
-
delete editor._.menuItems[ i ];
|
652
|
-
delete editor._.commands[ i ];
|
653
|
-
}
|
654
|
-
for ( i in mainSuggestions )
|
655
|
-
{
|
656
|
-
delete editor._.menuItems[ i ];
|
657
|
-
delete editor._.commands[ i ];
|
658
|
-
}
|
659
|
-
moreSuggestions = {}; // Reset items.
|
660
|
-
mainSuggestions = {};
|
661
|
-
|
662
|
-
var moreSuggestionsUnable = editor.config.scayt_moreSuggestions || 'on';
|
663
|
-
var moreSuggestionsUnableAdded = false;
|
664
|
-
|
665
|
-
var maxSuggestions = editor.config.scayt_maxSuggestions;
|
666
|
-
( typeof maxSuggestions != 'number' ) && ( maxSuggestions = 5 );
|
667
|
-
!maxSuggestions && ( maxSuggestions = items_suggestion.length );
|
668
|
-
|
669
|
-
var contextCommands = editor.config.scayt_contextCommands || 'all';
|
670
|
-
contextCommands = contextCommands.split( '|' );
|
671
|
-
|
672
|
-
for ( var i = 0, l = items_suggestion.length; i < l; i += 1 )
|
673
|
-
{
|
674
|
-
var commandName = 'scayt_suggestion_' + items_suggestion[i].replace( ' ', '_' );
|
675
|
-
var exec = ( function( el, s )
|
676
|
-
{
|
677
|
-
return {
|
678
|
-
exec: function()
|
679
|
-
{
|
680
|
-
scayt_control.replace( el, s );
|
681
|
-
}
|
682
|
-
};
|
683
|
-
})( node, items_suggestion[i] );
|
684
|
-
|
685
|
-
if ( i < maxSuggestions )
|
686
|
-
{
|
687
|
-
addButtonCommand( editor, 'button_' + commandName, items_suggestion[i],
|
688
|
-
commandName, exec, 'scayt_suggest', i + 1 );
|
689
|
-
_r[ commandName ] = CKEDITOR.TRISTATE_OFF;
|
690
|
-
mainSuggestions[ commandName ] = CKEDITOR.TRISTATE_OFF;
|
691
|
-
}
|
692
|
-
else if ( moreSuggestionsUnable == 'on' )
|
693
|
-
{
|
694
|
-
addButtonCommand( editor, 'button_' + commandName, items_suggestion[i],
|
695
|
-
commandName, exec, 'scayt_moresuggest', i + 1 );
|
696
|
-
moreSuggestions[ commandName ] = CKEDITOR.TRISTATE_OFF;
|
697
|
-
moreSuggestionsUnableAdded = true;
|
698
|
-
}
|
699
|
-
}
|
700
|
-
|
701
|
-
if ( moreSuggestionsUnableAdded )
|
702
|
-
{
|
703
|
-
// Register the More suggestions group;
|
704
|
-
editor.addMenuItem( 'scayt_moresuggest',
|
705
|
-
{
|
706
|
-
label : lang.moreSuggestions,
|
707
|
-
group : 'scayt_moresuggest',
|
708
|
-
order : 10,
|
709
|
-
getItems : function()
|
710
|
-
{
|
711
|
-
return moreSuggestions;
|
712
|
-
}
|
713
|
-
});
|
714
|
-
mainSuggestions[ 'scayt_moresuggest' ] = CKEDITOR.TRISTATE_OFF;
|
715
|
-
}
|
716
|
-
|
717
|
-
if ( in_array( 'all', contextCommands ) || in_array( 'ignore', contextCommands) )
|
718
|
-
{
|
719
|
-
var ignore_command = {
|
720
|
-
exec: function(){
|
721
|
-
scayt_control.ignore( node );
|
722
|
-
}
|
723
|
-
};
|
724
|
-
addButtonCommand( editor, 'ignore', lang.ignore, 'scayt_ignore', ignore_command, 'scayt_control', 1 );
|
725
|
-
mainSuggestions[ 'scayt_ignore' ] = CKEDITOR.TRISTATE_OFF;
|
726
|
-
}
|
727
|
-
|
728
|
-
if ( in_array( 'all', contextCommands ) || in_array( 'ignoreall', contextCommands ) )
|
729
|
-
{
|
730
|
-
var ignore_all_command = {
|
731
|
-
exec: function(){
|
732
|
-
scayt_control.ignoreAll( node );
|
733
|
-
}
|
734
|
-
};
|
735
|
-
addButtonCommand(editor, 'ignore_all', lang.ignoreAll, 'scayt_ignore_all', ignore_all_command, 'scayt_control', 2);
|
736
|
-
mainSuggestions['scayt_ignore_all'] = CKEDITOR.TRISTATE_OFF;
|
737
|
-
}
|
738
|
-
|
739
|
-
if ( in_array( 'all', contextCommands ) || in_array( 'add', contextCommands ) )
|
740
|
-
{
|
741
|
-
var addword_command = {
|
742
|
-
exec: function(){
|
743
|
-
window.scayt.addWordToUserDictionary( node );
|
744
|
-
}
|
745
|
-
};
|
746
|
-
addButtonCommand(editor, 'add_word', lang.addWord, 'scayt_add_word', addword_command, 'scayt_control', 3);
|
747
|
-
mainSuggestions['scayt_add_word'] = CKEDITOR.TRISTATE_OFF;
|
748
|
-
}
|
749
|
-
|
750
|
-
if ( scayt_control.fireOnContextMenu )
|
751
|
-
scayt_control.fireOnContextMenu( editor );
|
752
|
-
|
753
|
-
return mainSuggestions;
|
754
|
-
});
|
755
|
-
}
|
756
|
-
|
757
|
-
var showInitialState = function()
|
758
|
-
{
|
759
|
-
editor.removeListener( 'showScaytState', showInitialState );
|
760
|
-
|
761
|
-
if ( !CKEDITOR.env.opera && !CKEDITOR.env.air )
|
762
|
-
command.setState( plugin.isScaytEnabled( editor ) ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF );
|
763
|
-
else
|
764
|
-
command.setState( CKEDITOR.TRISTATE_DISABLED );
|
765
|
-
};
|
766
|
-
|
767
|
-
editor.on( 'showScaytState', showInitialState );
|
768
|
-
|
769
|
-
if ( CKEDITOR.env.opera || CKEDITOR.env.air )
|
770
|
-
{
|
771
|
-
editor.on( 'instanceReady', function()
|
772
|
-
{
|
773
|
-
showInitialState();
|
774
|
-
});
|
775
|
-
}
|
776
|
-
|
777
|
-
// Start plugin
|
778
|
-
if ( editor.config.scayt_autoStartup )
|
779
|
-
{
|
780
|
-
editor.on( 'instanceReady', function()
|
781
|
-
{
|
782
|
-
plugin.loadEngine( editor );
|
783
|
-
});
|
784
|
-
}
|
785
|
-
},
|
786
|
-
|
787
|
-
afterInit : function( editor )
|
788
|
-
{
|
789
|
-
// Prevent word marker line from displaying in elements path and been removed when cleaning format. (#3570) (#4125)
|
790
|
-
var elementsPathFilters,
|
791
|
-
scaytFilter = function( element )
|
792
|
-
{
|
793
|
-
if ( element.hasAttribute( 'data-scaytid' ) )
|
794
|
-
return false;
|
795
|
-
};
|
796
|
-
|
797
|
-
if ( editor._.elementsPath && ( elementsPathFilters = editor._.elementsPath.filters ) )
|
798
|
-
elementsPathFilters.push( scaytFilter );
|
799
|
-
|
800
|
-
editor.addRemoveFormatFilter && editor.addRemoveFormatFilter( scaytFilter );
|
801
|
-
|
802
|
-
}
|
803
|
-
});
|
804
|
-
})();
|
805
|
-
|
806
|
-
/**
|
807
|
-
* If enabled (true), turns on SCAYT automatically after loading the editor.
|
808
|
-
* @name CKEDITOR.config.scayt_autoStartup
|
809
|
-
* @type Boolean
|
810
|
-
* @default false
|
811
|
-
* @example
|
812
|
-
* config.scayt_autoStartup = true;
|
813
|
-
*/
|
814
|
-
|
815
|
-
/**
|
816
|
-
* Defines the number of SCAYT suggestions to show in the main context menu.
|
817
|
-
* The possible values are:
|
818
|
-
* <ul>
|
819
|
-
* <li>0 (zero): All suggestions are displayed in the main context menu.</li>
|
820
|
-
* <li>Positive number: The maximum number of suggestions to shown in context
|
821
|
-
* menu. Other entries will be shown in "More Suggestions" sub-menu.</li>
|
822
|
-
* <li>Negative number: No suggestions are shown in the main context menu. All
|
823
|
-
* entries will be listed in the "Suggestions" sub-menu.</li>
|
824
|
-
* </ul>
|
825
|
-
* @name CKEDITOR.config.scayt_maxSuggestions
|
826
|
-
* @type Number
|
827
|
-
* @default 5
|
828
|
-
* @example
|
829
|
-
* // Display only three suggestions in the main context menu.
|
830
|
-
* config.scayt_maxSuggestions = 3;
|
831
|
-
* @example
|
832
|
-
* // Do not show the suggestions directly.
|
833
|
-
* config.scayt_maxSuggestions = -1;
|
834
|
-
*/
|
835
|
-
|
836
|
-
/**
|
837
|
-
* Sets the customer ID for SCAYT. Required for migration from free version
|
838
|
-
* with banner to paid version.
|
839
|
-
* @name CKEDITOR.config.scayt_customerid
|
840
|
-
* @type String
|
841
|
-
* @default ''
|
842
|
-
* @example
|
843
|
-
* // Load SCAYT using my customer ID.
|
844
|
-
* config.scayt_customerid = 'your-encrypted-customer-id';
|
845
|
-
*/
|
846
|
-
|
847
|
-
/**
|
848
|
-
* Enables/disables the "More Suggestions" sub-menu in the context menu.
|
849
|
-
* The possible values are "on" or "off".
|
850
|
-
* @name CKEDITOR.config.scayt_moreSuggestions
|
851
|
-
* @type String
|
852
|
-
* @default 'on'
|
853
|
-
* @example
|
854
|
-
* // Disables the "More Suggestions" sub-menu.
|
855
|
-
* config.scayt_moreSuggestions = 'off';
|
856
|
-
*/
|
857
|
-
|
858
|
-
/**
|
859
|
-
* Customizes the display of SCAYT context menu commands ("Add Word", "Ignore"
|
860
|
-
* and "Ignore All"). It must be a string with one or more of the following
|
861
|
-
* words separated by a pipe ("|"):
|
862
|
-
* <ul>
|
863
|
-
* <li>"off": disables all options.</li>
|
864
|
-
* <li>"all": enables all options.</li>
|
865
|
-
* <li>"ignore": enables the "Ignore" option.</li>
|
866
|
-
* <li>"ignoreall": enables the "Ignore All" option.</li>
|
867
|
-
* <li>"add": enables the "Add Word" option.</li>
|
868
|
-
* </ul>
|
869
|
-
* @name CKEDITOR.config.scayt_contextCommands
|
870
|
-
* @type String
|
871
|
-
* @default 'all'
|
872
|
-
* @example
|
873
|
-
* // Show only "Add Word" and "Ignore All" in the context menu.
|
874
|
-
* config.scayt_contextCommands = 'add|ignoreall';
|
875
|
-
*/
|
876
|
-
|
877
|
-
/**
|
878
|
-
* Sets the default spellchecking language for SCAYT.
|
879
|
-
* @name CKEDITOR.config.scayt_sLang
|
880
|
-
* @type String
|
881
|
-
* @default 'en_US'
|
882
|
-
* @example
|
883
|
-
* // Sets SCAYT to German.
|
884
|
-
* config.scayt_sLang = 'de_DE';
|
885
|
-
*/
|
886
|
-
|
887
|
-
/**
|
888
|
-
* Sets the visibility of the SCAYT tabs in the settings dialog and toolbar
|
889
|
-
* button. The value must contain a "1" (enabled) or "0" (disabled) number for
|
890
|
-
* each of the following entries, in this precise order, separated by a
|
891
|
-
* comma (","): "Options", "Languages" and "Dictionary".
|
892
|
-
* @name CKEDITOR.config.scayt_uiTabs
|
893
|
-
* @type String
|
894
|
-
* @default '1,1,1'
|
895
|
-
* @example
|
896
|
-
* // Hide the "Languages" tab.
|
897
|
-
* config.scayt_uiTabs = '1,0,1';
|
898
|
-
*/
|
899
|
-
|
900
|
-
|
901
|
-
/**
|
902
|
-
* Set the URL to SCAYT core. Required to switch to licensed version of SCAYT application.
|
903
|
-
* Further details at http://wiki.spellchecker.net/doku.php?id=3rd:wysiwyg:fckeditor:wscckf3l .
|
904
|
-
* @name CKEDITOR.config.scayt_srcUrl
|
905
|
-
* @type String
|
906
|
-
* @default ''
|
907
|
-
* @example
|
908
|
-
* config.scayt_srcUrl = "http://my-host/spellcheck/lf/scayt/scayt.js";
|
909
|
-
*/
|
910
|
-
|
911
|
-
/**
|
912
|
-
* Links SCAYT to custom dictionaries. It's a string containing dictionary ids
|
913
|
-
* separared by commas (","). Available only for licensed version.
|
914
|
-
* Further details at http://wiki.spellchecker.net/doku.php?id=custom_dictionary_support .
|
915
|
-
* @name CKEDITOR.config.scayt_customDictionaryIds
|
916
|
-
* @type String
|
917
|
-
* @default ''
|
918
|
-
* @example
|
919
|
-
* config.scayt_customDictionaryIds = '3021,3456,3478"';
|
920
|
-
*/
|
921
|
-
|
922
|
-
/**
|
923
|
-
* Makes it possible to activate a custom dictionary on SCAYT. The user
|
924
|
-
* dictionary name must be used. Available only for licensed version.
|
925
|
-
* @name CKEDITOR.config.scayt_userDictionaryName
|
926
|
-
* @type String
|
927
|
-
* @default ''
|
928
|
-
* @example
|
929
|
-
* config.scayt_userDictionaryName = 'MyDictionary';
|
930
|
-
*/
|
931
|
-
|
932
|
-
/**
|
933
|
-
* Define order of placing of SCAYT context menu items by groups.
|
934
|
-
* It must be a string with one or more of the following
|
935
|
-
* words separated by a pipe ("|"):
|
936
|
-
* <ul>
|
937
|
-
* <li>'suggest' - main suggestion word list,</li>
|
938
|
-
* <li>'moresuggest' - more suggestions word list,</li>
|
939
|
-
* <li>'control' - SCAYT commands, such as 'Ignore' and 'Add Word'</li>
|
940
|
-
* </ul>
|
941
|
-
*
|
942
|
-
* @name CKEDITOR.config.scayt_contextMenuItemsOrder
|
943
|
-
* @type String
|
944
|
-
* @default 'suggest|moresuggest|control'
|
945
|
-
* @example
|
946
|
-
* config.scayt_contextMenuItemsOrder = 'moresuggest|control|suggest';
|
947
|
-
*/
|