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
Binary file
|
@@ -1,241 +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
|
-
CKEDITOR.plugins.add( 'link',
|
7
|
-
{
|
8
|
-
init : function( editor )
|
9
|
-
{
|
10
|
-
// Add the link and unlink buttons.
|
11
|
-
editor.addCommand( 'link', new CKEDITOR.dialogCommand( 'link' ) );
|
12
|
-
editor.addCommand( 'anchor', new CKEDITOR.dialogCommand( 'anchor' ) );
|
13
|
-
editor.addCommand( 'unlink', new CKEDITOR.unlinkCommand() );
|
14
|
-
editor.ui.addButton( 'Link',
|
15
|
-
{
|
16
|
-
label : editor.lang.link.toolbar,
|
17
|
-
command : 'link'
|
18
|
-
} );
|
19
|
-
editor.ui.addButton( 'Unlink',
|
20
|
-
{
|
21
|
-
label : editor.lang.unlink,
|
22
|
-
command : 'unlink'
|
23
|
-
} );
|
24
|
-
editor.ui.addButton( 'Anchor',
|
25
|
-
{
|
26
|
-
label : editor.lang.anchor.toolbar,
|
27
|
-
command : 'anchor'
|
28
|
-
} );
|
29
|
-
CKEDITOR.dialog.add( 'link', this.path + 'dialogs/link.js' );
|
30
|
-
CKEDITOR.dialog.add( 'anchor', this.path + 'dialogs/anchor.js' );
|
31
|
-
|
32
|
-
// Add the CSS styles for anchor placeholders.
|
33
|
-
editor.addCss(
|
34
|
-
'img.cke_anchor' +
|
35
|
-
'{' +
|
36
|
-
'background-image: url(' + CKEDITOR.getUrl( this.path + 'images/anchor.gif' ) + ');' +
|
37
|
-
'background-position: center center;' +
|
38
|
-
'background-repeat: no-repeat;' +
|
39
|
-
'border: 1px solid #a9a9a9;' +
|
40
|
-
'width: 18px !important;' +
|
41
|
-
'height: 18px !important;' +
|
42
|
-
'}\n' +
|
43
|
-
'a.cke_anchor' +
|
44
|
-
'{' +
|
45
|
-
'background-image: url(' + CKEDITOR.getUrl( this.path + 'images/anchor.gif' ) + ');' +
|
46
|
-
'background-position: 0 center;' +
|
47
|
-
'background-repeat: no-repeat;' +
|
48
|
-
'border: 1px solid #a9a9a9;' +
|
49
|
-
'padding-left: 18px;' +
|
50
|
-
'}'
|
51
|
-
);
|
52
|
-
|
53
|
-
// Register selection change handler for the unlink button.
|
54
|
-
editor.on( 'selectionChange', function( evt )
|
55
|
-
{
|
56
|
-
/*
|
57
|
-
* Despite our initial hope, document.queryCommandEnabled() does not work
|
58
|
-
* for this in Firefox. So we must detect the state by element paths.
|
59
|
-
*/
|
60
|
-
var command = editor.getCommand( 'unlink' ),
|
61
|
-
element = evt.data.path.lastElement && evt.data.path.lastElement.getAscendant( 'a', true );
|
62
|
-
if ( element && element.getName() == 'a' && element.getAttribute( 'href' ) )
|
63
|
-
command.setState( CKEDITOR.TRISTATE_OFF );
|
64
|
-
else
|
65
|
-
command.setState( CKEDITOR.TRISTATE_DISABLED );
|
66
|
-
} );
|
67
|
-
|
68
|
-
editor.on( 'doubleclick', function( evt )
|
69
|
-
{
|
70
|
-
var element = CKEDITOR.plugins.link.getSelectedLink( editor ) || evt.data.element;
|
71
|
-
|
72
|
-
if ( !element.isReadOnly() )
|
73
|
-
{
|
74
|
-
if ( element.is( 'a' ) )
|
75
|
-
evt.data.dialog = ( element.getAttribute( 'name' ) && !element.getAttribute( 'href' ) ) ? 'anchor' : 'link';
|
76
|
-
else if ( element.is( 'img' ) && element.data( 'cke-real-element-type' ) == 'anchor' )
|
77
|
-
evt.data.dialog = 'anchor';
|
78
|
-
}
|
79
|
-
});
|
80
|
-
|
81
|
-
// If the "menu" plugin is loaded, register the menu items.
|
82
|
-
if ( editor.addMenuItems )
|
83
|
-
{
|
84
|
-
editor.addMenuItems(
|
85
|
-
{
|
86
|
-
anchor :
|
87
|
-
{
|
88
|
-
label : editor.lang.anchor.menu,
|
89
|
-
command : 'anchor',
|
90
|
-
group : 'anchor'
|
91
|
-
},
|
92
|
-
|
93
|
-
link :
|
94
|
-
{
|
95
|
-
label : editor.lang.link.menu,
|
96
|
-
command : 'link',
|
97
|
-
group : 'link',
|
98
|
-
order : 1
|
99
|
-
},
|
100
|
-
|
101
|
-
unlink :
|
102
|
-
{
|
103
|
-
label : editor.lang.unlink,
|
104
|
-
command : 'unlink',
|
105
|
-
group : 'link',
|
106
|
-
order : 5
|
107
|
-
}
|
108
|
-
});
|
109
|
-
}
|
110
|
-
|
111
|
-
// If the "contextmenu" plugin is loaded, register the listeners.
|
112
|
-
if ( editor.contextMenu )
|
113
|
-
{
|
114
|
-
editor.contextMenu.addListener( function( element, selection )
|
115
|
-
{
|
116
|
-
if ( !element || element.isReadOnly() )
|
117
|
-
return null;
|
118
|
-
|
119
|
-
var isAnchor = ( element.is( 'img' ) && element.data( 'cke-real-element-type' ) == 'anchor' );
|
120
|
-
|
121
|
-
if ( !isAnchor )
|
122
|
-
{
|
123
|
-
if ( !( element = CKEDITOR.plugins.link.getSelectedLink( editor ) ) )
|
124
|
-
return null;
|
125
|
-
|
126
|
-
isAnchor = ( element.getAttribute( 'name' ) && !element.getAttribute( 'href' ) );
|
127
|
-
}
|
128
|
-
|
129
|
-
return isAnchor ?
|
130
|
-
{ anchor : CKEDITOR.TRISTATE_OFF } :
|
131
|
-
{ link : CKEDITOR.TRISTATE_OFF, unlink : CKEDITOR.TRISTATE_OFF };
|
132
|
-
});
|
133
|
-
}
|
134
|
-
},
|
135
|
-
|
136
|
-
afterInit : function( editor )
|
137
|
-
{
|
138
|
-
// Register a filter to displaying placeholders after mode change.
|
139
|
-
|
140
|
-
var dataProcessor = editor.dataProcessor,
|
141
|
-
dataFilter = dataProcessor && dataProcessor.dataFilter;
|
142
|
-
|
143
|
-
if ( dataFilter )
|
144
|
-
{
|
145
|
-
dataFilter.addRules(
|
146
|
-
{
|
147
|
-
elements :
|
148
|
-
{
|
149
|
-
a : function( element )
|
150
|
-
{
|
151
|
-
var attributes = element.attributes;
|
152
|
-
if ( attributes.name && !attributes.href )
|
153
|
-
return editor.createFakeParserElement( element, 'cke_anchor', 'anchor' );
|
154
|
-
}
|
155
|
-
}
|
156
|
-
});
|
157
|
-
}
|
158
|
-
},
|
159
|
-
|
160
|
-
requires : [ 'fakeobjects' ]
|
161
|
-
} );
|
162
|
-
|
163
|
-
CKEDITOR.plugins.link =
|
164
|
-
{
|
165
|
-
/**
|
166
|
-
* Get the surrounding link element of current selection.
|
167
|
-
* @param editor
|
168
|
-
* @example CKEDITOR.plugins.link.getSelectedLink( editor );
|
169
|
-
* @since 3.2.1
|
170
|
-
* The following selection will all return the link element.
|
171
|
-
* <pre>
|
172
|
-
* <a href="#">li^nk</a>
|
173
|
-
* <a href="#">[link]</a>
|
174
|
-
* text[<a href="#">link]</a>
|
175
|
-
* <a href="#">li[nk</a>]
|
176
|
-
* [<b><a href="#">li]nk</a></b>]
|
177
|
-
* [<a href="#"><b>li]nk</b></a>
|
178
|
-
* </pre>
|
179
|
-
*/
|
180
|
-
getSelectedLink : function( editor )
|
181
|
-
{
|
182
|
-
try
|
183
|
-
{
|
184
|
-
var selection = editor.getSelection();
|
185
|
-
if ( selection.getType() == CKEDITOR.SELECTION_ELEMENT )
|
186
|
-
{
|
187
|
-
var selectedElement = selection.getSelectedElement();
|
188
|
-
if ( selectedElement.is( 'a' ) )
|
189
|
-
return selectedElement;
|
190
|
-
}
|
191
|
-
|
192
|
-
var range = selection.getRanges( true )[ 0 ];
|
193
|
-
range.shrink( CKEDITOR.SHRINK_TEXT );
|
194
|
-
var root = range.getCommonAncestor();
|
195
|
-
return root.getAscendant( 'a', true );
|
196
|
-
}
|
197
|
-
catch( e ) { return null; }
|
198
|
-
}
|
199
|
-
};
|
200
|
-
|
201
|
-
CKEDITOR.unlinkCommand = function(){};
|
202
|
-
CKEDITOR.unlinkCommand.prototype =
|
203
|
-
{
|
204
|
-
/** @ignore */
|
205
|
-
exec : function( editor )
|
206
|
-
{
|
207
|
-
/*
|
208
|
-
* execCommand( 'unlink', ... ) in Firefox leaves behind <span> tags at where
|
209
|
-
* the <a> was, so again we have to remove the link ourselves. (See #430)
|
210
|
-
*
|
211
|
-
* TODO: Use the style system when it's complete. Let's use execCommand()
|
212
|
-
* as a stopgap solution for now.
|
213
|
-
*/
|
214
|
-
var selection = editor.getSelection(),
|
215
|
-
bookmarks = selection.createBookmarks(),
|
216
|
-
ranges = selection.getRanges(),
|
217
|
-
rangeRoot,
|
218
|
-
element;
|
219
|
-
|
220
|
-
for ( var i = 0 ; i < ranges.length ; i++ )
|
221
|
-
{
|
222
|
-
rangeRoot = ranges[i].getCommonAncestor( true );
|
223
|
-
element = rangeRoot.getAscendant( 'a', true );
|
224
|
-
if ( !element )
|
225
|
-
continue;
|
226
|
-
ranges[i].selectNodeContents( element );
|
227
|
-
}
|
228
|
-
|
229
|
-
selection.selectRanges( ranges );
|
230
|
-
editor.document.$.execCommand( 'unlink', false, null );
|
231
|
-
selection.selectBookmarks( bookmarks );
|
232
|
-
},
|
233
|
-
|
234
|
-
startDisabled : true
|
235
|
-
};
|
236
|
-
|
237
|
-
CKEDITOR.tools.extend( CKEDITOR.config,
|
238
|
-
{
|
239
|
-
linkShowAdvancedTab : true,
|
240
|
-
linkShowTargetTab : true
|
241
|
-
} );
|
@@ -1,723 +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
|
-
* @file Insert and remove numbered and bulleted lists.
|
8
|
-
*/
|
9
|
-
|
10
|
-
(function()
|
11
|
-
{
|
12
|
-
var listNodeNames = { ol : 1, ul : 1 },
|
13
|
-
emptyTextRegex = /^[\n\r\t ]*$/;
|
14
|
-
|
15
|
-
var whitespaces = CKEDITOR.dom.walker.whitespaces(),
|
16
|
-
bookmarks = CKEDITOR.dom.walker.bookmark(),
|
17
|
-
nonEmpty = function( node ){ return !( whitespaces( node ) || bookmarks( node ) ); };
|
18
|
-
|
19
|
-
CKEDITOR.plugins.list = {
|
20
|
-
/*
|
21
|
-
* Convert a DOM list tree into a data structure that is easier to
|
22
|
-
* manipulate. This operation should be non-intrusive in the sense that it
|
23
|
-
* does not change the DOM tree, with the exception that it may add some
|
24
|
-
* markers to the list item nodes when database is specified.
|
25
|
-
*/
|
26
|
-
listToArray : function( listNode, database, baseArray, baseIndentLevel, grandparentNode )
|
27
|
-
{
|
28
|
-
if ( !listNodeNames[ listNode.getName() ] )
|
29
|
-
return [];
|
30
|
-
|
31
|
-
if ( !baseIndentLevel )
|
32
|
-
baseIndentLevel = 0;
|
33
|
-
if ( !baseArray )
|
34
|
-
baseArray = [];
|
35
|
-
|
36
|
-
// Iterate over all list items to and look for inner lists.
|
37
|
-
for ( var i = 0, count = listNode.getChildCount() ; i < count ; i++ )
|
38
|
-
{
|
39
|
-
var listItem = listNode.getChild( i );
|
40
|
-
|
41
|
-
// It may be a text node or some funny stuff.
|
42
|
-
if ( listItem.$.nodeName.toLowerCase() != 'li' )
|
43
|
-
continue;
|
44
|
-
|
45
|
-
var itemObj = { 'parent' : listNode, indent : baseIndentLevel, element : listItem, contents : [] };
|
46
|
-
if ( !grandparentNode )
|
47
|
-
{
|
48
|
-
itemObj.grandparent = listNode.getParent();
|
49
|
-
if ( itemObj.grandparent && itemObj.grandparent.$.nodeName.toLowerCase() == 'li' )
|
50
|
-
itemObj.grandparent = itemObj.grandparent.getParent();
|
51
|
-
}
|
52
|
-
else
|
53
|
-
itemObj.grandparent = grandparentNode;
|
54
|
-
|
55
|
-
if ( database )
|
56
|
-
CKEDITOR.dom.element.setMarker( database, listItem, 'listarray_index', baseArray.length );
|
57
|
-
baseArray.push( itemObj );
|
58
|
-
|
59
|
-
for ( var j = 0, itemChildCount = listItem.getChildCount(), child; j < itemChildCount ; j++ )
|
60
|
-
{
|
61
|
-
child = listItem.getChild( j );
|
62
|
-
if ( child.type == CKEDITOR.NODE_ELEMENT && listNodeNames[ child.getName() ] )
|
63
|
-
// Note the recursion here, it pushes inner list items with
|
64
|
-
// +1 indentation in the correct order.
|
65
|
-
CKEDITOR.plugins.list.listToArray( child, database, baseArray, baseIndentLevel + 1, itemObj.grandparent );
|
66
|
-
else
|
67
|
-
itemObj.contents.push( child );
|
68
|
-
}
|
69
|
-
}
|
70
|
-
return baseArray;
|
71
|
-
},
|
72
|
-
|
73
|
-
// Convert our internal representation of a list back to a DOM forest.
|
74
|
-
arrayToList : function( listArray, database, baseIndex, paragraphMode, dir )
|
75
|
-
{
|
76
|
-
if ( !baseIndex )
|
77
|
-
baseIndex = 0;
|
78
|
-
if ( !listArray || listArray.length < baseIndex + 1 )
|
79
|
-
return null;
|
80
|
-
var doc = listArray[ baseIndex ].parent.getDocument(),
|
81
|
-
retval = new CKEDITOR.dom.documentFragment( doc ),
|
82
|
-
rootNode = null,
|
83
|
-
currentIndex = baseIndex,
|
84
|
-
indentLevel = Math.max( listArray[ baseIndex ].indent, 0 ),
|
85
|
-
currentListItem = null,
|
86
|
-
paragraphName = ( paragraphMode == CKEDITOR.ENTER_P ? 'p' : 'div' );
|
87
|
-
while ( 1 )
|
88
|
-
{
|
89
|
-
var item = listArray[ currentIndex ];
|
90
|
-
if ( item.indent == indentLevel )
|
91
|
-
{
|
92
|
-
if ( !rootNode || listArray[ currentIndex ].parent.getName() != rootNode.getName() )
|
93
|
-
{
|
94
|
-
rootNode = listArray[ currentIndex ].parent.clone( false, 1 );
|
95
|
-
dir && rootNode.setAttribute( 'dir', dir );
|
96
|
-
retval.append( rootNode );
|
97
|
-
}
|
98
|
-
currentListItem = rootNode.append( item.element.clone( 0, 1 ) );
|
99
|
-
for ( var i = 0 ; i < item.contents.length ; i++ )
|
100
|
-
currentListItem.append( item.contents[i].clone( 1, 1 ) );
|
101
|
-
currentIndex++;
|
102
|
-
}
|
103
|
-
else if ( item.indent == Math.max( indentLevel, 0 ) + 1 )
|
104
|
-
{
|
105
|
-
var listData = CKEDITOR.plugins.list.arrayToList( listArray, null, currentIndex, paragraphMode );
|
106
|
-
currentListItem.append( listData.listNode );
|
107
|
-
currentIndex = listData.nextIndex;
|
108
|
-
}
|
109
|
-
else if ( item.indent == -1 && !baseIndex && item.grandparent )
|
110
|
-
{
|
111
|
-
currentListItem;
|
112
|
-
if ( listNodeNames[ item.grandparent.getName() ] )
|
113
|
-
currentListItem = item.element.clone( false, true );
|
114
|
-
else
|
115
|
-
{
|
116
|
-
// Create completely new blocks here.
|
117
|
-
if ( dir || item.element.hasAttributes() ||
|
118
|
-
( paragraphMode != CKEDITOR.ENTER_BR && item.grandparent.getName() != 'td' ) )
|
119
|
-
{
|
120
|
-
currentListItem = doc.createElement( paragraphName );
|
121
|
-
item.element.copyAttributes( currentListItem, { type:1, value:1 } );
|
122
|
-
dir && currentListItem.setAttribute( 'dir', dir );
|
123
|
-
|
124
|
-
// There might be a case where there are no attributes in the element after all
|
125
|
-
// (i.e. when "type" or "value" are the only attributes set). In this case, if enterMode = BR,
|
126
|
-
// the current item should be a fragment.
|
127
|
-
if ( !dir && paragraphMode == CKEDITOR.ENTER_BR && !currentListItem.hasAttributes() )
|
128
|
-
currentListItem = new CKEDITOR.dom.documentFragment( doc );
|
129
|
-
}
|
130
|
-
else
|
131
|
-
currentListItem = new CKEDITOR.dom.documentFragment( doc );
|
132
|
-
}
|
133
|
-
|
134
|
-
for ( i = 0 ; i < item.contents.length ; i++ )
|
135
|
-
currentListItem.append( item.contents[i].clone( 1, 1 ) );
|
136
|
-
|
137
|
-
if ( currentListItem.type == CKEDITOR.NODE_DOCUMENT_FRAGMENT
|
138
|
-
&& currentIndex != listArray.length - 1 )
|
139
|
-
{
|
140
|
-
var last = currentListItem.getLast();
|
141
|
-
if ( last && last.type == CKEDITOR.NODE_ELEMENT
|
142
|
-
&& last.getAttribute( 'type' ) == '_moz' )
|
143
|
-
{
|
144
|
-
last.remove();
|
145
|
-
}
|
146
|
-
|
147
|
-
if ( !( last = currentListItem.getLast( nonEmpty )
|
148
|
-
&& last.type == CKEDITOR.NODE_ELEMENT
|
149
|
-
&& last.getName() in CKEDITOR.dtd.$block ) )
|
150
|
-
{
|
151
|
-
currentListItem.append( doc.createElement( 'br' ) );
|
152
|
-
}
|
153
|
-
}
|
154
|
-
|
155
|
-
if ( currentListItem.type == CKEDITOR.NODE_ELEMENT &&
|
156
|
-
currentListItem.getName() == paragraphName &&
|
157
|
-
currentListItem.$.firstChild )
|
158
|
-
{
|
159
|
-
currentListItem.trim();
|
160
|
-
var firstChild = currentListItem.getFirst();
|
161
|
-
if ( firstChild.type == CKEDITOR.NODE_ELEMENT && firstChild.isBlockBoundary() )
|
162
|
-
{
|
163
|
-
var tmp = new CKEDITOR.dom.documentFragment( doc );
|
164
|
-
currentListItem.moveChildren( tmp );
|
165
|
-
currentListItem = tmp;
|
166
|
-
}
|
167
|
-
}
|
168
|
-
|
169
|
-
var currentListItemName = currentListItem.$.nodeName.toLowerCase();
|
170
|
-
if ( !CKEDITOR.env.ie && ( currentListItemName == 'div' || currentListItemName == 'p' ) )
|
171
|
-
currentListItem.appendBogus();
|
172
|
-
retval.append( currentListItem );
|
173
|
-
rootNode = null;
|
174
|
-
currentIndex++;
|
175
|
-
}
|
176
|
-
else
|
177
|
-
return null;
|
178
|
-
|
179
|
-
if ( listArray.length <= currentIndex || Math.max( listArray[ currentIndex ].indent, 0 ) < indentLevel )
|
180
|
-
break;
|
181
|
-
}
|
182
|
-
|
183
|
-
// Clear marker attributes for the new list tree made of cloned nodes, if any.
|
184
|
-
if ( database )
|
185
|
-
{
|
186
|
-
var currentNode = retval.getFirst();
|
187
|
-
while ( currentNode )
|
188
|
-
{
|
189
|
-
if ( currentNode.type == CKEDITOR.NODE_ELEMENT )
|
190
|
-
CKEDITOR.dom.element.clearMarkers( database, currentNode );
|
191
|
-
currentNode = currentNode.getNextSourceNode();
|
192
|
-
}
|
193
|
-
}
|
194
|
-
|
195
|
-
return { listNode : retval, nextIndex : currentIndex };
|
196
|
-
}
|
197
|
-
};
|
198
|
-
|
199
|
-
function setState( editor, state )
|
200
|
-
{
|
201
|
-
editor.getCommand( this.name ).setState( state );
|
202
|
-
}
|
203
|
-
|
204
|
-
function onSelectionChange( evt )
|
205
|
-
{
|
206
|
-
var path = evt.data.path,
|
207
|
-
blockLimit = path.blockLimit,
|
208
|
-
elements = path.elements,
|
209
|
-
element;
|
210
|
-
|
211
|
-
// Grouping should only happen under blockLimit.(#3940).
|
212
|
-
for ( var i = 0 ; i < elements.length && ( element = elements[ i ] )
|
213
|
-
&& !element.equals( blockLimit ); i++ )
|
214
|
-
{
|
215
|
-
if ( listNodeNames[ elements[i].getName() ] )
|
216
|
-
{
|
217
|
-
return setState.call( this, evt.editor,
|
218
|
-
this.type == elements[i].getName() ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF );
|
219
|
-
}
|
220
|
-
}
|
221
|
-
|
222
|
-
return setState.call( this, evt.editor, CKEDITOR.TRISTATE_OFF );
|
223
|
-
}
|
224
|
-
|
225
|
-
function changeListType( editor, groupObj, database, listsCreated )
|
226
|
-
{
|
227
|
-
// This case is easy...
|
228
|
-
// 1. Convert the whole list into a one-dimensional array.
|
229
|
-
// 2. Change the list type by modifying the array.
|
230
|
-
// 3. Recreate the whole list by converting the array to a list.
|
231
|
-
// 4. Replace the original list with the recreated list.
|
232
|
-
var listArray = CKEDITOR.plugins.list.listToArray( groupObj.root, database ),
|
233
|
-
selectedListItems = [];
|
234
|
-
|
235
|
-
for ( var i = 0 ; i < groupObj.contents.length ; i++ )
|
236
|
-
{
|
237
|
-
var itemNode = groupObj.contents[i];
|
238
|
-
itemNode = itemNode.getAscendant( 'li', true );
|
239
|
-
if ( !itemNode || itemNode.getCustomData( 'list_item_processed' ) )
|
240
|
-
continue;
|
241
|
-
selectedListItems.push( itemNode );
|
242
|
-
CKEDITOR.dom.element.setMarker( database, itemNode, 'list_item_processed', true );
|
243
|
-
}
|
244
|
-
|
245
|
-
var root = groupObj.root,
|
246
|
-
fakeParent = root.getDocument().createElement( this.type );
|
247
|
-
// Copy all attributes, except from 'start' and 'type'.
|
248
|
-
root.copyAttributes( fakeParent, { start : 1, type : 1 } );
|
249
|
-
// The list-style-type property should be ignored.
|
250
|
-
fakeParent.removeStyle( 'list-style-type' );
|
251
|
-
|
252
|
-
for ( i = 0 ; i < selectedListItems.length ; i++ )
|
253
|
-
{
|
254
|
-
var listIndex = selectedListItems[i].getCustomData( 'listarray_index' );
|
255
|
-
listArray[listIndex].parent = fakeParent;
|
256
|
-
}
|
257
|
-
var newList = CKEDITOR.plugins.list.arrayToList( listArray, database, null, editor.config.enterMode );
|
258
|
-
var child, length = newList.listNode.getChildCount();
|
259
|
-
for ( i = 0 ; i < length && ( child = newList.listNode.getChild( i ) ) ; i++ )
|
260
|
-
{
|
261
|
-
if ( child.getName() == this.type )
|
262
|
-
listsCreated.push( child );
|
263
|
-
}
|
264
|
-
newList.listNode.replace( groupObj.root );
|
265
|
-
}
|
266
|
-
|
267
|
-
var headerTagRegex = /^h[1-6]$/;
|
268
|
-
|
269
|
-
function createList( editor, groupObj, listsCreated )
|
270
|
-
{
|
271
|
-
var contents = groupObj.contents,
|
272
|
-
doc = groupObj.root.getDocument(),
|
273
|
-
listContents = [];
|
274
|
-
|
275
|
-
// It is possible to have the contents returned by DomRangeIterator to be the same as the root.
|
276
|
-
// e.g. when we're running into table cells.
|
277
|
-
// In such a case, enclose the childNodes of contents[0] into a <div>.
|
278
|
-
if ( contents.length == 1 && contents[0].equals( groupObj.root ) )
|
279
|
-
{
|
280
|
-
var divBlock = doc.createElement( 'div' );
|
281
|
-
contents[0].moveChildren && contents[0].moveChildren( divBlock );
|
282
|
-
contents[0].append( divBlock );
|
283
|
-
contents[0] = divBlock;
|
284
|
-
}
|
285
|
-
|
286
|
-
// Calculate the common parent node of all content blocks.
|
287
|
-
var commonParent = groupObj.contents[0].getParent();
|
288
|
-
for ( var i = 0 ; i < contents.length ; i++ )
|
289
|
-
commonParent = commonParent.getCommonAncestor( contents[i].getParent() );
|
290
|
-
|
291
|
-
var useComputedState = editor.config.useComputedState,
|
292
|
-
listDir, explicitDirection;
|
293
|
-
|
294
|
-
useComputedState = useComputedState === undefined || useComputedState;
|
295
|
-
|
296
|
-
// We want to insert things that are in the same tree level only, so calculate the contents again
|
297
|
-
// by expanding the selected blocks to the same tree level.
|
298
|
-
for ( i = 0 ; i < contents.length ; i++ )
|
299
|
-
{
|
300
|
-
var contentNode = contents[i],
|
301
|
-
parentNode;
|
302
|
-
while ( ( parentNode = contentNode.getParent() ) )
|
303
|
-
{
|
304
|
-
if ( parentNode.equals( commonParent ) )
|
305
|
-
{
|
306
|
-
listContents.push( contentNode );
|
307
|
-
|
308
|
-
// Determine the lists's direction.
|
309
|
-
if ( !explicitDirection && contentNode.getDirection() )
|
310
|
-
explicitDirection = 1;
|
311
|
-
|
312
|
-
var itemDir = contentNode.getDirection( useComputedState );
|
313
|
-
|
314
|
-
if ( listDir !== null )
|
315
|
-
{
|
316
|
-
// If at least one LI have a different direction than current listDir, we can't have listDir.
|
317
|
-
if ( listDir && listDir != itemDir )
|
318
|
-
listDir = null;
|
319
|
-
else
|
320
|
-
listDir = itemDir;
|
321
|
-
}
|
322
|
-
|
323
|
-
break;
|
324
|
-
}
|
325
|
-
contentNode = parentNode;
|
326
|
-
}
|
327
|
-
}
|
328
|
-
|
329
|
-
if ( listContents.length < 1 )
|
330
|
-
return;
|
331
|
-
|
332
|
-
// Insert the list to the DOM tree.
|
333
|
-
var insertAnchor = listContents[ listContents.length - 1 ].getNext(),
|
334
|
-
listNode = doc.createElement( this.type );
|
335
|
-
|
336
|
-
listsCreated.push( listNode );
|
337
|
-
|
338
|
-
var contentBlock, listItem;
|
339
|
-
|
340
|
-
while ( listContents.length )
|
341
|
-
{
|
342
|
-
contentBlock = listContents.shift();
|
343
|
-
listItem = doc.createElement( 'li' );
|
344
|
-
|
345
|
-
// Preserve preformat block and heading structure when converting to list item. (#5335) (#5271)
|
346
|
-
if ( contentBlock.is( 'pre' ) || headerTagRegex.test( contentBlock.getName() ) )
|
347
|
-
contentBlock.appendTo( listItem );
|
348
|
-
else
|
349
|
-
{
|
350
|
-
// Remove DIR attribute if it was merged into list root.
|
351
|
-
if ( listDir && contentBlock.getDirection() )
|
352
|
-
{
|
353
|
-
contentBlock.removeStyle( 'direction' );
|
354
|
-
contentBlock.removeAttribute( 'dir' );
|
355
|
-
}
|
356
|
-
|
357
|
-
contentBlock.copyAttributes( listItem );
|
358
|
-
contentBlock.moveChildren( listItem );
|
359
|
-
contentBlock.remove();
|
360
|
-
}
|
361
|
-
|
362
|
-
listItem.appendTo( listNode );
|
363
|
-
}
|
364
|
-
|
365
|
-
// Apply list root dir only if it has been explicitly declared.
|
366
|
-
if ( listDir && explicitDirection )
|
367
|
-
listNode.setAttribute( 'dir', listDir );
|
368
|
-
|
369
|
-
if ( insertAnchor )
|
370
|
-
listNode.insertBefore( insertAnchor );
|
371
|
-
else
|
372
|
-
listNode.appendTo( commonParent );
|
373
|
-
}
|
374
|
-
|
375
|
-
function removeList( editor, groupObj, database )
|
376
|
-
{
|
377
|
-
// This is very much like the change list type operation.
|
378
|
-
// Except that we're changing the selected items' indent to -1 in the list array.
|
379
|
-
var listArray = CKEDITOR.plugins.list.listToArray( groupObj.root, database ),
|
380
|
-
selectedListItems = [];
|
381
|
-
|
382
|
-
for ( var i = 0 ; i < groupObj.contents.length ; i++ )
|
383
|
-
{
|
384
|
-
var itemNode = groupObj.contents[i];
|
385
|
-
itemNode = itemNode.getAscendant( 'li', true );
|
386
|
-
if ( !itemNode || itemNode.getCustomData( 'list_item_processed' ) )
|
387
|
-
continue;
|
388
|
-
selectedListItems.push( itemNode );
|
389
|
-
CKEDITOR.dom.element.setMarker( database, itemNode, 'list_item_processed', true );
|
390
|
-
}
|
391
|
-
|
392
|
-
var lastListIndex = null;
|
393
|
-
for ( i = 0 ; i < selectedListItems.length ; i++ )
|
394
|
-
{
|
395
|
-
var listIndex = selectedListItems[i].getCustomData( 'listarray_index' );
|
396
|
-
listArray[listIndex].indent = -1;
|
397
|
-
lastListIndex = listIndex;
|
398
|
-
}
|
399
|
-
|
400
|
-
// After cutting parts of the list out with indent=-1, we still have to maintain the array list
|
401
|
-
// model's nextItem.indent <= currentItem.indent + 1 invariant. Otherwise the array model of the
|
402
|
-
// list cannot be converted back to a real DOM list.
|
403
|
-
for ( i = lastListIndex + 1 ; i < listArray.length ; i++ )
|
404
|
-
{
|
405
|
-
if ( listArray[i].indent > listArray[i-1].indent + 1 )
|
406
|
-
{
|
407
|
-
var indentOffset = listArray[i-1].indent + 1 - listArray[i].indent;
|
408
|
-
var oldIndent = listArray[i].indent;
|
409
|
-
while ( listArray[i] && listArray[i].indent >= oldIndent )
|
410
|
-
{
|
411
|
-
listArray[i].indent += indentOffset;
|
412
|
-
i++;
|
413
|
-
}
|
414
|
-
i--;
|
415
|
-
}
|
416
|
-
}
|
417
|
-
|
418
|
-
var newList = CKEDITOR.plugins.list.arrayToList( listArray, database, null, editor.config.enterMode,
|
419
|
-
groupObj.root.getAttribute( 'dir' ) );
|
420
|
-
|
421
|
-
// Compensate <br> before/after the list node if the surrounds are non-blocks.(#3836)
|
422
|
-
var docFragment = newList.listNode, boundaryNode, siblingNode;
|
423
|
-
function compensateBrs( isStart )
|
424
|
-
{
|
425
|
-
if ( ( boundaryNode = docFragment[ isStart ? 'getFirst' : 'getLast' ]() )
|
426
|
-
&& !( boundaryNode.is && boundaryNode.isBlockBoundary() )
|
427
|
-
&& ( siblingNode = groupObj.root[ isStart ? 'getPrevious' : 'getNext' ]
|
428
|
-
( CKEDITOR.dom.walker.whitespaces( true ) ) )
|
429
|
-
&& !( siblingNode.is && siblingNode.isBlockBoundary( { br : 1 } ) ) )
|
430
|
-
editor.document.createElement( 'br' )[ isStart ? 'insertBefore' : 'insertAfter' ]( boundaryNode );
|
431
|
-
}
|
432
|
-
compensateBrs( true );
|
433
|
-
compensateBrs();
|
434
|
-
|
435
|
-
docFragment.replace( groupObj.root );
|
436
|
-
}
|
437
|
-
|
438
|
-
function listCommand( name, type )
|
439
|
-
{
|
440
|
-
this.name = name;
|
441
|
-
this.type = type;
|
442
|
-
}
|
443
|
-
|
444
|
-
listCommand.prototype = {
|
445
|
-
exec : function( editor )
|
446
|
-
{
|
447
|
-
editor.focus();
|
448
|
-
|
449
|
-
var doc = editor.document,
|
450
|
-
selection = editor.getSelection(),
|
451
|
-
ranges = selection && selection.getRanges( true );
|
452
|
-
|
453
|
-
// There should be at least one selected range.
|
454
|
-
if ( !ranges || ranges.length < 1 )
|
455
|
-
return;
|
456
|
-
|
457
|
-
// Midas lists rule #1 says we can create a list even in an empty document.
|
458
|
-
// But DOM iterator wouldn't run if the document is really empty.
|
459
|
-
// So create a paragraph if the document is empty and we're going to create a list.
|
460
|
-
if ( this.state == CKEDITOR.TRISTATE_OFF )
|
461
|
-
{
|
462
|
-
var body = doc.getBody();
|
463
|
-
body.trim();
|
464
|
-
if ( !body.getFirst() )
|
465
|
-
{
|
466
|
-
var paragraph = doc.createElement( editor.config.enterMode == CKEDITOR.ENTER_P ? 'p' :
|
467
|
-
( editor.config.enterMode == CKEDITOR.ENTER_DIV ? 'div' : 'br' ) );
|
468
|
-
paragraph.appendTo( body );
|
469
|
-
ranges = new CKEDITOR.dom.rangeList( [ new CKEDITOR.dom.range( doc ) ] );
|
470
|
-
// IE exception on inserting anything when anchor inside <br>.
|
471
|
-
if ( paragraph.is( 'br' ) )
|
472
|
-
{
|
473
|
-
ranges[ 0 ].setStartBefore( paragraph );
|
474
|
-
ranges[ 0 ].setEndAfter( paragraph );
|
475
|
-
}
|
476
|
-
else
|
477
|
-
ranges[ 0 ].selectNodeContents( paragraph );
|
478
|
-
selection.selectRanges( ranges );
|
479
|
-
}
|
480
|
-
// Maybe a single range there enclosing the whole list,
|
481
|
-
// turn on the list state manually(#4129).
|
482
|
-
else
|
483
|
-
{
|
484
|
-
var range = ranges.length == 1 && ranges[ 0 ],
|
485
|
-
enclosedNode = range && range.getEnclosedNode();
|
486
|
-
if ( enclosedNode && enclosedNode.is
|
487
|
-
&& this.type == enclosedNode.getName() )
|
488
|
-
setState.call( this, editor, CKEDITOR.TRISTATE_ON );
|
489
|
-
}
|
490
|
-
}
|
491
|
-
|
492
|
-
var bookmarks = selection.createBookmarks( true );
|
493
|
-
|
494
|
-
// Group the blocks up because there are many cases where multiple lists have to be created,
|
495
|
-
// or multiple lists have to be cancelled.
|
496
|
-
var listGroups = [],
|
497
|
-
database = {},
|
498
|
-
rangeIterator = ranges.createIterator(),
|
499
|
-
index = 0;
|
500
|
-
|
501
|
-
while ( ( range = rangeIterator.getNextRange() ) && ++index )
|
502
|
-
{
|
503
|
-
var boundaryNodes = range.getBoundaryNodes(),
|
504
|
-
startNode = boundaryNodes.startNode,
|
505
|
-
endNode = boundaryNodes.endNode;
|
506
|
-
|
507
|
-
if ( startNode.type == CKEDITOR.NODE_ELEMENT && startNode.getName() == 'td' )
|
508
|
-
range.setStartAt( boundaryNodes.startNode, CKEDITOR.POSITION_AFTER_START );
|
509
|
-
|
510
|
-
if ( endNode.type == CKEDITOR.NODE_ELEMENT && endNode.getName() == 'td' )
|
511
|
-
range.setEndAt( boundaryNodes.endNode, CKEDITOR.POSITION_BEFORE_END );
|
512
|
-
|
513
|
-
var iterator = range.createIterator(),
|
514
|
-
block;
|
515
|
-
|
516
|
-
iterator.forceBrBreak = ( this.state == CKEDITOR.TRISTATE_OFF );
|
517
|
-
|
518
|
-
while ( ( block = iterator.getNextParagraph() ) )
|
519
|
-
{
|
520
|
-
// Avoid duplicate blocks get processed across ranges.
|
521
|
-
if( block.getCustomData( 'list_block' ) )
|
522
|
-
continue;
|
523
|
-
else
|
524
|
-
CKEDITOR.dom.element.setMarker( database, block, 'list_block', 1 );
|
525
|
-
|
526
|
-
var path = new CKEDITOR.dom.elementPath( block ),
|
527
|
-
pathElements = path.elements,
|
528
|
-
pathElementsCount = pathElements.length,
|
529
|
-
listNode = null,
|
530
|
-
processedFlag = 0,
|
531
|
-
blockLimit = path.blockLimit,
|
532
|
-
element;
|
533
|
-
|
534
|
-
// First, try to group by a list ancestor.
|
535
|
-
for ( var i = pathElementsCount - 1; i >= 0 && ( element = pathElements[ i ] ); i-- )
|
536
|
-
{
|
537
|
-
if ( listNodeNames[ element.getName() ]
|
538
|
-
&& blockLimit.contains( element ) ) // Don't leak outside block limit (#3940).
|
539
|
-
{
|
540
|
-
// If we've encountered a list inside a block limit
|
541
|
-
// The last group object of the block limit element should
|
542
|
-
// no longer be valid. Since paragraphs after the list
|
543
|
-
// should belong to a different group of paragraphs before
|
544
|
-
// the list. (Bug #1309)
|
545
|
-
blockLimit.removeCustomData( 'list_group_object_' + index );
|
546
|
-
|
547
|
-
var groupObj = element.getCustomData( 'list_group_object' );
|
548
|
-
if ( groupObj )
|
549
|
-
groupObj.contents.push( block );
|
550
|
-
else
|
551
|
-
{
|
552
|
-
groupObj = { root : element, contents : [ block ] };
|
553
|
-
listGroups.push( groupObj );
|
554
|
-
CKEDITOR.dom.element.setMarker( database, element, 'list_group_object', groupObj );
|
555
|
-
}
|
556
|
-
processedFlag = 1;
|
557
|
-
break;
|
558
|
-
}
|
559
|
-
}
|
560
|
-
|
561
|
-
if ( processedFlag )
|
562
|
-
continue;
|
563
|
-
|
564
|
-
// No list ancestor? Group by block limit, but don't mix contents from different ranges.
|
565
|
-
var root = blockLimit;
|
566
|
-
if ( root.getCustomData( 'list_group_object_' + index ) )
|
567
|
-
root.getCustomData( 'list_group_object_' + index ).contents.push( block );
|
568
|
-
else
|
569
|
-
{
|
570
|
-
groupObj = { root : root, contents : [ block ] };
|
571
|
-
CKEDITOR.dom.element.setMarker( database, root, 'list_group_object_' + index, groupObj );
|
572
|
-
listGroups.push( groupObj );
|
573
|
-
}
|
574
|
-
}
|
575
|
-
}
|
576
|
-
|
577
|
-
// Now we have two kinds of list groups, groups rooted at a list, and groups rooted at a block limit element.
|
578
|
-
// We either have to build lists or remove lists, for removing a list does not makes sense when we are looking
|
579
|
-
// at the group that's not rooted at lists. So we have three cases to handle.
|
580
|
-
var listsCreated = [];
|
581
|
-
while ( listGroups.length > 0 )
|
582
|
-
{
|
583
|
-
groupObj = listGroups.shift();
|
584
|
-
if ( this.state == CKEDITOR.TRISTATE_OFF )
|
585
|
-
{
|
586
|
-
if ( listNodeNames[ groupObj.root.getName() ] )
|
587
|
-
changeListType.call( this, editor, groupObj, database, listsCreated );
|
588
|
-
else
|
589
|
-
createList.call( this, editor, groupObj, listsCreated );
|
590
|
-
}
|
591
|
-
else if ( this.state == CKEDITOR.TRISTATE_ON && listNodeNames[ groupObj.root.getName() ] )
|
592
|
-
removeList.call( this, editor, groupObj, database );
|
593
|
-
}
|
594
|
-
|
595
|
-
// For all new lists created, merge adjacent, same type lists.
|
596
|
-
for ( i = 0 ; i < listsCreated.length ; i++ )
|
597
|
-
{
|
598
|
-
listNode = listsCreated[i];
|
599
|
-
var mergeSibling, listCommand = this;
|
600
|
-
( mergeSibling = function( rtl ){
|
601
|
-
|
602
|
-
var sibling = listNode[ rtl ?
|
603
|
-
'getPrevious' : 'getNext' ]( CKEDITOR.dom.walker.whitespaces( true ) );
|
604
|
-
if ( sibling && sibling.getName &&
|
605
|
-
sibling.getName() == listCommand.type )
|
606
|
-
{
|
607
|
-
sibling.remove();
|
608
|
-
// Move children order by merge direction.(#3820)
|
609
|
-
sibling.moveChildren( listNode, rtl );
|
610
|
-
}
|
611
|
-
} )();
|
612
|
-
mergeSibling( 1 );
|
613
|
-
}
|
614
|
-
|
615
|
-
// Clean up, restore selection and update toolbar button states.
|
616
|
-
CKEDITOR.dom.element.clearAllMarkers( database );
|
617
|
-
selection.selectBookmarks( bookmarks );
|
618
|
-
editor.focus();
|
619
|
-
}
|
620
|
-
};
|
621
|
-
|
622
|
-
var dtd = CKEDITOR.dtd;
|
623
|
-
var tailNbspRegex = /[\t\r\n ]*(?: |\xa0)$/;
|
624
|
-
|
625
|
-
function indexOfFirstChildElement( element, tagNameList )
|
626
|
-
{
|
627
|
-
var child,
|
628
|
-
children = element.children,
|
629
|
-
length = children.length;
|
630
|
-
|
631
|
-
for ( var i = 0 ; i < length ; i++ )
|
632
|
-
{
|
633
|
-
child = children[ i ];
|
634
|
-
if ( child.name && ( child.name in tagNameList ) )
|
635
|
-
return i;
|
636
|
-
}
|
637
|
-
|
638
|
-
return length;
|
639
|
-
}
|
640
|
-
|
641
|
-
function getExtendNestedListFilter( isHtmlFilter )
|
642
|
-
{
|
643
|
-
// An element filter function that corrects nested list start in an empty
|
644
|
-
// list item for better displaying/outputting. (#3165)
|
645
|
-
return function( listItem )
|
646
|
-
{
|
647
|
-
var children = listItem.children,
|
648
|
-
firstNestedListIndex = indexOfFirstChildElement( listItem, dtd.$list ),
|
649
|
-
firstNestedList = children[ firstNestedListIndex ],
|
650
|
-
nodeBefore = firstNestedList && firstNestedList.previous,
|
651
|
-
tailNbspmatch;
|
652
|
-
|
653
|
-
if ( nodeBefore
|
654
|
-
&& ( nodeBefore.name && nodeBefore.name == 'br'
|
655
|
-
|| nodeBefore.value && ( tailNbspmatch = nodeBefore.value.match( tailNbspRegex ) ) ) )
|
656
|
-
{
|
657
|
-
var fillerNode = nodeBefore;
|
658
|
-
|
659
|
-
// Always use 'nbsp' as filler node if we found a nested list appear
|
660
|
-
// in front of a list item.
|
661
|
-
if ( !( tailNbspmatch && tailNbspmatch.index ) && fillerNode == children[ 0 ] )
|
662
|
-
children[ 0 ] = ( isHtmlFilter || CKEDITOR.env.ie ) ?
|
663
|
-
new CKEDITOR.htmlParser.text( '\xa0' ) :
|
664
|
-
new CKEDITOR.htmlParser.element( 'br', {} );
|
665
|
-
|
666
|
-
// Otherwise the filler is not needed anymore.
|
667
|
-
else if ( fillerNode.name == 'br' )
|
668
|
-
children.splice( firstNestedListIndex - 1, 1 );
|
669
|
-
else
|
670
|
-
fillerNode.value = fillerNode.value.replace( tailNbspRegex, '' );
|
671
|
-
}
|
672
|
-
|
673
|
-
};
|
674
|
-
}
|
675
|
-
|
676
|
-
var defaultListDataFilterRules = { elements : {} };
|
677
|
-
for ( var i in dtd.$listItem )
|
678
|
-
defaultListDataFilterRules.elements[ i ] = getExtendNestedListFilter();
|
679
|
-
|
680
|
-
var defaultListHtmlFilterRules = { elements : {} };
|
681
|
-
for ( i in dtd.$listItem )
|
682
|
-
defaultListHtmlFilterRules.elements[ i ] = getExtendNestedListFilter( true );
|
683
|
-
|
684
|
-
CKEDITOR.plugins.add( 'list',
|
685
|
-
{
|
686
|
-
init : function( editor )
|
687
|
-
{
|
688
|
-
// Register commands.
|
689
|
-
var numberedListCommand = new listCommand( 'numberedlist', 'ol' ),
|
690
|
-
bulletedListCommand = new listCommand( 'bulletedlist', 'ul' );
|
691
|
-
editor.addCommand( 'numberedlist', numberedListCommand );
|
692
|
-
editor.addCommand( 'bulletedlist', bulletedListCommand );
|
693
|
-
|
694
|
-
// Register the toolbar button.
|
695
|
-
editor.ui.addButton( 'NumberedList',
|
696
|
-
{
|
697
|
-
label : editor.lang.numberedlist,
|
698
|
-
command : 'numberedlist'
|
699
|
-
} );
|
700
|
-
editor.ui.addButton( 'BulletedList',
|
701
|
-
{
|
702
|
-
label : editor.lang.bulletedlist,
|
703
|
-
command : 'bulletedlist'
|
704
|
-
} );
|
705
|
-
|
706
|
-
// Register the state changing handlers.
|
707
|
-
editor.on( 'selectionChange', CKEDITOR.tools.bind( onSelectionChange, numberedListCommand ) );
|
708
|
-
editor.on( 'selectionChange', CKEDITOR.tools.bind( onSelectionChange, bulletedListCommand ) );
|
709
|
-
},
|
710
|
-
|
711
|
-
afterInit : function ( editor )
|
712
|
-
{
|
713
|
-
var dataProcessor = editor.dataProcessor;
|
714
|
-
if ( dataProcessor )
|
715
|
-
{
|
716
|
-
dataProcessor.dataFilter.addRules( defaultListDataFilterRules );
|
717
|
-
dataProcessor.htmlFilter.addRules( defaultListHtmlFilterRules );
|
718
|
-
}
|
719
|
-
},
|
720
|
-
|
721
|
-
requires : [ 'domiterator' ]
|
722
|
-
} );
|
723
|
-
})();
|