On my screen where I use primeng, the syncfusion richtexteditor toolbar is overridden by the primeng css and my design is broken, how can I prevent this?
image:
Attachment: syncfusion_primeng_fecfb2cf.zip
hi,
Is there anyone who can help with the problem I shared?
We suspect that the issue occurred when the initial rendering of the Rich Text Editor component is done the sidebar component will have the style of display none so the editor's toolbar did not get proper offset and render outside.
To solve the issue we recommend calling the refreshUI method of the Rich Text Editor component after the sidebar is opened.
API Reference: https://ej2.syncfusion.com/angular/documentation/api/rich-text-editor/#refreshui
if you still face the issue kindly update this sample with the issue replicating code to further validate from our end.
I don't think the problem is caused by the sidebar component. Because in the picture I posted, I put a Rich Text Editor outside the p-TabView and it works without any problems. My opinion is influenced by p- TabView css. Relevant pictures are attached. Additionally, I am adding the code I wrote.
Is there an example usage of Refresh UI?
<ejs-tab #tab_default id="tab_default" heightAdjustMode="Auto"> <e-tabitems> <e-tabitem [header]="headerText[0]"> <ng-template #content> <ejs-richtexteditor #rteObj (created)="onCreate()"> <ng-template #valueTemplate> <p>Inside the 0th RTE</p> </ng-template> </ejs-richtexteditor> </ng-template> </e-tabitem> <e-tabitem [header]="headerText[1]"> </e-tabitem> <e-tabitem [header]="headerText[2]"> </e-tabitem> </e-tabitems> </ejs-tab> public onCreate() { (this.rteObj as any).refreshUI(); } |