Socket
Socket
Sign inDemoInstall

boot-cell-editor

Package Overview
Dependencies
6
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    boot-cell-editor

Lightweight Rich Text Editor based on TypeScript, WebCell & Bootstrap


Version published
Weekly downloads
5
decreased by-93.06%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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}
            />
        );
    }
}

Keywords

FAQs

Last updated on 25 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc