BV Commerce 5 includes FreeTextBox as a WYSIWYG editor. It also includes a plain text box and a special text box that understands MarkDown syntax.
These instructions will help you if you'd like to add another text editor of any kind to BV Commerce 5.
1) Open the /BVModules/Editors folder and create a new sub-folder. The name of the sub-folder will be the name of your editor as displayed to users. For example "New Editor"
2) Add a new asp.net user control called editor.ascx to the folder.
3) On the user control add your text editor controls.
4) In the code behind of the user control, inherit from the BVSoftware.BVC5.Core.Content.TextEditorBase class. This is required to make your editor appear in BV Commerce
5) There will be a few functions that you'll need to override to make your editor function correctly with BV Commerce
SupportsTransform - If True your editor will keep two copies of the text that the user enters. One that is exactly as the user entered it and another that is "transformed" by your code before display on the site. The Markdown editor supports transforms. The Free Text Box and Plain Text boxes do not.
PreTransformText - This property should get and set the exact text as entered by the user without transformations
Text - This property should should get and set either the exact text entered by the user or the transformed text if your editor supports it.
EditorWidth,EditorHeight - These properties are configured by users and can optionally be implemented by your editor. They determine the initial size of the editor on the page.
EditorWrap - Set by users to request that text wrap be enabled or disabled. Your editor can implement this setting or ignore.
TabIndex - BV Commerce uses this property to request the current tab index or set the current tab index for your editor. This is important to implement because it controls how users move through a form with the tab key.
As soon as you have created the sub-folder and user control your text editor is available in the BV Commerce admin under Options->Display
Edited by user Friday, June 3, 2016 12:52:33 PM(UTC)
| Reason: Not specified