mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-04 08:02:22 +01:00
New: Update ckeditor to version 4 (part 1)
This commit is contained in:
@@ -1,67 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
(function()
|
||||
{
|
||||
CKEDITOR.dialog.add( 'pastetext', function( editor )
|
||||
{
|
||||
return {
|
||||
title : editor.lang.pasteText.title,
|
||||
|
||||
minWidth : CKEDITOR.env.ie && CKEDITOR.env.quirks ? 368 : 350,
|
||||
minHeight : 240,
|
||||
|
||||
onShow : function(){ this.setupContent(); },
|
||||
onOk : function(){ this.commitContent(); },
|
||||
|
||||
contents :
|
||||
[
|
||||
{
|
||||
label : editor.lang.common.generalTab,
|
||||
id : 'general',
|
||||
elements :
|
||||
[
|
||||
{
|
||||
type : 'html',
|
||||
id : 'pasteMsg',
|
||||
html : '<div style="white-space:normal;width:340px;">' + editor.lang.clipboard.pasteMsg + '</div>'
|
||||
},
|
||||
{
|
||||
type : 'textarea',
|
||||
id : 'content',
|
||||
className : 'cke_pastetext',
|
||||
|
||||
onLoad : function()
|
||||
{
|
||||
var label = this.getDialog().getContentElement( 'general', 'pasteMsg' ).getElement(),
|
||||
input = this.getElement().getElementsByTag( 'textarea' ).getItem( 0 );
|
||||
|
||||
input.setAttribute( 'aria-labelledby', label.$.id );
|
||||
input.setStyle( 'direction', editor.config.contentsLangDirection );
|
||||
},
|
||||
|
||||
focus : function()
|
||||
{
|
||||
this.getElement().focus();
|
||||
},
|
||||
setup : function()
|
||||
{
|
||||
this.setValue( '' );
|
||||
},
|
||||
commit : function()
|
||||
{
|
||||
var value = this.getValue();
|
||||
setTimeout( function()
|
||||
{
|
||||
editor.fire( 'paste', { 'text' : value } );
|
||||
}, 0 );
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
});
|
||||
})();
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.9 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.9 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 752 B |
Binary file not shown.
|
After Width: | Height: | Size: 750 B |
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'af', {
|
||||
button: 'Plak as eenvoudige teks',
|
||||
title: 'Plak as eenvoudige teks'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'ar', {
|
||||
button: 'لصق كنص بسيط',
|
||||
title: 'لصق كنص بسيط'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'bg', {
|
||||
button: 'Вмъкни като чист текст',
|
||||
title: 'Вмъкни като чист текст'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'bn', {
|
||||
button: 'সাদা টেক্সট হিসেবে পেস্ট কর',
|
||||
title: 'সাদা টেক্সট হিসেবে পেস্ট কর'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'bs', {
|
||||
button: 'Zalijepi kao obièan tekst',
|
||||
title: 'Zalijepi kao obièan tekst'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'ca', {
|
||||
button: 'Enganxa com a text no formatat',
|
||||
title: 'Enganxa com a text no formatat'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'cs', {
|
||||
button: 'Vložit jako čistý text',
|
||||
title: 'Vložit jako čistý text'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'cy', {
|
||||
button: 'Gludo fel testun plaen',
|
||||
title: 'Gludo fel Testun Plaen'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'da', {
|
||||
button: 'Indsæt som ikke-formateret tekst',
|
||||
title: 'Indsæt som ikke-formateret tekst'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'de', {
|
||||
button: 'Als Text einfügen',
|
||||
title: 'Als Text einfügen'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'el', {
|
||||
button: 'Επικόλληση ως απλό κείμενο',
|
||||
title: 'Επικόλληση ως απλό κείμενο'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'en-au', {
|
||||
button: 'Paste as plain text',
|
||||
title: 'Paste as Plain Text'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'en-ca', {
|
||||
button: 'Paste as plain text',
|
||||
title: 'Paste as Plain Text'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'en-gb', {
|
||||
button: 'Paste as plain text',
|
||||
title: 'Paste as Plain Text'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'en', {
|
||||
button: 'Paste as plain text',
|
||||
title: 'Paste as Plain Text'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'eo', {
|
||||
button: 'Interglui kiel platan tekston',
|
||||
title: 'Interglui kiel platan tekston'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'es', {
|
||||
button: 'Pegar como Texto Plano',
|
||||
title: 'Pegar como Texto Plano'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'et', {
|
||||
button: 'Asetamine tavalise tekstina',
|
||||
title: 'Asetamine tavalise tekstina'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'eu', {
|
||||
button: 'Testu Arrunta bezala Itsatsi',
|
||||
title: 'Testu Arrunta bezala Itsatsi'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'fa', {
|
||||
button: 'چسباندن به عنوان متن ساده',
|
||||
title: 'چسباندن به عنوان متن ساده'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'fi', {
|
||||
button: 'Liitä tekstinä',
|
||||
title: 'Liitä tekstinä'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'fo', {
|
||||
button: 'Innrita som reinan tekst',
|
||||
title: 'Innrita som reinan tekst'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'fr-ca', {
|
||||
button: 'Coller comme texte',
|
||||
title: 'Coller comme texte'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'fr', {
|
||||
button: 'Coller comme texte sans mise en forme',
|
||||
title: 'Coller comme texte sans mise en forme'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'gl', {
|
||||
button: 'Pegar como texto simple',
|
||||
title: 'Pegar como texto simple'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'gu', {
|
||||
button: 'પેસ્ટ (ટેક્સ્ટ)',
|
||||
title: 'પેસ્ટ (ટેક્સ્ટ)'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'he', {
|
||||
button: 'הדבקה כטקסט פשוט',
|
||||
title: 'הדבקה כטקסט פשוט'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'hi', {
|
||||
button: 'पेस्ट (सादा टॅक्स्ट)',
|
||||
title: 'पेस्ट (सादा टॅक्स्ट)'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'hr', {
|
||||
button: 'Zalijepi kao čisti tekst',
|
||||
title: 'Zalijepi kao čisti tekst'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'hu', {
|
||||
button: 'Beillesztés formázatlan szövegként',
|
||||
title: 'Beillesztés formázatlan szövegként'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'id', {
|
||||
button: 'Tempel sebagai teks polos',
|
||||
title: 'Tempel sebagai Teks Polos'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'is', {
|
||||
button: 'Líma sem ósniðinn texta',
|
||||
title: 'Líma sem ósniðinn texta'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'it', {
|
||||
button: 'Incolla come testo semplice',
|
||||
title: 'Incolla come testo semplice'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'ja', {
|
||||
button: 'プレーンテキストとして貼り付け',
|
||||
title: 'プレーンテキストとして貼り付け'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'ka', {
|
||||
button: 'მხოლოდ ტექსტის ჩასმა',
|
||||
title: 'მხოლოდ ტექსტის ჩასმა'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'km', {
|
||||
button: 'បិទភ្ជាប់ជាអត្ថបទធម្មតា',
|
||||
title: 'បិទភ្ជាប់ជាអត្ថបទធម្មតា'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'ko', {
|
||||
button: '텍스트로 붙여넣기',
|
||||
title: '텍스트로 붙여넣기'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'ku', {
|
||||
button: 'لکاندنی وەك دەقی ڕوون',
|
||||
title: 'لکاندنی وەك دەقی ڕوون'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'lt', {
|
||||
button: 'Įdėti kaip gryną tekstą',
|
||||
title: 'Įdėti kaip gryną tekstą'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'lv', {
|
||||
button: 'Ievietot kā vienkāršu tekstu',
|
||||
title: 'Ievietot kā vienkāršu tekstu'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'mk', {
|
||||
button: 'Paste as plain text', // MISSING
|
||||
title: 'Paste as Plain Text' // MISSING
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'mn', {
|
||||
button: 'Энгийн бичвэрээр буулгах',
|
||||
title: 'Энгийн бичвэрээр буулгах'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'ms', {
|
||||
button: 'Tampal sebagai text biasa',
|
||||
title: 'Tampal sebagai text biasa'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'nb', {
|
||||
button: 'Lim inn som ren tekst',
|
||||
title: 'Lim inn som ren tekst'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'nl', {
|
||||
button: 'Plakken als platte tekst',
|
||||
title: 'Plakken als platte tekst'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'no', {
|
||||
button: 'Lim inn som ren tekst',
|
||||
title: 'Lim inn som ren tekst'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'pl', {
|
||||
button: 'Wklej jako czysty tekst',
|
||||
title: 'Wklej jako czysty tekst'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'pt-br', {
|
||||
button: 'Colar como Texto sem Formatação',
|
||||
title: 'Colar como Texto sem Formatação'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'pt', {
|
||||
button: 'Colar como Texto Simples',
|
||||
title: 'Colar como Texto Simples'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'ro', {
|
||||
button: 'Adaugă ca text simplu (Plain Text)',
|
||||
title: 'Adaugă ca text simplu (Plain Text)'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'ru', {
|
||||
button: 'Вставить только текст',
|
||||
title: 'Вставить только текст'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'si', {
|
||||
button: 'සාමාන්ය අක්ෂර ලෙස අලවන්න',
|
||||
title: 'සාමාන්ය අක්ෂර ලෙස අලවන්න'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'sk', {
|
||||
button: 'Vložiť ako čistý text',
|
||||
title: 'Vložiť ako čistý text'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'sl', {
|
||||
button: 'Prilepi kot golo besedilo',
|
||||
title: 'Prilepi kot golo besedilo'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'sq', {
|
||||
button: 'Hidhe si tekst të thjeshtë',
|
||||
title: 'Hidhe si Tekst të Thjeshtë'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'sr-latn', {
|
||||
button: 'Zalepi kao čist tekst',
|
||||
title: 'Zalepi kao čist tekst'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'sr', {
|
||||
button: 'Залепи као чист текст',
|
||||
title: 'Залепи као чист текст'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'sv', {
|
||||
button: 'Klistra in som vanlig text',
|
||||
title: 'Klistra in som vanlig text'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'th', {
|
||||
button: 'วางแบบตัวอักษรธรรมดา',
|
||||
title: 'วางแบบตัวอักษรธรรมดา'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'tr', {
|
||||
button: 'Düz Metin Olarak Yapıştır',
|
||||
title: 'Düz Metin Olarak Yapıştır'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'ug', {
|
||||
button: 'پىچىمى يوق تېكىست سۈپىتىدە چاپلا',
|
||||
title: 'پىچىمى يوق تېكىست سۈپىتىدە چاپلا'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'uk', {
|
||||
button: 'Вставити тільки текст',
|
||||
title: 'Вставити тільки текст'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'vi', {
|
||||
button: 'Dán theo định dạng văn bản thuần',
|
||||
title: 'Dán theo định dạng văn bản thuần'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'zh-cn', {
|
||||
button: '粘贴为无格式文本',
|
||||
title: '粘贴为无格式文本'
|
||||
} );
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'pastetext', 'zh', {
|
||||
button: '貼成純文字',
|
||||
title: '貼成純文字'
|
||||
} );
|
||||
@@ -1,98 +1,76 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file Paste as plain text plugin
|
||||
*/
|
||||
|
||||
(function()
|
||||
{
|
||||
// The pastetext command definition.
|
||||
var pasteTextCmd =
|
||||
{
|
||||
exec : function( editor )
|
||||
{
|
||||
var clipboardText = CKEDITOR.tools.tryThese(
|
||||
function()
|
||||
{
|
||||
var clipboardText = window.clipboardData.getData( 'Text' );
|
||||
if ( !clipboardText )
|
||||
throw 0;
|
||||
return clipboardText;
|
||||
}
|
||||
// Any other approach that's working...
|
||||
);
|
||||
|
||||
if ( !clipboardText ) // Clipboard access privilege is not granted.
|
||||
{
|
||||
editor.openDialog( 'pastetext' );
|
||||
return false;
|
||||
}
|
||||
else
|
||||
editor.fire( 'paste', { 'text' : clipboardText } );
|
||||
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
// Register the plugin.
|
||||
CKEDITOR.plugins.add( 'pastetext',
|
||||
{
|
||||
init : function( editor )
|
||||
{
|
||||
var commandName = 'pastetext',
|
||||
command = editor.addCommand( commandName, pasteTextCmd );
|
||||
|
||||
editor.ui.addButton( 'PasteText',
|
||||
{
|
||||
label : editor.lang.pasteText.button,
|
||||
command : commandName
|
||||
});
|
||||
|
||||
CKEDITOR.dialog.add( commandName, CKEDITOR.getUrl( this.path + 'dialogs/pastetext.js' ) );
|
||||
|
||||
if ( editor.config.forcePasteAsPlainText )
|
||||
{
|
||||
// Intercept the default pasting process.
|
||||
editor.on( 'beforeCommandExec', function ( evt )
|
||||
{
|
||||
var mode = evt.data.commandData;
|
||||
// Do NOT overwrite if HTML format is explicitly requested.
|
||||
if ( evt.data.name == 'paste' && mode != 'html' )
|
||||
{
|
||||
editor.execCommand( 'pastetext' );
|
||||
evt.cancel();
|
||||
}
|
||||
}, null, null, 0 );
|
||||
|
||||
editor.on( 'beforePaste', function( evt )
|
||||
{
|
||||
evt.data.mode = 'text';
|
||||
});
|
||||
}
|
||||
|
||||
editor.on( 'pasteState', function( evt )
|
||||
{
|
||||
editor.getCommand( 'pastetext' ).setState( evt.data );
|
||||
});
|
||||
},
|
||||
|
||||
requires : [ 'clipboard' ]
|
||||
});
|
||||
|
||||
})();
|
||||
|
||||
|
||||
/**
|
||||
* Whether to force all pasting operations to insert on plain text into the
|
||||
* editor, loosing any formatting information possibly available in the source
|
||||
* text.
|
||||
* <strong>Note:</strong> paste from word is not affected by this configuration.
|
||||
* @name CKEDITOR.config.forcePasteAsPlainText
|
||||
* @type Boolean
|
||||
* @default false
|
||||
* @example
|
||||
* config.forcePasteAsPlainText = true;
|
||||
*/
|
||||
/**
|
||||
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
* For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Paste as plain text plugin.
|
||||
*/
|
||||
|
||||
( function() {
|
||||
// The pastetext command definition.
|
||||
var pasteTextCmd = {
|
||||
// Snapshots are done manually by editable.insertXXX methods.
|
||||
canUndo: false,
|
||||
async: true,
|
||||
|
||||
exec: function( editor ) {
|
||||
editor.getClipboardData( { title: editor.lang.pastetext.title }, function( data ) {
|
||||
// Do not use editor#paste, because it would start from beforePaste event.
|
||||
data && editor.fire( 'paste', { type: 'text', dataValue: data.dataValue } );
|
||||
|
||||
editor.fire( 'afterCommandExec', {
|
||||
name: 'pastetext',
|
||||
command: pasteTextCmd,
|
||||
returnValue: !!data
|
||||
} );
|
||||
} );
|
||||
}
|
||||
};
|
||||
|
||||
// Register the plugin.
|
||||
CKEDITOR.plugins.add( 'pastetext', {
|
||||
requires: 'clipboard',
|
||||
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,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE%
|
||||
icons: 'pastetext,pastetext-rtl', // %REMOVE_LINE_CORE%
|
||||
hidpi: true, // %REMOVE_LINE_CORE%
|
||||
init: function( editor ) {
|
||||
var commandName = 'pastetext';
|
||||
|
||||
editor.addCommand( commandName, pasteTextCmd );
|
||||
|
||||
editor.ui.addButton && editor.ui.addButton( 'PasteText', {
|
||||
label: editor.lang.pastetext.button,
|
||||
command: commandName,
|
||||
toolbar: 'clipboard,40'
|
||||
} );
|
||||
|
||||
if ( editor.config.forcePasteAsPlainText ) {
|
||||
editor.on( 'beforePaste', function( evt ) {
|
||||
// Do NOT overwrite if HTML format is explicitly requested.
|
||||
// This allows pastefromword dominates over pastetext.
|
||||
if ( evt.data.type != 'html' )
|
||||
evt.data.type = 'text';
|
||||
} );
|
||||
}
|
||||
|
||||
editor.on( 'pasteState', function( evt ) {
|
||||
editor.getCommand( commandName ).setState( evt.data );
|
||||
} );
|
||||
}
|
||||
} );
|
||||
} )();
|
||||
|
||||
|
||||
/**
|
||||
* Whether to force all pasting operations to insert on plain text into the
|
||||
* editor, loosing any formatting information possibly available in the source
|
||||
* text.
|
||||
*
|
||||
* **Note:** paste from word (dialog) is not affected by this configuration.
|
||||
*
|
||||
* config.forcePasteAsPlainText = true;
|
||||
*
|
||||
* @cfg {Boolean} [forcePasteAsPlainText=false]
|
||||
* @member CKEDITOR.config
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user