Installation Steps
Welcome to the HighRise-RTE. Built with Vue3, this editor aims to provide the Rich-Text-Editor Experience.
Features
- Extensions - A code snippet which adds a functionality to the editor
- Controls - Are the triggers which invokes the extension usage. These triggers are generally Buttons & Dropdowns. You can build these from scratch or use the Controls provided with this package and leave all lifting to the provided control. The controls provided with having prefix
RTEControl\*
Installation
Supports Vue > 3 apps Only
- Add the
.npmrcfile to the root of the consuming repository. Then add following keys for authentication, You can get_token-id_from the Team lead or fellow developers.
bash
@gohighlevel:registry=https://npm.pkg.github.com/
//npm.pkg.github.com/:_authToken=_token-id_- Now install the following packages
bash
yarn add @platform-ui/rteCreate the editor instance and pass it. RequiredExtensions is mandatory to make the editor work. This should be wrapped inside the
HLContentWrapcomponent.- Import the
HLContentWrapcomponent from@platform-ui/highrise - We recommend to use
@platform-ui/highriseof version>= 2
- Import the
ts
import { RequiredExtensions, Editor, HLTextEditor } from '@platform-ui/rte'
const editorInstance = new Editor({
extensions: [RequiredExtensions],
})html
<template>
<HLTextEditor :editor="editorInstance" />
</template>