boot-cell-editor
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-rc.2 • Public • Published

BootCell HTML editor

Lightweight Rich Text Editor based on Edkit, WebCell & Bootstrap

NPM Dependency

NPM

Demo

https://idea2app.github.io/Edkit/WebCell/

Tools

https://github.com/idea2app/Edkit#tools

Usage

Installation

Shell command

npm install web-cell boot-cell-editor

tsconfig.json

{
    "compilerOptions": {
        "target": "ES6",
        "moduleResolution": "Node",
        "useDefineForClassFields": true,
        "jsx": "react-jsx",
        "jsxImportSource": "dom-renderer"
    }
}

HTML entry

<head>
    <link
        rel="stylesheet"
        href="https://unpkg.com/bootstrap@5.3.2/dist/css/bootstrap.min.css"
    />
    <link
        rel="stylesheet"
        href="https://unpkg.com/bootstrap-icons@1.11.3/font/bootstrap-icons.css"
    />
</head>

Initialization

import { component } from
import { Editor } from 'boot-cell-editor';

@component({ tagName: 'post-edit' })
export class PostEdit extends HTMLElement {
    render() {
        return (
            <Editor
                name="content"
                defaultValue="<p>test</p>"
                onChange={console.log}
            />
        );
    }
}

Package Sidebar

Install

npm i boot-cell-editor

Weekly Downloads

2

Version

1.0.0-rc.2

License

LGPL-3.0

Unpacked Size

14.9 kB

Total Files

12

Last publish

Collaborators

  • tech_query