-
-
Notifications
You must be signed in to change notification settings - Fork 271
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
Writer docs: paragraph node undocumented #1397
Comments
This needs to be fixed in the source code inline docs |
Should we move this to the kirby repo? |
I wonder if the docs are really incorrect. I don't fully understand the internal writer setup, but as far as I can tell, these are all the supported node types: |
But here 6 are imported: And here it mentions the paragraph node: https://github.com/getkirby/kirby/blob/79bce56a34a188ceaafb0a5179215fb55dca8bc5/panel/src/components/Writer/Writer.vue#L153 And to me it makes sense to be able to limit the writer field to paragraphs only. |
But if we filter the |
You are probably right. Setting If that's the case, we should however mention that somehow in the docs as it's obviously confusing. |
The |
Today, as I was implementing Writer, I've looked up docs, specifically regarding limiting content;
This is what the docs state:
Looking at the panel source code, I also see following:
Some of those seem obvious (text =
inline: true
write fields?), but some of those (specificallyparagraph
, in my case) are probably missing in the docs.Additionally, I was able to limit my nodes to paragraphs only by setting the field option to:
which is consistent with other kirby panel options, but not mentioned in the docs.
The text was updated successfully, but these errors were encountered: