Usage
<cui-editor id="editor" ui-editor-height="500px" ui-iframe="false"></cui-editor>
const editor = $UI.createComponent(componyx.UI.Editor, {
id: 'editor',
editorHeight: '500px',
iframe: false,
containerElement: document.body
});
editor.show();
The Editor loads its emoji and special characters from two data files. With the .NET
integration, these are served automatically. In other setups, point
ui-emoji-symbol-resource-path and ui-special-symbol-resource-path to
Editor/Data/Emoji.json and Editor/Data/Special.json in the npm
package, for example
node_modules/@componyx/ui/Editor/Data/Emoji.json.
The Editor produces HTML. When that HTML comes from users, sanitize it server-side before storing it.
For .NET HtmlSanitizer is a common choice.