我找到了这段代码 ,想加入allowfullscreen="true" 一直测试不成功,我的版本是KindEditor 3.5.2 (2010-12-02)
KE.g[id].setHtmlHooks.push(function(html) {
return html.replace(/<embed[^>]*type="application\/x-shockwave-flash"[^>]*>(?:<\/embed>)?/ig, function($0) {
var src = $0.match(/\s+src="([^"]+)"/i) ? RegExp.$1 : '';
if ($0.match(/\s+kesrc="([^"]+)"/i)) src = RegExp.$1;
var width = $0.match(/\s+width="([^"]+)"/i) ? RegExp.$1 : 0;
var height = $0.match(/\s+height="([^"]+)"/i) ? RegExp.$1 : 0;
var attrs = KE.util.getAttrList($0);
attrs.src = src;
attrs.width = width;
attrs.height = height;
return KE.util.getMediaImage(id, 'flash', attrs);
});
});