mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-04-23 00:18:31 +00:00
first commit
This commit is contained in:
78
lib/ckeditor4/plugins/sourcedialog/dialogs/sourcedialog.js
Executable file
78
lib/ckeditor4/plugins/sourcedialog/dialogs/sourcedialog.js
Executable file
@@ -0,0 +1,78 @@
|
||||
/**
|
||||
* @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
* For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.dialog.add( 'sourcedialog', function( editor ) {
|
||||
var size = CKEDITOR.document.getWindow().getViewPaneSize();
|
||||
|
||||
// Make it maximum 800px wide, but still fully visible in the viewport.
|
||||
var width = Math.min( size.width - 70, 800);
|
||||
|
||||
// Make it use 2/3 of the viewport height.
|
||||
var height = size.height / 1.5;
|
||||
|
||||
// Store old editor data to avoid unnecessary setData.
|
||||
var oldData;
|
||||
|
||||
return {
|
||||
title: editor.lang.sourcedialog.title,
|
||||
minWidth: 100,
|
||||
minHeight: 100,
|
||||
|
||||
onShow: function() {
|
||||
this.setValueOf( 'main', 'data', oldData = editor.getData() );
|
||||
},
|
||||
|
||||
onOk: (function() {
|
||||
function setData( newData ) {
|
||||
var that = this;
|
||||
|
||||
editor.setData( newData, function() {
|
||||
that.hide();
|
||||
|
||||
// Ensure correct selection.
|
||||
var range = editor.createRange();
|
||||
range.moveToElementEditStart( editor.editable() );
|
||||
range.select();
|
||||
} );
|
||||
}
|
||||
|
||||
return function( event ) {
|
||||
// Remove CR from input data for reliable comparison with editor data.
|
||||
var newData = this.getValueOf( 'main', 'data' ).replace( /\r/g, '' );
|
||||
|
||||
// Avoid unnecessary setData. Also preserve selection
|
||||
// when user changed his mind and goes back to wysiwyg editing.
|
||||
if ( newData === oldData )
|
||||
return true;
|
||||
|
||||
// Set data asynchronously to avoid errors in IE.
|
||||
CKEDITOR.env.ie ?
|
||||
CKEDITOR.tools.setTimeout( setData, 0, this, newData )
|
||||
:
|
||||
setData.call( this, newData );
|
||||
|
||||
// Don't let the dialog close before setData is over.
|
||||
return false;
|
||||
};
|
||||
})(),
|
||||
|
||||
contents: [{
|
||||
id: 'main',
|
||||
label: editor.lang.sourcedialog.title,
|
||||
elements: [{
|
||||
type: 'textarea',
|
||||
type: 'textarea',
|
||||
id: 'data',
|
||||
dir: 'ltr',
|
||||
inputStyle: 'cursor:auto;' +
|
||||
'width:' + width + 'px;' +
|
||||
'height:' + height + 'px;' +
|
||||
'tab-size:4;' +
|
||||
'text-align:left;',
|
||||
'class': 'cke_source'
|
||||
}]
|
||||
}]
|
||||
};
|
||||
});
|
||||
BIN
lib/ckeditor4/plugins/sourcedialog/icons/hidpi/sourcedialog-rtl.png
Executable file
BIN
lib/ckeditor4/plugins/sourcedialog/icons/hidpi/sourcedialog-rtl.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 1.9 KiB |
BIN
lib/ckeditor4/plugins/sourcedialog/icons/hidpi/sourcedialog.png
Executable file
BIN
lib/ckeditor4/plugins/sourcedialog/icons/hidpi/sourcedialog.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
BIN
lib/ckeditor4/plugins/sourcedialog/icons/sourcedialog-rtl.png
Executable file
BIN
lib/ckeditor4/plugins/sourcedialog/icons/sourcedialog-rtl.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 762 B |
BIN
lib/ckeditor4/plugins/sourcedialog/icons/sourcedialog.png
Executable file
BIN
lib/ckeditor4/plugins/sourcedialog/icons/sourcedialog.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 764 B |
9
lib/ckeditor4/plugins/sourcedialog/lang/af.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/af.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'af', {
|
||||
toolbar: 'Bron',
|
||||
title: 'Bron'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/ar.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/ar.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'ar', {
|
||||
toolbar: 'المصدر',
|
||||
title: 'المصدر'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/bg.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/bg.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'bg', {
|
||||
toolbar: 'Източник',
|
||||
title: 'Източник'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/bn.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/bn.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'bn', {
|
||||
toolbar: 'সোর্স',
|
||||
title: 'সোর্স'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/bs.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/bs.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'bs', {
|
||||
toolbar: 'HTML kôd',
|
||||
title: 'HTML kôd'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/ca.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/ca.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'ca', {
|
||||
toolbar: 'Codi font',
|
||||
title: 'Codi font'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/cs.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/cs.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'cs', {
|
||||
toolbar: 'Zdroj',
|
||||
title: 'Zdroj'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/cy.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/cy.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'cy', {
|
||||
toolbar: 'HTML',
|
||||
title: 'HTML'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/da.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/da.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'da', {
|
||||
toolbar: 'Kilde',
|
||||
title: 'Kilde'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/de.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/de.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'de', {
|
||||
toolbar: 'Quellcode',
|
||||
title: 'Quellcode'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/el.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/el.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'el', {
|
||||
toolbar: 'HTML κώδικας',
|
||||
title: 'HTML κώδικας'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/en-au.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/en-au.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'en-au', {
|
||||
toolbar: 'Source',
|
||||
title: 'Source'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/en-ca.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/en-ca.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'en-ca', {
|
||||
toolbar: 'Source',
|
||||
title: 'Source'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/en-gb.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/en-gb.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'en-gb', {
|
||||
toolbar: 'Source',
|
||||
title: 'Source'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/en.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/en.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'en', {
|
||||
toolbar: 'Source',
|
||||
title: 'Source'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/eo.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/eo.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'eo', {
|
||||
toolbar: 'Fonto',
|
||||
title: 'Fonto'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/es.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/es.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'es', {
|
||||
toolbar: 'Fuente HTML',
|
||||
title: 'Fuente HTML'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/et.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/et.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'et', {
|
||||
toolbar: 'Lähtekood',
|
||||
title: 'Lähtekood'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/eu.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/eu.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'eu', {
|
||||
toolbar: 'HTML Iturburua',
|
||||
title: 'HTML Iturburua'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/fa.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/fa.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'fa', {
|
||||
toolbar: 'منبع',
|
||||
title: 'منبع'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/fi.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/fi.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'fi', {
|
||||
toolbar: 'Koodi',
|
||||
title: 'Koodi'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/fo.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/fo.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'fo', {
|
||||
toolbar: 'Kelda',
|
||||
title: 'Kelda'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/fr-ca.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/fr-ca.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'fr-ca', {
|
||||
toolbar: 'Source',
|
||||
title: 'Source'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/fr.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/fr.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'fr', {
|
||||
toolbar: 'Source',
|
||||
title: 'Source'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/gl.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/gl.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'gl', {
|
||||
toolbar: 'Orixe',
|
||||
title: 'Orixe'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/gu.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/gu.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'gu', {
|
||||
toolbar: 'મૂળ કે પ્રાથમિક દસ્તાવેજ',
|
||||
title: 'મૂળ કે પ્રાથમિક દસ્તાવેજ'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/he.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/he.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'he', {
|
||||
toolbar: 'מקור',
|
||||
title: 'מקור'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/hi.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/hi.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'hi', {
|
||||
toolbar: 'सोर्स',
|
||||
title: 'सोर्स'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/hr.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/hr.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'hr', {
|
||||
toolbar: 'Kôd',
|
||||
title: 'Kôd'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/hu.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/hu.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'hu', {
|
||||
toolbar: 'Forráskód',
|
||||
title: 'Forráskód'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/id.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/id.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'id', {
|
||||
toolbar: 'Sumber',
|
||||
title: 'Sumber'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/is.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/is.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'is', {
|
||||
toolbar: 'Kóði',
|
||||
title: 'Kóði'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/it.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/it.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'it', {
|
||||
toolbar: 'Sorgente',
|
||||
title: 'Sorgente'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/ja.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/ja.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'ja', {
|
||||
toolbar: 'ソース',
|
||||
title: 'ソース'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/ka.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/ka.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'ka', {
|
||||
toolbar: 'კოდები',
|
||||
title: 'კოდები'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/km.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/km.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'km', {
|
||||
toolbar: 'អក្សរកូដ',
|
||||
title: 'អក្សរកូដ'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/ko.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/ko.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'ko', {
|
||||
toolbar: '소스',
|
||||
title: '소스'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/ku.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/ku.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'ku', {
|
||||
toolbar: 'سەرچاوە',
|
||||
title: 'سەرچاوە'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/lt.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/lt.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'lt', {
|
||||
toolbar: 'Šaltinis',
|
||||
title: 'Šaltinis'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/lv.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/lv.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'lv', {
|
||||
toolbar: 'HTML kods',
|
||||
title: 'HTML kods'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/mn.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/mn.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'mn', {
|
||||
toolbar: 'Код',
|
||||
title: 'Код'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/ms.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/ms.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'ms', {
|
||||
toolbar: 'Sumber',
|
||||
title: 'Sumber'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/nb.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/nb.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'nb', {
|
||||
toolbar: 'Kilde',
|
||||
title: 'Kilde'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/nl.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/nl.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'nl', {
|
||||
toolbar: 'Code',
|
||||
title: 'Code'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/no.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/no.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'no', {
|
||||
toolbar: 'Kilde',
|
||||
title: 'Kilde'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/pl.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/pl.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'pl', {
|
||||
toolbar: 'Źródło dokumentu',
|
||||
title: 'Źródło dokumentu'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/pt-br.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/pt-br.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'pt-br', {
|
||||
toolbar: 'Código-Fonte',
|
||||
title: 'Código-Fonte'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/pt.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/pt.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'pt', {
|
||||
toolbar: 'Fonte',
|
||||
title: 'Fonte'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/ro.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/ro.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'ro', {
|
||||
toolbar: 'Sursa',
|
||||
title: 'Sursa'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/ru.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/ru.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'ru', {
|
||||
toolbar: 'Исходник',
|
||||
title: 'Источник'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/si.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/si.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'si', {
|
||||
toolbar: 'මුලාශ්රය',
|
||||
title: 'මුලාශ්රය'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/sk.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/sk.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'sk', {
|
||||
toolbar: 'Zdroj',
|
||||
title: 'Zdroj'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/sl.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/sl.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'sl', {
|
||||
toolbar: 'Izvorna koda',
|
||||
title: 'Izvorna koda'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/sq.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/sq.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'sq', {
|
||||
toolbar: 'Burimi',
|
||||
title: 'Burimi'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/sr-latn.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/sr-latn.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'sr-latn', {
|
||||
toolbar: 'Kôd',
|
||||
title: 'Kôd'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/sr.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/sr.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'sr', {
|
||||
toolbar: 'Kôд',
|
||||
title: 'Kôд'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/sv.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/sv.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'sv', {
|
||||
toolbar: 'Källa',
|
||||
title: 'Källa'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/th.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/th.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'th', {
|
||||
toolbar: 'ดูรหัส HTML',
|
||||
title: 'ดูรหัส HTML'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/tr.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/tr.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'tr', {
|
||||
toolbar: 'Kaynak',
|
||||
title: 'Kaynak'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/ug.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/ug.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'ug', {
|
||||
toolbar: 'مەنبە',
|
||||
title: 'مەنبە'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/uk.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/uk.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'uk', {
|
||||
toolbar: 'Джерело',
|
||||
title: 'Джерело'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/vi.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/vi.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'vi', {
|
||||
toolbar: 'Mã HTML',
|
||||
title: 'Mã HTML'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/zh-cn.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/zh-cn.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'zh-cn', {
|
||||
toolbar: '源码',
|
||||
title: '源码'
|
||||
});
|
||||
9
lib/ckeditor4/plugins/sourcedialog/lang/zh.js
Executable file
9
lib/ckeditor4/plugins/sourcedialog/lang/zh.js
Executable file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.setLang( 'sourcedialog', 'zh', {
|
||||
toolbar: '原始碼',
|
||||
title: '原始碼'
|
||||
});
|
||||
27
lib/ckeditor4/plugins/sourcedialog/plugin.js
Executable file
27
lib/ckeditor4/plugins/sourcedialog/plugin.js
Executable file
@@ -0,0 +1,27 @@
|
||||
/**
|
||||
* @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
* For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.add( 'sourcedialog', {
|
||||
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,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: 'sourcedialog,sourcedialog-rtl', // %REMOVE_LINE_CORE%
|
||||
hidpi: true, // %REMOVE_LINE_CORE%
|
||||
|
||||
init: function( editor ) {
|
||||
// Register the "source" command, which simply opens the "source" dialog.
|
||||
editor.addCommand( 'sourcedialog', new CKEDITOR.dialogCommand( 'sourcedialog' ) );
|
||||
|
||||
// Register the "source" dialog.
|
||||
CKEDITOR.dialog.add( 'sourcedialog', this.path + 'dialogs/sourcedialog.js' );
|
||||
|
||||
// If the toolbar is available, create the "Source" button.
|
||||
if ( editor.ui.addButton ) {
|
||||
editor.ui.addButton( 'Sourcedialog', {
|
||||
label: editor.lang.sourcedialog.toolbar,
|
||||
command: 'sourcedialog',
|
||||
toolbar: 'mode,10'
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
118
lib/ckeditor4/plugins/sourcedialog/samples/sourcedialog.html
Executable file
118
lib/ckeditor4/plugins/sourcedialog/samples/sourcedialog.html
Executable file
@@ -0,0 +1,118 @@
|
||||
<!DOCTYPE html>
|
||||
<!--
|
||||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Raw HTML editing with dialog-based source editor — CKEditor Sample</title>
|
||||
<meta charset="utf-8">
|
||||
<script src="../../../ckeditor.js"></script>
|
||||
<link rel="stylesheet" href="../../../samples/sample.css">
|
||||
<meta name="ckeditor-sample-name" content="Raw HTML editing with dialog-based source editor">
|
||||
<meta name="ckeditor-sample-group" content="Plugins">
|
||||
<meta name="ckeditor-sample-description" content="Editing HTML content of both inline and framed editor instances.">
|
||||
<meta name="ckeditor-sample-isnew" content="1">
|
||||
<style>
|
||||
|
||||
#editable
|
||||
{
|
||||
padding: 10px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1 class="samples">
|
||||
<a href="../../../samples/index.html">CKEditor Samples</a> » Raw HTML editing with dialog-based source editor
|
||||
</h1>
|
||||
<div class="description">
|
||||
<p>
|
||||
<strong>Sourcedialog</strong> plugin provides an easy way to edit raw HTML content
|
||||
of an editor, similarly to what is possible with <strong>Sourcearea</strong>
|
||||
plugin for framed instances but using dialogs. Thanks to that, it's also possible
|
||||
to manipulate raw content of inline editor instances.
|
||||
</p>
|
||||
<p>
|
||||
This plugin extends the toolbar with a button,
|
||||
which opens a dialog window with a source code editor. It works with both framed
|
||||
and inline instances. To enable this
|
||||
plugin, basically add <code>extraPlugins: 'sourcedialog'</code> to editor's
|
||||
config:
|
||||
</p>
|
||||
<pre class="samples">
|
||||
// Inline editor.
|
||||
CKEDITOR.inline( 'editable', {
|
||||
<strong>extraPlugins: 'sourcedialog'</strong>
|
||||
});
|
||||
|
||||
// Framed editor.
|
||||
CKEDITOR.replace( 'textarea_id', {
|
||||
<strong>extraPlugins: 'sourcedialog'</strong>,
|
||||
removePlugins: 'sourcearea'
|
||||
});
|
||||
</pre>
|
||||
<p>
|
||||
Note that you may want to include <code>removePlugins: 'sourcearea'</code>
|
||||
in your config when using <strong>Sourcedialog</strong> in framed instances.
|
||||
This prevents feature redundancy.
|
||||
</p>
|
||||
<p>
|
||||
Note that <code>editable</code> in the code above is the <code>id</code>
|
||||
attribute of the <code><div></code> element to be converted into an inline instance.
|
||||
</p>
|
||||
<p>
|
||||
Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of
|
||||
the <code><textarea></code> element to be replaced with CKEditor.
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<label for="editor1">
|
||||
Inline editor:
|
||||
</label>
|
||||
<div id="editor1" contenteditable="true" style="padding: 5px 20px;">
|
||||
<p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div>
|
||||
<label for="editor2">
|
||||
Framed editor:
|
||||
</label>
|
||||
<textarea cols="80" id="editor2" name="editor2" rows="10">
|
||||
This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.
|
||||
</textarea>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
// We need to turn off the automatic editor creation first.
|
||||
CKEDITOR.disableAutoInline = true;
|
||||
|
||||
var config = {
|
||||
toolbarGroups: [
|
||||
{ name: 'mode' },
|
||||
{ name: 'basicstyles' },
|
||||
{ name: 'links' }
|
||||
],
|
||||
extraPlugins: 'sourcedialog',
|
||||
removePlugins: 'sourcearea'
|
||||
}
|
||||
|
||||
CKEDITOR.inline( 'editor1', config );
|
||||
CKEDITOR.replace( 'editor2', config );
|
||||
|
||||
</script>
|
||||
<div id="footer">
|
||||
<hr>
|
||||
<p>
|
||||
CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">
|
||||
http://ckeditor.com</a>
|
||||
</p>
|
||||
<p id="copy">
|
||||
Copyright © 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a>
|
||||
- Frederico Knabben. All rights reserved.
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user