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

In the case of some RichText types in RichTextArray that does not support updating, want to update other parts RichText #535

Open
qixing-jk opened this issue Dec 8, 2024 · 0 comments

Comments

@qixing-jk
Copy link

qixing-jk commented Dec 8, 2024

Describe the bug
According to the definition of RichTextItemRequest, can I update other parts of RichText, such as regular Text, without mentioning part of the RichText in the block as a temporarily unsupported type such as link-preview and removing this unsupported type?
To Reproduce
Node version: v20.12.0
Notion JS library version: v2.2.15

Steps to reproduce the behavior:
Attempt to update a block containing RichText, such as paragraph, and it has normal text and a link preview of type mention, only modify the text content of normal text, nothing else changes

Expected behavior
Update other parts of RichText if the RichText in the block mentions a temporarily unsupported type such as link-preview and does not remove this unsupported type

Screenshots
Clip_20241208_213757

Additional context

If you're having problems using Notion's API, or have any other feedback about the API including feature requests for the JavaScript library, please email support at [email protected].

I saw this part of the content. If the API supports this kind of mention, it will definitely be fine, but I don't want to create or update unsupported mentions, and I think partial updates should be possible, such as using empty objects or Null for RichText data elements that do not need to be updated, but I don't find any similar methods for partial updates in the documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant