diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-01-25 17:45:33 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-01-25 18:00:33 +0100 |
commit | 7adcb81e4f83f98c468889aaa5a85558ba88c770 (patch) | |
tree | 0d6ede733777b29060b48df4afaa2c64bfbae276 /sources/plugins/blockquote | |
download | connexionswing-ckeditor-component-7adcb81e4f83f98c468889aaa5a85558ba88c770.tar.gz connexionswing-ckeditor-component-7adcb81e4f83f98c468889aaa5a85558ba88c770.tar.zst connexionswing-ckeditor-component-7adcb81e4f83f98c468889aaa5a85558ba88c770.zip |
Initial commit4.5.6
Diffstat (limited to 'sources/plugins/blockquote')
69 files changed, 713 insertions, 0 deletions
diff --git a/sources/plugins/blockquote/icons/blockquote.png b/sources/plugins/blockquote/icons/blockquote.png new file mode 100644 index 00000000..95293e25 --- /dev/null +++ b/sources/plugins/blockquote/icons/blockquote.png | |||
Binary files differ | |||
diff --git a/sources/plugins/blockquote/icons/hidpi/blockquote.png b/sources/plugins/blockquote/icons/hidpi/blockquote.png new file mode 100644 index 00000000..50c23b9f --- /dev/null +++ b/sources/plugins/blockquote/icons/hidpi/blockquote.png | |||
Binary files differ | |||
diff --git a/sources/plugins/blockquote/lang/af.js b/sources/plugins/blockquote/lang/af.js new file mode 100644 index 00000000..e615381f --- /dev/null +++ b/sources/plugins/blockquote/lang/af.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'af', { | ||
6 | toolbar: 'Sitaatblok' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/ar.js b/sources/plugins/blockquote/lang/ar.js new file mode 100644 index 00000000..eb22b93e --- /dev/null +++ b/sources/plugins/blockquote/lang/ar.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'ar', { | ||
6 | toolbar: 'اقتباس' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/bg.js b/sources/plugins/blockquote/lang/bg.js new file mode 100644 index 00000000..97e6f126 --- /dev/null +++ b/sources/plugins/blockquote/lang/bg.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'bg', { | ||
6 | toolbar: 'Блок за цитат' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/bn.js b/sources/plugins/blockquote/lang/bn.js new file mode 100644 index 00000000..02ab2002 --- /dev/null +++ b/sources/plugins/blockquote/lang/bn.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'bn', { | ||
6 | toolbar: 'Block Quote' // MISSING | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/bs.js b/sources/plugins/blockquote/lang/bs.js new file mode 100644 index 00000000..3a4d3f38 --- /dev/null +++ b/sources/plugins/blockquote/lang/bs.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'bs', { | ||
6 | toolbar: 'Block Quote' // MISSING | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/ca.js b/sources/plugins/blockquote/lang/ca.js new file mode 100644 index 00000000..41bfbc73 --- /dev/null +++ b/sources/plugins/blockquote/lang/ca.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'ca', { | ||
6 | toolbar: 'Bloc de cita' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/cs.js b/sources/plugins/blockquote/lang/cs.js new file mode 100644 index 00000000..7c63ff53 --- /dev/null +++ b/sources/plugins/blockquote/lang/cs.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'cs', { | ||
6 | toolbar: 'Citace' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/cy.js b/sources/plugins/blockquote/lang/cy.js new file mode 100644 index 00000000..a47b50ab --- /dev/null +++ b/sources/plugins/blockquote/lang/cy.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'cy', { | ||
6 | toolbar: 'Dyfyniad bloc' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/da.js b/sources/plugins/blockquote/lang/da.js new file mode 100644 index 00000000..e1f8de13 --- /dev/null +++ b/sources/plugins/blockquote/lang/da.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'da', { | ||
6 | toolbar: 'Blokcitat' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/de.js b/sources/plugins/blockquote/lang/de.js new file mode 100644 index 00000000..e5c47e5f --- /dev/null +++ b/sources/plugins/blockquote/lang/de.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'de', { | ||
6 | toolbar: 'Zitatblock' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/el.js b/sources/plugins/blockquote/lang/el.js new file mode 100644 index 00000000..af7cde55 --- /dev/null +++ b/sources/plugins/blockquote/lang/el.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'el', { | ||
6 | toolbar: 'Περιοχή Παράθεσης' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/en-au.js b/sources/plugins/blockquote/lang/en-au.js new file mode 100644 index 00000000..9f70e6ce --- /dev/null +++ b/sources/plugins/blockquote/lang/en-au.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'en-au', { | ||
6 | toolbar: 'Block Quote' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/en-ca.js b/sources/plugins/blockquote/lang/en-ca.js new file mode 100644 index 00000000..7caafa22 --- /dev/null +++ b/sources/plugins/blockquote/lang/en-ca.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'en-ca', { | ||
6 | toolbar: 'Block Quote' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/en-gb.js b/sources/plugins/blockquote/lang/en-gb.js new file mode 100644 index 00000000..f894911a --- /dev/null +++ b/sources/plugins/blockquote/lang/en-gb.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'en-gb', { | ||
6 | toolbar: 'Block Quote' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/en.js b/sources/plugins/blockquote/lang/en.js new file mode 100644 index 00000000..33c50694 --- /dev/null +++ b/sources/plugins/blockquote/lang/en.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'en', { | ||
6 | toolbar: 'Block Quote' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/eo.js b/sources/plugins/blockquote/lang/eo.js new file mode 100644 index 00000000..b33c6f18 --- /dev/null +++ b/sources/plugins/blockquote/lang/eo.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'eo', { | ||
6 | toolbar: 'Citaĵo' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/es.js b/sources/plugins/blockquote/lang/es.js new file mode 100644 index 00000000..fb4e834e --- /dev/null +++ b/sources/plugins/blockquote/lang/es.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'es', { | ||
6 | toolbar: 'Cita' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/et.js b/sources/plugins/blockquote/lang/et.js new file mode 100644 index 00000000..eb9eaa55 --- /dev/null +++ b/sources/plugins/blockquote/lang/et.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'et', { | ||
6 | toolbar: 'Blokktsitaat' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/eu.js b/sources/plugins/blockquote/lang/eu.js new file mode 100644 index 00000000..6320397b --- /dev/null +++ b/sources/plugins/blockquote/lang/eu.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'eu', { | ||
6 | toolbar: 'Aipamen blokea' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/fa.js b/sources/plugins/blockquote/lang/fa.js new file mode 100644 index 00000000..2f12a50e --- /dev/null +++ b/sources/plugins/blockquote/lang/fa.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'fa', { | ||
6 | toolbar: 'بلوک نقل قول' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/fi.js b/sources/plugins/blockquote/lang/fi.js new file mode 100644 index 00000000..44924d0a --- /dev/null +++ b/sources/plugins/blockquote/lang/fi.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'fi', { | ||
6 | toolbar: 'Lainaus' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/fo.js b/sources/plugins/blockquote/lang/fo.js new file mode 100644 index 00000000..0557b99c --- /dev/null +++ b/sources/plugins/blockquote/lang/fo.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'fo', { | ||
6 | toolbar: 'Blockquote' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/fr-ca.js b/sources/plugins/blockquote/lang/fr-ca.js new file mode 100644 index 00000000..0ae3f2b2 --- /dev/null +++ b/sources/plugins/blockquote/lang/fr-ca.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'fr-ca', { | ||
6 | toolbar: 'Citation' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/fr.js b/sources/plugins/blockquote/lang/fr.js new file mode 100644 index 00000000..21710d24 --- /dev/null +++ b/sources/plugins/blockquote/lang/fr.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'fr', { | ||
6 | toolbar: 'Citation' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/gl.js b/sources/plugins/blockquote/lang/gl.js new file mode 100644 index 00000000..0ace64eb --- /dev/null +++ b/sources/plugins/blockquote/lang/gl.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'gl', { | ||
6 | toolbar: 'Cita' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/gu.js b/sources/plugins/blockquote/lang/gu.js new file mode 100644 index 00000000..9fc65baa --- /dev/null +++ b/sources/plugins/blockquote/lang/gu.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'gu', { | ||
6 | toolbar: 'બ્લૉક-કોટ, અવતરણચિહ્નો' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/he.js b/sources/plugins/blockquote/lang/he.js new file mode 100644 index 00000000..a10d7e40 --- /dev/null +++ b/sources/plugins/blockquote/lang/he.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'he', { | ||
6 | toolbar: 'בלוק ציטוט' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/hi.js b/sources/plugins/blockquote/lang/hi.js new file mode 100644 index 00000000..b7481e24 --- /dev/null +++ b/sources/plugins/blockquote/lang/hi.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'hi', { | ||
6 | toolbar: 'ब्लॉक-कोट' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/hr.js b/sources/plugins/blockquote/lang/hr.js new file mode 100644 index 00000000..421ffd57 --- /dev/null +++ b/sources/plugins/blockquote/lang/hr.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'hr', { | ||
6 | toolbar: 'Blockquote' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/hu.js b/sources/plugins/blockquote/lang/hu.js new file mode 100644 index 00000000..5bf22703 --- /dev/null +++ b/sources/plugins/blockquote/lang/hu.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'hu', { | ||
6 | toolbar: 'Idézet blokk' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/id.js b/sources/plugins/blockquote/lang/id.js new file mode 100644 index 00000000..3cab0ac3 --- /dev/null +++ b/sources/plugins/blockquote/lang/id.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'id', { | ||
6 | toolbar: 'Kutipan Blok' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/is.js b/sources/plugins/blockquote/lang/is.js new file mode 100644 index 00000000..04f13a9b --- /dev/null +++ b/sources/plugins/blockquote/lang/is.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'is', { | ||
6 | toolbar: 'Inndráttur' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/it.js b/sources/plugins/blockquote/lang/it.js new file mode 100644 index 00000000..77de24eb --- /dev/null +++ b/sources/plugins/blockquote/lang/it.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'it', { | ||
6 | toolbar: 'Citazione' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/ja.js b/sources/plugins/blockquote/lang/ja.js new file mode 100644 index 00000000..d6155ea0 --- /dev/null +++ b/sources/plugins/blockquote/lang/ja.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'ja', { | ||
6 | toolbar: 'ブロック引用文' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/ka.js b/sources/plugins/blockquote/lang/ka.js new file mode 100644 index 00000000..826113bb --- /dev/null +++ b/sources/plugins/blockquote/lang/ka.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'ka', { | ||
6 | toolbar: 'ციტატა' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/km.js b/sources/plugins/blockquote/lang/km.js new file mode 100644 index 00000000..a29f072c --- /dev/null +++ b/sources/plugins/blockquote/lang/km.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'km', { | ||
6 | toolbar: 'ប្លក់ពាក្យសម្រង់' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/ko.js b/sources/plugins/blockquote/lang/ko.js new file mode 100644 index 00000000..f27c777d --- /dev/null +++ b/sources/plugins/blockquote/lang/ko.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'ko', { | ||
6 | toolbar: '인용 단락' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/ku.js b/sources/plugins/blockquote/lang/ku.js new file mode 100644 index 00000000..c6e22aa6 --- /dev/null +++ b/sources/plugins/blockquote/lang/ku.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'ku', { | ||
6 | toolbar: 'بەربەستکردنی ووتەی وەرگیراو' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/lt.js b/sources/plugins/blockquote/lang/lt.js new file mode 100644 index 00000000..775232a0 --- /dev/null +++ b/sources/plugins/blockquote/lang/lt.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'lt', { | ||
6 | toolbar: 'Citata' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/lv.js b/sources/plugins/blockquote/lang/lv.js new file mode 100644 index 00000000..006ec477 --- /dev/null +++ b/sources/plugins/blockquote/lang/lv.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'lv', { | ||
6 | toolbar: 'Bloka citāts' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/mk.js b/sources/plugins/blockquote/lang/mk.js new file mode 100644 index 00000000..87167bae --- /dev/null +++ b/sources/plugins/blockquote/lang/mk.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'mk', { | ||
6 | toolbar: 'Block Quote' // MISSING | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/mn.js b/sources/plugins/blockquote/lang/mn.js new file mode 100644 index 00000000..a18eb38c --- /dev/null +++ b/sources/plugins/blockquote/lang/mn.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'mn', { | ||
6 | toolbar: 'Ишлэл хэсэг' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/ms.js b/sources/plugins/blockquote/lang/ms.js new file mode 100644 index 00000000..4c7e7b47 --- /dev/null +++ b/sources/plugins/blockquote/lang/ms.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'ms', { | ||
6 | toolbar: 'Block Quote' // MISSING | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/nb.js b/sources/plugins/blockquote/lang/nb.js new file mode 100644 index 00000000..154c2609 --- /dev/null +++ b/sources/plugins/blockquote/lang/nb.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'nb', { | ||
6 | toolbar: 'Blokksitat' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/nl.js b/sources/plugins/blockquote/lang/nl.js new file mode 100644 index 00000000..ef45be9a --- /dev/null +++ b/sources/plugins/blockquote/lang/nl.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'nl', { | ||
6 | toolbar: 'Citaatblok' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/no.js b/sources/plugins/blockquote/lang/no.js new file mode 100644 index 00000000..79388492 --- /dev/null +++ b/sources/plugins/blockquote/lang/no.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'no', { | ||
6 | toolbar: 'Blokksitat' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/pl.js b/sources/plugins/blockquote/lang/pl.js new file mode 100644 index 00000000..ebaab5db --- /dev/null +++ b/sources/plugins/blockquote/lang/pl.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'pl', { | ||
6 | toolbar: 'Cytat' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/pt-br.js b/sources/plugins/blockquote/lang/pt-br.js new file mode 100644 index 00000000..8fbe5004 --- /dev/null +++ b/sources/plugins/blockquote/lang/pt-br.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'pt-br', { | ||
6 | toolbar: 'Citação' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/pt.js b/sources/plugins/blockquote/lang/pt.js new file mode 100644 index 00000000..98c65b03 --- /dev/null +++ b/sources/plugins/blockquote/lang/pt.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'pt', { | ||
6 | toolbar: 'Bloco de citação' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/ro.js b/sources/plugins/blockquote/lang/ro.js new file mode 100644 index 00000000..699ee2cd --- /dev/null +++ b/sources/plugins/blockquote/lang/ro.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'ro', { | ||
6 | toolbar: 'Citat' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/ru.js b/sources/plugins/blockquote/lang/ru.js new file mode 100644 index 00000000..b7ddbb46 --- /dev/null +++ b/sources/plugins/blockquote/lang/ru.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'ru', { | ||
6 | toolbar: 'Цитата' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/si.js b/sources/plugins/blockquote/lang/si.js new file mode 100644 index 00000000..0cf851aa --- /dev/null +++ b/sources/plugins/blockquote/lang/si.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'si', { | ||
6 | toolbar: 'උද්ධෘත කොටස' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/sk.js b/sources/plugins/blockquote/lang/sk.js new file mode 100644 index 00000000..3ee34ea8 --- /dev/null +++ b/sources/plugins/blockquote/lang/sk.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'sk', { | ||
6 | toolbar: 'Citácia' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/sl.js b/sources/plugins/blockquote/lang/sl.js new file mode 100644 index 00000000..50201069 --- /dev/null +++ b/sources/plugins/blockquote/lang/sl.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'sl', { | ||
6 | toolbar: 'Citat' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/sq.js b/sources/plugins/blockquote/lang/sq.js new file mode 100644 index 00000000..3e99a148 --- /dev/null +++ b/sources/plugins/blockquote/lang/sq.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'sq', { | ||
6 | toolbar: 'Citatet' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/sr-latn.js b/sources/plugins/blockquote/lang/sr-latn.js new file mode 100644 index 00000000..8372a930 --- /dev/null +++ b/sources/plugins/blockquote/lang/sr-latn.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'sr-latn', { | ||
6 | toolbar: 'Block Quote' // MISSING | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/sr.js b/sources/plugins/blockquote/lang/sr.js new file mode 100644 index 00000000..afbb2b6a --- /dev/null +++ b/sources/plugins/blockquote/lang/sr.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'sr', { | ||
6 | toolbar: 'Block Quote' // MISSING | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/sv.js b/sources/plugins/blockquote/lang/sv.js new file mode 100644 index 00000000..6002c515 --- /dev/null +++ b/sources/plugins/blockquote/lang/sv.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'sv', { | ||
6 | toolbar: 'Blockcitat' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/th.js b/sources/plugins/blockquote/lang/th.js new file mode 100644 index 00000000..dbda0a53 --- /dev/null +++ b/sources/plugins/blockquote/lang/th.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'th', { | ||
6 | toolbar: 'Block Quote' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/tr.js b/sources/plugins/blockquote/lang/tr.js new file mode 100644 index 00000000..db22c313 --- /dev/null +++ b/sources/plugins/blockquote/lang/tr.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'tr', { | ||
6 | toolbar: 'Blok Oluştur' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/tt.js b/sources/plugins/blockquote/lang/tt.js new file mode 100644 index 00000000..4dc271e3 --- /dev/null +++ b/sources/plugins/blockquote/lang/tt.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'tt', { | ||
6 | toolbar: 'Өземтә блогы' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/ug.js b/sources/plugins/blockquote/lang/ug.js new file mode 100644 index 00000000..5be430bf --- /dev/null +++ b/sources/plugins/blockquote/lang/ug.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'ug', { | ||
6 | toolbar: 'بۆلەك نەقىل' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/uk.js b/sources/plugins/blockquote/lang/uk.js new file mode 100644 index 00000000..b425fdaa --- /dev/null +++ b/sources/plugins/blockquote/lang/uk.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'uk', { | ||
6 | toolbar: 'Цитата' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/vi.js b/sources/plugins/blockquote/lang/vi.js new file mode 100644 index 00000000..e4eb496b --- /dev/null +++ b/sources/plugins/blockquote/lang/vi.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'vi', { | ||
6 | toolbar: 'Khối trích dẫn' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/zh-cn.js b/sources/plugins/blockquote/lang/zh-cn.js new file mode 100644 index 00000000..76a92636 --- /dev/null +++ b/sources/plugins/blockquote/lang/zh-cn.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'zh-cn', { | ||
6 | toolbar: '块引用' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/lang/zh.js b/sources/plugins/blockquote/lang/zh.js new file mode 100644 index 00000000..7f892984 --- /dev/null +++ b/sources/plugins/blockquote/lang/zh.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'blockquote', 'zh', { | ||
6 | toolbar: '引用段落' | ||
7 | } ); | ||
diff --git a/sources/plugins/blockquote/plugin.js b/sources/plugins/blockquote/plugin.js new file mode 100644 index 00000000..0b2bf332 --- /dev/null +++ b/sources/plugins/blockquote/plugin.js | |||
@@ -0,0 +1,251 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | ( function() { | ||
7 | function noBlockLeft( bqBlock ) { | ||
8 | for ( var i = 0, length = bqBlock.getChildCount(), child; i < length && ( child = bqBlock.getChild( i ) ); i++ ) { | ||
9 | if ( child.type == CKEDITOR.NODE_ELEMENT && child.isBlockBoundary() ) | ||
10 | return false; | ||
11 | } | ||
12 | return true; | ||
13 | } | ||
14 | |||
15 | var commandObject = { | ||
16 | exec: function( editor ) { | ||
17 | var state = editor.getCommand( 'blockquote' ).state, | ||
18 | selection = editor.getSelection(), | ||
19 | range = selection && selection.getRanges()[ 0 ]; | ||
20 | |||
21 | if ( !range ) | ||
22 | return; | ||
23 | |||
24 | var bookmarks = selection.createBookmarks(); | ||
25 | |||
26 | // Kludge for #1592: if the bookmark nodes are in the beginning of | ||
27 | // blockquote, then move them to the nearest block element in the | ||
28 | // blockquote. | ||
29 | if ( CKEDITOR.env.ie ) { | ||
30 | var bookmarkStart = bookmarks[ 0 ].startNode, | ||
31 | bookmarkEnd = bookmarks[ 0 ].endNode, | ||
32 | cursor; | ||
33 | |||
34 | if ( bookmarkStart && bookmarkStart.getParent().getName() == 'blockquote' ) { | ||
35 | cursor = bookmarkStart; | ||
36 | while ( ( cursor = cursor.getNext() ) ) { | ||
37 | if ( cursor.type == CKEDITOR.NODE_ELEMENT && cursor.isBlockBoundary() ) { | ||
38 | bookmarkStart.move( cursor, true ); | ||
39 | break; | ||
40 | } | ||
41 | } | ||
42 | } | ||
43 | |||
44 | if ( bookmarkEnd && bookmarkEnd.getParent().getName() == 'blockquote' ) { | ||
45 | cursor = bookmarkEnd; | ||
46 | while ( ( cursor = cursor.getPrevious() ) ) { | ||
47 | if ( cursor.type == CKEDITOR.NODE_ELEMENT && cursor.isBlockBoundary() ) { | ||
48 | bookmarkEnd.move( cursor ); | ||
49 | break; | ||
50 | } | ||
51 | } | ||
52 | } | ||
53 | } | ||
54 | |||
55 | var iterator = range.createIterator(), | ||
56 | block; | ||
57 | iterator.enlargeBr = editor.config.enterMode != CKEDITOR.ENTER_BR; | ||
58 | |||
59 | if ( state == CKEDITOR.TRISTATE_OFF ) { | ||
60 | var paragraphs = []; | ||
61 | while ( ( block = iterator.getNextParagraph() ) ) | ||
62 | paragraphs.push( block ); | ||
63 | |||
64 | // If no paragraphs, create one from the current selection position. | ||
65 | if ( paragraphs.length < 1 ) { | ||
66 | var para = editor.document.createElement( editor.config.enterMode == CKEDITOR.ENTER_P ? 'p' : 'div' ), | ||
67 | firstBookmark = bookmarks.shift(); | ||
68 | range.insertNode( para ); | ||
69 | para.append( new CKEDITOR.dom.text( '\ufeff', editor.document ) ); | ||
70 | range.moveToBookmark( firstBookmark ); | ||
71 | range.selectNodeContents( para ); | ||
72 | range.collapse( true ); | ||
73 | firstBookmark = range.createBookmark(); | ||
74 | paragraphs.push( para ); | ||
75 | bookmarks.unshift( firstBookmark ); | ||
76 | } | ||
77 | |||
78 | // Make sure all paragraphs have the same parent. | ||
79 | var commonParent = paragraphs[ 0 ].getParent(), | ||
80 | tmp = []; | ||
81 | for ( var i = 0; i < paragraphs.length; i++ ) { | ||
82 | block = paragraphs[ i ]; | ||
83 | commonParent = commonParent.getCommonAncestor( block.getParent() ); | ||
84 | } | ||
85 | |||
86 | // The common parent must not be the following tags: table, tbody, tr, ol, ul. | ||
87 | var denyTags = { table: 1, tbody: 1, tr: 1, ol: 1, ul: 1 }; | ||
88 | while ( denyTags[ commonParent.getName() ] ) | ||
89 | commonParent = commonParent.getParent(); | ||
90 | |||
91 | // Reconstruct the block list to be processed such that all resulting blocks | ||
92 | // satisfy parentNode.equals( commonParent ). | ||
93 | var lastBlock = null; | ||
94 | while ( paragraphs.length > 0 ) { | ||
95 | block = paragraphs.shift(); | ||
96 | while ( !block.getParent().equals( commonParent ) ) | ||
97 | block = block.getParent(); | ||
98 | if ( !block.equals( lastBlock ) ) | ||
99 | tmp.push( block ); | ||
100 | lastBlock = block; | ||
101 | } | ||
102 | |||
103 | // If any of the selected blocks is a blockquote, remove it to prevent | ||
104 | // nested blockquotes. | ||
105 | while ( tmp.length > 0 ) { | ||
106 | block = tmp.shift(); | ||
107 | if ( block.getName() == 'blockquote' ) { | ||
108 | var docFrag = new CKEDITOR.dom.documentFragment( editor.document ); | ||
109 | while ( block.getFirst() ) { | ||
110 | docFrag.append( block.getFirst().remove() ); | ||
111 | paragraphs.push( docFrag.getLast() ); | ||
112 | } | ||
113 | |||
114 | docFrag.replace( block ); | ||
115 | } else { | ||
116 | paragraphs.push( block ); | ||
117 | } | ||
118 | } | ||
119 | |||
120 | // Now we have all the blocks to be included in a new blockquote node. | ||
121 | var bqBlock = editor.document.createElement( 'blockquote' ); | ||
122 | bqBlock.insertBefore( paragraphs[ 0 ] ); | ||
123 | while ( paragraphs.length > 0 ) { | ||
124 | block = paragraphs.shift(); | ||
125 | bqBlock.append( block ); | ||
126 | } | ||
127 | } else if ( state == CKEDITOR.TRISTATE_ON ) { | ||
128 | var moveOutNodes = [], | ||
129 | database = {}; | ||
130 | |||
131 | while ( ( block = iterator.getNextParagraph() ) ) { | ||
132 | var bqParent = null, | ||
133 | bqChild = null; | ||
134 | while ( block.getParent() ) { | ||
135 | if ( block.getParent().getName() == 'blockquote' ) { | ||
136 | bqParent = block.getParent(); | ||
137 | bqChild = block; | ||
138 | break; | ||
139 | } | ||
140 | block = block.getParent(); | ||
141 | } | ||
142 | |||
143 | // Remember the blocks that were recorded down in the moveOutNodes array | ||
144 | // to prevent duplicates. | ||
145 | if ( bqParent && bqChild && !bqChild.getCustomData( 'blockquote_moveout' ) ) { | ||
146 | moveOutNodes.push( bqChild ); | ||
147 | CKEDITOR.dom.element.setMarker( database, bqChild, 'blockquote_moveout', true ); | ||
148 | } | ||
149 | } | ||
150 | |||
151 | CKEDITOR.dom.element.clearAllMarkers( database ); | ||
152 | |||
153 | var movedNodes = [], | ||
154 | processedBlockquoteBlocks = []; | ||
155 | |||
156 | database = {}; | ||
157 | while ( moveOutNodes.length > 0 ) { | ||
158 | var node = moveOutNodes.shift(); | ||
159 | bqBlock = node.getParent(); | ||
160 | |||
161 | // If the node is located at the beginning or the end, just take it out | ||
162 | // without splitting. Otherwise, split the blockquote node and move the | ||
163 | // paragraph in between the two blockquote nodes. | ||
164 | if ( !node.getPrevious() ) | ||
165 | node.remove().insertBefore( bqBlock ); | ||
166 | else if ( !node.getNext() ) | ||
167 | node.remove().insertAfter( bqBlock ); | ||
168 | else { | ||
169 | node.breakParent( node.getParent() ); | ||
170 | processedBlockquoteBlocks.push( node.getNext() ); | ||
171 | } | ||
172 | |||
173 | // Remember the blockquote node so we can clear it later (if it becomes empty). | ||
174 | if ( !bqBlock.getCustomData( 'blockquote_processed' ) ) { | ||
175 | processedBlockquoteBlocks.push( bqBlock ); | ||
176 | CKEDITOR.dom.element.setMarker( database, bqBlock, 'blockquote_processed', true ); | ||
177 | } | ||
178 | |||
179 | movedNodes.push( node ); | ||
180 | } | ||
181 | |||
182 | CKEDITOR.dom.element.clearAllMarkers( database ); | ||
183 | |||
184 | // Clear blockquote nodes that have become empty. | ||
185 | for ( i = processedBlockquoteBlocks.length - 1; i >= 0; i-- ) { | ||
186 | bqBlock = processedBlockquoteBlocks[ i ]; | ||
187 | if ( noBlockLeft( bqBlock ) ) | ||
188 | bqBlock.remove(); | ||
189 | } | ||
190 | |||
191 | if ( editor.config.enterMode == CKEDITOR.ENTER_BR ) { | ||
192 | var firstTime = true; | ||
193 | while ( movedNodes.length ) { | ||
194 | node = movedNodes.shift(); | ||
195 | |||
196 | if ( node.getName() == 'div' ) { | ||
197 | docFrag = new CKEDITOR.dom.documentFragment( editor.document ); | ||
198 | var needBeginBr = firstTime && node.getPrevious() && !( node.getPrevious().type == CKEDITOR.NODE_ELEMENT && node.getPrevious().isBlockBoundary() ); | ||
199 | if ( needBeginBr ) | ||
200 | docFrag.append( editor.document.createElement( 'br' ) ); | ||
201 | |||
202 | var needEndBr = node.getNext() && !( node.getNext().type == CKEDITOR.NODE_ELEMENT && node.getNext().isBlockBoundary() ); | ||
203 | while ( node.getFirst() ) | ||
204 | node.getFirst().remove().appendTo( docFrag ); | ||
205 | |||
206 | if ( needEndBr ) | ||
207 | docFrag.append( editor.document.createElement( 'br' ) ); | ||
208 | |||
209 | docFrag.replace( node ); | ||
210 | firstTime = false; | ||
211 | } | ||
212 | } | ||
213 | } | ||
214 | } | ||
215 | |||
216 | selection.selectBookmarks( bookmarks ); | ||
217 | editor.focus(); | ||
218 | }, | ||
219 | |||
220 | refresh: function( editor, path ) { | ||
221 | // Check if inside of blockquote. | ||
222 | var firstBlock = path.block || path.blockLimit; | ||
223 | this.setState( editor.elementPath( firstBlock ).contains( 'blockquote', 1 ) ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF ); | ||
224 | }, | ||
225 | |||
226 | context: 'blockquote', | ||
227 | |||
228 | allowedContent: 'blockquote', | ||
229 | requiredContent: 'blockquote' | ||
230 | }; | ||
231 | |||
232 | CKEDITOR.plugins.add( 'blockquote', { | ||
233 | // jscs:disable maximumLineLength | ||
234 | lang: 'af,ar,bg,bn,bs,ca,cs,cy,da,de,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,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% | ||
235 | // jscs:enable maximumLineLength | ||
236 | icons: 'blockquote', // %REMOVE_LINE_CORE% | ||
237 | hidpi: true, // %REMOVE_LINE_CORE% | ||
238 | init: function( editor ) { | ||
239 | if ( editor.blockless ) | ||
240 | return; | ||
241 | |||
242 | editor.addCommand( 'blockquote', commandObject ); | ||
243 | |||
244 | editor.ui.addButton && editor.ui.addButton( 'Blockquote', { | ||
245 | label: editor.lang.blockquote.toolbar, | ||
246 | command: 'blockquote', | ||
247 | toolbar: 'blocks,10' | ||
248 | } ); | ||
249 | } | ||
250 | } ); | ||
251 | } )(); | ||