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

Drag data with angular inputs #145

Open
westlakem opened this issue Aug 7, 2018 · 0 comments
Open

Drag data with angular inputs #145

westlakem opened this issue Aug 7, 2018 · 0 comments

Comments

@westlakem
Copy link

Please remove sections that are not required.

  • I'm submitting a ...
    [ X ] bug report
    [ ] feature request
    [ ] other

  • What is the current behavior?

Angular inputs cut off the html.

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://plnkr.co or similar.

Component.ts

  order = [
    `<div> TEST</div>`,
    `<app-ngx-editor [placeholder]="'This is the first paragraph'" [spellcheck]="true" [(ngModel)]="text"></app-ngx-editor>`,
    `<h2>Subsection 1</h2>`,
    `<h1>Title</h1>`
  ];

HTML FILE:

<div droppable [dragData]=html (onDrop)="moveItem($event)" draggable="true" *ngFor="let html of order" [innerHTML]="html" ></div>

DOM RENDERING:

<div _ngcontent-c2="" draggable="true" droppable="" class="drag-handle" ng-reflect-drag-data="<app-ngx-editor [placeholder]="></div>
  • What is the expected behavior?

should maintain all the HTML content to render in the DOM

  • Please tell us about your environment:
  • Angular version: 6.0.3
  • Browser: Chrome 64
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

1 participant