New features include:
1: Filter dangerous label characters WeisConfig.isReplaceDangerousCode.
2: Set the mode of the editor's carriage return event, whether to change a single line or a double line.
The setting item is: WeisConfig.EnterEventType, there are two types of P, BR must be capitalized
3: View the source code and convert html into xhtml standard source code.
4: IE can realize that the uploaded image file address is a relative path.
1. First open js/config.js in the (Weiseditor) editor folder
If your project is a virtual directory project at this time
WeisConfig.isVirtualPath = true;
And write the project name: WeisConfig.virtualPath = WeisConfig.isVirtualPath ? /EditorExmB/ : / ;
------------------------------------------
If it is a website: WeisConfig.isVirtualPath = false;
WeisConfig.UseFullPath = false; indicates whether to use the absolute path when uploading files; this item seems useless for IE.
2. Description of each parameter:
ValName: Hidden field to save data (required)
UploadMode: Upload mode (optional), default "Default"
UPFileName: This item (optional) is used to dynamically generate specific user information folders, such as the respective folders of image download users.
FrmHeight: This item (optional) is used to set the editor height, the default is 230
EditorID: This item (optional) is used to set the ID of the editor. The default is "HtmlEdit"
EditorMode: This item (optional) is used to set the editor mode. The default is "Default"
3. Description of config.js related options:
WeisConfig.FontColors font color list set.
WeisConfig.BackColor Editor background color.
WeisConfig.BackImage This item can set the background image of the editor.
WeisConfig.isCanUpload sets whether to allow local upload of files.
Expand