ngx-tiptap-editor
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

NgxTipTapEditor

Build and Publish Deploy to Github Pages NPM package

Features

  • Ease to use - If you don't want to create own extensions or controls you can simple paste the code below and it will work
  • Bring your own icons if you don't want to use the default ones
  • Customizable - Select which plugins/controls you want, and the order they are in
  • Performant - The update of the header controls is done outside of the angular change detection cycle to prevent change detection cycles running through the app every time the user types a letter
  • Extendable - Create your own Angular plugins for TipTap and pass them to the editor

Installation

  1. Install with npm install ngx-tiptap-editor or yarn add ngx-tiptap-editor.

Example

A very basic example with only a few controls. To see the module import, and the typescript component take a look at the docs.

<!-- The main editor component (all inputs and events will be handled by this component) -->
<tip-editor (jsonChange)="save($event)" [content]="editorContent"
            [extensions]="extensions" [angularExtensions]="angularExtension">
  <!-- Editor Header: Pass the controls you want to display in the body -->
  <tip-editor-header>
    <tip-format-control>
      <!-- Pass your custom icons and replace the default ones -->
    </tip-format-control>
    <tip-control-text-align></tip-control-text-align>
    <tip-control-underline></tip-control-underline>
    <tip-control-italic></tip-control-italic>
    <tip-control-bold></tip-control-bold>
  </tip-editor-header>
  <!-- The body of the editor (used for displaying the actual writing panel -->
  <tip-editor-body></tip-editor-body>
</tip-editor>

basic editor

Documentation

See here

Package Sidebar

Install

npm i ngx-tiptap-editor

Weekly Downloads

1

Version

0.4.0

License

MIT

Unpacked Size

1.22 MB

Total Files

113

Last publish

Collaborators

  • niclashaderer