微软提供的Ajax的HTMLEditorExtender控件自带的文字字体种类和字体大小只有那么简单的五六个,对于我们实际使用来说很不方便,该怎么重写和增加内容呢?
我们可以采取下面的步骤进行修改:
(1)从这个地方下载AjaxControlToolkit sources 的源码
(2)找到HtmlEditorExtenderBehavior.Pre.js这个文件,在这个文件中的_createbutton添加自己所需要的字体和文字大小.
(3)保存这个文件,重新运行和build这个solution,你就会发现这个控件中的内容已被修改了!