diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-12-04 18:55:29 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-12-04 18:55:29 +0100 |
commit | 1794320dcfdfcd19572fb1676294f9853a6bbc20 (patch) | |
tree | a4c9e978947d6930d50391747382d7f95a5863e3 /sources/plugins/fakeobjects | |
parent | 7183f6a6a21ad9124e70c997e0168459f377a9f2 (diff) | |
download | ludivine-ckeditor-component-master.tar.gz ludivine-ckeditor-component-master.tar.zst ludivine-ckeditor-component-master.zip |
Diffstat (limited to 'sources/plugins/fakeobjects')
-rw-r--r-- | sources/plugins/fakeobjects/lang/es-mx.js | 11 | ||||
-rw-r--r-- | sources/plugins/fakeobjects/plugin.js | 28 |
2 files changed, 33 insertions, 6 deletions
diff --git a/sources/plugins/fakeobjects/lang/es-mx.js b/sources/plugins/fakeobjects/lang/es-mx.js new file mode 100644 index 0000000..f9e87e7 --- /dev/null +++ b/sources/plugins/fakeobjects/lang/es-mx.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'fakeobjects', 'es-mx', { | ||
6 | anchor: 'Ancla', | ||
7 | flash: 'Animación flash', | ||
8 | hiddenfield: 'Campo oculto', | ||
9 | iframe: 'IFrame', | ||
10 | unknown: 'Objeto desconocido' | ||
11 | } ); | ||
diff --git a/sources/plugins/fakeobjects/plugin.js b/sources/plugins/fakeobjects/plugin.js index d35698b..b1a8e0c 100644 --- a/sources/plugins/fakeobjects/plugin.js +++ b/sources/plugins/fakeobjects/plugin.js | |||
@@ -53,7 +53,7 @@ | |||
53 | 53 | ||
54 | CKEDITOR.plugins.add( 'fakeobjects', { | 54 | CKEDITOR.plugins.add( 'fakeobjects', { |
55 | // jscs:disable maximumLineLength | 55 | // jscs:disable maximumLineLength |
56 | lang: 'af,ar,az,bg,bn,bs,ca,cs,cy,da,de,de-ch,el,en,en-au,en-ca,en-gb,eo,es,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,oc,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE% | 56 | lang: 'af,ar,az,bg,bn,bs,ca,cs,cy,da,de,de-ch,el,en,en-au,en-ca,en-gb,eo,es,es-mx,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,oc,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE% |
57 | // jscs:enable maximumLineLength | 57 | // jscs:enable maximumLineLength |
58 | 58 | ||
59 | init: function( editor ) { | 59 | init: function( editor ) { |
@@ -75,8 +75,15 @@ | |||
75 | } ); | 75 | } ); |
76 | 76 | ||
77 | /** | 77 | /** |
78 | * Creates fake {@link CKEDITOR.dom.element} based on real element. | ||
79 | * Fake element is an img with special attributes, which keep real element properties. | ||
80 | * | ||
78 | * @member CKEDITOR.editor | 81 | * @member CKEDITOR.editor |
79 | * @todo | 82 | * @param {CKEDITOR.dom.element} realElement Real element to transform. |
83 | * @param {String} className Class name which will be used as class of fake element. | ||
84 | * @param {String} realElementType Stores type of fake element. | ||
85 | * @param {Boolean} isResizable Keeps information if element is resizable. | ||
86 | * @returns {CKEDITOR.dom.element} Fake element. | ||
80 | */ | 87 | */ |
81 | CKEDITOR.editor.prototype.createFakeElement = function( realElement, className, realElementType, isResizable ) { | 88 | CKEDITOR.editor.prototype.createFakeElement = function( realElement, className, realElementType, isResizable ) { |
82 | var lang = this.lang.fakeobjects, | 89 | var lang = this.lang.fakeobjects, |
@@ -91,7 +98,7 @@ | |||
91 | align: realElement.getAttribute( 'align' ) || '' | 98 | align: realElement.getAttribute( 'align' ) || '' |
92 | }; | 99 | }; |
93 | 100 | ||
94 | // Do not set "src" on high-contrast so the alt text is displayed. (#8945) | 101 | // Do not set "src" on high-contrast so the alt text is displayed. (http://dev.ckeditor.com/ticket/8945) |
95 | if ( !CKEDITOR.env.hc ) | 102 | if ( !CKEDITOR.env.hc ) |
96 | attributes.src = CKEDITOR.tools.transparentImageData; | 103 | attributes.src = CKEDITOR.tools.transparentImageData; |
97 | 104 | ||
@@ -115,8 +122,14 @@ | |||
115 | }; | 122 | }; |
116 | 123 | ||
117 | /** | 124 | /** |
125 | * Creates fake {@link CKEDITOR.htmlParser.element} based on real element. | ||
126 | * | ||
118 | * @member CKEDITOR.editor | 127 | * @member CKEDITOR.editor |
119 | * @todo | 128 | * @param {CKEDITOR.dom.element} realElement Real element to transform. |
129 | * @param {String} className Class name which will be used as class of fake element. | ||
130 | * @param {String} realElementType Store type of fake element. | ||
131 | * @param {Boolean} isResizable Keep information if element is resizable. | ||
132 | * @returns {CKEDITOR.htmlParser.element} Fake htmlParser element. | ||
120 | */ | 133 | */ |
121 | CKEDITOR.editor.prototype.createFakeParserElement = function( realElement, className, realElementType, isResizable ) { | 134 | CKEDITOR.editor.prototype.createFakeParserElement = function( realElement, className, realElementType, isResizable ) { |
122 | var lang = this.lang.fakeobjects, | 135 | var lang = this.lang.fakeobjects, |
@@ -136,7 +149,7 @@ | |||
136 | align: realElement.attributes.align || '' | 149 | align: realElement.attributes.align || '' |
137 | }; | 150 | }; |
138 | 151 | ||
139 | // Do not set "src" on high-contrast so the alt text is displayed. (#8945) | 152 | // Do not set "src" on high-contrast so the alt text is displayed. (http://dev.ckeditor.com/ticket/8945) |
140 | if ( !CKEDITOR.env.hc ) | 153 | if ( !CKEDITOR.env.hc ) |
141 | attributes.src = CKEDITOR.tools.transparentImageData; | 154 | attributes.src = CKEDITOR.tools.transparentImageData; |
142 | 155 | ||
@@ -160,8 +173,11 @@ | |||
160 | }; | 173 | }; |
161 | 174 | ||
162 | /** | 175 | /** |
176 | * Creates {@link CKEDITOR.dom.element} from fake element. | ||
177 | * | ||
163 | * @member CKEDITOR.editor | 178 | * @member CKEDITOR.editor |
164 | * @todo | 179 | * @param {CKEDITOR.dom.element} fakeElement Fake element to transform. |
180 | * @returns {CKEDITOR.dom.element/null} Returns real element or `null` if transformed element wasn't fake. | ||
165 | */ | 181 | */ |
166 | CKEDITOR.editor.prototype.restoreRealElement = function( fakeElement ) { | 182 | CKEDITOR.editor.prototype.restoreRealElement = function( fakeElement ) { |
167 | if ( fakeElement.data( 'cke-real-node-type' ) != CKEDITOR.NODE_ELEMENT ) | 183 | if ( fakeElement.data( 'cke-real-node-type' ) != CKEDITOR.NODE_ELEMENT ) |