diff options
Diffstat (limited to 'public/bower_components/ckeditor/plugins/copyformatting')
21 files changed, 127 insertions, 0 deletions
diff --git a/public/bower_components/ckeditor/plugins/copyformatting/cursors/cursor-disabled.svg b/public/bower_components/ckeditor/plugins/copyformatting/cursors/cursor-disabled.svg new file mode 100644 index 0000000..9298aef --- /dev/null +++ b/public/bower_components/ckeditor/plugins/copyformatting/cursors/cursor-disabled.svg @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<svg width="16px" height="16px" viewBox="0 0 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> + + <title>cursor_disabled</title> + <desc></desc> + <defs></defs> + <g id="Page-4" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> + <g id="cursor_disabled_5"> + <g id="cursor_disabled_illustrator" transform="translate(24.000000, 2.000000)"> + <g id="Layer_1"> + <path d="M225,14 C227.8,14 230,11.8 230,9 L230,5 C230,2.2 227.8,0 225,0 L127,0 C124.2,0 122,2.2 122,5 L122,9 C122,11.8 124.2,14 127,14 L158,14 L158,26.3 C172.4,34 185,44.6 195,57.4 L195,14 L225,14 L225,14 Z" id="Shape" fill="#000000"></path> + <path d="M158,228.7 L158,238 L134.5,238 C130.6,239.1 126.7,239.9 122.6,240.6 C122.2,241.3 121.9,242.1 121.9,243 L121.9,247 C121.9,249.8 124.1,252 126.9,252 L224.9,252 C227.7,252 229.9,249.8 229.9,247 L229.9,243 C229.9,240.2 227.7,238 224.9,238 L194.9,238 L194.9,197.6 C185,210.4 172.4,221 158,228.7 L158,228.7 Z" id="Shape" fill="#000000"></path> + <path d="M54.7,107.6 C53.9,110.7 51.1,112.9 41.8,116.1 C35.6,118.3 31.9,121.1 29.5,124.5 C29.5,125.5 29.4,126.4 29.4,127.4 C29.4,134.1 30.3,140.7 32,146.9 L93.9,146.9 L54.7,107.6 L54.7,107.6 Z" id="Shape" fill="#000000"></path> + <path d="M70.8,13 C70.7,13 70.6,13.1 70.5,13.3 C65.9,13.7 58.9,15.5 54.6,24.4 C63.2,20.2 72.5,17.1 82.2,15.1 C77.4,12.7 72.6,13 70.8,13 L70.8,13 Z" id="Shape" fill="#000000"></path> + <path d="M55,170 L55,183.7 C58.7,187 62.7,189.9 67,192.3 L67,170 L78,170 L78,197.6 C81.9,199.1 85.9,200.2 90,201 L90,170 L101,170 L101,202.4 C102.2,202.5 103.3,202.5 104.5,202.5 C109.4,202.5 114.3,202 119.1,201.1 C119.3,193.5 119.5,182.8 119.6,172.6 L105.1,158 L36.1,158 C38.3,162.8 40.9,167.4 44,171.7 L44,170 L55,170 L55,170 Z" id="Shape" fill="#000000"></path> + <path d="M26.3,211.5 C26.3,211.5 24.6,222.6 36.8,222.6 L40.8,222.6 C35.7,219.1 30.8,215.3 26.3,211.1 L26.3,211.5 L26.3,211.5 Z" id="Shape" fill="#000000"></path> + <path d="M172.1,159.8 C176.9,149.8 179.4,138.7 179.4,127.5 C179.4,107.1 171.2,88.6 158,75.1 L158,145.7 L172.1,159.8 L172.1,159.8 Z" id="Shape" fill="#000000"></path> + <path d="M72.2,59.9 L91.2,78.9 C92.3,73 93.7,65.4 94.1,53.3 C86.5,54.3 79.1,56.6 72.2,59.9 L72.2,59.9 Z" id="Shape" fill="#000000"></path> + <path d="M119.7,158 L119.2,158 L119.7,158.5 L119.7,158 L119.7,158 Z" id="Shape" fill="#FF0000"></path> + <path d="M195,75.3 C186.1,59.9 173.3,46.9 158,37.8 C142.3,28.4 124,23 104.5,23 C99.7,23 95,23.3 90.4,24 C86.3,24.6 82.3,25.3 78.3,26.4 C73.4,27.7 68.7,29.3 64.1,31.2 C59.6,33.1 55.3,35.3 51.2,37.7 C20.6,55.9 0,89.3 0,127.5 C0,153.8 9.8,177.9 25.9,196.3 C31.3,202.4 37.3,207.9 44,212.6 C47.5,215.1 51.2,217.4 55,219.5 C57,220.6 59,221.6 61.1,222.5 C74.3,228.6 89,231.9 104.5,231.9 C124,231.9 142.3,226.5 158,217.1 C173.3,207.9 186.1,195 195,179.6 C203.9,164.2 209,146.4 209,127.4 C209,108.5 203.9,90.7 195,75.3 L195,75.3 Z M151.2,198.5 C141.4,205 130.4,209.3 118.9,211.3 C114.2,212.1 109.4,212.5 104.5,212.5 C103.3,212.5 102.2,212.5 101,212.4 C97.3,212.2 93.6,211.8 90,211.2 C85.9,210.5 81.9,209.5 78,208.2 C74.2,207 70.5,205.5 67,203.7 C62.8,201.6 58.8,199.2 55,196.5 C51.1,193.7 47.4,190.5 44,187.1 C36,179 29.6,169.2 25.4,158.4 C21.6,148.8 19.6,138.4 19.6,127.5 C19.6,110.8 24.4,94.7 33.6,80.8 L37,75.7 L55.7,94.4 L108.4,147.1 L119.4,158.1 L119.9,158.1 L119.9,158.6 L156.5,195.2 L151.2,198.5 L151.2,198.5 Z M177.7,170.7 L174.4,176.2 L158,159.9 L89.4,91.3 L55.8,57.6 L61.3,54.3 C71.4,48.3 82.6,44.6 94.2,43.1 C97.6,42.7 101,42.5 104.5,42.5 C124.8,42.5 143.4,49.6 158,61.5 C177.2,77.1 189.4,100.8 189.4,127.4 C189.4,142.7 185.4,157.7 177.7,170.7 L177.7,170.7 Z" id="Shape" fill="#FF0000"></path> + </g> + </g> + </g> + </g> +</svg>
\ No newline at end of file diff --git a/public/bower_components/ckeditor/plugins/copyformatting/cursors/cursor.svg b/public/bower_components/ckeditor/plugins/copyformatting/cursors/cursor.svg new file mode 100644 index 0000000..9595147 --- /dev/null +++ b/public/bower_components/ckeditor/plugins/copyformatting/cursors/cursor.svg @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<svg width="16px" height="16px" viewBox="0 0 205 252" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>cursor</title> + <desc></desc> + <defs></defs> + <g id="Page-4" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> + <g id="Artboard-1" transform="translate(-49.000000, -2.000000)" fill="#000000"> + <g id="cursor" transform="translate(49.000000, 2.000000)"> + <path d="M170,14 L200.007537,14 C202.769057,14 205,11.7636493 205,9.00497092 L205,4.99502908 C205,2.23382212 202.764798,0 200.007537,0 L101.992463,0 C99.2309431,0 97,2.23635069 97,4.99502908 L97,9.00497092 C97,11.7661779 99.2352017,14 101.992463,14 L133,14 L133,238 L101.992463,238 C99.2309431,238 97,240.236351 97,242.995029 L97,247.004971 C97,249.766178 99.2352017,252 101.992463,252 L200.007537,252 C202.769057,252 205,249.763649 205,247.004971 L205,242.995029 C205,240.233822 202.764798,238 200.007537,238 L170,238 L170,14 Z" id="Combined-Shape"></path> + <path d="M65,222.280829 C60.6131176,222.280829 56.3742162,222.280828 52.9999995,222.280828 L53,170 L42,170 L42,222.560593 C38.6130246,222.560593 34.3763308,222.560593 30.0000005,222.560594 L30,170 L19,170 L19,222.560595 C16.324865,222.560595 13.8463369,222.560595 11.7612725,222.560596 C-0.369586438,222.560599 1.28381746,211.509313 1.28381746,211.509313 C1.28381746,211.509313 0.389689944,177.756 0.396571277,158 L94.7408232,158 C94.7392736,177.793089 93.8535396,211.229548 93.8535396,211.229548 C93.8535396,211.229548 95.5069435,222.280834 83.3760845,222.280831 C81.2553782,222.28083 78.7276415,222.28083 76.0000002,222.28083 L76,170 L65,170 L65,222.280829 Z M0.574534036,147 C0.579768387,146.896149 0.585131638,146.794755 0.590625514,146.695866 C1.28381748,134.218409 -0.797112286,122.434146 16.8792816,116.195422 C34.5556755,109.956698 28.6662536,107.530522 30.3978792,95.7462576 C32.1295048,83.961993 25.8921298,78.069863 25.8921315,44.7966496 C25.892133,17.9607206 38.5169467,13.9220173 45.5220939,13.3637617 C45.6089814,13.1340727 45.7002506,13.0164391 45.7960631,13.0164391 C49.8372056,13.0164389 69.2452237,11.2436713 69.2452255,44.5168847 C69.2452273,77.7900982 63.0078523,83.6822281 64.7394778,95.4664928 C66.4711034,107.250757 60.5816815,109.676933 78.2580754,115.915657 C95.9344693,122.154381 93.8535395,133.938644 94.5467315,146.416101 C94.5570586,146.601989 94.5669242,146.796724 94.5763397,147 L0.574534036,147 Z M47.5,41 C52.1944204,41 56,37.1944204 56,32.5 C56,27.8055796 52.1944204,24 47.5,24 C42.8055796,24 39,27.8055796 39,32.5 C39,37.1944204 42.8055796,41 47.5,41 Z" id="Combined-Shape"></path> + </g> + </g> + </g> +</svg> diff --git a/public/bower_components/ckeditor/plugins/copyformatting/icons/copyformatting.png b/public/bower_components/ckeditor/plugins/copyformatting/icons/copyformatting.png Binary files differnew file mode 100644 index 0000000..1128408 --- /dev/null +++ b/public/bower_components/ckeditor/plugins/copyformatting/icons/copyformatting.png diff --git a/public/bower_components/ckeditor/plugins/copyformatting/icons/hidpi/copyformatting.png b/public/bower_components/ckeditor/plugins/copyformatting/icons/hidpi/copyformatting.png Binary files differnew file mode 100644 index 0000000..c46e514 --- /dev/null +++ b/public/bower_components/ckeditor/plugins/copyformatting/icons/hidpi/copyformatting.png diff --git a/public/bower_components/ckeditor/plugins/copyformatting/lang/az.js b/public/bower_components/ckeditor/plugins/copyformatting/lang/az.js new file mode 100644 index 0000000..11f61ea --- /dev/null +++ b/public/bower_components/ckeditor/plugins/copyformatting/lang/az.js @@ -0,0 +1 @@ +CKEDITOR.plugins.setLang("copyformatting","az",{label:"Formatı köçür",notification:{copied:"Format köçürülüb",applied:"Format tədbiq edilib",canceled:"Format imtina edilib",failed:"Format etmək mümkün deyil. Siz üslubları köçürmədən onları tədbiq edə bilməzsiniz."}});
\ No newline at end of file diff --git a/public/bower_components/ckeditor/plugins/copyformatting/lang/de.js b/public/bower_components/ckeditor/plugins/copyformatting/lang/de.js new file mode 100644 index 0000000..fa44860 --- /dev/null +++ b/public/bower_components/ckeditor/plugins/copyformatting/lang/de.js @@ -0,0 +1 @@ +CKEDITOR.plugins.setLang("copyformatting","de",{label:"Formatierung kopieren",notification:{copied:"Formatierung kopiert",applied:"Formatierung angewendet",canceled:"Formatierung abgebrochen",failed:"Formatierung fehlgeschlagen. Sie können Stile nicht anwenden, ohne sie zuerst zu kopieren."}});
\ No newline at end of file diff --git a/public/bower_components/ckeditor/plugins/copyformatting/lang/en.js b/public/bower_components/ckeditor/plugins/copyformatting/lang/en.js new file mode 100644 index 0000000..ea14871 --- /dev/null +++ b/public/bower_components/ckeditor/plugins/copyformatting/lang/en.js @@ -0,0 +1 @@ +CKEDITOR.plugins.setLang("copyformatting","en",{label:"Copy Formatting",notification:{copied:"Formatting copied",applied:"Formatting applied",canceled:"Formatting canceled",failed:"Formatting failed. You cannot apply styles without copying them first."}});
\ No newline at end of file diff --git a/public/bower_components/ckeditor/plugins/copyformatting/lang/it.js b/public/bower_components/ckeditor/plugins/copyformatting/lang/it.js new file mode 100644 index 0000000..5a8608a --- /dev/null +++ b/public/bower_components/ckeditor/plugins/copyformatting/lang/it.js @@ -0,0 +1 @@ +CKEDITOR.plugins.setLang("copyformatting","it",{label:"Copia formattazione",notification:{copied:"Formattazione copiata",applied:"Formattazione applicata",canceled:"Formattazione annullata",failed:"Formattazione fallita. Non è possibile applicare stili senza averli prima copiati."}});
\ No newline at end of file diff --git a/public/bower_components/ckeditor/plugins/copyformatting/lang/ja.js b/public/bower_components/ckeditor/plugins/copyformatting/lang/ja.js new file mode 100644 index 0000000..6044c7e --- /dev/null +++ b/public/bower_components/ckeditor/plugins/copyformatting/lang/ja.js @@ -0,0 +1 @@ +CKEDITOR.plugins.setLang("copyformatting","ja",{label:"フォーマットをコピー",notification:{copied:"コピーされたフォーマット",applied:"フォーマットを適用しました",canceled:"フォーマットを取り消しました",failed:"フォーマットに失敗しました。最初にフォーマットをコピーしてください。"}});
\ No newline at end of file diff --git a/public/bower_components/ckeditor/plugins/copyformatting/lang/nb.js b/public/bower_components/ckeditor/plugins/copyformatting/lang/nb.js new file mode 100644 index 0000000..6f2c273 --- /dev/null +++ b/public/bower_components/ckeditor/plugins/copyformatting/lang/nb.js @@ -0,0 +1 @@ +CKEDITOR.plugins.setLang("copyformatting","nb",{label:"Kopier formatering",notification:{copied:"Formatering kopiert",applied:"Formatering tatt i bruk",canceled:"Formatering avbrutt",failed:"Formatering mislyktes. Du kan ikke ta i bruk stiler uten å kopiere dem først."}});
\ No newline at end of file diff --git a/public/bower_components/ckeditor/plugins/copyformatting/lang/nl.js b/public/bower_components/ckeditor/plugins/copyformatting/lang/nl.js new file mode 100644 index 0000000..4eab791 --- /dev/null +++ b/public/bower_components/ckeditor/plugins/copyformatting/lang/nl.js @@ -0,0 +1 @@ +CKEDITOR.plugins.setLang("copyformatting","nl",{label:"Opmaakstijl kopiëren",notification:{copied:"Opmaakstijl gekopieerd",applied:"Opmaakstijl toegepast",canceled:"Opmaakstijl toepassen geannuleerd",failed:"Opmaakstijl toepassen mislukt. U kunt geen opmaakstijl toepassen zonder deze eerst te kopiëren."}});
\ No newline at end of file diff --git a/public/bower_components/ckeditor/plugins/copyformatting/lang/oc.js b/public/bower_components/ckeditor/plugins/copyformatting/lang/oc.js new file mode 100644 index 0000000..fc787e9 --- /dev/null +++ b/public/bower_components/ckeditor/plugins/copyformatting/lang/oc.js @@ -0,0 +1 @@ +CKEDITOR.plugins.setLang("copyformatting","oc",{label:"Copiar lo formatatge",notification:{copied:"Formatatge copiat",applied:"Formatatge aplicat",canceled:"Formatatge anullat",failed:"Formatting failed. You cannot apply styles without copying them first."}});
\ No newline at end of file diff --git a/public/bower_components/ckeditor/plugins/copyformatting/lang/pl.js b/public/bower_components/ckeditor/plugins/copyformatting/lang/pl.js new file mode 100644 index 0000000..edd24af --- /dev/null +++ b/public/bower_components/ckeditor/plugins/copyformatting/lang/pl.js @@ -0,0 +1 @@ +CKEDITOR.plugins.setLang("copyformatting","pl",{label:"Kopiuj formatowanie",notification:{copied:"Formatowanie skopiowane",applied:"Formatowanie zastosowane",canceled:"Formatowanie przerwane",failed:"Formatowanie nie powiodło się. Nie możesz zastosować stylów bez uprzedniego ich skopiowania."}});
\ No newline at end of file diff --git a/public/bower_components/ckeditor/plugins/copyformatting/lang/pt-br.js b/public/bower_components/ckeditor/plugins/copyformatting/lang/pt-br.js new file mode 100644 index 0000000..2376a0b --- /dev/null +++ b/public/bower_components/ckeditor/plugins/copyformatting/lang/pt-br.js @@ -0,0 +1 @@ +CKEDITOR.plugins.setLang("copyformatting","pt-br",{label:"Copiar Formatação",notification:{copied:"Formatação copiada",applied:"Formatação aplicada",canceled:"Formatação cancelada",failed:"A formatação falhou. Você não pode aplicar estilos sem copiá-los antes."}});
\ No newline at end of file diff --git a/public/bower_components/ckeditor/plugins/copyformatting/lang/ru.js b/public/bower_components/ckeditor/plugins/copyformatting/lang/ru.js new file mode 100644 index 0000000..62261d6 --- /dev/null +++ b/public/bower_components/ckeditor/plugins/copyformatting/lang/ru.js @@ -0,0 +1 @@ +CKEDITOR.plugins.setLang("copyformatting","ru",{label:"Копировать форматирование",notification:{copied:"Форматирование скопировано",applied:"Форматирование применено",canceled:"Форматирование отменен",failed:"Formatting failed. You cannot apply styles without copying them first."}});
\ No newline at end of file diff --git a/public/bower_components/ckeditor/plugins/copyformatting/lang/sv.js b/public/bower_components/ckeditor/plugins/copyformatting/lang/sv.js new file mode 100644 index 0000000..e0560ae --- /dev/null +++ b/public/bower_components/ckeditor/plugins/copyformatting/lang/sv.js @@ -0,0 +1 @@ +CKEDITOR.plugins.setLang("copyformatting","sv",{label:"Kopiera formatering",notification:{copied:"Formatering kopierad",applied:"Formatering applicerad",canceled:"Formatering avbruten",failed:"Formatering misslyckades. Du kan inte applicera stilar utan att kopiera dem först."}});
\ No newline at end of file diff --git a/public/bower_components/ckeditor/plugins/copyformatting/lang/tr.js b/public/bower_components/ckeditor/plugins/copyformatting/lang/tr.js new file mode 100644 index 0000000..27b6bcb --- /dev/null +++ b/public/bower_components/ckeditor/plugins/copyformatting/lang/tr.js @@ -0,0 +1 @@ +CKEDITOR.plugins.setLang("copyformatting","tr",{label:"Formatı Kopyala",notification:{copied:"Formatlama Kopyalandı",applied:"Formatlama Uygulandı",canceled:"Formatlama İptal Edildi",failed:"Formatlama hatası. İlk önce onları kopyalamadan stilleri uygulayamazsınız."}});
\ No newline at end of file diff --git a/public/bower_components/ckeditor/plugins/copyformatting/lang/zh-cn.js b/public/bower_components/ckeditor/plugins/copyformatting/lang/zh-cn.js new file mode 100644 index 0000000..afdcf8b --- /dev/null +++ b/public/bower_components/ckeditor/plugins/copyformatting/lang/zh-cn.js @@ -0,0 +1 @@ +CKEDITOR.plugins.setLang("copyformatting","zh-cn",{label:"格式刷",notification:{copied:"格式已复制",applied:"格式已应用",canceled:"格式已取消",failed:"格式化失败,您不能还没复制就应用格式"}});
\ No newline at end of file diff --git a/public/bower_components/ckeditor/plugins/copyformatting/lang/zh.js b/public/bower_components/ckeditor/plugins/copyformatting/lang/zh.js new file mode 100644 index 0000000..5528e32 --- /dev/null +++ b/public/bower_components/ckeditor/plugins/copyformatting/lang/zh.js @@ -0,0 +1 @@ +CKEDITOR.plugins.setLang("copyformatting","zh",{label:"格式化複製",notification:{copied:"已複製格式化",applied:"格式化已套用",canceled:"格式化已取消",failed:"格式化失敗。您無法在沒有複製它們前就套用樣式。"}});
\ No newline at end of file diff --git a/public/bower_components/ckeditor/plugins/copyformatting/plugin.js b/public/bower_components/ckeditor/plugins/copyformatting/plugin.js new file mode 100644 index 0000000..547cfea --- /dev/null +++ b/public/bower_components/ckeditor/plugins/copyformatting/plugin.js @@ -0,0 +1,28 @@ +/* + Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. + For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license +*/ +(function(){function k(a,b,d,e){var c=new CKEDITOR.dom.walker(a);if(a=a.startContainer.getAscendant(b,!0)||a.endContainer.getAscendant(b,!0))if(d(a),e)return;for(;a=c.next();)if(a=a.getAscendant(b,!0))if(d(a),e)break}function u(a,b){var d={ul:"ol",ol:"ul"};return-1!==l(b,function(b){return b.element===a||b.element===d[a]})}function q(a){this.styles=null;this.sticky=!1;this.editor=a;this.filter=new CKEDITOR.filter(a.config.copyFormatting_allowRules);!0===a.config.copyFormatting_allowRules&&(this.filter.disabled= +!0);a.config.copyFormatting_disallowRules&&this.filter.disallow(a.config.copyFormatting_disallowRules)}var l=CKEDITOR.tools.indexOf,r=CKEDITOR.tools.getMouseButton,t=!1;CKEDITOR.plugins.add("copyformatting",{lang:"az,de,en,it,ja,nb,nl,oc,pl,pt-br,ru,sv,tr,zh,zh-cn",icons:"copyformatting",hidpi:!0,init:function(a){var b=CKEDITOR.plugins.copyformatting;b._addScreenReaderContainer();t||(CKEDITOR.document.appendStyleSheet(this.path+"styles/copyformatting.css"),t=!0);a.addContentsCss&&a.addContentsCss(this.path+ +"styles/copyformatting.css");a.copyFormatting=new b.state(a);a.addCommand("copyFormatting",b.commands.copyFormatting);a.addCommand("applyFormatting",b.commands.applyFormatting);a.ui.addButton("CopyFormatting",{label:a.lang.copyformatting.label,command:"copyFormatting",toolbar:"cleanup,0"});a.on("contentDom",function(){var d=a.editable(),b=d.isInline()?d:a.document,c=a.ui.get("CopyFormatting");d.attachListener(b,"mouseup",function(b){r(b)===CKEDITOR.MOUSE_BUTTON_LEFT&&a.execCommand("applyFormatting")}); +d.attachListener(CKEDITOR.document,"mouseup",function(b){var e=a.getCommand("copyFormatting");r(b)!==CKEDITOR.MOUSE_BUTTON_LEFT||e.state!==CKEDITOR.TRISTATE_ON||d.contains(b.data.getTarget())||a.execCommand("copyFormatting")});c&&(b=CKEDITOR.document.getById(c._.id),d.attachListener(b,"dblclick",function(){a.execCommand("copyFormatting",{sticky:!0})}),d.attachListener(b,"mouseup",function(a){a.data.stopPropagation()}))});a.config.copyFormatting_keystrokeCopy&&a.setKeystroke(a.config.copyFormatting_keystrokeCopy, +"copyFormatting");a.on("key",function(b){var e=a.getCommand("copyFormatting");b=b.data.domEvent;b.getKeystroke&&27===b.getKeystroke()&&e.state===CKEDITOR.TRISTATE_ON&&a.execCommand("copyFormatting")});a.copyFormatting.on("extractFormatting",function(d){var e=d.data.element;if(e.contains(a.editable())||e.equals(a.editable()))return d.cancel();e=b._convertElementToStyleDef(e);if(!a.copyFormatting.filter.check(new CKEDITOR.style(e),!0,!0))return d.cancel();d.data.styleDef=e});a.copyFormatting.on("applyFormatting", +function(d){if(!d.data.preventFormatStripping){var e=d.data.range,c=b._extractStylesFromRange(a,e),f=b._determineContext(e),g,h;if(a.copyFormatting._isContextAllowed(f))for(h=0;h<c.length;h++)f=c[h],g=e.createBookmark(),-1===l(b.preservedElements,f.element)?CKEDITOR.env.webkit&&!CKEDITOR.env.chrome?c[h].removeFromRange(d.data.range,d.editor):c[h].remove(d.editor):u(f.element,d.data.styles)&&b._removeStylesFromElementInRange(e,f.element),e.moveToBookmark(g)}});a.copyFormatting.on("applyFormatting", +function(b){var e=CKEDITOR.plugins.copyformatting,c=e._determineContext(b.data.range);"list"===c&&a.copyFormatting._isContextAllowed("list")?e._applyStylesToListContext(b.editor,b.data.range,b.data.styles):"table"===c&&a.copyFormatting._isContextAllowed("table")?e._applyStylesToTableContext(b.editor,b.data.range,b.data.styles):a.copyFormatting._isContextAllowed("text")&&e._applyStylesToTextContext(b.editor,b.data.range,b.data.styles)},null,null,999)}});q.prototype._isContextAllowed=function(a){var b= +this.editor.config.copyFormatting_allowedContexts;return!0===b||-1!==l(b,a)};CKEDITOR.event.implementOn(q.prototype);CKEDITOR.plugins.copyformatting={state:q,inlineBoundary:"h1 h2 h3 h4 h5 h6 p div".split(" "),excludedAttributes:["id","style","href","data-cke-saved-href","dir"],elementsForInlineTransform:["li"],excludedElementsFromInlineTransform:["table","thead","tbody","ul","ol"],excludedAttributesFromInlineTransform:["value","type"],preservedElements:"ul ol li td th tr thead tbody table".split(" "), +breakOnElements:["ul","ol","table"],_initialKeystrokePasteCommand:null,commands:{copyFormatting:{exec:function(a,b){var d=CKEDITOR.plugins.copyformatting,e=a.copyFormatting,c=b?"keystrokeHandler"==b.from:!1,f=b?b.sticky||c:!1,g=d._getCursorContainer(a),h=CKEDITOR.document.getDocumentElement();if(this.state===CKEDITOR.TRISTATE_ON)return e.styles=null,e.sticky=!1,g.removeClass("cke_copyformatting_active"),h.removeClass("cke_copyformatting_disabled"),h.removeClass("cke_copyformatting_tableresize_cursor"), +d._putScreenReaderMessage(a,"canceled"),d._detachPasteKeystrokeHandler(a),this.setState(CKEDITOR.TRISTATE_OFF);e.styles=d._extractStylesFromElement(a,a.elementPath().lastElement);this.setState(CKEDITOR.TRISTATE_ON);c||(g.addClass("cke_copyformatting_active"),h.addClass("cke_copyformatting_tableresize_cursor"),a.config.copyFormatting_outerCursor&&h.addClass("cke_copyformatting_disabled"));e.sticky=f;d._putScreenReaderMessage(a,"copied");d._attachPasteKeystrokeHandler(a)}},applyFormatting:{editorFocus:CKEDITOR.env.ie&& +!CKEDITOR.env.edge?!1:!0,exec:function(a,b){var d=a.getCommand("copyFormatting"),e=b?"keystrokeHandler"==b.from:!1,c=CKEDITOR.plugins.copyformatting,f=a.copyFormatting,g=c._getCursorContainer(a),h=CKEDITOR.document.getDocumentElement();if(e||d.state===CKEDITOR.TRISTATE_ON){if(e&&!f.styles)return c._putScreenReaderMessage(a,"failed"),c._detachPasteKeystrokeHandler(a),!1;e=c._applyFormat(a,f.styles);f.sticky||(f.styles=null,g.removeClass("cke_copyformatting_active"),h.removeClass("cke_copyformatting_disabled"), +h.removeClass("cke_copyformatting_tableresize_cursor"),d.setState(CKEDITOR.TRISTATE_OFF),c._detachPasteKeystrokeHandler(a));c._putScreenReaderMessage(a,e?"applied":"canceled")}}}},_getCursorContainer:function(a){return a.elementMode===CKEDITOR.ELEMENT_MODE_INLINE?a.editable():a.editable().getParent()},_convertElementToStyleDef:function(a){var b=CKEDITOR.tools,d=a.getAttributes(CKEDITOR.plugins.copyformatting.excludedAttributes),b=b.parseCssText(a.getAttribute("style"),!0,!0);return{element:a.getName(), +type:CKEDITOR.STYLE_INLINE,attributes:d,styles:b}},_extractStylesFromElement:function(a,b){var d={},e=[];do if(b.type===CKEDITOR.NODE_ELEMENT&&!b.hasAttribute("data-cke-bookmark")&&(d.element=b,a.copyFormatting.fire("extractFormatting",d,a)&&d.styleDef&&e.push(new CKEDITOR.style(d.styleDef)),b.getName&&-1!==l(CKEDITOR.plugins.copyformatting.breakOnElements,b.getName())))break;while((b=b.getParent())&&b.type===CKEDITOR.NODE_ELEMENT);return e},_extractStylesFromRange:function(a,b){for(var d=[],e=new CKEDITOR.dom.walker(b), +c;c=e.next();)d=d.concat(CKEDITOR.plugins.copyformatting._extractStylesFromElement(a,c));return d},_removeStylesFromElementInRange:function(a,b){for(var d=-1!==l(["ol","ul","table"],b),e=new CKEDITOR.dom.walker(a),c;c=e.next();)if(c=c.getAscendant(b,!0))if(c.removeAttributes(c.getAttributes()),d)break},_getSelectedWordOffset:function(a){function b(a,b){return a[b?"getPrevious":"getNext"](function(a){return a.type!==CKEDITOR.NODE_COMMENT})}function d(a){return a.type==CKEDITOR.NODE_ELEMENT?(a=a.getHtml().replace(/<span.*?> <\/span>/g, +""),a.replace(/<.*?>/g,"")):a.getText()}function e(a,c){var f=a,g=/\s/g,h="p br ol ul li td th div caption body".split(" "),m=!1,k=!1,p,n;do{for(p=b(f,c);!p&&f.getParent();){f=f.getParent();if(-1!==l(h,f.getName())){k=m=!0;break}p=b(f,c)}if(p&&p.getName&&-1!==l(h,p.getName())){m=!0;break}f=p}while(f&&f.getStyle&&("none"==f.getStyle("display")||!f.getText()));for(f||(f=a);f.type!==CKEDITOR.NODE_TEXT;)f=!m||c||k?f.getChild(0):f.getChild(f.getChildCount()-1);for(h=d(f);null!=(k=g.exec(h))&&(n=k.index, +c););if("number"!==typeof n&&!m)return e(f,c);if(m)c?n=0:(g=/([\.\b]*$)/,n=(k=g.exec(h))?k.index:h.length);else if(c&&(n+=1,n>h.length))return e(f);return{node:f,offset:n}}var c=/\b\w+\b/ig,f,g,h,m,k;h=m=k=a.startContainer;for(f=d(h);null!=(g=c.exec(f));)if(g.index+g[0].length>=a.startOffset)return a=g.index,c=g.index+g[0].length,0===g.index&&(g=e(h,!0),m=g.node,a=g.offset),c>=f.length&&(f=e(h),k=f.node,c=f.offset),{startNode:m,startOffset:a,endNode:k,endOffset:c};return null},_filterStyles:function(a){var b= +CKEDITOR.tools.isEmpty,d=[],e,c;for(c=0;c<a.length;c++)e=a[c]._.definition,-1!==CKEDITOR.tools.indexOf(CKEDITOR.plugins.copyformatting.inlineBoundary,e.element)&&(e.element=a[c].element="span"),"span"===e.element&&b(e.attributes)&&b(e.styles)||d.push(a[c]);return d},_determineContext:function(a){function b(b){var e=new CKEDITOR.dom.walker(a),c;if(a.startContainer.getAscendant(b,!0)||a.endContainer.getAscendant(b,!0))return!0;for(;c=e.next();)if(c.getAscendant(b,!0))return!0}return b({ul:1,ol:1})? +"list":b("table")?"table":"text"},_applyStylesToTextContext:function(a,b,d){var e=CKEDITOR.plugins.copyformatting,c=e.excludedAttributesFromInlineTransform,f,g;CKEDITOR.env.webkit&&!CKEDITOR.env.chrome&&a.getSelection().selectRanges([b]);for(f=0;f<d.length;f++)if(b=d[f],-1===l(e.excludedElementsFromInlineTransform,b.element)){if(-1!==l(e.elementsForInlineTransform,b.element))for(b.element=b._.definition.element="span",g=0;g<c.length;g++)b._.definition.attributes[c[g]]&&delete b._.definition.attributes[c[g]]; +b.apply(a)}},_applyStylesToListContext:function(a,b,d){var e,c,f;for(f=0;f<d.length;f++)e=d[f],c=b.createBookmark(),"ol"===e.element||"ul"===e.element?k(b,{ul:1,ol:1},function(a){var b=e;a.getName()!==b.element&&a.renameNode(b.element);b.applyToObject(a)},!0):"li"===e.element?k(b,"li",function(a){e.applyToObject(a)}):CKEDITOR.plugins.copyformatting._applyStylesToTextContext(a,b,[e]),b.moveToBookmark(c)},_applyStylesToTableContext:function(a,b,d){function e(a,b){a.getName()!==b.element&&(b=b.getDefinition(), +b.element=a.getName(),b=new CKEDITOR.style(b));b.applyToObject(a)}var c,f,g;for(g=0;g<d.length;g++)c=d[g],f=b.createBookmark(),-1!==l(["table","tr"],c.element)?k(b,c.element,function(a){c.applyToObject(a)}):-1!==l(["td","th"],c.element)?k(b,{td:1,th:1},function(a){e(a,c)}):-1!==l(["thead","tbody"],c.element)?k(b,{thead:1,tbody:1},function(a){e(a,c)}):CKEDITOR.plugins.copyformatting._applyStylesToTextContext(a,b,[c]),b.moveToBookmark(f)},_applyFormat:function(a,b){var d=a.getSelection().getRanges()[0], +e=CKEDITOR.plugins.copyformatting,c,f;if(!d)return!1;if(d.collapsed){f=a.getSelection().createBookmarks();if(!(c=e._getSelectedWordOffset(d)))return;d=a.createRange();d.setStart(c.startNode,c.startOffset);d.setEnd(c.endNode,c.endOffset);d.select()}b=e._filterStyles(b);if(!a.copyFormatting.fire("applyFormatting",{styles:b,range:d,preventFormatStripping:!1},a))return!1;f&&a.getSelection().selectBookmarks(f);return!0},_putScreenReaderMessage:function(a,b){var d=this._getScreenReaderContainer();d&&d.setText(a.lang.copyformatting.notification[b])}, +_addScreenReaderContainer:function(){if(this._getScreenReaderContainer())return this._getScreenReaderContainer();if(!CKEDITOR.env.ie6Compat&&!CKEDITOR.env.ie7Compat)return CKEDITOR.document.getBody().append(CKEDITOR.dom.element.createFromHtml('\x3cdiv class\x3d"cke_screen_reader_only cke_copyformatting_notification"\x3e\x3cdiv aria-live\x3d"polite"\x3e\x3c/div\x3e\x3c/div\x3e')).getChild(0)},_getScreenReaderContainer:function(){if(!CKEDITOR.env.ie6Compat&&!CKEDITOR.env.ie7Compat)return CKEDITOR.document.getBody().findOne(".cke_copyformatting_notification div[aria-live]")}, +_attachPasteKeystrokeHandler:function(a){var b=a.config.copyFormatting_keystrokePaste;b&&(this._initialKeystrokePasteCommand=a.keystrokeHandler.keystrokes[b],a.setKeystroke(b,"applyFormatting"))},_detachPasteKeystrokeHandler:function(a){var b=a.config.copyFormatting_keystrokePaste;b&&a.setKeystroke(b,this._initialKeystrokePasteCommand||!1)}};CKEDITOR.config.copyFormatting_outerCursor=!0;CKEDITOR.config.copyFormatting_allowRules="b s u i em strong span p div td th ol ul li(*)[*]{*}";CKEDITOR.config.copyFormatting_disallowRules= +"*[data-cke-widget*,data-widget*,data-cke-realelement](cke_widget*)";CKEDITOR.config.copyFormatting_allowedContexts=!0;CKEDITOR.config.copyFormatting_keystrokeCopy=CKEDITOR.CTRL+CKEDITOR.SHIFT+67;CKEDITOR.config.copyFormatting_keystrokePaste=CKEDITOR.CTRL+CKEDITOR.SHIFT+86})();
\ No newline at end of file diff --git a/public/bower_components/ckeditor/plugins/copyformatting/styles/copyformatting.css b/public/bower_components/ckeditor/plugins/copyformatting/styles/copyformatting.css new file mode 100644 index 0000000..60c5ef6 --- /dev/null +++ b/public/bower_components/ckeditor/plugins/copyformatting/styles/copyformatting.css @@ -0,0 +1,45 @@ +/* +Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license +*/ + +html.cke_copyformatting_active { + min-height: 100%; +} + +/* There is no cursor in CUR format for IE/Edge as that browser + does not support custom cursor in [contenteditable] area. + Ticket for this issue: + https://connect.microsoft.com/IE/feedback/details/1070215/cant-change-cursor-in-contenteditable-using-css */ +.cke_copyformatting_disabled, +.cke_copyformatting_disabled a, +.cke_copyformatting_disabled .cke_editable { + cursor: url(../cursors/cursor-disabled.svg) 12 1, auto; +} + +.cke_copyformatting_disabled .cke_top a, +.cke_copyformatting_disabled .cke_bottom a { + cursor: default; +} + +/* Added `!important` rule as a fix for overriding the cursor by the Table Resize plugin. + The `!important` rule is used because the Table Resize plugin creates a `<div>` which changes the cursor using inlined styles. */ +.cke_copyformatting_active, +.cke_copyformatting_active.cke_editable, +.cke_copyformatting_active .cke_editable, +.cke_copyformatting_active a, +.cke_copyformatting_active table, +.cke_copyformatting_active div[data-cke-temp], +.cke_copyformatting_tableresize_cursor div[data-cke-temp] { + cursor: url(../cursors/cursor.svg) 12 1, auto !important; +} + +.cke_screen_reader_only { + position: absolute; + clip: rect(1px, 1px, 1px, 1px); + padding: 0; + border: 0; + height: 1px; + width: 1px; + overflow: hidden; +} |