CKEditor.
Edition of page part for single language.
This commit is contained in:
1 parent
d971a8ecbe
commit
a8c4e17c56
664 files changed
+119327
-10
No files matched your search
@@ -0,0 +1 @@
|
||||
(function(){CKEDITOR.dialog.add('embed',function(editor){return{title:editor.lang.embed.title,minWidth:CKEDITOR.env.ie&&CKEDITOR.env.quirks?368:350,minHeight:240,onShow:function(){this.getContentElement('general','content').getInputElement().setValue('')},onOk:function(){var text=this.getContentElement('general','content').getInputElement().getValue();this.getParentEditor().insertHtml(text)},contents:[{label:editor.lang.common.generalTab,id:'general',elements:[{type:'html',id:'pasteMsg',html:'<div style="white-space:normal;width:340px;">'+editor.lang.embed.pasteMsg+'</div>'},{type:'html',id:'content',style:'width:340px;height:170px',html:'<textarea style="'+'width:346px;'+'height:170px;'+'resize: none;'+'border:1px solid black;'+'background-color:white">'+'</textarea>',focus:function(){this.getElement().focus()}}]}]}})})();
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 769 B |
@@ -0,0 +1,9 @@
|
||||
CKEDITOR.plugins.setLang('embed', 'en',
|
||||
{
|
||||
embed :
|
||||
{
|
||||
title : "Paste embed",
|
||||
button : "Paste embed",
|
||||
pasteMsg : "Please, paste embed-code from Youtube, Myspace, Flickr and others sources into rectangle, using the keyboard (Ctrl + V), and click OK."
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,9 @@
|
||||
CKEDITOR.plugins.setLang('embed', 'ru',
|
||||
{
|
||||
embed :
|
||||
{
|
||||
title : "Вставить embed",
|
||||
button : "Вставить embed",
|
||||
pasteMsg : "Пожалуйста, вставьте embed-код с Youtube, Myspace, Flickr и других ресурсов в прямоугольник, используя сочетание клавиш (Ctrl+V), и нажмите OK."
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,9 @@
|
||||
CKEDITOR.plugins.setLang('embed', 'uk',
|
||||
{
|
||||
embed :
|
||||
{
|
||||
title : "Вставити embed",
|
||||
button : "Вставити embed",
|
||||
pasteMsg : "Будь ласка, вставте embed-код з Youtube, Myspace, Flickr та інших ресурсів в прямокутник, використовуючи (Ctrl+V), та нажміть OK."
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
(function(){var embedCmd={exec:function(editor){editor.openDialog('embed');return}};CKEDITOR.plugins.add('embed',{lang:['en','ru','uk'],requires:['dialog'],init:function(editor){var commandName='embed';editor.addCommand(commandName,embedCmd);editor.ui.addButton('Embed',{label:editor.lang.embed.button,command:commandName,icon:this.path+"images/embed.png"});CKEDITOR.dialog.add(commandName,CKEDITOR.getUrl(this.path+'dialogs/embed.js'))}})})();
|
||||
Reference in new issue
Block a user