We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I try to populate the "markdown" field whenever the field is saved. See FieldComponent.tsx, line 165
However, even after setting the defaultEditorConfig.output.markdown.enabled = true; the markdown property does not seem to be set:
defaultEditorConfig.output.markdown.enabled = true;
markdown
lexicalRichTextField({ name: "lexical_content", label: "Content", localized: true, editorConfigModifier: (defaultEditorConfig) => { // This should populate the "markdown" property of the field, according to defaultEditorConfig.output.markdown.enabled = true; defaultEditorConfig.output.html.enabled = true; return defaultEditorConfig; }, hooks: { // see: https://payloadcms.com/docs/hooks/fields beforeChange: [ (args) => { // TODO markdown is undefined args.data.as_markdown = args.data.lexical_content.markdown; return args.value; }, ], },
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I try to populate the "markdown" field whenever the field is saved.
See FieldComponent.tsx, line 165
However, even after setting the
defaultEditorConfig.output.markdown.enabled = true;
the
markdown
property does not seem to be set:The text was updated successfully, but these errors were encountered: