mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-12 23:37:15 +00:00
Imported CKEDITOR 3.0
Monotone-Parent: 5f9c08dd6b5b34d815ddb2108abbf4055e846934 Monotone-Revision: b2cf7eda0ef8f15fb6e78f8c38a7406a47bcdd2f Monotone-Author: crobert@inverse.ca Monotone-Date: 2009-08-26T14:03:12 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
4d1a003124
commit
0ce87017d6
329 files changed
+5266
-3451
No files matched your search
@@ -46,8 +46,11 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
{
|
||||
editor.on( 'beforePaste', function( event )
|
||||
{
|
||||
setTimeout( function() { command.exec(); }, 0 );
|
||||
event.cancel();
|
||||
if ( editor.mode == "wysiwyg" )
|
||||
{
|
||||
setTimeout( function() { command.exec(); }, 0 );
|
||||
event.cancel();
|
||||
}
|
||||
},
|
||||
null, null, 20 );
|
||||
}
|
||||
@@ -127,4 +130,13 @@ CKEDITOR.editor.prototype.insertText = function( text )
|
||||
this.insertHtml( text );
|
||||
};
|
||||
|
||||
/**
|
||||
* Whether to force all pasting operations to insert on plain text into the
|
||||
* editor, loosing any formatting information possibly available in the source
|
||||
* text.
|
||||
* @type Boolean
|
||||
* @default false
|
||||
* @example
|
||||
* config.forcePasteAsPlainText = true;
|
||||
*/
|
||||
CKEDITOR.config.forcePasteAsPlainText = false;
|
||||
Reference in new issue
Block a user