X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=_source%2Fthemes%2Fdefault%2Ftheme.js;h=97dd0ef2ab934eb5c35a246df3be798bff6ece68;hb=refs%2Ftags%2Fv3.0.2;hp=b3057d085806775f27b3dec7ea911eac0be797ae;hpb=ea7e3453c7b0f023b050aca6d9f83ab372860d91;p=ckeditor.git diff --git a/_source/themes/default/theme.js b/_source/themes/default/theme.js index b3057d0..97dd0ef 100644 --- a/_source/themes/default/theme.js +++ b/_source/themes/default/theme.js @@ -86,6 +86,9 @@ CKEDITOR.themes.add( 'default', (function() */ editor.container = container; + // Disable browser context menu for editor's chrome. + container.disableContextMenu(); + editor.fireOnce( 'themeLoaded' ); editor.fireOnce( 'uiReady' ); }, @@ -99,16 +102,18 @@ CKEDITOR.themes.add( 'default', (function() '" dir="', editor.lang.dir, '"' + ' lang="', editor.langCode, '"' + '>' + - - '
' + + '' + '
' + '
' + '
' + 'X' + '
' + '
' + - '
' + + '' + + '' + + '
' + '
' + '
' + '
' + @@ -119,7 +124,8 @@ CKEDITOR.themes.add( 'default', (function() '
' + '
' + '
' + - '
', + '' + + '', //Hide the container when loading skins, later restored by skin css. ( CKEDITOR.env.ie ? '' : '' ), @@ -129,11 +135,13 @@ CKEDITOR.themes.add( 'default', (function() .replace( /#/g, '_' + baseIdNumber ) .replace( /%/g, 'cke_dialog_' ) ); - var body = element.getChild( [ 0, 0 ] ); + var body = element.getChild( [ 0, 0, 0, 0, 0 ] ), + title = body.getChild( 0 ), + close = body.getChild( 1 ); // Make the Title and Close Button unselectable. - body.getChild( 0 ).unselectable(); - body.getChild( 1 ).unselectable(); + title.unselectable(); + close.unselectable(); return { @@ -141,10 +149,10 @@ CKEDITOR.themes.add( 'default', (function() parts : { dialog : element.getChild( 0 ), - title : body.getChild( 0 ), - close : body.getChild( 1 ), + title : title, + close : close, tabs : body.getChild( 2 ), - contents : body.getChild( 3 ), + contents : body.getChild( [ 3, 0, 0, 0 ] ), footer : body.getChild( 4 ) } };