All notable changes to this project will be documented in this file.
Tags
- Features
- Bug Fixes
- Performance Improvements
- Dependency Updates
- Breaking Changes
- Enhancements
- Documentation
- Internal
- Refactor
- requires angular 19 or greater (64193b0)
- internal: refactor inputs and outputs to be signals (8bc30cb)
-
Everything is now standalone, and
NgxTiptapModule
is no longer needed and has been removed. Manually import the following components wherever required:- TiptapEditorDirective
- TiptapFloatingMenuDirective
- TiptapBubbleMenuDirective
- TiptapDraggableDirective
- TiptapNodeViewContentDirective
-
AngularNodeViewComponent methods are now signals.
An example of updating attributes in a custom node view:
Before
this.updateAttributes({ count: this.node.attrs['count'] + 1, });
After
const updateAttributes = this.updateAttributes(); updateAttributes({ count: this.node().attrs['count'] + 1, });
For more details, refer to the README.
- add support for attrs in AngularNodeViewRenderer (476081e)
- improve selection behaviour in custom nodes (476081e)
- fix types mismatch with tiptap v2.7 (476081e)
- add support for updateDelay prop in bubble menu (0680e39)
- fix view not updated on selection with ChangeDetectionStrategy#OnPush (681dc85)
- enable hierarchical injectors in AngularRenderer (93ec574)
- update selected input in nodeview with text selection (0ec762d)
- fix trigger ChangeDetection in custom Nodeviews using
updateProps
(4213560)
- update to tiptap v2 stable (432f4d2)
- fixes ngModelChange is invoked during render without any changes to the model value (1fcc867)
- update prosemirror-* peerDependencies (733aa55)
- update @tiptap/* peerDependencies (03d738f)
- update devDependencies (b8b1733)
- requires angular 15 or greater (ea34042)
- titap commands like setContent, clearContent requires emitUpdate flag to be passed (1fcc867)
For Example,
Before
editor.commands.setContent('Hello World!');
After
editor.commands.setContent('Hello World!', true);
- requires angular 14 or greater (e7f43bf)
- don't destroy editor from the directive (c165cc6)
- run changeDetection manually after view init (65f5c1e)
- Editor should be destroyed manually
import { Component, OnDestroy } from '@angular/core';
import { Editor } from '@tiptap/core';
@Component({
selector: 'app-root',
})
export class AppComponent implements OnDestroy {
editor = new Editor();
ngOnDestroy(): void {
this.editor.destroy();
}
}
- render json inputs correctly (3848f59)
- update devDependencies (4d51ff4)
- revert using viewContainerRef instead of applicationRef to create components (bb34ce7)
- use viewContainerRef instead of applicationRef to create components (454be3e)
- allow setting empty string to ngModel (89c510e)
- update peerDependencies (1489f44)
- cleanup tests (eefdfe4)
- requires angular 13 (917768c)
- destory component when nodeview is removed (8ed4db8)
- update peerDependencies (bdc9db7)
- update tiptap dependencies (94f02da)
- make
AngularRenderer
more generic (34d5c70)
- update
Input
decorators forAngularNodeViewComponent
component (8b9bed1)
Before
this.props.selected;
this.props.updatedAttributes;
After
this.selected;
this.updateAttributes;
- set correct styles for editable component (2b53819)
- use correct peerDependencies (e48cf70)
- add
deleteNode
method to component prop (7a170a0)
- set correct semver for tiptap packages (5b08331)
- move contentDOM on editor update (c5f71d9)
- move all child nodes within EditorContent (883798e)
- add missing
@angular/forms
peerDependency (467619e)
- update peerDependencies (52307d4)
- requires angular 12 (28a8176)
- detectChanges after mounting contentDOMElement (cc1f8da)
- update tiptap dependencies (54ef857)
- add
AngularRenderer
to render custom components (feaa118), (8ec978b) - add
tiptapNodeViewContent
to add contenteditable element inside node views (8d45055)
- support dragging nodeviews (55c70c0)
- update typings (1237cf0)
- update dependencies and devDependencies (cfb68de)
- update examples to use
StarterKit
instead ofdefaultExtensions
(92c93c9)
- attach
stopEvent
only if provided (d385e10)
- fix e2e tests (27b054a)
- fix typo in floating-menu directive selector (99775a0)
- add support for floating menu and bubble menu (1a7eded)
- add stackblitz demo link (ae836fe)
- update usage guide, install instruction
- enable prod mode for builds (ed30e81)
Initial Release: Angular bindings for Tiptap v2