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:
C Robert
2009-08-26 14:03:12 +00:00
parent 4d1a003124
commit 0ce87017d6
329 changed files with 5266 additions and 3451 deletions
@@ -78,7 +78,8 @@ CKEDITOR.ui.panel.prototype =
output.push(
'<div class="', editor.skinClass ,'"' +
' lang="', editor.langCode, '"' +
' style="z-index:' + ( editor.config.baseFloatZIndex + 1 ) + '">' +
// iframe loading need sometime, keep the panel hidden(#4186).
' style="display:none;z-index:' + ( editor.config.baseFloatZIndex + 1 ) + '">' +
'<div' +
' id=', id,
' dir=', editor.lang.dir,
@@ -133,7 +134,6 @@ CKEDITOR.ui.panel.prototype =
className = parentDiv.getParent().getAttribute( 'class' ),
langCode = parentDiv.getParent().getAttribute( 'lang' ),
doc = iframe.getFrameDocument();
// Initialize the IFRAME document body.
doc.$.open();
@@ -141,13 +141,21 @@ CKEDITOR.ui.panel.prototype =
if ( CKEDITOR.env.isCustomDomain() )
doc.$.domain = document.domain;
var onLoad = CKEDITOR.tools.addFunction( CKEDITOR.tools.bind( function( ev )
{
this.isLoaded = true;
if ( this.onLoad )
this.onLoad();
}, this ) );
doc.$.write(
'<!DOCTYPE html>' +
'<html dir="' + dir + '" class="' + className + '_container" lang="' + langCode + '">' +
'<head>' +
'<style>.' + className + '_container{visibility:hidden}</style>' +
'</head>' +
'<body class="cke_' + dir + ' cke_panel_frame ' + CKEDITOR.env.cssClass + '" style="margin:0;padding:0">' +
'<body class="cke_' + dir + ' cke_panel_frame ' + CKEDITOR.env.cssClass + '" style="margin:0;padding:0"' +
' onload="( window.CKEDITOR || window.parent.CKEDITOR ).tools.callFunction(' + onLoad + ');">' +
'</body>' +
// It looks strange, but for FF2, the styles must go
// after <body>, so it (body) becames immediatelly
@@ -161,14 +169,6 @@ CKEDITOR.ui.panel.prototype =
// Register the CKEDITOR global.
win.$.CKEDITOR = CKEDITOR;
win.on( 'load', function( ev )
{
this.isLoaded = true;
if ( this.onLoad )
this.onLoad();
},
this);
doc.on( 'keydown', function( evt )
{
var keystroke = evt.data.getKeystroke();