Updated ckeditor

This commit is contained in:
RainLoop Team 2015-01-27 23:41:11 +04:00
parent aa84077ac4
commit 965ea317e4
514 changed files with 3679 additions and 7678 deletions

View file

@ -131,11 +131,11 @@
{name: 'others'}
],
'removePlugins': 'liststyle,tabletools,contextmenu', //blockquote
'removePlugins': 'liststyle,table,quicktable,tableresize,tabletools,contextmenu', //blockquote
'removeButtons': 'Format,Undo,Redo,Cut,Copy,Paste,Anchor,Strike,Subscript,Superscript,Image,SelectAll,Source',
'removeDialogTabs': 'link:advanced;link:target;image:advanced;images:advanced',
'extraPlugins': 'plain,bidi', // signature
'extraPlugins': 'plain', // signature
'allowedContent': true,
'font_defaultLabel': 'Arial',

View file

@ -185,9 +185,9 @@
bBiti = !!Settings.settingsGet('AllowHtmlEditorBitiButtons')
;
if ((bSource || !bBiti) && !oConfig.toolbarGroups.__SourceInited)
if ((bSource || !bBiti) && !oConfig.toolbarGroups.__cfgInited)
{
oConfig.toolbarGroups.__SourceInited = true;
oConfig.toolbarGroups.__cfgInited = true;
if (bSource)
{
@ -198,10 +198,6 @@
{
oConfig.removePlugins += (oConfig.removePlugins ? ',' : '') + 'bidi';
}
else
{
oConfig.removeButtons = oConfig.removeButtons.replace(',bidi', '');
}
}
oConfig.enterMode = window.CKEDITOR.ENTER_BR;
@ -244,6 +240,13 @@
{
self.editor.on('instanceReady', function () {
if (self.editor.removeMenuItem)
{
self.editor.removeMenuItem('cut');
self.editor.removeMenuItem('copy');
self.editor.removeMenuItem('paste');
}
self.editor.setKeystroke(window.CKEDITOR.CTRL + 65 /* A */, 'selectAll');
self.editor.editable().addClass('cke_enable_context_menu');

View file

@ -27,7 +27,7 @@
}
.cke_combo_button {
/*background: #FBFBFB !important;*/
background: #FBFBFB !important;
}
.cke_source {