Fonts 如何更改显示在Nicedit编辑器中的文本的Nicedit默认字体大小?

Fonts 如何更改显示在Nicedit编辑器中的文本的Nicedit默认字体大小?,fonts,nicedit,Fonts,Nicedit,如何更改显示在Nicedit编辑器编辑框中的文本的Nicedit默认字体大小 请参见此处的图像链接: 编辑框是黄色的 我确信编辑字体属性的代码如下所示: area1 = new nicEditor({fullPanel : true}).panelInstance('peterText',{hasPanel : true}); 或者说: area1 = new nicEditor({/*fullPanel : true*/buttonList : ['save','center','right

如何更改显示在Nicedit编辑器编辑框中的文本的Nicedit默认字体大小

请参见此处的图像链接: 编辑框是黄色的

我确信编辑字体属性的代码如下所示:

area1 = new nicEditor({fullPanel : true}).panelInstance('peterText',{hasPanel : true});
或者说:

area1 = new nicEditor({/*fullPanel : true*/buttonList : ['save','center','right','forecolor','bgcolor','image','fontSize','fontFamily','fontFormat','subscript','superscript','ol','ul','indent','link','unlink','xhtml']
  }).panelInstance('peterText',{hasPanel : true});
或者类似于:

  bkLib.onDomLoaded(function() {
        new nicEditor().panelInstance('area1');
        new nicEditor({fullPanel : true}).panelInstance('area2');
        new nicEditor({iconsPath : '../nicEditorIcons.gif'}).panelInstance('area3');
        new nicEditor({buttonList : ['fontSize','bold','italic','underline','strikeThrough','subscript','superscript','html','image']}).panelInstance('area4');
        new nicEditor({maxHeight : 100}).panelInstance('area5');
  });

任何人,有什么想法吗?

nicEdit使用文本区域正文中的html标记来管理字体/粗体/下划线等。诀窍是在创建面板实例之前在文本区域正文中提供标记

var body = document.getElementById('editor_body');
body.innerHTML = "<font face='verdana' color='green' size='6'><div align='left'>Hello!</div></font>";
new nicEditor({iconsPath:'edit/nicEditorIcons.gif'}).panelInstance('editor_body');
var body=document.getElementById('editor_body');
body.innerHTML=“你好!”;
新的nicEditor({iconPath:'edit/nicEditorIcons.gif'}).panelInstance('editor_body');