sibiraj-s / ngx-tiptap

Angular bindings for tiptap v2
https://sibiraj-s.github.io/ngx-tiptap/
MIT License
126 stars 19 forks source link

Cannot display tiptapNodeViewContent when editor is disabled #7

Closed dkrusenstrahle closed 3 years ago

dkrusenstrahle commented 3 years ago

Hello @sibiraj-s!

I have created a custom node view that is editable (using tiptapNodeViewContent). It works very good but I have one issue. How can I show the data from the editble field when viewing the editor in none editable state (editor is not in editable mode).

Using this does not output the content of the editable field.

Strange thing is if I click into the editor area it appears. So tiptapNodeViewContent is only filled when clicking on it.

dkrusenstrahle commented 3 years ago

@sibiraj-s An update. I have to click on the div that contains (should contain) the content. I have removed all HTML markup and CSS to make sure it's not impacting.

Before click:

<div tiptapnodeviewcontent="" data-node-view-content=""></div>

After click:

<div tiptapnodeviewcontent="" data-node-view-content="">
    <div style="white-space: inherit;"><p>TEST</p></div>
 </div>
sibiraj-s commented 3 years ago

is this a regression? used to work before the directive? i.e., with data-node-view-content attribute?

sibiraj-s commented 3 years ago

Fixed in v1.4.1

sibiraj-s commented 3 years ago

Github actions is down at the moment https://www.githubstatus.com/incidents/zbpwygxwb3gw. New version will be published once the action services are up.

sibiraj-s commented 3 years ago

Published.

github-actions[bot] commented 1 year ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in the thread.