-
Notifications
You must be signed in to change notification settings - Fork 30
Closed
Description
Hello,
I'm trying to use the ig-text-editor in multi-line mode inside an ig-dialog but the multi-line mode doesn't work. I've tried different ways but I think i'm missing something else.
<ig-dialog [widgetId]='dialogPassId' [(options)]='dialogPassOptions'>
<p>Add a Remark (optional)</p>
<ig-text-editor [widgetId]="remarkId" [(ngModel)]="remark" [(options)]="remarkOptions"></ig-text-editor>
</ig-dialog>
private dialogPassId:string = "dialogOrdersPassId";
private dialogPassOptions:any = {
headerText : "Pass Selected?",
height: 250,
width: 430,
state: "closed",
modal: true,
draggable: true,
resizable: false
};
private remarkId:string = "remarkId";
private remark:string = "";
private remarkOptions:any = {
width: "100%",
textMode: "multiline",
visibleItemsCount: 5
}
And if I do this, I can see the option is set.
var mode = $("#" + this.remarkId).igTextEditor("option", "textMode");
console.log(mode);
Thanks in advance,
Robbe