Editor: "Normal" header style creates an <undefined> tag instead of a <p> tag #5649
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
Hi!
In the Editor component with default configuration, when applying "Normal" styling to a text, it renders as
<undefined>Text</undefined>
instead of<p>Text</p>
.I think this problem comes from how the default config for the Quill toolbar, which is configured here :
primevue/components/lib/editor/Editor.vue
Lines 6 to 10 in cc9fa38
The
value
for the "Normal" style should bevalue=""
instead ofvalue="0"
, same fordefaultValue=""
.I didn't find any documentation about this on https://v1.quilljs.com/docs/modules/toolbar but I found an example here https://stackoverflow.com/a/56846200.
Reproducer
https://stackblitz.com/edit/primevue-issue-editor-undefined-tag?file=src%2FApp.vue
PrimeVue version
3.47.2
Vue version
3.x
Language
ALL
Build / Runtime
Vue CLI App
Browser(s)
No response
Steps to reproduce the behavior
npm install quill@1.3.7
(v2 of Quill has breaking changes)<undefined>Text</undefined>
.Expected behavior
I expect to see :
<p>Text</p>
in the value.The text was updated successfully, but these errors were encountered: