Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot display tiptapNodeViewContent when editor is disabled #7

Closed
dkrusenstrahle opened this issue May 14, 2021 · 6 comments
Closed

Comments

@dkrusenstrahle
Copy link

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
Copy link
Author

@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
Copy link
Owner

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

@sibiraj-s
Copy link
Owner

Fixed in v1.4.1

@sibiraj-s
Copy link
Owner

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
Copy link
Owner

Published.

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants