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

On contentChanged envent changes the html #52

Open
jgomesmv opened this issue Apr 12, 2019 · 2 comments
Open

On contentChanged envent changes the html #52

jgomesmv opened this issue Apr 12, 2019 · 2 comments

Comments

@jgomesmv
Copy link

jgomesmv commented Apr 12, 2019

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

@stefanneculai
Copy link
Contributor

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

@jgomesmv
Copy link
Author

jgomesmv commented Apr 15, 2019

@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!

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