glebtv-ckeditor 4.13.1 → 4.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ckeditor/version.rb +2 -2
- data/vendor/assets/javascripts/ckeditor/CHANGES.md +387 -297
- data/vendor/assets/javascripts/ckeditor/LICENSE.md +6 -6
- data/vendor/assets/javascripts/ckeditor/README.md +5 -5
- data/vendor/assets/javascripts/ckeditor/adapters/jquery.js +1 -1
- data/vendor/assets/javascripts/ckeditor/build-config.js +5 -3
- data/vendor/assets/javascripts/ckeditor/ckeditor.js +620 -609
- data/vendor/assets/javascripts/ckeditor/config.js +1 -1
- data/vendor/assets/javascripts/ckeditor/contents.css +1 -1
- data/vendor/assets/javascripts/ckeditor/lang/en.js +2 -2
- data/vendor/assets/javascripts/ckeditor/lang/ru.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.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/ru.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.addons.min.js +2 -4
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.handlebars.min.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.htmlmixed.min.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.javascript.min.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.php.min.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.twig.min.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/3024-day.css +41 -41
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/3024-night.css +39 -39
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/abcdef.css +32 -32
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/ambiance-mobile.css +5 -5
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/ambiance.css +74 -74
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/base16-dark.css +38 -38
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/base16-light.css +38 -38
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/bespin.css +34 -34
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/blackboard.css +32 -32
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/cobalt.css +25 -25
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/colorforth.css +33 -33
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/darcula.css +51 -51
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/dracula.css +40 -40
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/duotone-dark.css +35 -35
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/duotone-light.css +36 -36
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/eclipse.css +23 -23
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/elegant.css +13 -13
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/erlang-dark.css +34 -34
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/gruvbox-dark.css +37 -37
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/hopscotch.css +34 -34
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/icecoder.css +43 -43
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/idea.css +41 -41
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/isotope.css +34 -34
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/lesser-dark.css +47 -47
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/liquibyte.css +95 -95
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/lucario.css +37 -37
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/material.css +53 -53
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/mbo.css +37 -37
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/mdn-like.css +46 -46
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/midnight.css +43 -43
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/monokai.css +41 -41
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/neat.css +12 -12
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/neo.css +43 -43
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/night.css +27 -27
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/nord.css +42 -42
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/oceanic-next.css +44 -44
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/panda-syntax.css +85 -85
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/paraiso-dark.css +38 -38
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/paraiso-light.css +38 -38
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/pastel-on-dark.css +52 -52
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/railscasts.css +34 -34
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/rubyblue.css +25 -25
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/seti.css +44 -44
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/shadowfox.css +52 -52
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/solarized.css +168 -168
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/ssms.css +16 -16
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/the-matrix.css +30 -30
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/tomorrow-night-bright.css +35 -35
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/tomorrow-night-eighties.css +38 -38
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/ttcn.css +64 -64
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/twilight.css +32 -32
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/vibrant-ink.css +34 -34
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/xq-dark.css +53 -53
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/xq-light.css +43 -43
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/yeti.css +44 -44
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/yonce.css +59 -59
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/zenburn.css +37 -37
- data/vendor/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.css +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/find/dialogs/find.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/flash/dialogs/flash.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/button.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/form.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/radio.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/select.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/icons.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/icons_hidpi.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/image/lang/en.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/image/lang/ru.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/image/plugin.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/image2/dev/contents.css +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/image2/dev/image2.html +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/image2/dialogs/image2.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/image2/lang/en.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/image2/lang/ru.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/image2/plugin.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/image2/samples/image2.html +4 -3
- data/vendor/assets/javascripts/ckeditor/plugins/lineheight/plugin.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +21 -21
- data/vendor/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/loremipsum/lang/fr.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +34 -34
- data/vendor/assets/javascripts/ckeditor/plugins/pastetools/filter/common.js +19 -16
- data/vendor/assets/javascripts/ckeditor/plugins/pastetools/filter/image.js +6 -0
- data/vendor/assets/javascripts/ckeditor/plugins/preview/images/pagebreak.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/preview/styles/screen.css +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/CHANGELOG.md +1 -17
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/dialogs/smiley.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/ru.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +11 -11
- data/vendor/assets/javascripts/ckeditor/plugins/stylesheetparser/plugin.js +7 -7
- data/vendor/assets/javascripts/ckeditor/plugins/stylesheetparser/samples/stylesheetparser.html +5 -4
- data/vendor/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +15 -15
- data/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.css +1 -1
- 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/wordcount/LICENSE.md +21 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wordcount/README.md +106 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/youtube/LICENSE.md +15 -0
- data/vendor/assets/javascripts/ckeditor/plugins/youtube/README.md +156 -0
- data/vendor/assets/javascripts/ckeditor/plugins/youtube/plugin.js +449 -449
- data/vendor/assets/javascripts/ckeditor/skins/minimalist/editor.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/minimalist/editor_gecko.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/minimalist/editor_ie.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/minimalist/editor_ie7.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/minimalist/editor_ie8.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/minimalist/editor_iequirks.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/minimalist/icons.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/minimalist/icons_hidpi.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/dialog.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/dialog_ie.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/dialog_ie8.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/dialog_iequirks.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/editor.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/editor_gecko.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/editor_ie.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/editor_ie8.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/editor_iequirks.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/readme.md +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/skin.js +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie7.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie8.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_iequirks.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor.css +2 -2
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_gecko.css +2 -2
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie.css +2 -2
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie7.css +2 -2
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie8.css +2 -2
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_iequirks.css +2 -2
- data/vendor/assets/javascripts/ckeditor/skins/moono/readme.md +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono/skin.js +1 -1
- data/vendor/assets/javascripts/ckeditor/styles.js +1 -1
- metadata +53 -115
- data/vendor/assets/javascripts/ckeditor/lang/af.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/ar.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/az.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/bg.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/bn.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/bs.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/ca.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/cs.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/cy.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/da.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/de-ch.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/de.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/el.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/en-au.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/en-ca.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/en-gb.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/eo.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/es-mx.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/es.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/et.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/eu.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/fa.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/fi.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/fo.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/fr-ca.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/fr.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/gl.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/gu.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/he.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/hi.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/hr.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/hu.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/id.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/is.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/it.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/ja.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/ka.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/km.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/ko.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/ku.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/lt.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/lv.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/mk.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/mn.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/ms.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/nb.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/nl.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/no.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/oc.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/pl.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/pt-br.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/pt.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/ro.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/si.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/sk.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/sl.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/sq.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/sr-latn.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/sr.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/sv.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/th.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/tr.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/tt.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/ug.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/uk.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/vi.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/zh-cn.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/zh.js +0 -5
- data/vendor/assets/javascripts/ckeditor/plugins/lineheight/lang/ru.js +0 -3
- data/vendor/assets/javascripts/ckeditor/plugins/loremipsum/lang/ru.js +0 -8
- data/vendor/assets/javascripts/ckeditor/skins/minimalist/skin.js +0 -10
@@ -1,20 +1,4 @@
|
|
1
1
|
SCAYT plugin for CKEditor 4 Changelog
|
2
2
|
====================
|
3
|
-
### CKEditor 4.5.6
|
4
3
|
|
5
|
-
|
6
|
-
* CKEditor [language addon](http://ckeditor.com/addon/language) support
|
7
|
-
* CKEditor [placeholder addon](http://ckeditor.com/addon/placeholder) support
|
8
|
-
* Drag and Drop support
|
9
|
-
* *Experimental* GRAYT functionality http://www.webspellchecker.net/samples/scayt-ckeditor-plugin.html#25
|
10
|
-
|
11
|
-
Fixed issues:
|
12
|
-
* [#98](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/98) SCAYT Affects Dialog Double Click. Fixed in SCAYT Core.
|
13
|
-
* [#102](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/102) SCAYT Core performance enhancements
|
14
|
-
* [#104](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/104) SCAYT's spans leak into the clipboard and after pasting
|
15
|
-
* [#105](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/105) Javascript error fired in case of multiple instances of CKEditor in one page
|
16
|
-
* [#107](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/107) SCAYT should not check non-editable parts of content
|
17
|
-
* [#108](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/108) Latest SCAYT copies id of editor element to the iframe
|
18
|
-
* SCAYT stops working when CKEditor Undo plug-in not enabled
|
19
|
-
* Issue with pasting SCAYT markup in CKEditor
|
20
|
-
* [#32](https://github.com/WebSpellChecker/ckeditor-plugin-wsc/issues/32) SCAYT stops working after pressing Cancel button in WSC dialog
|
4
|
+
The full changelog of the SCAYT plugin for CKEditor 4 can be found on our website under the [release notes](https://webspellchecker.com/release-notes/) section.
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
Copyright (c) 2003-
|
2
|
+
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
|
3
3
|
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
CKEDITOR.dialog.add("smiley",function(f){for(var e=f.config,a=f.lang.smiley,h=e.smiley_images,g=e.smiley_columns||8,k,m=function(l){var c=l.data.getTarget(),b=c.getName();if("a"==b)c=c.getChild(0);else if("img"!=b)return;var b=c.getAttribute("cke_src"),a=c.getAttribute("title"),c=f.document.createElement("img",{attributes:{src:b,"data-cke-saved-src":b,title:a,alt:a,width:c.$.width,height:c.$.height}});f.insertElement(c);k.hide();l.data.preventDefault()},q=CKEDITOR.tools.addFunction(function(a,c){a=
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
Copyright (c) 2003-
|
2
|
+
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
|
3
3
|
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
CKEDITOR.plugins.setLang("specialchar","en",{euro:"Euro sign",lsquo:"Left single quotation mark",rsquo:"Right single quotation mark",ldquo:"Left double quotation mark",rdquo:"Right double quotation mark",ndash:"En dash",mdash:"Em dash",iexcl:"Inverted exclamation mark",cent:"Cent sign",pound:"Pound sign",curren:"Currency sign",yen:"Yen sign",brvbar:"Broken bar",sect:"Section sign",uml:"Diaeresis",copy:"Copyright sign",ordf:"Feminine ordinal indicator",laquo:"Left-pointing double angle quotation mark",
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
Copyright (c) 2003-
|
2
|
+
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
|
3
3
|
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
CKEDITOR.plugins.setLang("specialchar","ru",{euro:"Знак евро",lsquo:"Левая одинарная кавычка",rsquo:"Правая одинарная кавычка",ldquo:"Левая двойная кавычка",rdquo:"Левая двойная кавычка",ndash:"Среднее тире",mdash:"Длинное тире",iexcl:"перевёрнутый восклицательный знак",cent:"Цент",pound:"Фунт",curren:"Знак валюты",yen:"Йена",brvbar:"Вертикальная черта с разрывом",sect:"Знак параграфа",uml:"Умлаут",copy:"Знак охраны авторского права",ordf:"Указатель окончания женского рода ...ая",laquo:"Левая кавычка-«ёлочка»",
|
@@ -1,14 +1,14 @@
|
|
1
1
|
/*
|
2
|
-
Copyright (c) 2003-
|
2
|
+
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
|
3
3
|
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
|
-
CKEDITOR.dialog.add("specialchar",function(
|
6
|
-
var f
|
7
|
-
|
8
|
-
break;case
|
9
|
-
d(null,b)}});return{title:n.title,minWidth:430,minHeight:280,buttons:[CKEDITOR.dialog.cancelButton],charColumns:17,onLoad:function(){for(var c=this.definition.charColumns,b=
|
10
|
-
for(var
|
11
|
-
'" onkeydown\x3d"CKEDITOR.tools.callFunction( '+q+', event, this )" onclick\x3d"CKEDITOR.tools.callFunction('+p+', this); return false;" tabindex\x3d"-1"\x3e\x3cspan style\x3d"margin: 0 auto;cursor: inherit"\x3e'+
|
12
|
-
|
13
|
-
|
14
|
-
|
5
|
+
CKEDITOR.dialog.add("specialchar",function(h){var f,n=h.lang.specialchar,k,l,p,d,e,q;l=function(c){var b;c=c.data?c.data.getTarget():new CKEDITOR.dom.element(c);"a"==c.getName()&&(b=c.getChild(0).getHtml())&&(c.removeClass("cke_light_background"),f.hide(),c=h.document.createElement("span"),c.setHtml(b),h.insertText(c.getText()))};p=CKEDITOR.tools.addFunction(l);e=function(c,b){var a;b=b||c.data.getTarget();"span"==b.getName()&&(b=b.getParent());if("a"==b.getName()&&(a=b.getChild(0).getHtml())){k&&
|
6
|
+
d(null,k);var e=f.getContentElement("info","htmlPreview").getElement();f.getContentElement("info","charPreview").getElement().setHtml(a);e.setHtml(CKEDITOR.tools.htmlEncode(a));b.getParent().addClass("cke_light_background");k=b}};d=function(c,b){b=b||c.data.getTarget();"span"==b.getName()&&(b=b.getParent());"a"==b.getName()&&(f.getContentElement("info","charPreview").getElement().setHtml("\x26nbsp;"),f.getContentElement("info","htmlPreview").getElement().setHtml("\x26nbsp;"),b.getParent().removeClass("cke_light_background"),
|
7
|
+
k=void 0)};q=CKEDITOR.tools.addFunction(function(c){c=new CKEDITOR.dom.event(c);var b=c.getTarget(),a;a=c.getKeystroke();var r="rtl"==h.lang.dir;switch(a){case 38:if(a=b.getParent().getParent().getPrevious())a=a.getChild([b.getParent().getIndex(),0]),a.focus(),d(null,b),e(null,a);c.preventDefault();break;case 40:(a=b.getParent().getParent().getNext())&&(a=a.getChild([b.getParent().getIndex(),0]))&&1==a.type&&(a.focus(),d(null,b),e(null,a));c.preventDefault();break;case 32:l({data:c});c.preventDefault();
|
8
|
+
break;case r?37:39:if(a=b.getParent().getNext())a=a.getChild(0),1==a.type?(a.focus(),d(null,b),e(null,a),c.preventDefault(!0)):d(null,b);else if(a=b.getParent().getParent().getNext())(a=a.getChild([0,0]))&&1==a.type?(a.focus(),d(null,b),e(null,a),c.preventDefault(!0)):d(null,b);break;case r?39:37:(a=b.getParent().getPrevious())?(a=a.getChild(0),a.focus(),d(null,b),e(null,a),c.preventDefault(!0)):(a=b.getParent().getParent().getPrevious())?(a=a.getLast().getChild(0),a.focus(),d(null,b),e(null,a),c.preventDefault(!0)):
|
9
|
+
d(null,b)}});return{title:n.title,minWidth:430,minHeight:280,buttons:[CKEDITOR.dialog.cancelButton],charColumns:17,onLoad:function(){for(var c=this.definition.charColumns,b=h.config.specialChars,a=CKEDITOR.tools.getNextId()+"_specialchar_table_label",d=['\x3ctable role\x3d"listbox" aria-labelledby\x3d"'+a+'" style\x3d"width: 320px; height: 100%; border-collapse: separate;" align\x3d"center" cellspacing\x3d"2" cellpadding\x3d"2" border\x3d"0"\x3e'],e=0,f=b.length,g,m;e<f;){d.push('\x3ctr role\x3d"presentation"\x3e');
|
10
|
+
for(var k=0;k<c;k++,e++)if(g=b[e]){g instanceof Array?(m=g[1],g=g[0]):(m=g.replace("\x26","").replace(";","").replace("#",""),m=n[m]||g);var l="cke_specialchar_label_"+e+"_"+CKEDITOR.tools.getNextNumber();d.push('\x3ctd class\x3d"cke_dark_background" style\x3d"cursor: default" role\x3d"presentation"\x3e\x3ca href\x3d"javascript: void(0);" role\x3d"option" aria-posinset\x3d"'+(e+1)+'"',' aria-setsize\x3d"'+f+'"',' aria-labelledby\x3d"'+l+'"',' class\x3d"cke_specialchar" title\x3d"',CKEDITOR.tools.htmlEncode(m),
|
11
|
+
'" onkeydown\x3d"CKEDITOR.tools.callFunction( '+q+', event, this )" onclick\x3d"CKEDITOR.tools.callFunction('+p+', this); return false;" tabindex\x3d"-1"\x3e\x3cspan style\x3d"margin: 0 auto;cursor: inherit"\x3e'+g+'\x3c/span\x3e\x3cspan class\x3d"cke_voice_label" id\x3d"'+l+'"\x3e'+m+"\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e")}d.push("\x3c/tr\x3e")}d.push("\x3c/tbody\x3e\x3c/table\x3e",'\x3cspan id\x3d"'+a+'" class\x3d"cke_voice_label"\x3e'+n.options+"\x3c/span\x3e");this.getContentElement("info","charContainer").getElement().setHtml(d.join(""))},
|
12
|
+
contents:[{id:"info",label:h.lang.common.generalTab,title:h.lang.common.generalTab,padding:0,align:"top",elements:[{type:"hbox",align:"top",widths:["320px","90px"],children:[{type:"html",id:"charContainer",html:"",onMouseover:e,onMouseout:d,focus:function(){var c=this.getElement().getElementsByTag("a").getItem(0);setTimeout(function(){c.focus();e(null,c)},0)},onShow:function(){var c=this.getElement().getChild([0,0,0,0,0]);setTimeout(function(){c.focus();e(null,c)},0)},onLoad:function(c){f=c.sender}},
|
13
|
+
{type:"hbox",align:"top",widths:["100%"],children:[{type:"vbox",align:"top",children:[{type:"html",html:"\x3cdiv\x3e\x3c/div\x3e"},{type:"html",id:"charPreview",className:"cke_dark_background",style:"border:1px solid #eeeeee;font-size:28px;height:40px;width:70px;padding-top:9px;font-family:'Microsoft Sans Serif',Arial,Helvetica,Verdana;text-align:center;",html:"\x3cdiv\x3e\x26nbsp;\x3c/div\x3e"},{type:"html",id:"htmlPreview",className:"cke_dark_background",style:"border:1px solid #eeeeee;font-size:14px;height:20px;width:70px;padding-top:2px;font-family:'Microsoft Sans Serif',Arial,Helvetica,Verdana;text-align:center;",
|
14
|
+
html:"\x3cdiv\x3e\x26nbsp;\x3c/div\x3e"}]}]}]}]}]}});
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
|
@@ -128,13 +128,13 @@
|
|
128
128
|
* the regular expression will be ignored and will not be available
|
129
129
|
* in the Styles drop-down list.
|
130
130
|
*
|
131
|
-
* Read more in the
|
132
|
-
* and see the
|
131
|
+
* Read more in the {@glink features/styles#the-stylesheet-parser-plugin documentation}
|
132
|
+
* and see the {@glink examples/styles example}.
|
133
133
|
*
|
134
134
|
* // Ignore rules for body and caption elements, classes starting with "high", and any class defined for no specific element.
|
135
135
|
* config.stylesheetParser_skipSelectors = /(^body\.|^caption\.|\.high|^\.)/i;
|
136
136
|
*
|
137
|
-
* @since 3.6
|
137
|
+
* @since 3.6.0
|
138
138
|
* @cfg {RegExp} [stylesheetParser_skipSelectors=/(^body\.|^\.)/i]
|
139
139
|
* @member CKEDITOR.config
|
140
140
|
* @see CKEDITOR.config#stylesheetParser_validSelectors
|
@@ -145,13 +145,13 @@
|
|
145
145
|
* by the Stylesheet Parser plugin. A CSS rule matching the regular
|
146
146
|
* expression will be available in the Styles drop-down list.
|
147
147
|
*
|
148
|
-
* Read more in the
|
149
|
-
* and see the
|
148
|
+
* Read more in the {@glink features/styles#the-stylesheet-parser-plugin documentation}
|
149
|
+
* and see the {@glink examples/styles example}.
|
150
150
|
*
|
151
151
|
* // Only add rules for p and span elements.
|
152
152
|
* config.stylesheetParser_validSelectors = /\^(p|span)\.\w+/;
|
153
153
|
*
|
154
|
-
* @since 3.6
|
154
|
+
* @since 3.6.0
|
155
155
|
* @cfg {RegExp} [stylesheetParser_validSelectors=/\w+\.\w+/]
|
156
156
|
* @member CKEDITOR.config
|
157
157
|
* @see CKEDITOR.config#stylesheetParser_skipSelectors
|
data/vendor/assets/javascripts/ckeditor/plugins/stylesheetparser/samples/stylesheetparser.html
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<!--
|
3
|
-
Copyright (c) 2003-
|
3
|
+
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
|
4
4
|
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
5
5
|
-->
|
6
|
-
<html>
|
6
|
+
<html lang="en">
|
7
7
|
<head>
|
8
8
|
<meta charset="utf-8">
|
9
9
|
<title>Using Stylesheet Parser Plugin — CKEditor Sample</title>
|
@@ -14,13 +14,14 @@ For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
14
14
|
<meta name="ckeditor-sample-name" content="Stylesheet Parser plugin">
|
15
15
|
<meta name="ckeditor-sample-description" content="Using the Stylesheet Parser plugin to fill the Styles drop-down list based on the CSS classes available in the document stylesheet.">
|
16
16
|
<meta name="ckeditor-sample-group" content="Plugins">
|
17
|
+
<meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
|
17
18
|
</head>
|
18
19
|
<body>
|
19
20
|
<h1 class="samples">
|
20
21
|
<a href="../../../samples/old/index.html">CKEditor Samples</a> » Using the Stylesheet Parser Plugin
|
21
22
|
</h1>
|
22
23
|
<div class="warning deprecated">
|
23
|
-
This sample is not maintained anymore. Check out its <a href="https://
|
24
|
+
This sample is not maintained anymore. Check out its <a href="https://ckeditor.com/docs/ckeditor4/latest/examples/styles.html">brand new version in CKEditor Examples</a>.
|
24
25
|
</div>
|
25
26
|
<div class="description">
|
26
27
|
<p>
|
@@ -77,7 +78,7 @@ CKEDITOR.replace( 'textarea_id', {
|
|
77
78
|
CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
|
78
79
|
</p>
|
79
80
|
<p id="copy">
|
80
|
-
Copyright © 2003-
|
81
|
+
Copyright © 2003-2020, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico
|
81
82
|
Knabben. All rights reserved.
|
82
83
|
</p>
|
83
84
|
</div>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
Copyright (c) 2003-
|
2
|
+
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
|
3
3
|
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
(function(){function w(a){for(var f=0,p=0,n=0,q,d=a.$.rows.length;n<d;n++){q=a.$.rows[n];for(var e=f=0,b,c=q.cells.length;e<c;e++)b=q.cells[e],f+=b.colSpan;f>p&&(p=f)}return p}function t(a){return function(){var f=this.getValue(),f=!!(CKEDITOR.dialog.validate.integer().call(this,f)&&0<f);f||(alert(a),this.select());return f}}function r(a,f){var p=function(d){return new CKEDITOR.dom.element(d,a.document)},r=a.editable(),q=a.plugins.dialogadvtab;return{title:a.lang.table.title,minWidth:310,minHeight:CKEDITOR.env.ie?
|
@@ -1,18 +1,18 @@
|
|
1
1
|
/*
|
2
|
-
Copyright (c) 2003-
|
2
|
+
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
|
3
3
|
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
|
-
CKEDITOR.dialog.add("cellProperties",function(
|
6
|
-
c
|
7
|
-
"default":"px",items:[[p.widthPx,"px"],[p.widthPc,"%"]],setup:f(function(b){return u(b,a)})}]}}function f(a){return function(b){for(var
|
8
|
-
w="rtl"==
|
9
|
-
|
10
|
-
[e.alignTop,"top"],[e.alignMiddle,"middle"],[e.alignBottom,"bottom"],[
|
11
|
-
label:
|
12
|
-
|
13
|
-
id:"bgColor",label:
|
14
|
-
this.
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
b.
|
5
|
+
CKEDITOR.dialog.add("cellProperties",function(h){function k(a){return{isSpacer:!0,type:"html",html:"\x26nbsp;",requiredContent:a?a:void 0}}function r(){return{type:"vbox",padding:0,children:[]}}function t(a){return{requiredContent:"td{"+a+"}",type:"hbox",widths:["70%","30%"],children:[{type:"text",id:a,width:"100px",label:e[a],validate:n.number(d["invalid"+CKEDITOR.tools.capitalize(a)]),onLoad:function(){var b=this.getDialog().getContentElement("info",a+"Type").getElement(),c=this.getInputElement(),
|
6
|
+
d=c.getAttribute("aria-labelledby");c.setAttribute("aria-labelledby",[d,b.$.id].join(" "))},setup:f(function(b){var c=parseFloat(b.getAttribute(a),10);b=parseFloat(b.getStyle(a),10);if(!isNaN(b))return b;if(!isNaN(c))return c}),commit:function(b){var c=parseFloat(this.getValue(),10),d=this.getDialog().getValueOf("info",a+"Type")||u(b,a);isNaN(c)?b.removeStyle(a):b.setStyle(a,c+d);b.removeAttribute(a)},"default":""},{type:"select",id:a+"Type",label:h.lang.table[a+"Unit"],labelStyle:"visibility:hidden;display:block;width:0;overflow:hidden",
|
7
|
+
"default":"px",items:[[p.widthPx,"px"],[p.widthPc,"%"]],setup:f(function(b){return u(b,a)})}]}}function f(a){return function(b){for(var c=a(b[0]),d=1;d<b.length;d++)if(a(b[d])!==c){c=null;break}"undefined"!=typeof c&&(this.setValue(c),CKEDITOR.env.gecko&&"select"==this.type&&!c&&(this.getInputElement().$.selectedIndex=-1))}}function u(a,b){var c=/^(\d+(?:\.\d+)?)(px|%)$/.exec(a.getStyle(b)||a.getAttribute(b));if(c)return c[2]}function v(a,b){h.getColorFromDialog(function(c){c&&a.getDialog().getContentElement("info",
|
8
|
+
b).setValue(c);a.focus()},a)}function w(a,b,c){(a=a.getValue())?b.setStyle(c,a):b.removeStyle(c);"background-color"==c?b.removeAttribute("bgColor"):"border-color"==c&&b.removeAttribute("borderColor")}var p=h.lang.table,d=p.cell,e=h.lang.common,n=CKEDITOR.dialog.validate,y="rtl"==h.lang.dir,l=h.plugins.colordialog,q=[t("width"),t("height"),k(["td{width}","td{height}"]),{type:"select",id:"wordWrap",requiredContent:"td{white-space}",label:d.wordWrap,"default":"yes",items:[[d.yes,"yes"],[d.no,"no"]],
|
9
|
+
setup:f(function(a){var b=a.getAttribute("noWrap");if("nowrap"==a.getStyle("white-space")||b)return"no"}),commit:function(a){"no"==this.getValue()?a.setStyle("white-space","nowrap"):a.removeStyle("white-space");a.removeAttribute("noWrap")}},k("td{white-space}"),{type:"select",id:"hAlign",requiredContent:"td{text-align}",label:d.hAlign,"default":"",items:[[e.notSet,""],[e.left,"left"],[e.center,"center"],[e.right,"right"],[e.justify,"justify"]],setup:f(function(a){var b=a.getAttribute("align");return a.getStyle("text-align")||
|
10
|
+
b||""}),commit:function(a){var b=this.getValue();b?a.setStyle("text-align",b):a.removeStyle("text-align");a.removeAttribute("align")}},{type:"select",id:"vAlign",requiredContent:"td{vertical-align}",label:d.vAlign,"default":"",items:[[e.notSet,""],[e.alignTop,"top"],[e.alignMiddle,"middle"],[e.alignBottom,"bottom"],[d.alignBaseline,"baseline"]],setup:f(function(a){var b=a.getAttribute("vAlign");a=a.getStyle("vertical-align");switch(a){case "top":case "middle":case "bottom":case "baseline":break;default:a=
|
11
|
+
""}return a||b||""}),commit:function(a){var b=this.getValue();b?a.setStyle("vertical-align",b):a.removeStyle("vertical-align");a.removeAttribute("vAlign")}},k(["td{text-align}","td{vertical-align}"]),{type:"select",id:"cellType",requiredContent:"th",label:d.cellType,"default":"td",items:[[d.data,"td"],[d.header,"th"]],setup:f(function(a){return a.getName()}),commit:function(a){a.renameNode(this.getValue())}},k("th"),{type:"text",id:"rowSpan",requiredContent:"td[rowspan]",label:d.rowSpan,"default":"",
|
12
|
+
validate:n.integer(d.invalidRowSpan),setup:f(function(a){if((a=parseInt(a.getAttribute("rowSpan"),10))&&1!=a)return a}),commit:function(a){var b=parseInt(this.getValue(),10);b&&1!=b?a.setAttribute("rowSpan",this.getValue()):a.removeAttribute("rowSpan")}},{type:"text",id:"colSpan",requiredContent:"td[colspan]",label:d.colSpan,"default":"",validate:n.integer(d.invalidColSpan),setup:f(function(a){if((a=parseInt(a.getAttribute("colSpan"),10))&&1!=a)return a}),commit:function(a){var b=parseInt(this.getValue(),
|
13
|
+
10);b&&1!=b?a.setAttribute("colSpan",this.getValue()):a.removeAttribute("colSpan")}},k(["td[colspan]","td[rowspan]"]),{type:"hbox",padding:0,widths:l?["60%","40%"]:["100%"],requiredContent:"td{background-color}",children:function(){var a=[{type:"text",id:"bgColor",label:d.bgColor,"default":"",setup:f(function(a){var c=a.getAttribute("bgColor");return a.getStyle("background-color")||c}),commit:function(a){w(this,a,"background-color")}}];l&&a.push({type:"button",id:"bgColorChoose","class":"colorChooser",
|
14
|
+
label:d.chooseColor,onLoad:function(){this.getElement().getParent().setStyle("vertical-align","bottom")},onClick:function(){v(this,"bgColor")}});return a}()},{type:"hbox",padding:0,widths:l?["60%","40%"]:["100%"],requiredContent:"td{border-color}",children:function(){var a=[{type:"text",id:"borderColor",label:d.borderColor,"default":"",setup:f(function(a){var c=a.getAttribute("borderColor");return a.getStyle("border-color")||c}),commit:function(a){w(this,a,"border-color")}}];l&&a.push({type:"button",
|
15
|
+
id:"borderColorChoose","class":"colorChooser",label:d.chooseColor,style:(y?"margin-right":"margin-left")+": 10px",onLoad:function(){this.getElement().getParent().setStyle("vertical-align","bottom")},onClick:function(){v(this,"borderColor")}});return a}()}],m=0,x=-1,g=[r()],q=CKEDITOR.tools.array.filter(q,function(a){var b=a.requiredContent;delete a.requiredContent;(b=h.filter.check(b))&&!a.isSpacer&&m++;return b});5<m&&(g=g.concat([k(),r()]));CKEDITOR.tools.array.forEach(q,function(a){a.isSpacer||
|
16
|
+
x++;5<m&&x>=m/2?g[2].children.push(a):g[0].children.push(a)});CKEDITOR.tools.array.forEach(g,function(a){a.isSpacer||(a=a.children,a[a.length-1].isSpacer&&a.pop())});return{title:d.title,minWidth:1===g.length?205:410,minHeight:50,contents:[{id:"info",label:d.title,accessKey:"I",elements:[{type:"hbox",widths:1===g.length?["100%"]:["40%","5%","40%"],children:g}]}],getModel:function(a){return CKEDITOR.plugins.tabletools.getSelectedCells(a.getSelection())},onShow:function(){var a=this.getModel(this.getParentEditor());
|
17
|
+
this.setupContent(a)},onOk:function(){for(var a=this._.editor.getSelection(),b=a.createBookmarks(),c=this.getParentEditor(),d=this.getModel(c),e=0;e<d.length;e++)this.commitContent(d[e]);c.forceNextSelectionCheck();a.selectBookmarks(b);c.selectionChange()},onLoad:function(){var a={};this.foreach(function(b){b.setup&&b.commit&&(b.setup=CKEDITOR.tools.override(b.setup,function(c){return function(){c.apply(this,arguments);a[b.id]=b.getValue()}}),b.commit=CKEDITOR.tools.override(b.commit,function(c){return function(){a[b.id]!==
|
18
|
+
b.getValue()&&c.apply(this,arguments)}}))})}}});
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
Copyright (c) 2003-
|
2
|
+
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
|
3
3
|
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
(function(){CKEDITOR.dialog.add("templates",function(c){function r(a,b){var m=CKEDITOR.dom.element.createFromHtml('\x3ca href\x3d"javascript:void(0)" tabIndex\x3d"-1" role\x3d"option" \x3e\x3cdiv class\x3d"cke_tpl_item"\x3e\x3c/div\x3e\x3c/a\x3e'),d='\x3ctable style\x3d"width:350px;" class\x3d"cke_tpl_preview" role\x3d"presentation"\x3e\x3ctr\x3e';a.image&&b&&(d+='\x3ctd class\x3d"cke_tpl_preview_img"\x3e\x3cimg src\x3d"'+CKEDITOR.getUrl(b+a.image)+'"'+(CKEDITOR.env.ie6Compat?' onload\x3d"this.width\x3dthis.width"':
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
Copyright (c) 2003-
|
2
|
+
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
|
3
3
|
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
CKEDITOR.addTemplates("default",{imagesPath:CKEDITOR.getUrl(CKEDITOR.plugins.getPath("templates")+"templates/images/"),templates:[{title:"Image and Title",image:"template1.gif",description:"One main image with a title and text that surround the image.",html:'\x3ch3\x3e\x3cimg src\x3d" " alt\x3d"" style\x3d"margin-right: 10px" height\x3d"100" width\x3d"100" align\x3d"left" /\x3eType the title here\x3c/h3\x3e\x3cp\x3eType the text here\x3c/p\x3e'},{title:"Strange Template",image:"template2.gif",description:"A template that defines two columns, each one with a title, and some text.",
|
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) Ingo Herbote
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
@@ -0,0 +1,106 @@
|
|
1
|
+
CKEditor-WordCount-Plugin
|
2
|
+
=========================
|
3
|
+
|
4
|
+
WordCount Plugin for CKEditor v4 (or above) that counts the words/characters an shows the word count and/or char count in the footer of the editor.
|
5
|
+
|
6
|
+
![Screenshot](http://www.watchersnet.de/Portals/0/screenshots/dnn/CKEditorWordCountPlugin.png)
|
7
|
+
|
8
|
+
#### Demo
|
9
|
+
|
10
|
+
http://w8tcha.github.com/CKEditor-WordCount-Plugin/
|
11
|
+
|
12
|
+
DISCLAIMER: This is a forked Version, i can not find the original Author anymore if anyone knows the original Author please contact me and i can include the Author in the Copyright Notices.
|
13
|
+
|
14
|
+
#### License
|
15
|
+
|
16
|
+
Licensed under the terms of the MIT License.
|
17
|
+
|
18
|
+
#### Installation
|
19
|
+
|
20
|
+
If building a new editor using the CKBuilder from http://ckeditor.com/, there is no need to follow numbers steps below. If adding the Word Count & Char Count plugin to an already established CKEditor, follow the numbered steps below.
|
21
|
+
|
22
|
+
1. Download the Word Count & Char Count plugin from http://ckeditor.com/addon/wordcount or https://github.com/w8tcha/CKEditor-WordCount-Plugin. This will download a folder named **wordcount_*version*.zip** or **CKEditor-WordCount-Plugin-master.zip** to your Downloads folder.
|
23
|
+
2. Download the Notification plugin from http://ckeditor.com/addon/notification. This will download a folder named **notification_*version*.zip** to your Downloads folder.
|
24
|
+
3. Extract the .zip folders for both the Word Count & Char Count and Notification plugin. After extraction, you should have a folder named **wordcount** and a folder named **notification**.
|
25
|
+
4. Move the wordcount folder to /web/server/root/ckeditor/plugins/. Move the notification folder to /web/server/root/ckeditor/plugins/.
|
26
|
+
5. Add the following line of text to the config.js file, which is located at /web/server/root/ckeditor/.
|
27
|
+
|
28
|
+
```javascript
|
29
|
+
config.extraPlugins = 'wordcount,notification';
|
30
|
+
```
|
31
|
+
|
32
|
+
Below is an example of what your config.js file might look like after adding config.extraPlugins = 'wordcount,notification';
|
33
|
+
|
34
|
+
```javascript
|
35
|
+
CKEDITOR.editorConfig = function( config ) {
|
36
|
+
config.extraPlugins = 'wordcount,notification';
|
37
|
+
config.toolbar [
|
38
|
+
et cetera . . .
|
39
|
+
];
|
40
|
+
};
|
41
|
+
```
|
42
|
+
|
43
|
+
There now should be text in the bottom right-hand corner of your CKEditor which counts the number of Paragraphs and number of Words in your CKEditor.
|
44
|
+
|
45
|
+
To modify the behavior of the Word Count & Char Count text at the bottom right-hand corner of your CKEditor, add the following text to your config.js file located at /web/server/root/ckeditor/config.js.
|
46
|
+
|
47
|
+
````js
|
48
|
+
config.wordcount = {
|
49
|
+
|
50
|
+
// Whether or not you want to show the Paragraphs Count
|
51
|
+
showParagraphs: true,
|
52
|
+
|
53
|
+
// Whether or not you want to show the Word Count
|
54
|
+
showWordCount: true,
|
55
|
+
|
56
|
+
// Whether or not you want to show the Char Count
|
57
|
+
showCharCount: false,
|
58
|
+
|
59
|
+
// Whether or not you want to count Spaces as Chars
|
60
|
+
countSpacesAsChars: false,
|
61
|
+
|
62
|
+
// Whether or not to include Html chars in the Char Count
|
63
|
+
countHTML: false,
|
64
|
+
|
65
|
+
// Whether or not to include Line Breaks in the Char Count
|
66
|
+
countLineBreaks: false,
|
67
|
+
|
68
|
+
// Maximum allowed Word Count, -1 is default for unlimited
|
69
|
+
maxWordCount: -1,
|
70
|
+
|
71
|
+
// Maximum allowed Char Count, -1 is default for unlimited
|
72
|
+
maxCharCount: -1,
|
73
|
+
|
74
|
+
// Maximum allowed Paragraphs Count, -1 is default for unlimited
|
75
|
+
maxParagraphs: -1,
|
76
|
+
|
77
|
+
// How long to show the 'paste' warning, 0 is default for not auto-closing the notification
|
78
|
+
pasteWarningDuration: 0,
|
79
|
+
|
80
|
+
|
81
|
+
// Add filter to add or remove element before counting (see CKEDITOR.htmlParser.filter), Default value : null (no filter)
|
82
|
+
filter: new CKEDITOR.htmlParser.filter({
|
83
|
+
elements: {
|
84
|
+
div: function( element ) {
|
85
|
+
if(element.attributes.class == 'mediaembed') {
|
86
|
+
return false;
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
})
|
91
|
+
};
|
92
|
+
````
|
93
|
+
|
94
|
+
**Note:** If you plan to change some of the JavaScript, you probably will not want to use the CKBuilder, because this will place the JavaScript of the Word Count & Char Count plugin in the ckeditor.js file located at /web/server/root/ckeditor/ckeditor.js. The JavaScript for the Word Count & Char Count plugin in the ckeditor.js file is different than the JavaScript used when manually adding the Word Count & Char Count plugin. When manually adding the Word Count & Char Count plugin, the JavaScript will be in the plugin.js file located at
|
95
|
+
|
96
|
+
---
|
97
|
+
|
98
|
+
If you want to query the current wordcount you can do it via
|
99
|
+
|
100
|
+
```javascript
|
101
|
+
// get the word count
|
102
|
+
CKEDITOR.instances.editor1.wordCount.wordCount
|
103
|
+
|
104
|
+
// get the char count
|
105
|
+
CKEDITOR.instances.editor1.wordCount.charCount
|
106
|
+
```
|
@@ -0,0 +1,15 @@
|
|
1
|
+
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
2
|
+
Version 2, December 2004
|
3
|
+
|
4
|
+
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
|
5
|
+
|
6
|
+
Everyone is permitted to copy and distribute verbatim or modified
|
7
|
+
copies of this license document, and changing it is allowed as long
|
8
|
+
as the name is changed.
|
9
|
+
|
10
|
+
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
11
|
+
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
12
|
+
|
13
|
+
0. You just DO WHAT THE FUCK YOU WANT TO.
|
14
|
+
|
15
|
+
|
@@ -0,0 +1,156 @@
|
|
1
|
+
Youtube Plugin for CKEditor 4
|
2
|
+
=============================
|
3
|
+
|
4
|
+
Copyright © 2017 Jonnas Fonini <jonnasfonini@gmail.com>.
|
5
|
+
|
6
|
+
This work is free. You can redistribute it and/or modify it under the
|
7
|
+
terms of the Do What The Fuck You Want To Public License, Version 2,
|
8
|
+
as published by Sam Hocevar. See the LICENSE file for more details.
|
9
|
+
|
10
|
+
This plugin allow you to insert Youtube videos using embed code or just the video URL.
|
11
|
+
|
12
|
+
## Installation
|
13
|
+
|
14
|
+
### With NPM
|
15
|
+
|
16
|
+
1. npm install ckeditor-youtube-plugin
|
17
|
+
|
18
|
+
2. Add the plugin to CKEditor (config.js):
|
19
|
+
|
20
|
+
````js
|
21
|
+
CKEDITOR.plugins.addExternal('youtube', '../node_modules/ckeditor-youtube-plugin/youtube/');
|
22
|
+
|
23
|
+
config.extraPlugins = 'youtube';
|
24
|
+
````
|
25
|
+
|
26
|
+
You may need to adjust the plugin path. The example is assuming that you have the following directory structure:
|
27
|
+
|
28
|
+
```
|
29
|
+
project
|
30
|
+
└───ckeditor
|
31
|
+
│ └───config.js
|
32
|
+
└───node_modules
|
33
|
+
└───ckeditor-youtube-plugin
|
34
|
+
```
|
35
|
+
|
36
|
+
### Manual
|
37
|
+
|
38
|
+
Follow these steps:
|
39
|
+
|
40
|
+
1. Download the latest version of the plugin from Github.
|
41
|
+
2. Extract the downloaded file into the CKEditor's **plugins** folder.
|
42
|
+
3. Enable the plugin by changing or adding the extraPlugins line in your configuration (config.js):
|
43
|
+
|
44
|
+
````js
|
45
|
+
config.extraPlugins = 'youtube';
|
46
|
+
````
|
47
|
+
|
48
|
+
## Configuration
|
49
|
+
The default options can be overriden on config.js.
|
50
|
+
|
51
|
+
Video width:
|
52
|
+
|
53
|
+
```js
|
54
|
+
config.youtube_width = '640';
|
55
|
+
```
|
56
|
+
|
57
|
+
Video height:
|
58
|
+
|
59
|
+
```js
|
60
|
+
config.youtube_height = '480';
|
61
|
+
```
|
62
|
+
|
63
|
+
Make responsive (ignore width and height, fit to width):
|
64
|
+
|
65
|
+
```js
|
66
|
+
config.youtube_responsive = true;
|
67
|
+
```
|
68
|
+
|
69
|
+
Show related videos:
|
70
|
+
|
71
|
+
```js
|
72
|
+
config.youtube_related = true;
|
73
|
+
```
|
74
|
+
|
75
|
+
Use old embed code:
|
76
|
+
|
77
|
+
```js
|
78
|
+
config.youtube_older = false;
|
79
|
+
```
|
80
|
+
|
81
|
+
Enable privacy-enhanced mode:
|
82
|
+
|
83
|
+
```js
|
84
|
+
config.youtube_privacy = false;
|
85
|
+
```
|
86
|
+
|
87
|
+
Start video automatically:
|
88
|
+
|
89
|
+
```js
|
90
|
+
config.youtube_autoplay = false;
|
91
|
+
```
|
92
|
+
|
93
|
+
Show player controls:
|
94
|
+
|
95
|
+
```js
|
96
|
+
config.youtube_controls = true;
|
97
|
+
```
|
98
|
+
|
99
|
+
Disable the change of settings. The elements on the list will be disabled (but still visible).
|
100
|
+
See the available element list below.
|
101
|
+
|
102
|
+
```js
|
103
|
+
config.youtube_disabled_fields = ['txtEmbed', 'chkAutoplay'];
|
104
|
+
```
|
105
|
+
|
106
|
+
#### List of UI elements
|
107
|
+
|
108
|
+
* txtEmbed
|
109
|
+
* txtUrl
|
110
|
+
* txtWidth
|
111
|
+
* txtHeight
|
112
|
+
* chkResponsive
|
113
|
+
* chkNoEmbed
|
114
|
+
* chkRelated
|
115
|
+
* chkOlderCode
|
116
|
+
* chkPrivacy
|
117
|
+
* chkAutoplay
|
118
|
+
* txtStartAt
|
119
|
+
* chkControls
|
120
|
+
|
121
|
+
|
122
|
+
## How to use
|
123
|
+
If everything is ok, a Youtube icon should appear on the CKEditor toolbar. Click it,
|
124
|
+
paste your embed code or video URL and the video will be inserted.
|
125
|
+
|
126
|
+
## Translators
|
127
|
+
Thanks to those who helped translate the plugin
|
128
|
+
|
129
|
+
* Eyed Farra (ar)
|
130
|
+
* N. Petkov (bg)
|
131
|
+
* Lukáš Říha (cs)
|
132
|
+
* Sven Jansen (de)
|
133
|
+
* Dimitris Kotsakis (el)
|
134
|
+
* Victor (pollin14) (es)
|
135
|
+
* Kevin Rudissaar (et)
|
136
|
+
* Asier Iturralde Sarasola (eu)
|
137
|
+
* Jami Pietilä (fi)
|
138
|
+
* BiomanRouge (fr)
|
139
|
+
* Moshe Simantov (he)
|
140
|
+
* Karmacsi Gábor (hu)
|
141
|
+
* Francesco Zanoni (it)
|
142
|
+
* Yayoshi Nobuhide (ja)
|
143
|
+
* MinSoo Kim (ko)
|
144
|
+
* Holger Lockertsen (nb, nn)
|
145
|
+
* Patrick van Lier (nl)
|
146
|
+
* Michał Zalewski, Wirek (pl)
|
147
|
+
* Samuel Diogo (pt-br)
|
148
|
+
* Alexander Ustimenko (ru)
|
149
|
+
* ivanbarlog (sk)
|
150
|
+
* Çağdaş Yiğit (tr)
|
151
|
+
* Mykola Pukhalskyi (uk)
|
152
|
+
* Vu Thao (vi)
|
153
|
+
* trowa (zh)
|
154
|
+
|
155
|
+
|
156
|
+
[![Licensed under the WTFPL](http://www.wtfpl.net/wp-content/uploads/2012/12/wtfpl-badge-2.png "Licensed under the WTFPL")](http://www.wtfpl.net)
|