Edkit
Lightweight Rich Text Editor toolkit based on TypeScript
Demo
https://idea2app.github.io/Edkit/React/
Usage
Application developers
Library developers
Features
Editor class decorator
@editor
is compatible with Web components, React & other kinds of class components.
Web components
import { EditorComponent, editor } from 'edkit';
export interface HTMLEditor extends EditorComponent {}
@editor
export class HTMLEditor extends HTMLElement implements EditorComponent {
// your class members...
}
React
import { Component } from 'react';
import { editor, EditorComponent } from 'edkit';
export interface HTMLEditor extends EditorComponent {}
@editor
export class HTMLEditor extends Component implements EditorComponent {
// your class members...
}
Tool base classes
Text
- Bold
- Italic
- Underline
- Strike through
- H1
- H2
- H3
- Font Size down
- Font Size up
- Subscript
- Superscript
- Link