Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
ckeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vanilla ckeditor-3.0.1
[ckeditor.git]
/
_source
/
plugins
/
sourcearea
/
plugin.js
diff --git
a/_source/plugins/sourcearea/plugin.js
b/_source/plugins/sourcearea/plugin.js
index
54f9d54
..
2763e82
100644
(file)
--- a/
_source/plugins/sourcearea/plugin.js
+++ b/
_source/plugins/sourcearea/plugin.js
@@
-36,6
+36,7
@@
CKEDITOR.plugins.add( 'sourcearea',
tabIndex : -1
\r
});
\r
textarea.addClass( 'cke_source' );
\r
tabIndex : -1
\r
});
\r
textarea.addClass( 'cke_source' );
\r
+ textarea.addClass( 'cke_enable_context_menu' );
\r
\r
var styles =
\r
{
\r
\r
var styles =
\r
{
\r
@@
-63,6
+64,11
@@
CKEDITOR.plugins.add( 'sourcearea',
textarea.show();
\r
};
\r
editor.on( 'resize', onResize );
\r
textarea.show();
\r
};
\r
editor.on( 'resize', onResize );
\r
+ editor.on( 'afterCommandExec', function( event )
\r
+ {
\r
+ if ( event.data.name == 'toolbarCollapse' )
\r
+ onResize();
\r
+ });
\r
styles.height = holderElement.$.clientHeight + 'px';
\r
}
\r
}
\r
styles.height = holderElement.$.clientHeight + 'px';
\r
}
\r
}
\r
@@
-74,9
+80,7
@@
CKEDITOR.plugins.add( 'sourcearea',
// inside of it (non IE).
\r
textarea.on( 'mousedown', function( evt )
\r
{
\r
// inside of it (non IE).
\r
textarea.on( 'mousedown', function( evt )
\r
{
\r
- evt = evt.data.$;
\r
- if ( evt.stopPropagation )
\r
- evt.stopPropagation();
\r
+ evt.data.stopPropagation();
\r
} );
\r
}
\r
\r
} );
\r
}
\r
\r
@@
-86,6
+90,16
@@
CKEDITOR.plugins.add( 'sourcearea',
holderElement.append( textarea );
\r
textarea.setStyles( styles );
\r
\r
holderElement.append( textarea );
\r
textarea.setStyles( styles );
\r
\r
+ textarea.on( 'blur', function()
\r
+ {
\r
+ editor.focusManager.blur();
\r
+ });
\r
+
\r
+ textarea.on( 'focus', function()
\r
+ {
\r
+ editor.focusManager.focus();
\r
+ });
\r
+
\r
// The editor data "may be dirty" after this point.
\r
editor.mayBeDirty = true;
\r
\r
// The editor data "may be dirty" after this point.
\r
editor.mayBeDirty = true;
\r
\r
@@
-107,6
+121,7
@@
CKEDITOR.plugins.add( 'sourcearea',
loadData : function( data )
\r
{
\r
textarea.setValue( data );
\r
loadData : function( data )
\r
{
\r
textarea.setValue( data );
\r
+ editor.fire( 'dataReady' );
\r
},
\r
\r
getData : function()
\r
},
\r
\r
getData : function()
\r