ckeditor_rails 4.8.0 → 4.16.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +74 -18
- data/ckeditor-rails.gemspec +3 -3
- data/lib/assets/javascripts/ckeditor/basepath.js.erb +1 -6
- data/lib/assets/javascripts/ckeditor-jquery.js +1 -1
- data/lib/ckeditor-rails/asset.rb +2 -2
- data/lib/ckeditor-rails/asset_url_processor.rb +39 -0
- data/lib/ckeditor-rails/engine.rb +12 -0
- data/lib/ckeditor-rails/source_file.rb +13 -0
- data/lib/ckeditor-rails/version.rb +2 -2
- data/lib/ckeditor-rails.rb +28 -2
- data/vendor/assets/images/ckeditor/plugins/copyformatting/cursors/cursor-disabled.svg +25 -0
- data/vendor/assets/images/ckeditor/plugins/copyformatting/cursors/cursor.svg +14 -0
- data/vendor/assets/images/ckeditor/plugins/icons.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/icons_hidpi.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/preview/images/pagebreak.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/wsc/icons/hidpi/spellchecker.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/wsc/icons/spellchecker.png +0 -0
- data/vendor/assets/images/ckeditor/skins/moono-lisa/icons.png +0 -0
- data/vendor/assets/images/ckeditor/skins/moono-lisa/icons_hidpi.png +0 -0
- data/vendor/assets/javascripts/ckeditor/CHANGES.md +936 -305
- data/vendor/assets/javascripts/ckeditor/LICENSE.md +22 -6
- data/vendor/assets/javascripts/ckeditor/README.md +5 -5
- data/vendor/assets/javascripts/ckeditor/adapters/jquery.js +10 -0
- data/vendor/assets/javascripts/ckeditor/build-config.js +12 -6
- data/vendor/assets/javascripts/ckeditor/ckeditor.js +1139 -1023
- data/vendor/assets/javascripts/ckeditor/config.js +2 -2
- data/vendor/assets/javascripts/ckeditor/lang/af.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/ar.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/az.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/bg.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/bn.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/bs.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/ca.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/cs.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/cy.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/da.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/de-ch.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/de.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/el.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/en-au.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/en-ca.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/en-gb.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/en.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/eo.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/es-mx.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/es.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/et.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/eu.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/fa.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/fi.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/fo.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/fr-ca.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/fr.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/gl.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/gu.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/he.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/hi.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/hr.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/hu.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/id.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/is.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/it.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/ja.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/ka.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/km.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/ko.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/ku.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/lt.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/lv.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/mk.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/mn.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/ms.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/nb.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/nl.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/no.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/oc.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/pl.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/pt-br.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/pt.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/ro.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/ru.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/si.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/sk.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/sl.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/sq.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/sr-latn.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/sr.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/sv.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/th.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/tr.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/tt.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/ug.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/uk.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/vi.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/zh-cn.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/zh.js +3 -3
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +6 -6
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/af.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +6 -6
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/az.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +8 -8
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +6 -6
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de-ch.js +10 -9
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en-au.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en-gb.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +5 -4
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/es-mx.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +8 -8
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eu.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +3 -3
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fo.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gl.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +4 -4
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/id.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +3 -3
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/oc.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +3 -3
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/si.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js +9 -8
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js +9 -8
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js +9 -8
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tt.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +5 -5
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +4 -4
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js +4 -4
- data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +11 -11
- data/vendor/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/div/dialogs/div.js +9 -8
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/CHANGELOG.md +54 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/LICENSE.md +18 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/README.md +102 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/plugindefinition.js +1 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/_helpers/tools.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/authentication.js +6 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/exportpdf.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/configfilename.html +27 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/configfilename.md +46 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/emptyeditor.html +18 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/emptyeditor.md +34 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/integration.html +148 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/integration.md +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/integrations/easyimage.html +27 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/integrations/easyimage.md +26 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/notifications.html +19 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/notifications.md +36 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/notificationsasync.html +45 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/notificationsasync.md +27 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/paperformat.html +29 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/paperformat.md +18 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/readonly.html +18 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/readonly.md +28 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/stylesheets.html +36 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/stylesheets.md +19 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/tokenfetching.html +23 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/tokenfetching.md +19 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/tokentwoeditorscorrect.html +38 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/tokentwoeditorscorrect.md +14 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/tokentwoeditorswrong.html +38 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/tokentwoeditorswrong.md +14 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/tokenwithouturl.html +19 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/tokenwithouturl.md +31 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/wrongendpoint.html +21 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/wrongendpoint.md +34 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/notification.js +4 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/resourcespaths.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/statistics.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/stylesheets.js +18 -0
- data/vendor/assets/javascripts/ckeditor/plugins/find/dialogs/find.js +22 -22
- data/vendor/assets/javascripts/ckeditor/plugins/flash/dialogs/flash.js +16 -16
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/button.js +5 -5
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +4 -4
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/form.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +4 -4
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/radio.js +3 -3
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/select.js +16 -15
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +6 -5
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +8 -8
- data/vendor/assets/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +8 -7
- data/vendor/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +34 -34
- data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +5 -5
- data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +26 -24
- data/vendor/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +7 -7
- data/vendor/assets/javascripts/ckeditor/plugins/pastefromgdocs/filter/default.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/pastefromlibreoffice/filter/default.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +39 -52
- data/vendor/assets/javascripts/ckeditor/plugins/pastetools/filter/common.js +24 -0
- data/vendor/assets/javascripts/ckeditor/plugins/pastetools/filter/image.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/CHANGELOG.md +1 -17
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/README.md +63 -7
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/options.js +32 -33
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/af.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ar.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/az.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/bg.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ca.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cs.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cy.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/da.js +3 -3
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de-ch.js +6 -6
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/el.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-au.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-ca.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-gb.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eo.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/es-mx.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/es.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/et.js +8 -10
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eu.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fa.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fi.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/gl.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/he.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hr.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hu.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/id.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/it.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ja.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/km.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ko.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ku.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lt.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lv.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nb.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nl.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/no.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/oc.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pl.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ro.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ru.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/si.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sk.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sl.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sq.js +4 -4
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sr-latn.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sr.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sv.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/th.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tr.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tt.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ug.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/uk.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/vi.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +11 -11
- data/vendor/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +19 -18
- data/vendor/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +15 -15
- data/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/default.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/README.md +84 -25
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +81 -82
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc_ie.js +7 -7
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/af.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/ar.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/bg.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/bn.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/bs.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/ca.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/cs.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/cy.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/da.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/de.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/el.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/en-au.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/en-ca.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/en-gb.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/en.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/eo.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/es.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/et.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/eu.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/fa.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/fi.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/fo.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/fr-ca.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/fr.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/gl.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/gu.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/he.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/hi.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/hr.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/hu.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/is.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/it.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/ja.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/ka.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/km.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/ko.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/ku.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/lt.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/lv.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/mk.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/mn.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/ms.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/nb.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/nl.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/no.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/pl.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/pt-br.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/pt.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/ro.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/ru.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/sk.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/sl.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/sr-latn.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/sr.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/sv.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/th.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/tr.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/ug.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/uk.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/vi.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/zh-cn.js +1 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/lang/zh.js +1 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/plugin.js +5 -0
- data/vendor/assets/javascripts/ckeditor/styles.js +3 -3
- data/vendor/assets/javascripts/ckeditor/vendor/promise.js +13 -0
- data/vendor/assets/stylesheets/ckeditor/contents.css +7 -7
- data/vendor/assets/stylesheets/ckeditor/plugins/colordialog/dialogs/colordialog.css +1 -1
- data/vendor/assets/stylesheets/ckeditor/plugins/copyformatting/styles/copyformatting.css +1 -1
- data/vendor/assets/stylesheets/ckeditor/plugins/dialog/styles/dialog.css +18 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/preview/styles/screen.css +10 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/tableselection/styles/tableselection.css +10 -6
- data/vendor/assets/stylesheets/ckeditor/plugins/templates/dialogs/templates.css +1 -1
- data/vendor/assets/stylesheets/ckeditor/skins/moono-lisa/dialog.css +2 -2
- data/vendor/assets/stylesheets/ckeditor/skins/moono-lisa/dialog_ie.css +2 -2
- data/vendor/assets/stylesheets/ckeditor/skins/moono-lisa/dialog_ie8.css +2 -2
- data/vendor/assets/stylesheets/ckeditor/skins/moono-lisa/dialog_iequirks.css +2 -2
- data/vendor/assets/stylesheets/ckeditor/skins/moono-lisa/editor.css +2 -2
- data/vendor/assets/stylesheets/ckeditor/skins/moono-lisa/editor_gecko.css +2 -2
- data/vendor/assets/stylesheets/ckeditor/skins/moono-lisa/editor_ie.css +2 -2
- data/vendor/assets/stylesheets/ckeditor/skins/moono-lisa/editor_ie8.css +2 -2
- data/vendor/assets/stylesheets/ckeditor/skins/moono-lisa/editor_iequirks.css +2 -2
- metadata +126 -8
- data/lib/assets/javascripts/ckeditor/jquery.js +0 -10
data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/integrations/easyimage.html
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
<div id="editor">
|
2
|
+
<p>Foo bar</p>
|
3
|
+
</div>
|
4
|
+
|
5
|
+
<div id="tokenValue" style="word-break:break-all;border:1px solid red;"></div>
|
6
|
+
|
7
|
+
<script>
|
8
|
+
exportPdfUtils.initManualTest();
|
9
|
+
|
10
|
+
var editor = CKEDITOR.replace( 'editor', exportPdfUtils.getDefaultConfig( 'manual', {
|
11
|
+
extraPlugins: 'easyimage,exportpdf',
|
12
|
+
cloudServices_uploadUrl: 'https://33333.cke-cs.com/easyimage/upload/',
|
13
|
+
cloudServices_tokenUrl: 'https://33333.cke-cs.com/token/dev/ijrDsqFix838Gh3wGO3F77FSW94BwcLXprJ4APSp3XQ26xsUHTi0jcb1hoBt'
|
14
|
+
} ) );
|
15
|
+
|
16
|
+
editor.on( 'instanceReady', function() {
|
17
|
+
if ( !CKEDITOR.config.exportPdf_tokenUrl ) {
|
18
|
+
bender.ignore();
|
19
|
+
}
|
20
|
+
} );
|
21
|
+
|
22
|
+
editor.on( 'exportPdf', function( evt ) {
|
23
|
+
var value = CKEDITOR.document.findOne( '#tokenValue' );
|
24
|
+
|
25
|
+
value.setHtml( evt.data.token );
|
26
|
+
}, null, null, 17 );
|
27
|
+
</script>
|
data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/integrations/easyimage.md
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
@bender-tags: exportpdf, feature, 77
|
2
|
+
@bender-ui: collapsed
|
3
|
+
@bender-include: ../../_helpers/tools.js
|
4
|
+
@bender-ckeditor-plugins: wysiwygarea, toolbar, basicstyles, notification, format, easyimage
|
5
|
+
|
6
|
+
Note: You need the Internet connection to run this test.
|
7
|
+
|
8
|
+
1. Click `Export to PDF` toolbar button.
|
9
|
+
1. Examine the area in the red frame below.
|
10
|
+
|
11
|
+
**Expected:** There is a long token string in the frame.
|
12
|
+
|
13
|
+
**Unexpected:** Frame is empty or says 'undefined'.
|
14
|
+
|
15
|
+
1. Wait for the file to download and examine it.
|
16
|
+
|
17
|
+
**Expected:** No information about being created with CKEditor was added.
|
18
|
+
|
19
|
+
**Unexpected:** There is an additional note about CKEditor at the bottom of page.
|
20
|
+
|
21
|
+
1. Upload an image.
|
22
|
+
1. Examine browser console.
|
23
|
+
|
24
|
+
**Expected:** There are no errors or warnings.
|
25
|
+
|
26
|
+
**Unexpected:** Any error or warning concerning `Export to PDF` or `Easy Image` occurred.
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<div id="editor1">
|
2
|
+
<p>Hello world!</p>
|
3
|
+
</div>
|
4
|
+
|
5
|
+
<div id="editor2">
|
6
|
+
<p>Hello world!</p>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
<script>
|
10
|
+
exportPdfUtils.initManualTest();
|
11
|
+
|
12
|
+
CKEDITOR.replace( 'editor1', exportPdfUtils.getDefaultConfig( 'manual', {
|
13
|
+
extraPlugins: 'exportpdf'
|
14
|
+
} ) );
|
15
|
+
|
16
|
+
CKEDITOR.replace( 'editor2', exportPdfUtils.getDefaultConfig( 'manual', {
|
17
|
+
removePlugins: 'notification'
|
18
|
+
} ) );
|
19
|
+
</script>
|
@@ -0,0 +1,36 @@
|
|
1
|
+
@bender-tags: exportpdf, feature, 4
|
2
|
+
@bender-ui: collapsed
|
3
|
+
@bender-include: ../_helpers/tools.js
|
4
|
+
@bender-ckeditor-plugins: wysiwygarea, toolbar, notification
|
5
|
+
|
6
|
+
1. Read the expected results first as there will be a sequence of things happening quickly to examine.
|
7
|
+
1. Click `Export to PDF` button in the first editor.
|
8
|
+
|
9
|
+
**Expected:**
|
10
|
+
|
11
|
+
* Button is disabled after click.
|
12
|
+
* Nofitication bar of `info` type appeared.
|
13
|
+
* When download started, notification type changed to `success`.
|
14
|
+
* Once download finished, button is enabled again.
|
15
|
+
* After 3 seconds notification bar disappeared.
|
16
|
+
|
17
|
+
**Unexpected:**
|
18
|
+
|
19
|
+
* Button wasn't disabled.
|
20
|
+
* Button wasn't enabled after download started.
|
21
|
+
* Notifications were incorrect.
|
22
|
+
* Notification bar didn't disappear.
|
23
|
+
|
24
|
+
1. Click `Export to PDF` button in the second editor.
|
25
|
+
|
26
|
+
**Expected:**
|
27
|
+
|
28
|
+
* Neither notifications nor alerts appeared.
|
29
|
+
* File was downloaded.
|
30
|
+
* Button was disabled for the time between click and download.
|
31
|
+
|
32
|
+
**Unexpected:**
|
33
|
+
|
34
|
+
* Notification or browser alert appeared.
|
35
|
+
* File wasn't downloaded.
|
36
|
+
* Button wasn't disabled for the time between click and download.
|
data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/notificationsasync.html
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
<div id="editor1">
|
2
|
+
<p>Export to PDF test 1.</p>
|
3
|
+
</div>
|
4
|
+
|
5
|
+
<div id="editor2">
|
6
|
+
<p>Export to PDF test 2.</p>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
<script>
|
10
|
+
exportPdfUtils.initManualTest();
|
11
|
+
|
12
|
+
var editor1 = CKEDITOR.replace( 'editor1', exportPdfUtils.getDefaultConfig( 'manual' ) );
|
13
|
+
|
14
|
+
editor1.on( 'exportPdf', function( evt ) {
|
15
|
+
if ( !evt.data.asyncDone ) {
|
16
|
+
setTimeout( function() {
|
17
|
+
evt.data.html = '<p>Content filtered!</p>';
|
18
|
+
evt.data.asyncDone = true;
|
19
|
+
|
20
|
+
editor1.fire( 'exportPdf', evt.data );
|
21
|
+
}, 2000 );
|
22
|
+
|
23
|
+
evt.cancel();
|
24
|
+
} else {
|
25
|
+
delete evt.data.asyncDone;
|
26
|
+
}
|
27
|
+
}, null, null, 1 );
|
28
|
+
|
29
|
+
var editor2 = CKEDITOR.replace( 'editor2', exportPdfUtils.getDefaultConfig( 'manual' ) );
|
30
|
+
|
31
|
+
editor2.on( 'exportPdf', function( evt ) {
|
32
|
+
if ( !evt.data.asyncDone ) {
|
33
|
+
setTimeout( function() {
|
34
|
+
evt.data.html = '<p>Content filtered!</p>';
|
35
|
+
evt.data.asyncDone = true;
|
36
|
+
|
37
|
+
editor2.fire( 'exportPdf', evt.data );
|
38
|
+
}, 2000 );
|
39
|
+
|
40
|
+
evt.cancel();
|
41
|
+
} else {
|
42
|
+
delete evt.data.asyncDone;
|
43
|
+
}
|
44
|
+
}, null, null, 17 );
|
45
|
+
</script>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
@bender-tags: exportpdf, feature, 4
|
2
|
+
@bender-ui: collapsed
|
3
|
+
@bender-include: ../_helpers/tools.js
|
4
|
+
@bender-ckeditor-plugins: wysiwygarea, toolbar, basicstyles, notification
|
5
|
+
|
6
|
+
1. Click `Export to PDF` button (the one next to the `Source` button) in the first editor.
|
7
|
+
1. Watch appearing notifications.
|
8
|
+
|
9
|
+
**Expected:**
|
10
|
+
|
11
|
+
* Notification `Processing PDF document...` was visible for about 2 seconds.
|
12
|
+
* Progress steps were: `0`, `0.5`, `success`.
|
13
|
+
|
14
|
+
**Unexpected:**
|
15
|
+
|
16
|
+
Notification disappeared too fast to be noticable.
|
17
|
+
|
18
|
+
1. Do the same in the second editor.
|
19
|
+
|
20
|
+
**Expected:**
|
21
|
+
|
22
|
+
* Notification `Processing PDF document...` was visible for about 2 seconds.
|
23
|
+
* Progress steps were: `0.2`, `0.5`, `success`.
|
24
|
+
|
25
|
+
**Unexpected:**
|
26
|
+
|
27
|
+
Notification disappeared too fast to be noticable.
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<div id="editor1">
|
2
|
+
<p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit,
|
3
|
+
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
4
|
+
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute
|
5
|
+
irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
|
6
|
+
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
7
|
+
</p>
|
8
|
+
</div>
|
9
|
+
|
10
|
+
<div id="editor2">
|
11
|
+
<p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit,
|
12
|
+
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
13
|
+
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute
|
14
|
+
irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
|
15
|
+
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
16
|
+
</p>
|
17
|
+
</div>
|
18
|
+
|
19
|
+
<script>
|
20
|
+
exportPdfUtils.initManualTest();
|
21
|
+
|
22
|
+
CKEDITOR.replace( 'editor1', exportPdfUtils.getDefaultConfig( 'manual' ) );
|
23
|
+
|
24
|
+
CKEDITOR.replace( 'editor2', exportPdfUtils.getDefaultConfig( 'manual', {
|
25
|
+
exportPdf_options: {
|
26
|
+
format: 'A6'
|
27
|
+
}
|
28
|
+
} ) );
|
29
|
+
</script>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
@bender-tags: exportpdf, bug, 24
|
2
|
+
@bender-ui: collapsed
|
3
|
+
@bender-include: ../_helpers/tools.js
|
4
|
+
@bender-ckeditor-plugins: wysiwygarea, toolbar, basicstyles, notification
|
5
|
+
|
6
|
+
1. Click `Export to PDF` button (the one next to the `Source` button) in the first editor.
|
7
|
+
1. Wait for the file to download.
|
8
|
+
1. Do the same in the second editor.
|
9
|
+
1. Compare paper format in files.
|
10
|
+
|
11
|
+
**Expected:**
|
12
|
+
|
13
|
+
* First editor produced file in `A4` format (`8.27in x 11.7in`);
|
14
|
+
* Second editor produced file in `A6` format (`4.13in x 5.83in`).
|
15
|
+
|
16
|
+
**Unexpected:**
|
17
|
+
|
18
|
+
Any file is in different format than intended (e.g. `Letter` - `8.5in x 11in`).
|
@@ -0,0 +1,18 @@
|
|
1
|
+
|
2
|
+
<div id="editor">
|
3
|
+
<p>This editor is read-only.</p>
|
4
|
+
</div>
|
5
|
+
|
6
|
+
<button id="toggle">Toggle read-only mode</button>
|
7
|
+
|
8
|
+
<script>
|
9
|
+
exportPdfUtils.initManualTest();
|
10
|
+
|
11
|
+
var editor = CKEDITOR.replace( 'editor', exportPdfUtils.getDefaultConfig( 'manual', {
|
12
|
+
readOnly: true
|
13
|
+
} ) );
|
14
|
+
|
15
|
+
CKEDITOR.document.getById( 'toggle' ).on( 'click', function() {
|
16
|
+
editor.setReadOnly( !editor.readOnly );
|
17
|
+
} );
|
18
|
+
</script>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
@bender-tags: exportpdf, feature, 1
|
2
|
+
@bender-ui: collapsed
|
3
|
+
@bender-include: ../_helpers/tools.js
|
4
|
+
@bender-ckeditor-plugins: wysiwygarea, toolbar, basicstyles, notification
|
5
|
+
|
6
|
+
1. Examine `Export to PDF` button (the one next to the `Source` button).
|
7
|
+
|
8
|
+
**Expected:**
|
9
|
+
|
10
|
+
Button is clickable.
|
11
|
+
|
12
|
+
**Unexpected:**
|
13
|
+
|
14
|
+
Button is inactive.
|
15
|
+
|
16
|
+
1. Click the button.
|
17
|
+
1. Wait for the file to download.
|
18
|
+
|
19
|
+
**Expected:**
|
20
|
+
|
21
|
+
File with correct content was downloaded.
|
22
|
+
|
23
|
+
**Unexpected:**
|
24
|
+
|
25
|
+
File was not downloaded or its content is incorrect.
|
26
|
+
|
27
|
+
1. Click `Toggle read-only mode` button.
|
28
|
+
1. Repeat steps 1-3.
|
@@ -0,0 +1,36 @@
|
|
1
|
+
<h2>Classic Editor</h2>
|
2
|
+
<textarea id="editor1">
|
3
|
+
<span class="badge badge-success">Classic Editor</span>
|
4
|
+
</textarea>
|
5
|
+
|
6
|
+
<h2>Divarea Editor</h2>
|
7
|
+
<div id="editor2">
|
8
|
+
<span class="badge badge-success">Divarea Editor</span>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<h2>Inline Editor</h2>
|
12
|
+
<div id="editor3" contenteditable="true">
|
13
|
+
<span class="badge badge-success">Inline Editor</span>
|
14
|
+
</div>
|
15
|
+
|
16
|
+
<script>
|
17
|
+
exportPdfUtils.initManualTest();
|
18
|
+
|
19
|
+
CKEDITOR.replace( 'editor1', exportPdfUtils.getDefaultConfig( 'manual', {
|
20
|
+
exportPdf_stylesheets: [ 'https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css' ],
|
21
|
+
extraPlugins: 'wysiwygarea,exportpdf',
|
22
|
+
allowedContent: true
|
23
|
+
} ) );
|
24
|
+
|
25
|
+
CKEDITOR.replace( 'editor2', exportPdfUtils.getDefaultConfig( 'manual', {
|
26
|
+
exportPdf_stylesheets: [ 'https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css' ],
|
27
|
+
extraPlugins: 'divarea,exportpdf',
|
28
|
+
allowedContent: true
|
29
|
+
} ) );
|
30
|
+
|
31
|
+
CKEDITOR.inline( 'editor3', exportPdfUtils.getDefaultConfig( 'manual', {
|
32
|
+
exportPdf_stylesheets: [ 'https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css' ],
|
33
|
+
extraPlugins: 'floatingspace,exportpdf',
|
34
|
+
allowedContent: true
|
35
|
+
} ) );
|
36
|
+
</script>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
@bender-tags: exportpdf, feature, 31
|
2
|
+
@bender-ui: collapsed
|
3
|
+
@bender-include: ../_helpers/tools.js
|
4
|
+
@bender-ckeditor-plugins: toolbar, basicstyles, notification
|
5
|
+
|
6
|
+
**Note:** This test uses <a href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" target="_blank">Bootstrap CDN</a>. If something goes wrong, check if the link works correctly first.
|
7
|
+
|
8
|
+
1. Use `Export to PDF` button in the first editor.
|
9
|
+
1. Open generated file.
|
10
|
+
|
11
|
+
**Expected:**
|
12
|
+
|
13
|
+
Text from editor was converted to a green badge.
|
14
|
+
|
15
|
+
**Unexpected:**
|
16
|
+
|
17
|
+
Content is the same as in the editor.
|
18
|
+
|
19
|
+
1. Repeat the same steps for the second and third editor.
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<div id="editor">
|
2
|
+
<p>Foo bar</p>
|
3
|
+
</div>
|
4
|
+
|
5
|
+
<div id="tokenValue" style="word-break:break-all;border:1px solid red;"></div>
|
6
|
+
|
7
|
+
<script>
|
8
|
+
exportPdfUtils.initManualTest();
|
9
|
+
|
10
|
+
var editor = CKEDITOR.replace( 'editor', exportPdfUtils.getDefaultConfig( 'manual' ) );
|
11
|
+
|
12
|
+
editor.on( 'instanceReady', function() {
|
13
|
+
if ( !CKEDITOR.config.exportPdf_tokenUrl ) {
|
14
|
+
bender.ignore();
|
15
|
+
}
|
16
|
+
} );
|
17
|
+
|
18
|
+
editor.on( 'exportPdf', function( evt ) {
|
19
|
+
var value = CKEDITOR.document.findOne( '#tokenValue' );
|
20
|
+
|
21
|
+
value.setHtml( evt.data.token );
|
22
|
+
}, null, null, 17 );
|
23
|
+
</script>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
@bender-tags: exportpdf, feature, 77
|
2
|
+
@bender-ui: collapsed
|
3
|
+
@bender-include: ../_helpers/tools.js
|
4
|
+
@bender-ckeditor-plugins: wysiwygarea, toolbar, basicstyles, notification, format
|
5
|
+
|
6
|
+
Note: You need the Internet connection to run this test.
|
7
|
+
|
8
|
+
1. Click `Export to PDF` toolbar button.
|
9
|
+
1. Examine the area in the red frame below.
|
10
|
+
|
11
|
+
**Expected:** There is a long token string in the frame.
|
12
|
+
|
13
|
+
**Unexpected:** Frame is empty or says 'undefined'.
|
14
|
+
|
15
|
+
1. Wait for the file to download and open it.
|
16
|
+
|
17
|
+
**Expected:** No information about being created with CKEditor was added.
|
18
|
+
|
19
|
+
**Unexpected:** There is an additional note about CKEditor at the bottom of page.
|
data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/tokentwoeditorscorrect.html
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
<h3>Editor 1</h3>
|
2
|
+
<div id="editor1">
|
3
|
+
<p>Foo bar</p>
|
4
|
+
</div>
|
5
|
+
<div id="tokenValue1" style="word-break:break-all;border:1px solid red;"></div>
|
6
|
+
|
7
|
+
<h3>Editor 2</h3>
|
8
|
+
<div id="editor2">
|
9
|
+
<p>Foo bar</p>
|
10
|
+
</div>
|
11
|
+
<div id="tokenValue2" style="word-break:break-all;border:1px solid red;"></div>
|
12
|
+
|
13
|
+
<script>
|
14
|
+
exportPdfUtils.initManualTest();
|
15
|
+
|
16
|
+
var editor1 = CKEDITOR.replace( 'editor1', exportPdfUtils.getDefaultConfig( 'manual', { height: 100 } ) ),
|
17
|
+
editor2 = CKEDITOR.replace( 'editor2', exportPdfUtils.getDefaultConfig( 'manual', { height: 100 } ) );
|
18
|
+
|
19
|
+
editor1.on( 'instanceReady', function() {
|
20
|
+
if ( !CKEDITOR.config.exportPdf_tokenUrl ) {
|
21
|
+
bender.ignore();
|
22
|
+
}
|
23
|
+
} );
|
24
|
+
|
25
|
+
editor1.on( 'exportPdf', function( evt ) {
|
26
|
+
var value = CKEDITOR.document.findOne( '#tokenValue1' );
|
27
|
+
|
28
|
+
value.setHtml( evt.data.token );
|
29
|
+
evt.cancel();
|
30
|
+
}, null, null, 17 );
|
31
|
+
|
32
|
+
editor2.on( 'exportPdf', function( evt ) {
|
33
|
+
var value = CKEDITOR.document.findOne( '#tokenValue2' );
|
34
|
+
|
35
|
+
value.setHtml( evt.data.token );
|
36
|
+
evt.cancel();
|
37
|
+
}, null, null, 17 );
|
38
|
+
</script>
|
data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/tokentwoeditorscorrect.md
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
@bender-tags: exportpdf, feature, 77
|
2
|
+
@bender-ui: collapsed
|
3
|
+
@bender-include: ../_helpers/tools.js
|
4
|
+
@bender-ckeditor-plugins: wysiwygarea, toolbar, basicstyles, notification, format
|
5
|
+
|
6
|
+
Note: You need the Internet connection to run this test.
|
7
|
+
|
8
|
+
1. Click `Export to PDF` button in both editors.
|
9
|
+
|
10
|
+
1. Examine the area in the red frames below each editor.
|
11
|
+
|
12
|
+
**Expected:** Content of two boxes are two different long strings.
|
13
|
+
|
14
|
+
**Unexpected:** Values in both boxes are the same or one of them says `undefined`.
|
data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/tokentwoeditorswrong.html
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
<h3>Editor 1</h3>
|
2
|
+
<div id="editor1">
|
3
|
+
<p>Foo bar</p>
|
4
|
+
</div>
|
5
|
+
<div id="tokenValue1" style="word-break:break-all;border:1px solid red;"></div>
|
6
|
+
|
7
|
+
<h3>Editor 2</h3>
|
8
|
+
<div id="editor2">
|
9
|
+
<p>Foo bar</p>
|
10
|
+
</div>
|
11
|
+
<div id="tokenValue2" style="word-break:break-all;border:1px solid red;"></div>
|
12
|
+
|
13
|
+
<script>
|
14
|
+
exportPdfUtils.initManualTest();
|
15
|
+
|
16
|
+
var editor1 = CKEDITOR.replace( 'editor1', exportPdfUtils.getDefaultConfig( 'manual', { height: 100 } ) ),
|
17
|
+
editor2 = CKEDITOR.replace( 'editor2', exportPdfUtils.getDefaultConfig( 'manual', { exportPdf_tokenUrl: '', height: 100 } ) );
|
18
|
+
|
19
|
+
editor1.on( 'instanceReady', function() {
|
20
|
+
if ( !CKEDITOR.config.exportPdf_tokenUrl ) {
|
21
|
+
bender.ignore();
|
22
|
+
}
|
23
|
+
} );
|
24
|
+
|
25
|
+
editor1.on( 'exportPdf', function( evt ) {
|
26
|
+
var value = CKEDITOR.document.findOne( '#tokenValue1' );
|
27
|
+
|
28
|
+
value.setHtml( evt.data.token );
|
29
|
+
evt.cancel();
|
30
|
+
}, null, null, 17 );
|
31
|
+
|
32
|
+
editor2.on( 'exportPdf', function( evt ) {
|
33
|
+
var value = CKEDITOR.document.findOne( '#tokenValue2' );
|
34
|
+
|
35
|
+
value.setHtml( evt.data.token );
|
36
|
+
evt.cancel();
|
37
|
+
}, null, null, 17 );
|
38
|
+
</script>
|
data/vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/tokentwoeditorswrong.md
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
@bender-tags: exportpdf, feature, 77
|
2
|
+
@bender-ui: collapsed
|
3
|
+
@bender-include: ../_helpers/tools.js
|
4
|
+
@bender-ckeditor-plugins: wysiwygarea, toolbar, basicstyles, notification, format
|
5
|
+
|
6
|
+
Note: You need the Internet connection to run this test.
|
7
|
+
|
8
|
+
1. Click `Export to PDF` button in both editors.
|
9
|
+
|
10
|
+
1. Examine the area in the red frames below each editor.
|
11
|
+
|
12
|
+
**Expected:** First box contains token value and the second one `undefined`.
|
13
|
+
|
14
|
+
**Unexpected:** Values in both boxes are the same or none of them is `undefined`.
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<div id="editor">
|
2
|
+
<p>Foo bar</p>
|
3
|
+
</div>
|
4
|
+
|
5
|
+
<div id="tokenValue" style="word-break:break-all;border:1px solid red;"></div>
|
6
|
+
|
7
|
+
<script>
|
8
|
+
exportPdfUtils.initManualTest();
|
9
|
+
|
10
|
+
var editor = CKEDITOR.replace( 'editor', exportPdfUtils.getDefaultConfig( 'manual', {
|
11
|
+
exportPdf_tokenUrl: ''
|
12
|
+
} ) );
|
13
|
+
|
14
|
+
editor.on( 'exportPdf', function( evt ) {
|
15
|
+
var value = CKEDITOR.document.findOne( '#tokenValue' );
|
16
|
+
|
17
|
+
value.setHtml( evt.data.token );
|
18
|
+
}, null, null, 17 );
|
19
|
+
</script>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
@bender-tags: exportpdf, feature, 77
|
2
|
+
@bender-ui: collapsed
|
3
|
+
@bender-include: ../_helpers/tools.js
|
4
|
+
@bender-ckeditor-plugins: wysiwygarea, toolbar, basicstyles, notification, format
|
5
|
+
|
6
|
+
Note: You need the Internet connection to run this test.
|
7
|
+
|
8
|
+
1. Open and examine console.
|
9
|
+
|
10
|
+
**Expected:** `exportpdf-no-token-url` warning appeared.
|
11
|
+
|
12
|
+
**Unexpected:** No warning.
|
13
|
+
|
14
|
+
1. Click `Export to PDF` button in the editor.
|
15
|
+
1. Examine the area in the red frame below.
|
16
|
+
|
17
|
+
**Expected:** Frame has text `undefined`.
|
18
|
+
|
19
|
+
**Unexpected:** There is a long token string in the frame.
|
20
|
+
|
21
|
+
1. Examine console.
|
22
|
+
|
23
|
+
**Expected:** `exportpdf-no-token` warning appeared.
|
24
|
+
|
25
|
+
**Unexpected:** No warning.
|
26
|
+
|
27
|
+
1. Wait for the file to download and open it.
|
28
|
+
|
29
|
+
**Expected:** File contains info about being created with CKEditor.
|
30
|
+
|
31
|
+
**Unexpected:** No copyright info was added.
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<div id="editor1">
|
2
|
+
<p>Hello world!</p>
|
3
|
+
</div>
|
4
|
+
|
5
|
+
<div id="editor2">
|
6
|
+
<p>Hello world!</p>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
<script>
|
10
|
+
exportPdfUtils.initManualTest();
|
11
|
+
|
12
|
+
CKEDITOR.replace( 'editor1', exportPdfUtils.getDefaultConfig( 'manual', {
|
13
|
+
extraPlugins: 'exportpdf',
|
14
|
+
exportPdf_service: 'https://cksource.com'
|
15
|
+
} ) );
|
16
|
+
|
17
|
+
CKEDITOR.replace( 'editor2', exportPdfUtils.getDefaultConfig( 'manual', {
|
18
|
+
removePlugins: 'notification',
|
19
|
+
exportPdf_service: 'https://cksource.com'
|
20
|
+
} ) );
|
21
|
+
</script>
|
@@ -0,0 +1,34 @@
|
|
1
|
+
@bender-tags: exportpdf, feature, 4
|
2
|
+
@bender-ui: collapsed
|
3
|
+
@bender-include: ../_helpers/tools.js
|
4
|
+
@bender-ckeditor-plugins: wysiwygarea, toolbar, notification
|
5
|
+
|
6
|
+
**Note:** Errors in console during this test are allowed.
|
7
|
+
|
8
|
+
1. Click `Export to PDF` button in the first editor.
|
9
|
+
|
10
|
+
**Expected:**
|
11
|
+
|
12
|
+
* Warning notification with `Error occured.` message appeared.
|
13
|
+
* Button is clickable.
|
14
|
+
* File wasn't downloaded.
|
15
|
+
|
16
|
+
**Unexpected:**
|
17
|
+
|
18
|
+
* Notification didn't show up.
|
19
|
+
* Button wasn't reenabled.
|
20
|
+
* File was downloaded.
|
21
|
+
|
22
|
+
2. Click `Export to PDF` button in the second editor.
|
23
|
+
|
24
|
+
**Expected:**
|
25
|
+
|
26
|
+
* Alert appeared instead of notification.
|
27
|
+
* Button is clickable.
|
28
|
+
* File wasn't downloaded.
|
29
|
+
|
30
|
+
**Unexpected:**
|
31
|
+
|
32
|
+
* Notification didn't show up.
|
33
|
+
* Button wasn't reenabled.
|
34
|
+
* File was downloaded.
|
@@ -0,0 +1,4 @@
|
|
1
|
+
(function(){bender.loadExternalPlugin("exportpdf","/apps/plugin/");CKEDITOR.plugins.load("exportpdf",function(){function c(a,b){var c=a._.notificationArea.notifications[0];assert.areSame(b.message,c.message,"Message should be the same.");assert.areSame(b.type,c.type,"Type should be the same.");assert.areSame(b.progress,c.progress,"Progress should be the same.")}bender.editors={successEditor:{config:exportPdfUtils.getDefaultConfig("unit")},errorEditor:{config:exportPdfUtils.getDefaultConfig("unit")}};
|
2
|
+
bender.test({setUp:function(){bender.tools.ignoreUnsupportedEnvironment("exportpdf");sinon.stub(CKEDITOR.plugins.exportpdf,"downloadFile")},tearDown:function(){CKEDITOR.plugins.exportpdf.downloadFile.restore()},"test notifications and progress steps are correct in happy path":function(){var a=this.editors.successEditor;this.editorBots.successEditor.setHtmlWithSelection('\x3cp id\x3d"test"\x3eHello, World!\x3c/p\x3e^');a.once("exportPdf",function(){c(a,{message:"Processing PDF document...",type:"progress",
|
3
|
+
progress:0})});a.once("exportPdf",function(){c(a,{message:"Processing PDF document...",type:"progress",progress:.2})},null,null,16);exportPdfUtils.useXHR(a,function(b){b.addEventListener("progress",function(){c(a,{message:"Processing PDF document...",type:"progress",progress:.8})});b.addEventListener("loadend",function(){c(a,{message:"Document is ready!",type:"success",progress:1})});b.respond(200,{},"")})},"test notifications and progress steps are correct in sad path":function(){var a=this.editors.errorEditor;
|
4
|
+
this.editorBots.errorEditor.setHtmlWithSelection('\x3cp id\x3d"test"\x3eHello, World!\x3c/p\x3e^');exportPdfUtils.useXHR(a,function(b){var d=sinon.stub(console,"error",function(a){assert.areSame("Validation failed.",a.message,"Message from endpoint is incorrect.");d.restore()});b.addEventListener("loadend",function(){c(a,{message:"Error occurred.",type:"warning"})});b.respond(400,{},'{ "message": "Validation failed." }')})}})})})();
|
@@ -0,0 +1,9 @@
|
|
1
|
+
(function(){bender.loadExternalPlugin("exportpdf","/apps/plugin/");CKEDITOR.plugins.load("exportpdf",function(){function a(a,d,b){b=exportPdfUtils.getDefaultConfig("unit",b||{});bender.editorBot.create({name:"editor"+Date.now(),config:b},function(b){var c=b.editor;b.setHtmlWithSelection(a);c.once("exportPdf",function(b){assert.areEqual(a,b.data.html)},null,null,10);c.once("exportPdf",function(a){a.cancel();assert.areEqual('\x3cdiv class\x3d"cke_editable cke_contents_ltr"\x3e'+d+"\x3c/div\x3e",a.data.html)},
|
2
|
+
null,null,16);c.execCommand("exportPdf")})}function b(a,b){a=a.replace(/\/$/g,"");b&&0<b&&(a=a.split("/").slice(0,-b).join("/"));return a}bender.test({setUp:function(){bender.tools.ignoreUnsupportedEnvironment("exportpdf");this.paths={relative0:b(bender.testDir),relative1:b(bender.testDir,1),relative3:b(bender.testDir,3)}},"test absolute image urls are not changed":function(){a('\x3cp\x3eFoo \x3cimg src\x3d"https://ckeditor.com/img/image1.jpg" /\x3e\x3cimg src\x3d"https://ckeditor.com/img/image2.png" /\x3e\x3c/p\x3e',
|
3
|
+
'\x3cp\x3eFoo \x3cimg src\x3d"https://ckeditor.com/img/image1.jpg" /\x3e\x3cimg src\x3d"https://ckeditor.com/img/image2.png" /\x3e\x3c/p\x3e')},"test relative (to root) image urls are changed to absolute":function(){a('\x3cp\x3e\x3cimg src\x3d"/img/image1.jpg" /\x3e Bar \x3cimg src\x3d"/img/big/image2.png" /\x3e\x3c/p\x3e','\x3cp\x3e\x3cimg src\x3d"'+exportPdfUtils.toAbsoluteUrl("/img/image1.jpg")+'" /\x3e Bar \x3cimg src\x3d"'+exportPdfUtils.toAbsoluteUrl("/img/big/image2.png")+'" /\x3e\x3c/p\x3e')},
|
4
|
+
'test relative (to root) image urls with ".." are changed to absolute':function(){a('\x3cp\x3e\x3cimg src\x3d"/../img/image1.jpg" /\x3e Bar \x3cimg src\x3d"/../../img/big/image2.png" /\x3e\x3c/p\x3e','\x3cp\x3e\x3cimg src\x3d"'+exportPdfUtils.toAbsoluteUrl("/img/image1.jpg")+'" /\x3e Bar \x3cimg src\x3d"'+exportPdfUtils.toAbsoluteUrl("/img/big/image2.png")+'" /\x3e\x3c/p\x3e')},"test relative (to root) image urls with custom baseHref are changed to absolute":function(){a('\x3cp\x3e\x3cimg src\x3d"/img/image1.jpg" /\x3e Bar \x3cimg src\x3d"/img/big/image2.png" /\x3e\x3c/p\x3e',
|
5
|
+
'\x3cp\x3e\x3cimg src\x3d"'+exportPdfUtils.toAbsoluteUrl("/img/image1.jpg","http://ckeditor.com")+'" /\x3e Bar \x3cimg src\x3d"'+exportPdfUtils.toAbsoluteUrl("/img/big/image2.png","http://ckeditor.com")+'" /\x3e\x3c/p\x3e',{baseHref:"http://ckeditor.com/ckeditor4/"})},'test relative (to root) image urls with custom baseHref and ".." are changed to absolute':function(){a('\x3cp\x3e\x3cimg src\x3d"/../img/image1.jpg" /\x3e Bar \x3cimg src\x3d"/../../img/big/image2.png" /\x3e\x3c/p\x3e','\x3cp\x3e\x3cimg src\x3d"'+
|
6
|
+
exportPdfUtils.toAbsoluteUrl("/img/image1.jpg","http://ckeditor.com")+'" /\x3e Bar \x3cimg src\x3d"'+exportPdfUtils.toAbsoluteUrl("/img/big/image2.png","http://ckeditor.com")+'" /\x3e\x3c/p\x3e',{baseHref:"http://ckeditor.com/ckeditor4/"})},"test relative (to current url) image urls are changed to absolute":function(){a('\x3cp\x3e\x3cimg src\x3d"img/image1.jpg" /\x3e Bar \x3cimg src\x3d"img/big/image2.png" /\x3e\x3c/p\x3e','\x3cp\x3e\x3cimg src\x3d"'+exportPdfUtils.toAbsoluteUrl(this.paths.relative0+
|
7
|
+
"/img/image1.jpg")+'" /\x3e Bar \x3cimg src\x3d"'+exportPdfUtils.toAbsoluteUrl(this.paths.relative0+"/img/big/image2.png")+'" /\x3e\x3c/p\x3e')},'test relative (to current url) image urls with ".." are changed to absolute':function(){a('\x3cp\x3e\x3cimg src\x3d"../img/image1.jpg" /\x3e Bar \x3cimg src\x3d"../../../img/big/image2.png" /\x3e\x3c/p\x3e','\x3cp\x3e\x3cimg src\x3d"'+exportPdfUtils.toAbsoluteUrl(this.paths.relative1+"/img/image1.jpg")+'" /\x3e Bar \x3cimg src\x3d"'+exportPdfUtils.toAbsoluteUrl(this.paths.relative3+
|
8
|
+
"/img/big/image2.png")+'" /\x3e\x3c/p\x3e')},"test relative (to current url) image urls with custom baseHref are changed to absolute":function(){a('\x3cp\x3e\x3cimg src\x3d"img/image1.jpg" /\x3e Bar \x3cimg src\x3d"img/big/image2.png" /\x3e\x3c/p\x3e','\x3cp\x3e\x3cimg src\x3d"'+exportPdfUtils.toAbsoluteUrl("img/image1.jpg","http://ckeditor.com/ckeditor4/")+'" /\x3e Bar \x3cimg src\x3d"'+exportPdfUtils.toAbsoluteUrl("img/big/image2.png","http://ckeditor.com/ckeditor4/")+'" /\x3e\x3c/p\x3e',{baseHref:"http://ckeditor.com/ckeditor4/"})},
|
9
|
+
'test relative (to current url) image urls with custom baseHref and ".." are changed to absolute':function(){a('\x3cp\x3e\x3cimg src\x3d"../img/image1.jpg" /\x3e Bar \x3cimg src\x3d"../../img/big/image2.png" /\x3e\x3c/p\x3e','\x3cp\x3e\x3cimg src\x3d"'+exportPdfUtils.toAbsoluteUrl("img/image1.jpg","https://ckeditor.com/ckeditor4/")+'" /\x3e Bar \x3cimg src\x3d"'+exportPdfUtils.toAbsoluteUrl("img/big/image2.png","https://ckeditor.com/")+'" /\x3e\x3c/p\x3e',{baseHref:"https://ckeditor.com/ckeditor4/demo/"})}})})})();
|
@@ -0,0 +1,3 @@
|
|
1
|
+
(function(){bender.loadExternalPlugin("exportpdf","/apps/plugin/");CKEDITOR.plugins.load("exportpdf",function(){bender.editors={defaultHeader:{config:{extraPlugins:"exportpdf"}},customHeader:{config:exportPdfUtils.getDefaultConfig("unit")}};bender.test({setUp:function(){bender.tools.ignoreUnsupportedEnvironment("exportpdf");sinon.stub(CKEDITOR.plugins.exportpdf,"downloadFile")},tearDown:function(){CKEDITOR.plugins.exportpdf.downloadFile.restore()},"test default statistics header":function(){var a=
|
2
|
+
this.editors.defaultHeader;this.editorBots.defaultHeader.setHtmlWithSelection('\x3cp id\x3d"test"\x3eHello, World!\x3c/p\x3e^');exportPdfUtils.useXHR(a,function(a){assert.areEqual(a.requestHeaders["x-cs-app-id"],"cke4","Default stats header is wrong.")})},"test custom statistics header":function(){var a=this.editors.customHeader;this.editorBots.customHeader.setHtmlWithSelection('\x3cp id\x3d"test"\x3eHello, World!\x3c/p\x3e^');exportPdfUtils.useXHR(a,function(a){assert.areEqual(a.requestHeaders["x-cs-app-id"],
|
3
|
+
"cke4-tests-unit","Custom stats header was not set properly.")})}})})})();
|