<pre class="javascript" name="code">首先声明该文章来源于 http://www.xuebuyuan.com/2106102.html 地址,尊重作者
<p><pre class="javascript" name="code">
xtype: 'htmleditor',
//引用自定义样式
getDocMarkup: function ()
{return '<html><head><link href="style/apiContent.css" rel="stylesheet" type="text/css" /></head><body></body></html>';},
html:'<div class="content">****</div>
3.0版本
getDocMarkup : function(){
return '<html><head><style type="text/css">body{border:0;margin:0;padding:3px;height:98%;cursor:text;}</style></head><body></body></html>';
},
4.0版本
getDocMarkup: function() {
var me = this, h = me.iframeEl.getHeight() - me.iframePad * 2;
return Ext.String.format('<html><head><style type="text/css">body{border:0;margin:0;padding:{0}px;height:{1}px;cursor:text}</style></head><body></body></html>',
me.iframePad, h
); },