p-editor having table content

UI Components for Angular
Post Reply
vighnesh2020
Posts: 1
Joined: 02 Mar 2020, 09:47

02 Mar 2020, 10:04

Hello,

We are trying to integrate p-editor control (primeNg v4) in an Angular 4 application. We have declared p-editor in html in below manner:
<p-editor [(ngModel)]="text1" [style]="{'height':'320px'}"></p-editor>

In TypeScript class, we are setting text1 variable's value: (myclass is a CSS class with font-weight: bold value)
text1: string = '<div class="myclass">Hello World!</div><div>PrimeNG <b>Editor</b> Rocks</div><div><br></div>';

However, after compilation, the inner content of p-editor does not show text Hello Word as bold. Is p-editor control not recognizing style class specified on div element when generating output? We are not able to show table html like <table><tr><td> inside p-editor. Please note that we want to show data in table structure in the p-editor control.

Please let us know if this is a known limitation.

Regards,
Vighnesh

tbegsr
Posts: 19
Joined: 25 Jul 2016, 18:07
Location: Suisse

13 Nov 2022, 22:50

Hi
Have you found a solution?
Regards Rolf

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 27 guests