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

How to use more than one editor in a single component #123

Open
PrabakarKaruppasamy opened this issue Jul 26, 2019 · 1 comment
Open

How to use more than one editor in a single component #123

PrabakarKaruppasamy opened this issue Jul 26, 2019 · 1 comment

Comments

@PrabakarKaruppasamy
Copy link

PrabakarKaruppasamy commented Jul 26, 2019

@fxmontigny How can we use the more than one editor in angular with in a single component.

I would like to use more than one editor in a single component, like similar below.

<div #editor ace-editor [(text)]="text" [mode]="'groovy'" [options]="options" [readOnly]="false" [theme]="'eclipse'" [autoUpdateContent]="true" [durationBeforeCallback]="1000" (textChanged)="onChange($event)" style="min-height: 300px; width:100%; overflow: auto;"> </div>

<div #editor ace-editor [(text)]="text" [mode]="'groovy'" [options]="options" [readOnly]="false" [theme]="'eclipse'" [autoUpdateContent]="true" [durationBeforeCallback]="1000" (textChanged)="onChange($event)" style="min-height: 300px; width:100%; overflow: auto;"> </div>

We need to use more than one editor instance. How can we do that?

@WOOOFEI
Copy link

WOOOFEI commented Sep 25, 2019

Use another ”hashtag“ such as #editor1 in the second editor and try again.😊

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