@sd-angular/core 0.0.1049 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/package.json +2 -3
- package/api/sd-angular-core-api.metadata.json +1 -1
- package/assets/scss/sd-core.scss +0 -2
- package/bundles/sd-angular-core-api.umd.js +3 -25
- package/bundles/sd-angular-core-api.umd.js.map +1 -1
- package/bundles/sd-angular-core-api.umd.min.js +1 -1
- package/bundles/sd-angular-core-api.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-chart.umd.js +1 -1
- package/bundles/sd-angular-core-chart.umd.min.js +1 -1
- package/bundles/sd-angular-core-chart.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-date-range.umd.js +1 -1
- package/bundles/sd-angular-core-date-range.umd.min.js +1 -1
- package/bundles/sd-angular-core-date-time.umd.js +1 -1
- package/bundles/sd-angular-core-date-time.umd.min.js +2 -2
- package/bundles/sd-angular-core-editor.umd.js +2 -2
- package/bundles/sd-angular-core-editor.umd.js.map +1 -1
- package/bundles/sd-angular-core-editor.umd.min.js +2 -2
- package/bundles/sd-angular-core-editor.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-export.umd.js +5 -24
- package/bundles/sd-angular-core-export.umd.js.map +1 -1
- package/bundles/sd-angular-core-export.umd.min.js +1 -1
- package/bundles/sd-angular-core-export.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-filter.umd.js +1 -1
- package/bundles/sd-angular-core-filter.umd.min.js +1 -1
- package/bundles/sd-angular-core-filter.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-grid-material.umd.js +1 -1
- package/bundles/sd-angular-core-grid-material.umd.min.js +1 -1
- package/bundles/sd-angular-core-grid-material.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-grid.umd.js +1 -1
- package/bundles/sd-angular-core-grid.umd.min.js +1 -1
- package/bundles/sd-angular-core-grid.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-input-currency.umd.js +1 -1
- package/bundles/sd-angular-core-input-currency.umd.min.js +1 -1
- package/bundles/sd-angular-core-konva.umd.js +1 -1
- package/bundles/sd-angular-core-konva.umd.min.js +1 -1
- package/bundles/sd-angular-core-notify.umd.js +1 -1
- package/bundles/sd-angular-core-notify.umd.min.js +1 -1
- package/bundles/sd-angular-core-notify.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-upload-excel.umd.js +1 -1
- package/bundles/sd-angular-core-upload-excel.umd.min.js +1 -1
- package/bundles/sd-angular-core-upload-excel.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-upload-file.umd.js +1 -1
- package/bundles/sd-angular-core-upload-file.umd.min.js +1 -1
- package/bundles/sd-angular-core-utility.umd.js +1 -1
- package/bundles/sd-angular-core-utility.umd.min.js +1 -1
- package/bundles/sd-angular-core-utility.umd.min.js.map +1 -1
- package/bundles/sd-angular-core.umd.js +6 -734
- package/bundles/sd-angular-core.umd.js.map +1 -1
- package/bundles/sd-angular-core.umd.min.js +1 -1
- package/bundles/sd-angular-core.umd.min.js.map +1 -1
- package/esm2015/api/src/lib/api.service.js +2 -2
- package/esm2015/api/src/lib/http.service.js +1 -1
- package/esm2015/editor/src/lib/editor.component.js +2 -2
- package/esm2015/export/src/lib/export.service.js +2 -2
- package/esm2015/lib/core.module.js +4 -36
- package/esm2015/public-api.js +1 -10
- package/fesm2015/sd-angular-core-api.js +2 -3
- package/fesm2015/sd-angular-core-api.js.map +1 -1
- package/fesm2015/sd-angular-core-editor.js +1 -1
- package/fesm2015/sd-angular-core-editor.js.map +1 -1
- package/fesm2015/sd-angular-core-export.js +1 -1
- package/fesm2015/sd-angular-core-export.js.map +1 -1
- package/fesm2015/sd-angular-core.js +5 -367
- package/fesm2015/sd-angular-core.js.map +1 -1
- package/package.json +14 -19
- package/public-api.d.ts +0 -7
- package/sd-angular-core-1.0.1.tgz +0 -0
- package/sd-angular-core.metadata.json +1 -1
- package/assets/ckeditor/CHANGES.md +0 -1703
- package/assets/ckeditor/LICENSE.md +0 -1420
- package/assets/ckeditor/README.md +0 -39
- package/assets/ckeditor/adapters/jquery.js +0 -10
- package/assets/ckeditor/build-config.js +0 -123
- package/assets/ckeditor/ckeditor.js +0 -27038
- package/assets/ckeditor/config.js +0 -10
- package/assets/ckeditor/contents.css +0 -209
- package/assets/ckeditor/lang/en.js +0 -5
- package/assets/ckeditor/lang/vi.js +0 -5
- package/assets/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +0 -10
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +0 -25
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/af.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/az.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +0 -13
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/de-ch.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +0 -13
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +0 -13
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/en-au.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/en-gb.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +0 -13
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/es-mx.js +0 -13
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +0 -13
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/eu.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/fo.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +0 -13
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/gl.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/id.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +0 -13
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +0 -9
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js +0 -10
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/oc.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +0 -13
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +0 -13
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/si.js +0 -10
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/tt.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +0 -9
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js +0 -9
- package/assets/ckeditor/plugins/about/dialogs/about.js +0 -8
- package/assets/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
- package/assets/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- package/assets/ckeditor/plugins/clipboard/dialogs/paste.js +0 -11
- package/assets/ckeditor/plugins/colordialog/dialogs/colordialog.css +0 -20
- package/assets/ckeditor/plugins/colordialog/dialogs/colordialog.js +0 -14
- package/assets/ckeditor/plugins/copyformatting/cursors/cursor-disabled.svg +0 -25
- package/assets/ckeditor/plugins/copyformatting/cursors/cursor.svg +0 -14
- package/assets/ckeditor/plugins/copyformatting/styles/copyformatting.css +0 -45
- package/assets/ckeditor/plugins/dialog/dialogDefinition.js +0 -4
- package/assets/ckeditor/plugins/div/dialogs/div.js +0 -9
- package/assets/ckeditor/plugins/find/dialogs/find.js +0 -25
- package/assets/ckeditor/plugins/flash/dialogs/flash.js +0 -24
- package/assets/ckeditor/plugins/flash/images/placeholder.png +0 -0
- package/assets/ckeditor/plugins/forms/dialogs/button.js +0 -8
- package/assets/ckeditor/plugins/forms/dialogs/checkbox.js +0 -9
- package/assets/ckeditor/plugins/forms/dialogs/form.js +0 -8
- package/assets/ckeditor/plugins/forms/dialogs/hiddenfield.js +0 -7
- package/assets/ckeditor/plugins/forms/dialogs/radio.js +0 -9
- package/assets/ckeditor/plugins/forms/dialogs/select.js +0 -21
- package/assets/ckeditor/plugins/forms/dialogs/textarea.js +0 -8
- package/assets/ckeditor/plugins/forms/dialogs/textfield.js +0 -11
- package/assets/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
- package/assets/ckeditor/plugins/icons.png +0 -0
- package/assets/ckeditor/plugins/icons_hidpi.png +0 -0
- package/assets/ckeditor/plugins/iframe/dialogs/iframe.js +0 -10
- package/assets/ckeditor/plugins/iframe/images/placeholder.png +0 -0
- package/assets/ckeditor/plugins/image/dialogs/image.js +0 -44
- package/assets/ckeditor/plugins/image/images/noimage.png +0 -0
- package/assets/ckeditor/plugins/link/dialogs/anchor.js +0 -8
- package/assets/ckeditor/plugins/link/dialogs/link.js +0 -30
- package/assets/ckeditor/plugins/link/images/anchor.png +0 -0
- package/assets/ckeditor/plugins/link/images/hidpi/anchor.png +0 -0
- package/assets/ckeditor/plugins/liststyle/dialogs/liststyle.js +0 -10
- package/assets/ckeditor/plugins/magicline/images/hidpi/icon-rtl.png +0 -0
- package/assets/ckeditor/plugins/magicline/images/hidpi/icon.png +0 -0
- package/assets/ckeditor/plugins/magicline/images/icon-rtl.png +0 -0
- package/assets/ckeditor/plugins/magicline/images/icon.png +0 -0
- package/assets/ckeditor/plugins/notification/lang/az.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/bg.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/ca.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/cs.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/da.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/de-ch.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/de.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/en-au.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/en.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/eo.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/es-mx.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/es.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/et.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/eu.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/fa.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/fr.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/gl.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/hr.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/hu.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/id.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/it.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/ja.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/km.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/ko.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/ku.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/lt.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/lv.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/nb.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/nl.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/oc.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/pl.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/pt-br.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/pt.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/ro.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/ru.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/sk.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/sq.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/sr-latn.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/sr.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/sv.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/tr.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/ug.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/uk.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/zh-cn.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/zh.js +0 -7
- package/assets/ckeditor/plugins/notification/plugin.js +0 -933
- package/assets/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
- package/assets/ckeditor/plugins/pastefromword/filter/default.js +0 -55
- package/assets/ckeditor/plugins/preview/preview.html +0 -13
- package/assets/ckeditor/plugins/scayt/CHANGELOG.md +0 -20
- package/assets/ckeditor/plugins/scayt/LICENSE.md +0 -28
- package/assets/ckeditor/plugins/scayt/README.md +0 -81
- package/assets/ckeditor/plugins/scayt/dialogs/dialog.css +0 -23
- package/assets/ckeditor/plugins/scayt/dialogs/options.js +0 -32
- package/assets/ckeditor/plugins/scayt/dialogs/toolbar.css +0 -71
- package/assets/ckeditor/plugins/scayt/skins/moono-lisa/scayt.css +0 -25
- package/assets/ckeditor/plugins/showblocks/images/block_address.png +0 -0
- package/assets/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
- package/assets/ckeditor/plugins/showblocks/images/block_div.png +0 -0
- package/assets/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
- package/assets/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
- package/assets/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
- package/assets/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
- package/assets/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
- package/assets/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
- package/assets/ckeditor/plugins/showblocks/images/block_p.png +0 -0
- package/assets/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
- package/assets/ckeditor/plugins/smiley/dialogs/smiley.js +0 -11
- package/assets/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/angel_smile.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/angry_smile.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/broken_heart.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/confused_smile.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/cry_smile.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/devil_smile.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/embarrassed_smile.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/embarrassed_smile.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/envelope.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/envelope.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/heart.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/heart.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/kiss.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/kiss.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/lightbulb.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/omg_smile.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/regular_smile.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/sad_smile.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/shades_smile.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/teeth_smile.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/thumbs_down.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/thumbs_up.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/tongue_smile.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/tongue_smile.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/wink_smile.png +0 -0
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt +0 -20
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/af.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/ar.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/az.js +0 -10
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/bg.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/ca.js +0 -14
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/cs.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/cy.js +0 -14
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/da.js +0 -11
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/de-ch.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/de.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/el.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/en-au.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/en-ca.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/en-gb.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/en.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/eo.js +0 -12
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/es-mx.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/es.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/et.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/eu.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/fa.js +0 -12
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/fi.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js +0 -10
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/fr.js +0 -12
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/gl.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/he.js +0 -12
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/hr.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/hu.js +0 -12
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/id.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/it.js +0 -14
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/ja.js +0 -9
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/km.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/ko.js +0 -10
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/ku.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/lt.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/lv.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/nb.js +0 -11
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/nl.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/no.js +0 -11
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/oc.js +0 -12
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/pl.js +0 -12
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +0 -11
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/pt.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/ro.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/ru.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/si.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/sk.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/sl.js +0 -12
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/sq.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/sr-latn.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/sr.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/sv.js +0 -11
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/th.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/tr.js +0 -12
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/tt.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/ug.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/uk.js +0 -12
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/vi.js +0 -14
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +0 -9
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/zh.js +0 -9
- package/assets/ckeditor/plugins/specialchar/dialogs/specialchar.js +0 -14
- package/assets/ckeditor/plugins/table/dialogs/table.js +0 -21
- package/assets/ckeditor/plugins/tableselection/styles/tableselection.css +0 -36
- package/assets/ckeditor/plugins/tabletools/dialogs/tableCell.js +0 -19
- package/assets/ckeditor/plugins/templates/dialogs/templates.css +0 -84
- package/assets/ckeditor/plugins/templates/dialogs/templates.js +0 -10
- package/assets/ckeditor/plugins/templates/templates/default.js +0 -7
- package/assets/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
- package/assets/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
- package/assets/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
- package/assets/ckeditor/plugins/videoembed/.gitattributes +0 -17
- package/assets/ckeditor/plugins/videoembed/README.md +0 -35
- package/assets/ckeditor/plugins/videoembed/dialogs/videoembedDialog.js +0 -114
- package/assets/ckeditor/plugins/videoembed/icons/videoembed.png +0 -0
- package/assets/ckeditor/plugins/videoembed/lang/en.js +0 -8
- package/assets/ckeditor/plugins/videoembed/lang/fr.js +0 -8
- package/assets/ckeditor/plugins/videoembed/plugin.js +0 -27
- package/assets/ckeditor/plugins/widget/images/handle.png +0 -0
- package/assets/ckeditor/plugins/wordcount/css/wordcount.css +0 -3
- package/assets/ckeditor/plugins/wordcount/lang/ar.js +0 -12
- package/assets/ckeditor/plugins/wordcount/lang/bg.js +0 -17
- package/assets/ckeditor/plugins/wordcount/lang/ca.js +0 -14
- package/assets/ckeditor/plugins/wordcount/lang/cs.js +0 -15
- package/assets/ckeditor/plugins/wordcount/lang/da.js +0 -14
- package/assets/ckeditor/plugins/wordcount/lang/de.js +0 -14
- package/assets/ckeditor/plugins/wordcount/lang/el.js +0 -14
- package/assets/ckeditor/plugins/wordcount/lang/en.js +0 -17
- package/assets/ckeditor/plugins/wordcount/lang/es.js +0 -14
- package/assets/ckeditor/plugins/wordcount/lang/eu.js +0 -17
- package/assets/ckeditor/plugins/wordcount/lang/fa.js +0 -13
- package/assets/ckeditor/plugins/wordcount/lang/fi.js +0 -15
- package/assets/ckeditor/plugins/wordcount/lang/fr.js +0 -12
- package/assets/ckeditor/plugins/wordcount/lang/he.js +0 -14
- package/assets/ckeditor/plugins/wordcount/lang/hr.js +0 -14
- package/assets/ckeditor/plugins/wordcount/lang/hu.js +0 -14
- package/assets/ckeditor/plugins/wordcount/lang/it.js +0 -15
- package/assets/ckeditor/plugins/wordcount/lang/ja.js +0 -14
- package/assets/ckeditor/plugins/wordcount/lang/ko.js +0 -16
- package/assets/ckeditor/plugins/wordcount/lang/nl.js +0 -14
- package/assets/ckeditor/plugins/wordcount/lang/no.js +0 -11
- package/assets/ckeditor/plugins/wordcount/lang/pl.js +0 -14
- package/assets/ckeditor/plugins/wordcount/lang/pt-br.js +0 -14
- package/assets/ckeditor/plugins/wordcount/lang/pt.js +0 -10
- package/assets/ckeditor/plugins/wordcount/lang/ro.js +0 -15
- package/assets/ckeditor/plugins/wordcount/lang/ru.js +0 -14
- package/assets/ckeditor/plugins/wordcount/lang/sk.js +0 -15
- package/assets/ckeditor/plugins/wordcount/lang/sv.js +0 -15
- package/assets/ckeditor/plugins/wordcount/lang/tr.js +0 -14
- package/assets/ckeditor/plugins/wordcount/lang/uk.js +0 -17
- package/assets/ckeditor/plugins/wordcount/lang/zh-cn.js +0 -17
- package/assets/ckeditor/plugins/wordcount/lang/zh.js +0 -17
- package/assets/ckeditor/plugins/wordcount/plugin.js +0 -639
- package/assets/ckeditor/plugins/wordcount/samples/maxParagraphs.html +0 -26
- package/assets/ckeditor/plugins/wordcount/samples/wordcount.html +0 -61
- package/assets/ckeditor/plugins/wordcount/samples/wordcountWithMaxCount.html +0 -110
- package/assets/ckeditor/plugins/wsc/LICENSE.md +0 -28
- package/assets/ckeditor/plugins/wsc/README.md +0 -80
- package/assets/ckeditor/plugins/wsc/dialogs/ciframe.html +0 -66
- package/assets/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +0 -52
- package/assets/ckeditor/plugins/wsc/dialogs/wsc.css +0 -82
- package/assets/ckeditor/plugins/wsc/dialogs/wsc.js +0 -91
- package/assets/ckeditor/plugins/wsc/dialogs/wsc_ie.js +0 -11
- package/assets/ckeditor/plugins/wsc/skins/moono-lisa/wsc.css +0 -43
- package/assets/ckeditor/samples/css/samples.css +0 -1637
- package/assets/ckeditor/samples/img/github-top.png +0 -0
- package/assets/ckeditor/samples/img/header-bg.png +0 -0
- package/assets/ckeditor/samples/img/header-separator.png +0 -0
- package/assets/ckeditor/samples/img/logo.png +0 -0
- package/assets/ckeditor/samples/img/logo.svg +0 -13
- package/assets/ckeditor/samples/img/navigation-tip.png +0 -0
- package/assets/ckeditor/samples/index.html +0 -128
- package/assets/ckeditor/samples/js/sample.js +0 -53
- package/assets/ckeditor/samples/js/sf.js +0 -17
- package/assets/ckeditor/samples/old/ajax.html +0 -85
- package/assets/ckeditor/samples/old/api.html +0 -210
- package/assets/ckeditor/samples/old/appendto.html +0 -59
- package/assets/ckeditor/samples/old/assets/inlineall/logo.png +0 -0
- package/assets/ckeditor/samples/old/assets/outputxhtml/outputxhtml.css +0 -204
- package/assets/ckeditor/samples/old/assets/posteddata.php +0 -59
- package/assets/ckeditor/samples/old/assets/sample.jpg +0 -0
- package/assets/ckeditor/samples/old/assets/uilanguages/languages.js +0 -7
- package/assets/ckeditor/samples/old/datafiltering.html +0 -508
- package/assets/ckeditor/samples/old/dialog/assets/my_dialog.js +0 -48
- package/assets/ckeditor/samples/old/dialog/dialog.html +0 -190
- package/assets/ckeditor/samples/old/divarea/divarea.html +0 -64
- package/assets/ckeditor/samples/old/divreplace.html +0 -144
- package/assets/ckeditor/samples/old/enterkey/enterkey.html +0 -106
- package/assets/ckeditor/samples/old/htmlwriter/assets/outputforflash/outputforflash.fla +0 -0
- package/assets/ckeditor/samples/old/htmlwriter/assets/outputforflash/outputforflash.swf +0 -0
- package/assets/ckeditor/samples/old/htmlwriter/assets/outputforflash/swfobject.js +0 -19
- package/assets/ckeditor/samples/old/htmlwriter/outputforflash.html +0 -283
- package/assets/ckeditor/samples/old/htmlwriter/outputhtml.html +0 -224
- package/assets/ckeditor/samples/old/index.html +0 -134
- package/assets/ckeditor/samples/old/inlineall.html +0 -314
- package/assets/ckeditor/samples/old/inlinebycode.html +0 -124
- package/assets/ckeditor/samples/old/inlinetextarea.html +0 -113
- package/assets/ckeditor/samples/old/jquery.html +0 -103
- package/assets/ckeditor/samples/old/magicline/magicline.html +0 -209
- package/assets/ckeditor/samples/old/readonly.html +0 -76
- package/assets/ckeditor/samples/old/replacebyclass.html +0 -60
- package/assets/ckeditor/samples/old/replacebycode.html +0 -59
- package/assets/ckeditor/samples/old/sample.css +0 -357
- package/assets/ckeditor/samples/old/sample.js +0 -50
- package/assets/ckeditor/samples/old/sample_posteddata.php +0 -16
- package/assets/ckeditor/samples/old/tabindex.html +0 -78
- package/assets/ckeditor/samples/old/toolbar/toolbar.html +0 -235
- package/assets/ckeditor/samples/old/uicolor.html +0 -72
- package/assets/ckeditor/samples/old/uilanguages.html +0 -122
- package/assets/ckeditor/samples/old/wysiwygarea/fullpage.html +0 -80
- package/assets/ckeditor/samples/old/xhtmlstyle.html +0 -234
- package/assets/ckeditor/samples/toolbarconfigurator/css/fontello.css +0 -55
- package/assets/ckeditor/samples/toolbarconfigurator/font/LICENSE.txt +0 -10
- package/assets/ckeditor/samples/toolbarconfigurator/font/config.json +0 -28
- package/assets/ckeditor/samples/toolbarconfigurator/font/fontello.eot +0 -0
- package/assets/ckeditor/samples/toolbarconfigurator/font/fontello.svg +0 -14
- package/assets/ckeditor/samples/toolbarconfigurator/font/fontello.ttf +0 -0
- package/assets/ckeditor/samples/toolbarconfigurator/font/fontello.woff +0 -0
- package/assets/ckeditor/samples/toolbarconfigurator/index.html +0 -446
- package/assets/ckeditor/samples/toolbarconfigurator/js/abstracttoolbarmodifier.js +0 -13
- package/assets/ckeditor/samples/toolbarconfigurator/js/fulltoolbareditor.js +0 -9
- package/assets/ckeditor/samples/toolbarconfigurator/js/toolbarmodifier.js +0 -33
- package/assets/ckeditor/samples/toolbarconfigurator/js/toolbartextmodifier.js +0 -14
- package/assets/ckeditor/samples/toolbarconfigurator/lib/codemirror/LICENSE +0 -19
- package/assets/ckeditor/samples/toolbarconfigurator/lib/codemirror/codemirror.css +0 -325
- package/assets/ckeditor/samples/toolbarconfigurator/lib/codemirror/codemirror.js +0 -288
- package/assets/ckeditor/samples/toolbarconfigurator/lib/codemirror/javascript.js +0 -25
- package/assets/ckeditor/samples/toolbarconfigurator/lib/codemirror/neo.css +0 -36
- package/assets/ckeditor/samples/toolbarconfigurator/lib/codemirror/show-hint.css +0 -38
- package/assets/ckeditor/samples/toolbarconfigurator/lib/codemirror/show-hint.js +0 -16
- package/assets/ckeditor/skins/office2013/dialog.css +0 -5
- package/assets/ckeditor/skins/office2013/editor.css +0 -5
- package/assets/ckeditor/skins/office2013/icons.png +0 -0
- package/assets/ckeditor/skins/office2013/icons_hidpi.png +0 -0
- package/assets/ckeditor/skins/office2013/images/arrow.png +0 -0
- package/assets/ckeditor/skins/office2013/images/close.png +0 -0
- package/assets/ckeditor/skins/office2013/images/hidpi/close.png +0 -0
- package/assets/ckeditor/skins/office2013/images/hidpi/lock-open.png +0 -0
- package/assets/ckeditor/skins/office2013/images/hidpi/lock.png +0 -0
- package/assets/ckeditor/skins/office2013/images/hidpi/refresh.png +0 -0
- package/assets/ckeditor/skins/office2013/images/lock-open.png +0 -0
- package/assets/ckeditor/skins/office2013/images/lock.png +0 -0
- package/assets/ckeditor/skins/office2013/images/refresh.png +0 -0
- package/assets/ckeditor/styles.js +0 -137
- package/bundles/sd-angular-core-modal-custom.umd.js +0 -487
- package/bundles/sd-angular-core-modal-custom.umd.js.map +0 -1
- package/bundles/sd-angular-core-modal-custom.umd.min.js +0 -16
- package/bundles/sd-angular-core-modal-custom.umd.min.js.map +0 -1
- package/esm2015/lib/controls/ckeditor-control/ckeditor-control.component.js +0 -53
- package/esm2015/lib/controls/date-picker-control/date-picker-control.component.js +0 -156
- package/esm2015/lib/pipes/sd-date.pipe.js +0 -15
- package/esm2015/lib/validators/chip-min-item.validator.js +0 -26
- package/esm2015/lib/validators/custom.validator.js +0 -39
- package/esm2015/lib/validators/max-date.validator.js +0 -30
- package/esm2015/lib/validators/min-date.validator.js +0 -30
- package/esm2015/modal-custom/index.js +0 -2
- package/esm2015/modal-custom/sd-angular-core-modal-custom.js +0 -5
- package/esm2015/modal-custom/src/lib/modal-custom/modal-custom.component.js +0 -123
- package/esm2015/modal-custom/src/lib/modal-custom.module.js +0 -30
- package/esm2015/modal-custom/src/public-api.js +0 -6
- package/fesm2015/sd-angular-core-modal-custom.js +0 -161
- package/fesm2015/sd-angular-core-modal-custom.js.map +0 -1
- package/lib/controls/ckeditor-control/ckeditor-control.component.d.ts +0 -20
- package/lib/controls/date-picker-control/date-picker-control.component.d.ts +0 -36
- package/lib/pipes/sd-date.pipe.d.ts +0 -4
- package/lib/validators/chip-min-item.validator.d.ts +0 -5
- package/lib/validators/custom.validator.d.ts +0 -5
- package/lib/validators/max-date.validator.d.ts +0 -5
- package/lib/validators/min-date.validator.d.ts +0 -5
- package/modal-custom/index.d.ts +0 -1
- package/modal-custom/package.json +0 -12
- package/modal-custom/sd-angular-core-modal-custom.d.ts +0 -4
- package/modal-custom/sd-angular-core-modal-custom.metadata.json +0 -1
- package/modal-custom/src/lib/modal-custom/modal-custom.component.d.ts +0 -31
- package/modal-custom/src/lib/modal-custom.module.d.ts +0 -2
- package/modal-custom/src/public-api.d.ts +0 -2
- package/sd-angular-core-0.0.1049.tgz +0 -0
|
@@ -1,639 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) CKSource - Frederico Knabben. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
CKEDITOR.plugins.add("wordcount",
|
|
7
|
-
{
|
|
8
|
-
lang: "ar,bg,ca,cs,da,de,el,en,es,eu,fa,fi,fr,he,hr,hu,it,ko,ja,nl,no,pl,pt,pt-br,ru,sk,sv,tr,uk,zh-cn,zh,ro", // %REMOVE_LINE_CORE%
|
|
9
|
-
version: "1.17.7",
|
|
10
|
-
requires: "htmlwriter,notification,undo",
|
|
11
|
-
bbcodePluginLoaded: false,
|
|
12
|
-
onLoad: function() {
|
|
13
|
-
CKEDITOR.document.appendStyleSheet(this.path + "css/wordcount.css");
|
|
14
|
-
},
|
|
15
|
-
init: function(editor) {
|
|
16
|
-
var defaultFormat = "",
|
|
17
|
-
lastWordCount = -1,
|
|
18
|
-
lastCharCount = -1,
|
|
19
|
-
lastParagraphs = -1,
|
|
20
|
-
limitReachedNotified = false,
|
|
21
|
-
limitRestoredNotified = false,
|
|
22
|
-
timeoutId = 0,
|
|
23
|
-
notification = null;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
var dispatchEvent = function(type, currentLength, maxLength) {
|
|
27
|
-
if (typeof document.dispatchEvent == "undefined") {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
type = "ckeditor.wordcount." + type;
|
|
32
|
-
|
|
33
|
-
var cEvent;
|
|
34
|
-
var eventInitDict = {
|
|
35
|
-
bubbles: false,
|
|
36
|
-
cancelable: true,
|
|
37
|
-
detail: {
|
|
38
|
-
currentLength: currentLength,
|
|
39
|
-
maxLength: maxLength
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
try {
|
|
44
|
-
cEvent = new CustomEvent(type, eventInitDict);
|
|
45
|
-
} catch (o_O) {
|
|
46
|
-
cEvent = document.createEvent("CustomEvent");
|
|
47
|
-
cEvent.initCustomEvent(
|
|
48
|
-
type,
|
|
49
|
-
eventInitDict.bubbles,
|
|
50
|
-
eventInitDict.cancelable,
|
|
51
|
-
eventInitDict.detail
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
document.dispatchEvent(cEvent);
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
// Default Config
|
|
59
|
-
var defaultConfig = {
|
|
60
|
-
showRemaining: false,
|
|
61
|
-
showParagraphs: true,
|
|
62
|
-
showWordCount: true,
|
|
63
|
-
showCharCount: false,
|
|
64
|
-
countBytesAsChars: false,
|
|
65
|
-
countSpacesAsChars: false,
|
|
66
|
-
countHTML: false,
|
|
67
|
-
countLineBreaks: false,
|
|
68
|
-
hardLimit: true,
|
|
69
|
-
warnOnLimitOnly: false,
|
|
70
|
-
wordDelims: '',
|
|
71
|
-
|
|
72
|
-
//MAXLENGTH Properties
|
|
73
|
-
maxWordCount: -1,
|
|
74
|
-
maxCharCount: -1,
|
|
75
|
-
maxParagraphs: -1,
|
|
76
|
-
|
|
77
|
-
// Filter
|
|
78
|
-
filter: null,
|
|
79
|
-
|
|
80
|
-
// How long to show the 'paste' warning
|
|
81
|
-
pasteWarningDuration: 0,
|
|
82
|
-
|
|
83
|
-
//DisAllowed functions
|
|
84
|
-
wordCountGreaterThanMaxLengthEvent: function(currentLength, maxLength) {
|
|
85
|
-
dispatchEvent("wordCountGreaterThanMaxLengthEvent", currentLength, maxLength);
|
|
86
|
-
},
|
|
87
|
-
charCountGreaterThanMaxLengthEvent: function(currentLength, maxLength) {
|
|
88
|
-
dispatchEvent("charCountGreaterThanMaxLengthEvent", currentLength, maxLength);
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
//Allowed Functions
|
|
92
|
-
wordCountLessThanMaxLengthEvent: function(currentLength, maxLength) {
|
|
93
|
-
dispatchEvent("wordCountLessThanMaxLengthEvent", currentLength, maxLength);
|
|
94
|
-
},
|
|
95
|
-
charCountLessThanMaxLengthEvent: function(currentLength, maxLength) {
|
|
96
|
-
dispatchEvent("charCountLessThanMaxLengthEvent", currentLength, maxLength);
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
// Get Config & Lang
|
|
101
|
-
var config = CKEDITOR.tools.extend(defaultConfig, editor.config.wordcount || {}, true);
|
|
102
|
-
|
|
103
|
-
if (config.showParagraphs) {
|
|
104
|
-
if (config.maxParagraphs > -1) {
|
|
105
|
-
if (config.showRemaining) {
|
|
106
|
-
defaultFormat += "%paragraphsCount% " + editor.lang.wordcount.ParagraphsRemaining;
|
|
107
|
-
} else {
|
|
108
|
-
defaultFormat += editor.lang.wordcount.Paragraphs + " %paragraphsCount%";
|
|
109
|
-
|
|
110
|
-
defaultFormat += "/" + config.maxParagraphs;
|
|
111
|
-
}
|
|
112
|
-
} else {
|
|
113
|
-
defaultFormat += editor.lang.wordcount.Paragraphs + " %paragraphsCount%";
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
if (config.showParagraphs && (config.showWordCount || config.showCharCount)) {
|
|
118
|
-
defaultFormat += ", ";
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
if (config.showWordCount) {
|
|
122
|
-
if (config.maxWordCount > -1) {
|
|
123
|
-
if (config.showRemaining) {
|
|
124
|
-
defaultFormat += "%wordCount% " + editor.lang.wordcount.WordCountRemaining;
|
|
125
|
-
} else {
|
|
126
|
-
defaultFormat += editor.lang.wordcount.WordCount + " %wordCount%";
|
|
127
|
-
|
|
128
|
-
defaultFormat += "/" + config.maxWordCount;
|
|
129
|
-
}
|
|
130
|
-
} else {
|
|
131
|
-
defaultFormat += editor.lang.wordcount.WordCount + " %wordCount%";
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
if (config.showCharCount && config.showWordCount) {
|
|
136
|
-
defaultFormat += ", ";
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
if (config.showCharCount) {
|
|
140
|
-
if (config.maxCharCount > -1) {
|
|
141
|
-
if (config.showRemaining) {
|
|
142
|
-
defaultFormat += "%charCount% " +
|
|
143
|
-
editor.lang.wordcount[config.countHTML
|
|
144
|
-
? "CharCountWithHTMLRemaining"
|
|
145
|
-
: "CharCountRemaining"];
|
|
146
|
-
} else {
|
|
147
|
-
defaultFormat += editor.lang.wordcount[config.countHTML
|
|
148
|
-
? "CharCountWithHTML"
|
|
149
|
-
: "CharCount"] +
|
|
150
|
-
" %charCount%";
|
|
151
|
-
|
|
152
|
-
defaultFormat += "/" + config.maxCharCount;
|
|
153
|
-
}
|
|
154
|
-
} else {
|
|
155
|
-
defaultFormat += editor.lang.wordcount[config.countHTML ? "CharCountWithHTML" : "CharCount"] +
|
|
156
|
-
" %charCount%";
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
var format = defaultFormat;
|
|
161
|
-
|
|
162
|
-
bbcodePluginLoaded = typeof editor.plugins.bbcode != "undefined";
|
|
163
|
-
|
|
164
|
-
function counterId(editorInstance) {
|
|
165
|
-
return "cke_wordcount_" + editorInstance.name;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
function counterElement(editorInstance) {
|
|
169
|
-
return document.getElementById(counterId(editorInstance));
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
function strip(html) {
|
|
173
|
-
if (bbcodePluginLoaded) {
|
|
174
|
-
// stripping out BBCode tags [...][/...]
|
|
175
|
-
return html.replace(/\[.*?\]/gi, "");
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
var tmp = document.createElement("div");
|
|
179
|
-
|
|
180
|
-
// Add filter before strip
|
|
181
|
-
html = filter(html);
|
|
182
|
-
|
|
183
|
-
tmp.innerHTML = html;
|
|
184
|
-
|
|
185
|
-
if (tmp.textContent == "" && typeof tmp.innerText == "undefined") {
|
|
186
|
-
return "";
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
return tmp.textContent || tmp.innerText;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* Implement filter to add or remove before counting
|
|
194
|
-
* @param html
|
|
195
|
-
* @returns string
|
|
196
|
-
*/
|
|
197
|
-
function filter(html) {
|
|
198
|
-
if (config.filter instanceof CKEDITOR.htmlParser.filter) {
|
|
199
|
-
var fragment = CKEDITOR.htmlParser.fragment.fromHtml(html),
|
|
200
|
-
writer = new CKEDITOR.htmlParser.basicWriter();
|
|
201
|
-
config.filter.applyTo(fragment);
|
|
202
|
-
fragment.writeHtml(writer);
|
|
203
|
-
return writer.getHtml();
|
|
204
|
-
}
|
|
205
|
-
return html;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
function countCharacters(text) {
|
|
209
|
-
if (config.countHTML) {
|
|
210
|
-
return config.countBytesAsChars ? countBytes(filter(text)) : filter(text).length;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
var normalizedText;
|
|
214
|
-
|
|
215
|
-
// strip body tags
|
|
216
|
-
if (editor.config.fullPage) {
|
|
217
|
-
var i = text.search(new RegExp("<body>", "i"));
|
|
218
|
-
if (i != -1) {
|
|
219
|
-
var j = text.search(new RegExp("</body>", "i"));
|
|
220
|
-
text = text.substring(i + 6, j);
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
normalizedText = text;
|
|
226
|
-
|
|
227
|
-
if (!config.countSpacesAsChars) {
|
|
228
|
-
normalizedText = text.replace(/\s/g, "").replace(/ /g, "");
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
if (config.countLineBreaks) {
|
|
232
|
-
normalizedText = normalizedText.replace(/(\r\n|\n|\r)/gm, " ");
|
|
233
|
-
} else {
|
|
234
|
-
normalizedText = normalizedText.replace(/(\r\n|\n|\r)/gm, "").replace(/ /gi, " ");
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
normalizedText = strip(normalizedText).replace(/^([\t\r\n]*)$/, "");
|
|
238
|
-
|
|
239
|
-
return config.countBytesAsChars ? countBytes(normalizedText) : normalizedText.length;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
function countBytes(text) {
|
|
243
|
-
var count = 0, stringLength = text.length, i;
|
|
244
|
-
text = String(text || "");
|
|
245
|
-
for (i = 0; i < stringLength; i++) {
|
|
246
|
-
var partCount = encodeURI(text[i]).split("%").length;
|
|
247
|
-
count += partCount == 1 ? 1 : partCount - 1;
|
|
248
|
-
}
|
|
249
|
-
return count;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
function countParagraphs(text) {
|
|
253
|
-
return (text.replace(/ /g, " ").replace(/(<([^>]+)>)/ig, "").replace(/^\s*$[\n\r]{1,}/gm, "++")
|
|
254
|
-
.split("++").length);
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
function countWords(text) {
|
|
258
|
-
var normalizedText = text.replace(/(\r\n|\n|\r)/gm, " ").replace(/^\s+|\s+$/g, "")
|
|
259
|
-
.replace(" ", " ");
|
|
260
|
-
|
|
261
|
-
normalizedText = strip(normalizedText);
|
|
262
|
-
|
|
263
|
-
var re = config.wordDelims ? new RegExp('[\\s'+config.wordDelims+']+') : /\s+/;
|
|
264
|
-
var words = normalizedText.split(re);
|
|
265
|
-
|
|
266
|
-
re = config.wordDelims ? new RegExp('^([\\s\\t\\r\\n'+config.wordDelims+']*)$') : /^([\s\t\r\n]*)$/;
|
|
267
|
-
for (var wordIndex = words.length - 1; wordIndex >= 0; wordIndex--) {
|
|
268
|
-
if (!words[wordIndex] || words[wordIndex].match(re)) {
|
|
269
|
-
words.splice(wordIndex, 1);
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
return (words.length);
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
function limitReached(editorInstance, notify) {
|
|
277
|
-
limitReachedNotified = true;
|
|
278
|
-
limitRestoredNotified = false;
|
|
279
|
-
|
|
280
|
-
if (!config.warnOnLimitOnly) {
|
|
281
|
-
if (config.hardLimit) {
|
|
282
|
-
if (editor.mode === "source" && editor.plugins.codemirror) {
|
|
283
|
-
window["codemirror_" + editor.id].undo();
|
|
284
|
-
} else {
|
|
285
|
-
editorInstance.execCommand("undo");
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
if (!notify) {
|
|
292
|
-
counterElement(editorInstance).className = "cke_path_item cke_wordcountLimitReached";
|
|
293
|
-
editorInstance.fire("limitReached", { firedBy: "wordCount.limitReached" }, editor);
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
function limitRestored(editorInstance) {
|
|
298
|
-
limitRestoredNotified = true;
|
|
299
|
-
limitReachedNotified = false;
|
|
300
|
-
|
|
301
|
-
if (!config.warnOnLimitOnly) {
|
|
302
|
-
editorInstance.fire("saveSnapshot");
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
counterElement(editorInstance).className = "cke_path_item";
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
function updateCounter(editorInstance) {
|
|
309
|
-
if (!counterElement(editorInstance)) {
|
|
310
|
-
return;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
var paragraphs = 0,
|
|
314
|
-
wordCount = 0,
|
|
315
|
-
charCount = 0,
|
|
316
|
-
text;
|
|
317
|
-
|
|
318
|
-
// BeforeGetData and getData events are fired when calling
|
|
319
|
-
// getData(). We can prevent this by passing true as an
|
|
320
|
-
// argument to getData(). This allows us to fire the events
|
|
321
|
-
// manually with additional event data: firedBy. This additional
|
|
322
|
-
// data helps differentiate calls to getData() made by
|
|
323
|
-
// wordCount plugin from calls made by other plugins/code.
|
|
324
|
-
editorInstance.fire("beforeGetData", { firedBy: "wordCount.updateCounter" }, editor);
|
|
325
|
-
text = editorInstance.getData(true);
|
|
326
|
-
editorInstance.fire("getData", { dataValue: text, firedBy: "wordCount.updateCounter" }, editor);
|
|
327
|
-
|
|
328
|
-
if (text) {
|
|
329
|
-
if (config.showCharCount) {
|
|
330
|
-
charCount = countCharacters(text);
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
if (config.showParagraphs) {
|
|
334
|
-
paragraphs = countParagraphs(text);
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
if (config.showWordCount) {
|
|
338
|
-
wordCount = countWords(text);
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
var html = format;
|
|
343
|
-
if (config.showRemaining) {
|
|
344
|
-
if (config.maxCharCount >= 0) {
|
|
345
|
-
html = html.replace("%charCount%", config.maxCharCount - charCount);
|
|
346
|
-
} else {
|
|
347
|
-
html = html.replace("%charCount%", charCount);
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
if (config.maxWordCount >= 0) {
|
|
351
|
-
html = html.replace("%wordCount%", config.maxWordCount - wordCount);
|
|
352
|
-
} else {
|
|
353
|
-
html = html.replace("%wordCount%", wordCount);
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
if (config.maxParagraphs >= 0) {
|
|
357
|
-
html = html.replace("%paragraphsCount%", config.maxParagraphs - paragraphs);
|
|
358
|
-
} else {
|
|
359
|
-
html = html.replace("%paragraphsCount%", paragraphs);
|
|
360
|
-
}
|
|
361
|
-
} else {
|
|
362
|
-
html = html.replace("%wordCount%", wordCount).replace("%charCount%", charCount).replace("%paragraphsCount%", paragraphs);
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
(editorInstance.config.wordcount || (editorInstance.config.wordcount = {})).wordCount = wordCount;
|
|
366
|
-
(editorInstance.config.wordcount || (editorInstance.config.wordcount = {})).charCount = charCount;
|
|
367
|
-
|
|
368
|
-
if (CKEDITOR.env.gecko) {
|
|
369
|
-
counterElement(editorInstance).innerHTML = html;
|
|
370
|
-
} else {
|
|
371
|
-
counterElement(editorInstance).innerText = html;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
if (charCount == lastCharCount && wordCount == lastWordCount && paragraphs == lastParagraphs) {
|
|
375
|
-
if (charCount == config.maxCharCount || wordCount == config.maxWordCount || paragraphs > config.maxParagraphs) {
|
|
376
|
-
editorInstance.fire("saveSnapshot");
|
|
377
|
-
}
|
|
378
|
-
return true;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
//If the limit is already over, allow the deletion of characters/words. Otherwise,
|
|
382
|
-
//the user would have to delete at one go the number of offending characters
|
|
383
|
-
var deltaWord = wordCount - lastWordCount;
|
|
384
|
-
var deltaChar = charCount - lastCharCount;
|
|
385
|
-
var deltaParagraphs = paragraphs - lastParagraphs;
|
|
386
|
-
|
|
387
|
-
lastWordCount = wordCount;
|
|
388
|
-
lastCharCount = charCount;
|
|
389
|
-
lastParagraphs = paragraphs;
|
|
390
|
-
|
|
391
|
-
if (lastWordCount == -1) {
|
|
392
|
-
lastWordCount = wordCount;
|
|
393
|
-
}
|
|
394
|
-
if (lastCharCount == -1) {
|
|
395
|
-
lastCharCount = charCount;
|
|
396
|
-
}
|
|
397
|
-
if (lastParagraphs == -1) {
|
|
398
|
-
lastParagraphs = paragraphs;
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
// Check for word limit and/or char limit
|
|
402
|
-
if ((config.maxWordCount > -1 && wordCount > config.maxWordCount && deltaWord > 0) ||
|
|
403
|
-
(config.maxCharCount > -1 && charCount > config.maxCharCount && deltaChar > 0) ||
|
|
404
|
-
(config.maxParagraphs > -1 && paragraphs > config.maxParagraphs && deltaParagraphs > 0)) {
|
|
405
|
-
|
|
406
|
-
limitReached(editorInstance, limitReachedNotified);
|
|
407
|
-
} else if ((config.maxWordCount == -1 || wordCount <= config.maxWordCount) &&
|
|
408
|
-
(config.maxCharCount == -1 || charCount <= config.maxCharCount) &&
|
|
409
|
-
(config.maxParagraphs == -1 || paragraphs <= config.maxParagraphs)) {
|
|
410
|
-
|
|
411
|
-
limitRestored(editorInstance);
|
|
412
|
-
} else {
|
|
413
|
-
editorInstance.fire("saveSnapshot");
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
// update instance
|
|
417
|
-
editorInstance.wordCount =
|
|
418
|
-
{
|
|
419
|
-
paragraphs: paragraphs,
|
|
420
|
-
wordCount: wordCount,
|
|
421
|
-
charCount: charCount
|
|
422
|
-
};
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
// Fire Custom Events
|
|
426
|
-
if (config.charCountGreaterThanMaxLengthEvent && config.charCountLessThanMaxLengthEvent) {
|
|
427
|
-
if (charCount > config.maxCharCount && config.maxCharCount > -1) {
|
|
428
|
-
config.charCountGreaterThanMaxLengthEvent(charCount, config.maxCharCount);
|
|
429
|
-
} else {
|
|
430
|
-
config.charCountLessThanMaxLengthEvent(charCount, config.maxCharCount);
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
if (config.wordCountGreaterThanMaxLengthEvent && config.wordCountLessThanMaxLengthEvent) {
|
|
435
|
-
if (wordCount > config.maxWordCount && config.maxWordCount > -1) {
|
|
436
|
-
config.wordCountGreaterThanMaxLengthEvent(wordCount, config.maxWordCount);
|
|
437
|
-
|
|
438
|
-
} else {
|
|
439
|
-
config.wordCountLessThanMaxLengthEvent(wordCount, config.maxWordCount);
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
return true;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
function isCloseToLimits() {
|
|
447
|
-
if (config.maxWordCount > -1 && config.maxWordCount - lastWordCount < 5) {
|
|
448
|
-
return true;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
if (config.maxCharCount > -1 && config.maxCharCount - lastCharCount < 20) {
|
|
452
|
-
return true;
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
if (config.maxParagraphs > -1 && config.maxParagraphs - lastParagraphs < 1) {
|
|
456
|
-
return true;
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
return false;
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
editor.on("key",
|
|
463
|
-
function(event) {
|
|
464
|
-
if (editor.mode === "source") {
|
|
465
|
-
clearTimeout(timeoutId);
|
|
466
|
-
timeoutId = setTimeout(
|
|
467
|
-
updateCounter.bind(this, event.editor),
|
|
468
|
-
250
|
|
469
|
-
);
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
if (event.data.keyCode == 13) {
|
|
473
|
-
clearTimeout(timeoutId);
|
|
474
|
-
timeoutId = setTimeout(
|
|
475
|
-
updateCounter.bind(this, event.editor),
|
|
476
|
-
250
|
|
477
|
-
);
|
|
478
|
-
}
|
|
479
|
-
},
|
|
480
|
-
editor,
|
|
481
|
-
null,
|
|
482
|
-
100);
|
|
483
|
-
|
|
484
|
-
editor.on("change",
|
|
485
|
-
function(event) {
|
|
486
|
-
var ms = isCloseToLimits() ? 5 : 250;
|
|
487
|
-
clearTimeout(timeoutId);
|
|
488
|
-
timeoutId = setTimeout(
|
|
489
|
-
updateCounter.bind(this, event.editor),
|
|
490
|
-
ms
|
|
491
|
-
);
|
|
492
|
-
},
|
|
493
|
-
editor,
|
|
494
|
-
null,
|
|
495
|
-
100);
|
|
496
|
-
|
|
497
|
-
editor.on("uiSpace",
|
|
498
|
-
function (event) {
|
|
499
|
-
var wordcountClass = "cke_wordcount";
|
|
500
|
-
|
|
501
|
-
if (editor.lang.dir == "rtl") {
|
|
502
|
-
wordcountClass = wordcountClass + " cke_wordcount_rtl";
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
if (editor.elementMode === CKEDITOR.ELEMENT_MODE_INLINE) {
|
|
506
|
-
if (event.data.space == "top") {
|
|
507
|
-
event.data.html += "<div class=\"" + wordcountClass +"\" style=\"\"" +
|
|
508
|
-
" title=\"" +
|
|
509
|
-
editor.lang.wordcount.title +
|
|
510
|
-
"\"" +
|
|
511
|
-
"><span id=\"" +
|
|
512
|
-
counterId(event.editor) +
|
|
513
|
-
"\" class=\"cke_path_item\"> </span></div>";
|
|
514
|
-
}
|
|
515
|
-
} else {
|
|
516
|
-
if (event.data.space == "bottom") {
|
|
517
|
-
event.data.html += "<div class=\""+wordcountClass+"\" style=\"\"" +
|
|
518
|
-
" title=\"" +
|
|
519
|
-
editor.lang.wordcount.title +
|
|
520
|
-
"\"" +
|
|
521
|
-
"><span id=\"" +
|
|
522
|
-
counterId(event.editor) +
|
|
523
|
-
"\" class=\"cke_path_item\"> </span></div>";
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
},
|
|
528
|
-
editor,
|
|
529
|
-
null,
|
|
530
|
-
100);
|
|
531
|
-
|
|
532
|
-
editor.on("dataReady",
|
|
533
|
-
function(event) {
|
|
534
|
-
updateCounter(event.editor);
|
|
535
|
-
},
|
|
536
|
-
editor,
|
|
537
|
-
null,
|
|
538
|
-
100);
|
|
539
|
-
|
|
540
|
-
editor.on("paste",
|
|
541
|
-
function(event) {
|
|
542
|
-
if (!config.warnOnLimitOnly && (config.maxWordCount > 0 || config.maxCharCount > 0 || config.maxParagraphs > 0)) {
|
|
543
|
-
|
|
544
|
-
// Check if pasted content is above the limits
|
|
545
|
-
var wordCount = -1,
|
|
546
|
-
charCount = -1,
|
|
547
|
-
paragraphs = -1;
|
|
548
|
-
|
|
549
|
-
var mySelection = event.editor.getSelection(),
|
|
550
|
-
selectedText = mySelection.getNative().toString().trim();
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
// BeforeGetData and getData events are fired when calling
|
|
554
|
-
// getData(). We can prevent this by passing true as an
|
|
555
|
-
// argument to getData(). This allows us to fire the events
|
|
556
|
-
// manually with additional event data: firedBy. This additional
|
|
557
|
-
// data helps differentiate calls to getData() made by
|
|
558
|
-
// wordCount plugin from calls made by other plugins/code.
|
|
559
|
-
event.editor.fire("beforeGetData", { firedBy: "wordCount.onPaste" }, event.editor);
|
|
560
|
-
var text = event.editor.getData(true);
|
|
561
|
-
event.editor.fire("getData", { dataValue: text, firedBy: "wordCount.onPaste" }, event.editor);
|
|
562
|
-
|
|
563
|
-
if (selectedText.length > 0) {
|
|
564
|
-
var plaintext = event.editor.document.getBody().getText();
|
|
565
|
-
|
|
566
|
-
if (plaintext.length === selectedText.length) {
|
|
567
|
-
text = "";
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
text += event.data.dataValue;
|
|
573
|
-
|
|
574
|
-
if (config.showCharCount) {
|
|
575
|
-
charCount = countCharacters(text);
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
if (config.showWordCount) {
|
|
579
|
-
wordCount = countWords(text);
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
if (config.showParagraphs) {
|
|
583
|
-
paragraphs = countParagraphs(text);
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
// Instantiate the notification when needed and only have one instance
|
|
588
|
-
if (notification === null) {
|
|
589
|
-
notification = new CKEDITOR.plugins.notification(event.editor,
|
|
590
|
-
{
|
|
591
|
-
message: event.editor.lang.wordcount.pasteWarning,
|
|
592
|
-
type: "warning",
|
|
593
|
-
duration: config.pasteWarningDuration
|
|
594
|
-
});
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
if (config.maxCharCount > 0 && charCount > config.maxCharCount && config.hardLimit) {
|
|
598
|
-
if (!notification.isVisible()) {
|
|
599
|
-
notification.show();
|
|
600
|
-
}
|
|
601
|
-
event.cancel();
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
if (config.maxWordCount > 0 && wordCount > config.maxWordCount && config.hardLimit) {
|
|
605
|
-
if (!notification.isVisible()) {
|
|
606
|
-
notification.show();
|
|
607
|
-
}
|
|
608
|
-
event.cancel();
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
if (config.maxParagraphs > 0 && paragraphs > config.maxParagraphs && config.hardLimit) {
|
|
612
|
-
if (!notification.isVisible()) {
|
|
613
|
-
notification.show();
|
|
614
|
-
}
|
|
615
|
-
event.cancel();
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
},
|
|
619
|
-
editor,
|
|
620
|
-
null,
|
|
621
|
-
100);
|
|
622
|
-
|
|
623
|
-
editor.on("afterPaste",
|
|
624
|
-
function(event) {
|
|
625
|
-
updateCounter(event.editor);
|
|
626
|
-
},
|
|
627
|
-
editor,
|
|
628
|
-
null,
|
|
629
|
-
100);
|
|
630
|
-
|
|
631
|
-
editor.on("afterPasteFromWord",
|
|
632
|
-
function (event) {
|
|
633
|
-
updateCounter(event.editor);
|
|
634
|
-
},
|
|
635
|
-
editor,
|
|
636
|
-
null,
|
|
637
|
-
100);
|
|
638
|
-
}
|
|
639
|
-
});
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<title>CKEditor</title>
|
|
6
|
-
<script src="../../../ckeditor.js"></script>
|
|
7
|
-
</head>
|
|
8
|
-
<body>
|
|
9
|
-
<textarea name="editor1"></textarea>
|
|
10
|
-
<script>
|
|
11
|
-
var config = {
|
|
12
|
-
extraPlugins: 'wordcount',
|
|
13
|
-
wordcount: {
|
|
14
|
-
maxParagraphs: 5,
|
|
15
|
-
showParagraphs: true,
|
|
16
|
-
showWordCount: false,
|
|
17
|
-
showRemaining: true
|
|
18
|
-
},
|
|
19
|
-
language: 'en'
|
|
20
|
-
}
|
|
21
|
-
</script>
|
|
22
|
-
<script>
|
|
23
|
-
CKEDITOR.replace( 'editor1' , config);
|
|
24
|
-
</script>
|
|
25
|
-
</body>
|
|
26
|
-
</html>
|