aurelia-froala-editor icon indicating copy to clipboard operation
aurelia-froala-editor copied to clipboard

On contentChanged envent changes the html

Open jgomesmv opened this issue 5 years ago • 2 comments

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. image

jgomesmv avatar Apr 12 '19 14:04 jgomesmv

@jgomesmv could you please make a demo where we can see this problem? Thanks in advance.

stefanneculai avatar Apr 15 '19 13:04 stefanneculai

@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: image

Thanks for your time and help!

jgomesmv avatar Apr 15 '19 16:04 jgomesmv