Is it possible to add a rich text editor component to a dashboard layout? Currently when I try it I've got three problems
Hi Matthew,
Greetings from Syncfusion support.
We have validated the reported issue by preparing the Angular Dashboard Panel sample with the Rich Text Editor component. But, we were unable to reproduce your reported issue at our end.
Sample: https://stackblitz.com/edit/angular-o4scov?file=app%2Fapp.module.ts,app.component.html
Can you please share the below information?
Regards,
Buvana S
Thanks for that.
https://photos.app.goo.gl/rnpwukB3ZGE8J8Nz8 https://photos.app.goo.gl/rnpwukB3ZGE8J8Nz8
I'll do a better video when I've got an example together.
I've re-created the problem in Stackblitz: https://stackblitz.com/edit/angular-o4scov-a8zabu?file=app.component.ts
or https://angular-o4scov-a8zabu.stackblitz.io for the application itself. I've attached a video of the problem as I'm seeing it.
Hopefully this help, and hopefully iy
Hi Matthew,
We have checked the shared video. In mobile view, the dashboard will be stacked in a single column for responsive consideration. The reordering (drag and drop) functionality will be applicable only in desktop mode, since designing, editing, and reordering functionality is mainly for admin users. The desktop user maintains and modifies the orders with the desktop mode alone in most of the dashboard cases. You are unable to perform drag and drop on panels when the panels are rendered in a single column.
We suggest you open the output in the new window in our shared sample. We have also checked the sample shared from your end. We understand that you want to set the panel content on initial rendering based on pure script. You can achieve this by setting the Template block for that particular panel content using our created event. Please find the modified sample at the below link.
https://stackblitz.com/edit/angular-o4scov-g79rsm?file=app.component.html,app.component.ts,main.ts
You can follow any of the above sample to meet your requirement. Please get back to us if you need any further assistance.
Regards,
Indhumathy L
Thank you for working example and explanation. There are still 2 problems with sample though:
Hi Matthew,
We understand that you want to prevent the panel dragging when the RTE element is clicked. You can achieve this requirement by enabling dragging action on a specific part of the panel by using the draggableHandle property. Check the below documentation for reference.
For your reference, we have modified the sample so that you can drag the panel when you click on the panel header. Otherwise, the dragging action will be restricted. Check out the sample at the link below.
https://stackblitz.com/edit/angular-o4scov-yi5pz5?file=app.component.html,app.component.ts,main.ts
Also, if you only want to prevent the drag action when you click inside the RTE, you can disable our allowDragging property based on the target element clicked. Refer to the below documentation for reference.
Please check the shared details and get back to us if you need any further assistance.
Regards,
Indhumathy L
that's fantastic, thanks for the help and the very clear communication.
Hi Matthew,
We are glad that your query has been resolved. Please get back to us if you need any further assistance.
Regards,
Indhumathy L