2
0
forked from Wavyzz/dolibarr

New: Update ckeditor to version 4 (part 1)

This commit is contained in:
Laurent Destailleur
2014-03-08 12:11:01 +01:00
parent 32c81588b0
commit c65d681d87
4418 changed files with 147049 additions and 127332 deletions

View File

@@ -1,229 +1,218 @@
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
// Map 'true' and 'false' values to match W3C's specifications
// http://www.w3.org/TR/REC-html40/present/frames.html#h-16.5
var checkboxValues =
{
scrolling : { 'true' : 'yes', 'false' : 'no' },
frameborder : { 'true' : '1', 'false' : '0' }
};
function loadValue( iframeNode )
{
var isCheckbox = this instanceof CKEDITOR.ui.dialog.checkbox;
if ( iframeNode.hasAttribute( this.id ) )
{
var value = iframeNode.getAttribute( this.id );
if ( isCheckbox )
this.setValue( checkboxValues[ this.id ][ 'true' ] == value.toLowerCase() );
else
this.setValue( value );
}
}
function commitValue( iframeNode )
{
var isRemove = this.getValue() === '',
isCheckbox = this instanceof CKEDITOR.ui.dialog.checkbox,
value = this.getValue();
if ( isRemove )
iframeNode.removeAttribute( this.att || this.id );
else if ( isCheckbox )
iframeNode.setAttribute( this.id, checkboxValues[ this.id ][ value ] );
else
iframeNode.setAttribute( this.att || this.id, value );
}
CKEDITOR.dialog.add( 'iframe', function( editor )
{
var iframeLang = editor.lang.iframe,
commonLang = editor.lang.common,
dialogadvtab = editor.plugins.dialogadvtab;
return {
title : iframeLang.title,
minWidth : 350,
minHeight : 260,
onShow : function()
{
// Clear previously saved elements.
this.fakeImage = this.iframeNode = null;
var fakeImage = this.getSelectedElement();
if ( fakeImage && fakeImage.data( 'cke-real-element-type' ) && fakeImage.data( 'cke-real-element-type' ) == 'iframe' )
{
this.fakeImage = fakeImage;
var iframeNode = editor.restoreRealElement( fakeImage );
this.iframeNode = iframeNode;
this.setupContent( iframeNode );
}
},
onOk : function()
{
var iframeNode;
if ( !this.fakeImage )
iframeNode = new CKEDITOR.dom.element( 'iframe' );
else
iframeNode = this.iframeNode;
// A subset of the specified attributes/styles
// should also be applied on the fake element to
// have better visual effect. (#5240)
var extraStyles = {}, extraAttributes = {};
this.commitContent( iframeNode, extraStyles, extraAttributes );
// Refresh the fake image.
var newFakeImage = editor.createFakeElement( iframeNode, 'cke_iframe', 'iframe', true );
newFakeImage.setAttributes( extraAttributes );
newFakeImage.setStyles( extraStyles );
if ( this.fakeImage )
{
newFakeImage.replace( this.fakeImage );
editor.getSelection().selectElement( newFakeImage );
}
else
editor.insertElement( newFakeImage );
},
contents : [
{
id : 'info',
label : commonLang.generalTab,
accessKey : 'I',
elements :
[
{
type : 'vbox',
padding : 0,
children :
[
{
id : 'src',
type : 'text',
label : commonLang.url,
required : true,
validate : CKEDITOR.dialog.validate.notEmpty( iframeLang.noUrl ),
setup : loadValue,
commit : commitValue
}
]
},
{
type : 'hbox',
children :
[
{
id : 'width',
type : 'text',
style : 'width:100%',
labelLayout : 'vertical',
label : commonLang.width,
validate : CKEDITOR.dialog.validate.htmlLength( commonLang.invalidHtmlLength.replace( '%1', commonLang.width ) ),
setup : loadValue,
commit : commitValue
},
{
id : 'height',
type : 'text',
style : 'width:100%',
labelLayout : 'vertical',
label : commonLang.height,
validate : CKEDITOR.dialog.validate.htmlLength( commonLang.invalidHtmlLength.replace( '%1', commonLang.height ) ),
setup : loadValue,
commit : commitValue
},
{
id : 'align',
type : 'select',
'default' : '',
items :
[
[ commonLang.notSet , '' ],
[ commonLang.alignLeft , 'left' ],
[ commonLang.alignRight , 'right' ],
[ commonLang.alignTop , 'top' ],
[ commonLang.alignMiddle , 'middle' ],
[ commonLang.alignBottom , 'bottom' ]
],
style : 'width:100%',
labelLayout : 'vertical',
label : commonLang.align,
setup : function( iframeNode, fakeImage )
{
loadValue.apply( this, arguments );
if ( fakeImage )
{
var fakeImageAlign = fakeImage.getAttribute( 'align' );
this.setValue( fakeImageAlign && fakeImageAlign.toLowerCase() || '' );
}
},
commit : function( iframeNode, extraStyles, extraAttributes )
{
commitValue.apply( this, arguments );
if ( this.getValue() )
extraAttributes.align = this.getValue();
}
}
]
},
{
type : 'hbox',
widths : [ '50%', '50%' ],
children :
[
{
id : 'scrolling',
type : 'checkbox',
label : iframeLang.scrolling,
setup : loadValue,
commit : commitValue
},
{
id : 'frameborder',
type : 'checkbox',
label : iframeLang.border,
setup : loadValue,
commit : commitValue
}
]
},
{
type : 'hbox',
widths : [ '50%', '50%' ],
children :
[
{
id : 'name',
type : 'text',
label : commonLang.name,
setup : loadValue,
commit : commitValue
},
{
id : 'title',
type : 'text',
label : commonLang.advisoryTitle,
setup : loadValue,
commit : commitValue
}
]
},
{
id : 'longdesc',
type : 'text',
label : commonLang.longDescr,
setup : loadValue,
commit : commitValue
}
]
},
dialogadvtab && dialogadvtab.createAdvancedTab( editor, { id:1, classes:1, styles:1 })
]
};
});
})();
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
( function() {
// Map 'true' and 'false' values to match W3C's specifications
// http://www.w3.org/TR/REC-html40/present/frames.html#h-16.5
var checkboxValues = {
scrolling: { 'true': 'yes', 'false': 'no' },
frameborder: { 'true': '1', 'false': '0' }
};
function loadValue( iframeNode ) {
var isCheckbox = this instanceof CKEDITOR.ui.dialog.checkbox;
if ( iframeNode.hasAttribute( this.id ) ) {
var value = iframeNode.getAttribute( this.id );
if ( isCheckbox )
this.setValue( checkboxValues[ this.id ][ 'true' ] == value.toLowerCase() );
else
this.setValue( value );
}
}
function commitValue( iframeNode ) {
var isRemove = this.getValue() === '',
isCheckbox = this instanceof CKEDITOR.ui.dialog.checkbox,
value = this.getValue();
if ( isRemove )
iframeNode.removeAttribute( this.att || this.id );
else if ( isCheckbox )
iframeNode.setAttribute( this.id, checkboxValues[ this.id ][ value ] );
else
iframeNode.setAttribute( this.att || this.id, value );
}
CKEDITOR.dialog.add( 'iframe', function( editor ) {
var iframeLang = editor.lang.iframe,
commonLang = editor.lang.common,
dialogadvtab = editor.plugins.dialogadvtab;
return {
title: iframeLang.title,
minWidth: 350,
minHeight: 260,
onShow: function() {
// Clear previously saved elements.
this.fakeImage = this.iframeNode = null;
var fakeImage = this.getSelectedElement();
if ( fakeImage && fakeImage.data( 'cke-real-element-type' ) && fakeImage.data( 'cke-real-element-type' ) == 'iframe' ) {
this.fakeImage = fakeImage;
var iframeNode = editor.restoreRealElement( fakeImage );
this.iframeNode = iframeNode;
this.setupContent( iframeNode );
}
},
onOk: function() {
var iframeNode;
if ( !this.fakeImage )
iframeNode = new CKEDITOR.dom.element( 'iframe' );
else
iframeNode = this.iframeNode;
// A subset of the specified attributes/styles
// should also be applied on the fake element to
// have better visual effect. (#5240)
var extraStyles = {},
extraAttributes = {};
this.commitContent( iframeNode, extraStyles, extraAttributes );
// Refresh the fake image.
var newFakeImage = editor.createFakeElement( iframeNode, 'cke_iframe', 'iframe', true );
newFakeImage.setAttributes( extraAttributes );
newFakeImage.setStyles( extraStyles );
if ( this.fakeImage ) {
newFakeImage.replace( this.fakeImage );
editor.getSelection().selectElement( newFakeImage );
} else
editor.insertElement( newFakeImage );
},
contents: [
{
id: 'info',
label: commonLang.generalTab,
accessKey: 'I',
elements: [
{
type: 'vbox',
padding: 0,
children: [
{
id: 'src',
type: 'text',
label: commonLang.url,
required: true,
validate: CKEDITOR.dialog.validate.notEmpty( iframeLang.noUrl ),
setup: loadValue,
commit: commitValue
}
]
},
{
type: 'hbox',
children: [
{
id: 'width',
type: 'text',
requiredContent: 'iframe[width]',
style: 'width:100%',
labelLayout: 'vertical',
label: commonLang.width,
validate: CKEDITOR.dialog.validate.htmlLength( commonLang.invalidHtmlLength.replace( '%1', commonLang.width ) ),
setup: loadValue,
commit: commitValue
},
{
id: 'height',
type: 'text',
requiredContent: 'iframe[height]',
style: 'width:100%',
labelLayout: 'vertical',
label: commonLang.height,
validate: CKEDITOR.dialog.validate.htmlLength( commonLang.invalidHtmlLength.replace( '%1', commonLang.height ) ),
setup: loadValue,
commit: commitValue
},
{
id: 'align',
type: 'select',
requiredContent: 'iframe[align]',
'default': '',
items: [
[ commonLang.notSet, '' ],
[ commonLang.alignLeft, 'left' ],
[ commonLang.alignRight, 'right' ],
[ commonLang.alignTop, 'top' ],
[ commonLang.alignMiddle, 'middle' ],
[ commonLang.alignBottom, 'bottom' ]
],
style: 'width:100%',
labelLayout: 'vertical',
label: commonLang.align,
setup: function( iframeNode, fakeImage ) {
loadValue.apply( this, arguments );
if ( fakeImage ) {
var fakeImageAlign = fakeImage.getAttribute( 'align' );
this.setValue( fakeImageAlign && fakeImageAlign.toLowerCase() || '' );
}
},
commit: function( iframeNode, extraStyles, extraAttributes ) {
commitValue.apply( this, arguments );
if ( this.getValue() )
extraAttributes.align = this.getValue();
}
}
]
},
{
type: 'hbox',
widths: [ '50%', '50%' ],
children: [
{
id: 'scrolling',
type: 'checkbox',
requiredContent: 'iframe[scrolling]',
label: iframeLang.scrolling,
setup: loadValue,
commit: commitValue
},
{
id: 'frameborder',
type: 'checkbox',
requiredContent: 'iframe[frameborder]',
label: iframeLang.border,
setup: loadValue,
commit: commitValue
}
]
},
{
type: 'hbox',
widths: [ '50%', '50%' ],
children: [
{
id: 'name',
type: 'text',
requiredContent: 'iframe[name]',
label: commonLang.name,
setup: loadValue,
commit: commitValue
},
{
id: 'title',
type: 'text',
requiredContent: 'iframe[title]',
label: commonLang.advisoryTitle,
setup: loadValue,
commit: commitValue
}
]
},
{
id: 'longdesc',
type: 'text',
requiredContent: 'iframe[longdesc]',
label: commonLang.longDescr,
setup: loadValue,
commit: commitValue
}
]
},
dialogadvtab && dialogadvtab.createAdvancedTab( editor, { id: 1, classes: 1, styles: 1 }, 'iframe' )
]
};
} );
} )();

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 989 B

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'af', {
border: 'Wys rand van raam',
noUrl: 'Gee die iframe URL',
scrolling: 'Skuifbalke aan',
title: 'IFrame Eienskappe',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'ar', {
border: 'إظهار حدود الإطار',
noUrl: 'فضلا أكتب رابط الـ iframe',
scrolling: 'تفعيل أشرطة الإنتقال',
title: 'خصائص iframe',
toolbar: 'iframe'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'bg', {
border: 'Показва рамка на карето',
noUrl: 'Моля въведете URL за iFrame',
scrolling: 'Вкл. скролбаровете',
title: 'IFrame настройки',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'bn', {
border: 'Show frame border', // MISSING
noUrl: 'Please type the iframe URL', // MISSING
scrolling: 'Enable scrollbars', // MISSING
title: 'IFrame Properties', // MISSING
toolbar: 'IFrame' // MISSING
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'bs', {
border: 'Show frame border', // MISSING
noUrl: 'Please type the iframe URL', // MISSING
scrolling: 'Enable scrollbars', // MISSING
title: 'IFrame Properties', // MISSING
toolbar: 'IFrame' // MISSING
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'ca', {
border: 'Mostra la vora del marc',
noUrl: 'Si us plau, introdueixi la URL de l\'iframe',
scrolling: 'Activa les barres de desplaçament',
title: 'Propietats de l\'IFrame',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'cs', {
border: 'Zobrazit okraj',
noUrl: 'Zadejte prosím URL obsahu pro IFrame',
scrolling: 'Zapnout posuvníky',
title: 'Vlastnosti IFrame',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'cy', {
border: 'Dangos ymyl y ffrâm',
noUrl: 'Rhowch URL yr iframe',
scrolling: 'Galluogi bariau sgrolio',
title: 'Priodweddau IFrame',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'da', {
border: 'Vis kant på rammen',
noUrl: 'Venligst indsæt URL på iframen',
scrolling: 'Aktiver scrollbars',
title: 'Iframe egenskaber',
toolbar: 'Iframe'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'de', {
border: 'Rahmen anzeigen',
noUrl: 'Bitte geben Sie die IFrame-URL an',
scrolling: 'Rollbalken anzeigen',
title: 'IFrame-Eigenschaften',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'el', {
border: 'Προβολή περιγράμματος πλαισίου',
noUrl: 'Παρακαλούμε εισάγεται το URL του iframe',
scrolling: 'Ενεργοποίηση μπαρών κύλισης',
title: 'Ιδιότητες IFrame',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'en-au', {
border: 'Show frame border', // MISSING
noUrl: 'Please type the iframe URL', // MISSING
scrolling: 'Enable scrollbars', // MISSING
title: 'IFrame Properties', // MISSING
toolbar: 'IFrame' // MISSING
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'en-ca', {
border: 'Show frame border', // MISSING
noUrl: 'Please type the iframe URL', // MISSING
scrolling: 'Enable scrollbars', // MISSING
title: 'IFrame Properties', // MISSING
toolbar: 'IFrame' // MISSING
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'en-gb', {
border: 'Show frame border',
noUrl: 'Please type the iframe URL',
scrolling: 'Enable scrollbars',
title: 'IFrame Properties',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'en', {
border: 'Show frame border',
noUrl: 'Please type the iframe URL',
scrolling: 'Enable scrollbars',
title: 'IFrame Properties',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'eo', {
border: 'Montri borderon de kadro (frame)',
noUrl: 'Bonvolu entajpi la retadreson de la ligilo al la enlinia kadro (IFrame)',
scrolling: 'Ebligi rulumskalon',
title: 'Atributoj de la enlinia kadro (IFrame)',
toolbar: 'Enlinia kadro (IFrame)'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'es', {
border: 'Mostrar borde del marco',
noUrl: 'Por favor, escriba la dirección del iframe',
scrolling: 'Activar barras de desplazamiento',
title: 'Propiedades de iframe',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'et', {
border: 'Raami äärise näitamine',
noUrl: 'Vali iframe URLi liik',
scrolling: 'Kerimisribade lubamine',
title: 'IFrame omadused',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'eu', {
border: 'Markoaren ertza ikusi',
noUrl: 'iframe-aren URLa idatzi, mesedez.',
scrolling: 'Korritze barrak gaitu',
title: 'IFrame-aren Propietateak',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'fa', {
border: 'نمایش خطوط frame',
noUrl: 'لطفا مسیر URL iframe را درج کنید',
scrolling: 'نمایش خطکشها',
title: 'ویژگیهای IFrame',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'fi', {
border: 'Näytä kehyksen reunat',
noUrl: 'Anna IFrame-kehykselle lähdeosoite (src)',
scrolling: 'Näytä vierityspalkit',
title: 'IFrame-kehyksen ominaisuudet',
toolbar: 'IFrame-kehys'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'fo', {
border: 'Vís frame kant',
noUrl: 'Vinarliga skriva URL til iframe',
scrolling: 'Loyv scrollbars',
title: 'Møguleikar fyri IFrame',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'fr-ca', {
border: 'Afficher la bordure du cadre',
noUrl: 'Veuillez entre l\'URL du IFrame',
scrolling: 'Activer les barres de défilement',
title: 'Propriétés du IFrame',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'fr', {
border: 'Afficher une bordure de la IFrame',
noUrl: 'Veuillez entrer l\'adresse du lien de la IFrame',
scrolling: 'Permettre à la barre de défilement',
title: 'Propriétés de la IFrame',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'gl', {
border: 'Amosar o bordo do marco',
noUrl: 'Escriba o enderezo do iframe',
scrolling: 'Activar as barras de desprazamento',
title: 'Propiedades do iFrame',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'gu', {
border: 'ફ્રેમ બોર્ડેર બતાવવી',
noUrl: 'iframe URL ટાઈપ્ કરો',
scrolling: 'સ્ક્રોલબાર ચાલુ કરવા',
title: 'IFrame વિકલ્પો',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'he', {
border: 'הראה מסגרת לחלון',
noUrl: 'יש להכניס כתובת לחלון.',
scrolling: 'אפשר פסי גלילה',
title: 'מאפייני חלון פנימי (iframe)',
toolbar: 'חלון פנימי (iframe)'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'hi', {
border: 'Show frame border', // MISSING
noUrl: 'Please type the iframe URL', // MISSING
scrolling: 'Enable scrollbars', // MISSING
title: 'IFrame Properties', // MISSING
toolbar: 'IFrame' // MISSING
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'hr', {
border: 'Prikaži okvir IFrame-a',
noUrl: 'Unesite URL iframe-a',
scrolling: 'Omogući trake za skrolanje',
title: 'IFrame svojstva',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'hu', {
border: 'Legyen keret',
noUrl: 'Kérem írja be a iframe URL-t',
scrolling: 'Gördítősáv bekapcsolása',
title: 'IFrame Tulajdonságok',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'id', {
border: 'Show frame border', // MISSING
noUrl: 'Please type the iframe URL', // MISSING
scrolling: 'Enable scrollbars', // MISSING
title: 'IFrame Properties', // MISSING
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'is', {
border: 'Show frame border', // MISSING
noUrl: 'Please type the iframe URL', // MISSING
scrolling: 'Enable scrollbars', // MISSING
title: 'IFrame Properties', // MISSING
toolbar: 'IFrame' // MISSING
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'it', {
border: 'Mostra il bordo',
noUrl: 'Inserire l\'URL del campo IFrame',
scrolling: 'Abilita scrollbar',
title: 'Proprietà IFrame',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'ja', {
border: 'フレームの枠を表示',
noUrl: 'iframeのURLを入力してください。',
scrolling: 'スクロールバーの表示を許可',
title: 'iFrameのプロパティ',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'ka', {
border: 'ჩარჩოს გამოჩენა',
noUrl: 'აკრიფეთ iframe-ის URL',
scrolling: 'გადახვევის ზოლების დაშვება',
title: 'IFrame-ის პარამეტრები',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'km', {
border: 'បង្ហាញ​បន្ទាត់​ស៊ុម',
noUrl: 'សូម​បញ្ចូល URL របស់ iframe',
scrolling: 'ប្រើ​របារ​រំកិល',
title: 'លក្ខណៈ​សម្បត្តិ IFrame',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'ko', {
border: '프레임 테두리 표시',
noUrl: 'iframe 대응 URL을 입력해주세요.',
scrolling: '스크롤바 사용',
title: 'IFrame 속성',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'ku', {
border: 'نیشاندانی لاکێشه بە چوواردەوری چووارچێوە',
noUrl: 'تکایه ناونیشانی بەستەر بنووسه بۆ چووارچێوه',
scrolling: 'چالاککردنی هاتووچۆپێکردن',
title: 'دیالۆگی چووارچێوه',
toolbar: 'چووارچێوه'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'lt', {
border: 'Rodyti rėmelį',
noUrl: 'Nurodykite iframe nuorodą',
scrolling: 'Įjungti slankiklius',
title: 'IFrame nustatymai',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'lv', {
border: 'Rādīt rāmi',
noUrl: 'Norādiet iframe adresi',
scrolling: 'Atļaut ritjoslas',
title: 'IFrame uzstādījumi',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'mk', {
border: 'Show frame border', // MISSING
noUrl: 'Please type the iframe URL', // MISSING
scrolling: 'Enable scrollbars', // MISSING
title: 'IFrame Properties', // MISSING
toolbar: 'IFrame' // MISSING
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'mn', {
border: 'Show frame border', // MISSING
noUrl: 'Please type the iframe URL', // MISSING
scrolling: 'Enable scrollbars', // MISSING
title: 'IFrame Properties', // MISSING
toolbar: 'IFrame' // MISSING
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'ms', {
border: 'Show frame border', // MISSING
noUrl: 'Please type the iframe URL', // MISSING
scrolling: 'Enable scrollbars', // MISSING
title: 'IFrame Properties', // MISSING
toolbar: 'IFrame' // MISSING
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'nb', {
border: 'Viss ramme rundt iframe',
noUrl: 'Vennligst skriv inn URL for iframe',
scrolling: 'Aktiver scrollefelt',
title: 'Egenskaper for IFrame',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'nl', {
border: 'Framerand tonen',
noUrl: 'Vul de IFrame URL in',
scrolling: 'Scrollbalken inschakelen',
title: 'IFrame-eigenschappen',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'no', {
border: 'Viss ramme rundt iframe',
noUrl: 'Vennligst skriv inn URL for iframe',
scrolling: 'Aktiver scrollefelt',
title: 'Egenskaper for IFrame',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'pl', {
border: 'Pokaż obramowanie obiektu IFrame',
noUrl: 'Podaj adres URL elementu IFrame',
scrolling: 'Włącz paski przewijania',
title: 'Właściwości elementu IFrame',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'pt-br', {
border: 'Mostra borda do iframe',
noUrl: 'Insira a URL do iframe',
scrolling: 'Abilita scrollbars',
title: 'Propriedade do IFrame',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'pt', {
border: 'Mostrar a borda da Frame',
noUrl: 'Por favor, digite o URL da iframe',
scrolling: 'Ativar barras de deslocamento',
title: 'Propriedades da IFrame',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'ro', {
border: 'Show frame border', // MISSING
noUrl: 'Please type the iframe URL', // MISSING
scrolling: 'Enable scrollbars', // MISSING
title: 'IFrame Properties', // MISSING
toolbar: 'IFrame' // MISSING
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'ru', {
border: 'Показать границы фрейма',
noUrl: 'Пожалуйста, введите ссылку фрейма',
scrolling: 'Отображать полосы прокрутки',
title: 'Свойства iFrame',
toolbar: 'iFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'si', {
border: 'සැකිල්ලේ කඩයිම් ',
noUrl: 'කරුණාකර රුපයේ URL ලියන්න',
scrolling: 'සක්ක්‍රිය කරන්න',
title: 'IFrame Properties', // MISSING
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'sk', {
border: 'Zobraziť rám frame-u',
noUrl: 'Prosím, vložte URL iframe',
scrolling: 'Povoliť skrolovanie',
title: 'Vlastnosti IFrame',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'sl', {
border: 'Pokaži mejo okvira',
noUrl: 'Prosimo, vnesite iframe URL',
scrolling: 'Omogoči scrollbars',
title: 'IFrame Lastnosti',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'sq', {
border: 'Shfaq kufirin e kornizës',
noUrl: 'Ju lutemi shkruani URL-në e iframe-it',
scrolling: 'Lejo shiritët zvarritës',
title: 'Karakteristikat e IFrame',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'sr-latn', {
border: 'Show frame border', // MISSING
noUrl: 'Please type the iframe URL', // MISSING
scrolling: 'Enable scrollbars', // MISSING
title: 'IFrame Properties', // MISSING
toolbar: 'IFrame' // MISSING
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'sr', {
border: 'Show frame border', // MISSING
noUrl: 'Please type the iframe URL', // MISSING
scrolling: 'Enable scrollbars', // MISSING
title: 'IFrame Properties', // MISSING
toolbar: 'IFrame' // MISSING
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'sv', {
border: 'Visa ramkant',
noUrl: 'Skriv in URL för iFrame',
scrolling: 'Aktivera rullningslister',
title: 'iFrame Egenskaper',
toolbar: 'iFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'th', {
border: 'Show frame border', // MISSING
noUrl: 'Please type the iframe URL', // MISSING
scrolling: 'Enable scrollbars', // MISSING
title: 'IFrame Properties', // MISSING
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'tr', {
border: 'Çerceve sınırlarını göster',
noUrl: 'Lütfen IFrame köprü (URL) bağlantısını yazın',
scrolling: 'Kaydırma çubuklarını aktif et',
title: 'IFrame Özellikleri',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'ug', {
border: 'كاندۇك گىرۋەكلىرىنى كۆرسەت',
noUrl: 'كاندۇكنىڭ ئادرېسى(Url)نى كىرگۈزۈڭ',
scrolling: 'دومىلىما سۈرگۈچكە يول قوي',
title: 'IFrame خاسلىق',
toolbar: 'IFrame '
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'uk', {
border: 'Показати рамки фрейму',
noUrl: 'Будь ласка введіть посилання для IFrame',
scrolling: 'Увімкнути прокрутку',
title: 'Налаштування для IFrame',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'vi', {
border: 'Hiển thị viền khung',
noUrl: 'Vui lòng nhập địa chỉ iframe',
scrolling: 'Kích hoạt thanh cuộn',
title: 'Thuộc tính iframe',
toolbar: 'Iframe'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'zh-cn', {
border: '显示框架边框',
noUrl: '请输入框架的 URL',
scrolling: '允许滚动条',
title: 'IFrame 属性',
toolbar: 'IFrame'
} );

View File

@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'zh', {
border: '顯示框架框線',
noUrl: '請輸入 iframe URL',
scrolling: '啟用捲軸列',
title: 'IFrame 屬性',
toolbar: 'IFrame'
} );

View File

@@ -1,87 +1,83 @@
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
CKEDITOR.plugins.add( 'iframe',
{
requires : [ 'dialog', 'fakeobjects' ],
init : function( editor )
{
var pluginName = 'iframe',
lang = editor.lang.iframe;
CKEDITOR.dialog.add( pluginName, this.path + 'dialogs/iframe.js' );
editor.addCommand( pluginName, new CKEDITOR.dialogCommand( pluginName ) );
editor.addCss(
'img.cke_iframe' +
'{' +
'background-image: url(' + CKEDITOR.getUrl( this.path + 'images/placeholder.png' ) + ');' +
'background-position: center center;' +
'background-repeat: no-repeat;' +
'border: 1px solid #a9a9a9;' +
'width: 80px;' +
'height: 80px;' +
'}'
);
editor.ui.addButton( 'Iframe',
{
label : lang.toolbar,
command : pluginName
});
editor.on( 'doubleclick', function( evt )
{
var element = evt.data.element;
if ( element.is( 'img' ) && element.data( 'cke-real-element-type' ) == 'iframe' )
evt.data.dialog = 'iframe';
});
if ( editor.addMenuItems )
{
editor.addMenuItems(
{
iframe :
{
label : lang.title,
command : 'iframe',
group : 'image'
}
});
}
// If the "contextmenu" plugin is loaded, register the listeners.
if ( editor.contextMenu )
{
editor.contextMenu.addListener( function( element, selection )
{
if ( element && element.is( 'img' ) && element.data( 'cke-real-element-type' ) == 'iframe' )
return { iframe : CKEDITOR.TRISTATE_OFF };
});
}
},
afterInit : function( editor )
{
var dataProcessor = editor.dataProcessor,
dataFilter = dataProcessor && dataProcessor.dataFilter;
if ( dataFilter )
{
dataFilter.addRules(
{
elements :
{
iframe : function( element )
{
return editor.createFakeParserElement( element, 'cke_iframe', 'iframe', true );
}
}
});
}
}
});
})();
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
( function() {
CKEDITOR.plugins.add( 'iframe', {
requires: 'dialog,fakeobjects',
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: 'iframe', // %REMOVE_LINE_CORE%
hidpi: true, // %REMOVE_LINE_CORE%
onLoad: function() {
CKEDITOR.addCss( 'img.cke_iframe' +
'{' +
'background-image: url(' + CKEDITOR.getUrl( this.path + 'images/placeholder.png' ) + ');' +
'background-position: center center;' +
'background-repeat: no-repeat;' +
'border: 1px solid #a9a9a9;' +
'width: 80px;' +
'height: 80px;' +
'}'
);
},
init: function( editor ) {
var pluginName = 'iframe',
lang = editor.lang.iframe,
allowed = 'iframe[align,longdesc,frameborder,height,name,scrolling,src,title,width]';
if ( editor.plugins.dialogadvtab )
allowed += ';iframe' + editor.plugins.dialogadvtab.allowedContent( { id: 1, classes: 1, styles: 1 } );
CKEDITOR.dialog.add( pluginName, this.path + 'dialogs/iframe.js' );
editor.addCommand( pluginName, new CKEDITOR.dialogCommand( pluginName, {
allowedContent: allowed,
requiredContent: 'iframe'
} ) );
editor.ui.addButton && editor.ui.addButton( 'Iframe', {
label: lang.toolbar,
command: pluginName,
toolbar: 'insert,80'
} );
editor.on( 'doubleclick', function( evt ) {
var element = evt.data.element;
if ( element.is( 'img' ) && element.data( 'cke-real-element-type' ) == 'iframe' )
evt.data.dialog = 'iframe';
} );
if ( editor.addMenuItems ) {
editor.addMenuItems( {
iframe: {
label: lang.title,
command: 'iframe',
group: 'image'
}
} );
}
// If the "contextmenu" plugin is loaded, register the listeners.
if ( editor.contextMenu ) {
editor.contextMenu.addListener( function( element, selection ) {
if ( element && element.is( 'img' ) && element.data( 'cke-real-element-type' ) == 'iframe' )
return { iframe: CKEDITOR.TRISTATE_OFF };
} );
}
},
afterInit: function( editor ) {
var dataProcessor = editor.dataProcessor,
dataFilter = dataProcessor && dataProcessor.dataFilter;
if ( dataFilter ) {
dataFilter.addRules( {
elements: {
iframe: function( element ) {
return editor.createFakeParserElement( element, 'cke_iframe', 'iframe', true );
}
}
} );
}
}
} );
} )();