The default opencmshtml editor has weak functions and can be expanded using the following methods:
Add the following settings to the <XSD: annotation> <XSD: appinfo> node of the XSD file:
< Layouts >
< Layout Element = "Content" Widget = "Htmlwidget" Configuration = "Source, Link, anchor, formatselect, imagegallery, downloadgallery, linkgallery, htmlgallery, tablegallery, height: 400px" />
</ Layouts >
In this case, the editor is not powerful enough, and there are no font or font size settings. You can add it by modifying the configuration file, as shown below:
There are two JS files in/system/workplace/Editors/FCKeditor/, configwidget. JS and customconfig. JS. These two files are used to configure the FCKeditor toolbar, customconfig. JS is the FCKeditor editor used to configure the static editing area. It has complete functions and configwidget. JS is the editor used to configure the opencmshtml type. It has simple functions. You can view the toolbar in the two files. append is used to add the editing function, as long as it is in customconfig. add some desired functions to configwidget in Js. add the required functions in JS. For example, add the font and font size, and add the toolbar. append (", '-', 'fontname', 'fontsize', 'style. I remember in 6. in Version X, you need to modify the source code to increase the font and font size. in Version X, this can be implemented simply. X is also subject to many changes in its subtleties. We also need to make careful discoveries. We would also like to thank the netizen "sysuxk" for his contribution to this article ......
(Thank you for choosing opencms, the first blog of Chinese resources, http://blog.csdn.net/qianxuncms/. we welcome you to communicate directly with the author and make progress together. MSN: qianxuncms@hotmail.com, QQ: 9165456)