Skip to content

Commit

Permalink
fixed bugs with default keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristof Keppens committed Aug 24, 2010
1 parent 392b550 commit 86ee18c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
4 changes: 2 additions & 2 deletions dialogs/flvPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ Kristof Keppens
type : 'text',
id : 'width',
style : 'width:80px',
default: CKEDITOR.config.flvPlayer.width ,
'default': CKEDITOR.config.flvPlayer.width ,
labelLayout : 'horizontal',
label : editor.lang.flash.width,
validate : CKEDITOR.dialog.validate.integer( editor.lang.flash.validateWidth ),
Expand Down Expand Up @@ -537,7 +537,7 @@ Kristof Keppens
id : 'height',
style : 'width:80px',
labelLayout : 'horizontal',
default: CKEDITOR.config.flvPlayer.height ,
'default': CKEDITOR.config.flvPlayer.height ,
label : editor.lang.flash.height,
validate : CKEDITOR.dialog.validate.integer( editor.lang.flash.validateHeight ),
onKeyUp : onSizeChange,
Expand Down
18 changes: 8 additions & 10 deletions plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,6 @@ CKEDITOR.plugins.add('flvPlayer', {
requires: ['dialog', 'fakeobjects'],
lang: ['en'],
init: function(editor) {

CKEDITOR.tools.extend(CKEDITOR.config, {
flvPlayer: {
movie: '',
extraFlashVars: '',
width : 600,
height : 480
}
});

var cmdName = 'flvPlayer';
var cmd = editor.addCommand(cmdName, new CKEDITOR.dialogCommand(cmdName));
cmd.modes = {wysiwyg: 1, source: 0};
Expand All @@ -25,3 +15,11 @@ CKEDITOR.plugins.add('flvPlayer', {
CKEDITOR.dialog.add(cmdName, this.path + 'dialogs/flvPlayer.js');
}
});
CKEDITOR.tools.extend(CKEDITOR.config, {
flvPlayer: {
movie: '',
extraFlashVars: '',
width : 600,
height : 480
}
});

0 comments on commit 86ee18c

Please sign in to comment.