From 86ee18cd555c054af52b3eda8650dbdac4fb9e42 Mon Sep 17 00:00:00 2001 From: Kristof Keppens Date: Tue, 24 Aug 2010 13:27:44 +0200 Subject: [PATCH] fixed bugs with default keyword --- dialogs/flvPlayer.js | 4 ++-- plugin.js | 18 ++++++++---------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/dialogs/flvPlayer.js b/dialogs/flvPlayer.js index 098c9e4..7f32218 100644 --- a/dialogs/flvPlayer.js +++ b/dialogs/flvPlayer.js @@ -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 ), @@ -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, diff --git a/plugin.js b/plugin.js index 8b244a9..e78ddd6 100644 --- a/plugin.js +++ b/plugin.js @@ -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}; @@ -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 + } +});