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

Unable to Load Data into Quill Editor with HTML Format in Angular Form #1940

Open
hamessoft opened this issue Oct 24, 2024 · 1 comment
Open

Comments

@hamessoft
Copy link

hamessoft commented Oct 24, 2024

We are facing an issue where data is not loading into the Quill editor when using the format="html" property. Despite properly binding the form control to the FormGroup, the content is not being displayed within the editor. Below is the relevant code snippet:

<quill-editor
    #editor
    format="html"
    formControlName="commentary">
</quill-editor>
public myForm: FormGroup = new FormGroup({
    commentary: new FormControl('<div>test</div><ul><li>1</li><li class="ql-indent-1">1-1</li><li>2</li><ol><li>numbered</li><li class="ql-indent-1">numbered-1</li></ol></ul><div><br></div>')
});

Expected Behavior: The Quill editor should load and display the data in HTML format when bound to the commentary form control.

Actual Behavior: The editor appears, but the data does not load or render inside it, even though the form control is initialized and bound correctly.

@KillerCodeMonkey
Copy link
Owner

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

2 participants