Skip to content

DOM didn't not render when attrs.ngModel initialized #5

@AndyHoang

Description

@AndyHoang

I have the case when using schemaform draw the tinymce after calling the ws to get json schema + form + model value. Everything working fine but, it' have bad error output on developer tool.
I try to trace back the source, it seem, even when the event schemaFormRedraw broadcasted, the html DOM of tinymce wasn't load yet (we don't have cached here)
So in the meantime, the model value had changed, which trigger this watcher
https://github.com/Textalk/tx-tinymce/blob/master/tx-tinymce.js#L84
and since it didn't have tinymce.getContent(), it will throw an error.
When I try a quick fix by using the condition check if(value != old) then everything works fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions