/*\r
-Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
For licensing, see LICENSE.html or http://ckeditor.com/license\r
*/\r
\r
classid : [ { type : ATTRTYPE_OBJECT, name : 'classid' } ],\r
codebase : [ { type : ATTRTYPE_OBJECT, name : 'codebase'} ],\r
pluginspage : [ { type : ATTRTYPE_EMBED, name : 'pluginspage' } ],\r
- src : [ { type : ATTRTYPE_PARAM, name : 'movie' }, { type : ATTRTYPE_EMBED, name : 'src' } ],\r
+ src : [ { type : ATTRTYPE_PARAM, name : 'movie' }, { type : ATTRTYPE_EMBED, name : 'src' }, { type : ATTRTYPE_OBJECT, name : 'data' } ],\r
name : [ { type : ATTRTYPE_EMBED, name : 'name' } ],\r
align : [ { type : ATTRTYPE_OBJECT, name : 'align' } ],\r
title : [ { type : ATTRTYPE_OBJECT, name : 'title' }, { type : ATTRTYPE_EMBED, name : 'title' } ],\r
\r
var previewPreloader,\r
previewAreaHtml = '<div>' + CKEDITOR.tools.htmlEncode( editor.lang.common.preview ) +'<br>' +\r
- '<div id="FlashPreviewLoader' + CKEDITOR.tools.getNextNumber() + '" style="display:none"><div class="loading"> </div></div>' +\r
- '<div id="FlashPreviewBox' + CKEDITOR.tools.getNextNumber() + '" class="FlashPreviewBox"></div></div>';\r
+ '<div id="cke_FlashPreviewLoader' + CKEDITOR.tools.getNextNumber() + '" style="display:none"><div class="loading"> </div></div>' +\r
+ '<div id="cke_FlashPreviewBox' + CKEDITOR.tools.getNextNumber() + '" class="FlashPreviewBox"></div></div>';\r
\r
return {\r
title : editor.lang.flash.title,\r
\r
// Try to detect any embed or object tag that has Flash parameters.\r
var fakeImage = this.getSelectedElement();\r
- if ( fakeImage && fakeImage.getAttribute( '_cke_real_element_type' ) && fakeImage.getAttribute( '_cke_real_element_type' ) == 'flash' )\r
+ if ( fakeImage && fakeImage.data( 'cke-real-element-type' ) && fakeImage.data( 'cke-real-element-type' ) == 'flash' )\r
{\r
this.fakeImage = fakeImage;\r
\r
type : 'text',\r
id : 'width',\r
style : 'width:95px',\r
- label : editor.lang.flash.width,\r
- validate : CKEDITOR.dialog.validate.integer( editor.lang.flash.validateWidth ),\r
+ label : editor.lang.common.width,\r
+ validate : CKEDITOR.dialog.validate.integer( editor.lang.common.invalidWidth ),\r
setup : function( objectNode, embedNode, paramMap, fakeImage )\r
{\r
loadValue.apply( this, arguments );\r
type : 'text',\r
id : 'height',\r
style : 'width:95px',\r
- label : editor.lang.flash.height,\r
- validate : CKEDITOR.dialog.validate.integer( editor.lang.flash.validateHeight ),\r
+ label : editor.lang.common.height,\r
+ validate : CKEDITOR.dialog.validate.integer( editor.lang.common.invalidHeight ),\r
setup : function( objectNode, embedNode, paramMap, fakeImage )\r
{\r
loadValue.apply( this, arguments );\r
{\r
id : 'align',\r
type : 'select',\r
- label : editor.lang.flash.align,\r
+ label : editor.lang.common.align,\r
'default' : '',\r
style : 'width : 100%;',\r
items :\r
[\r
[ editor.lang.common.notSet , ''],\r
- [ editor.lang.flash.alignLeft , 'left'],\r
+ [ editor.lang.common.alignLeft , 'left'],\r
[ editor.lang.flash.alignAbsBottom , 'absBottom'],\r
[ editor.lang.flash.alignAbsMiddle , 'absMiddle'],\r
[ editor.lang.flash.alignBaseline , 'baseline'],\r
- [ editor.lang.flash.alignBottom , 'bottom'],\r
- [ editor.lang.flash.alignMiddle , 'middle'],\r
- [ editor.lang.flash.alignRight , 'right'],\r
+ [ editor.lang.common.alignBottom , 'bottom'],\r
+ [ editor.lang.common.alignMiddle , 'middle'],\r
+ [ editor.lang.common.alignRight , 'right'],\r
[ editor.lang.flash.alignTextTop , 'textTop'],\r
- [ editor.lang.flash.alignTop , 'top']\r
+ [ editor.lang.common.alignTop , 'top']\r
],\r
setup : loadValue,\r
commit : function( objectNode, embedNode, paramMap, extraStyles, extraAttributes )\r