aurelia-froala-editor
aurelia-froala-editor copied to clipboard
On contentChanged envent changes the html
Expected behaviour When clicking outside the editor or typing text the html of a custom component should not be changed. I tried to find a option to disable this behaviour but with no success. Is there any way to achieve this?
Actual behavior. When clicking outside the editor or typing text the html of a custom component is changed. The div with class "c-accordionDropdown__listOptions" is removed from the accordion-dropdown and placed apart
Steps to reproduce the problem. Insert a aurelia component inside the div with class fr-element fr-view. Type some text on the editor or click outside of it and the component div with class "c-accordionDropdown__listOptions" is removed from the accordion-dropdown and placed apart
OS. Windows 10
Browser. Chrome 73.0.3683.103
Recording.
@jgomesmv could you please make a demo where we can see this problem? Thanks in advance.
@stefanneculai I have been working on a demo to give you, but I was not able to replicate the issue. I actually found out we where making changes on the html afterwards.
When passing the editor.el.innerHtml to a component property somehow it changes the value and provokes the issue:
Thanks for your time and help!