How to re-create the document editor container instance

In my project, I have to put the document editor under the P-dialog which is similar to put the documentEditor under [*ngIf] instead of [Hidden].
When the dialog is popup, I need to re-create the conntainer instance otherwise it is a null object.
Any sample code to do that? Thanks!

8 Replies 1 reply marked as answer

SM Suriya Murugan Syncfusion Team January 6, 2021 03:50 PM UTC

Hi Hao,  
  
We are checking your requirement. We will provide code snippet by January 8,2021. 
 
In meantime, Can you please confirm you want show DocumentEditor in Dialog and hide it when dialog gets closed?that will helpful for us to proceed further. 
  
  
Regards, 

Suriya M. 



HW Hao Wu January 7, 2021 12:20 AM UTC

Hi Suriya,

Yes, I need to show it in a dialog as there will be issues that displaying in a Modal on that page. Thanks so much for the help!

Regards,
Hao


SM Suriya Murugan Syncfusion Team January 7, 2021 09:14 AM UTC

Hi Hao, 

Thanks for your confirmation. 

As promised , We will check and provide you code snippet  by January 8,2021. 

Regards, 

Suriya M. 



KB Kurthis Banu Abdul Majeeth Syncfusion Team January 11, 2021 01:00 PM UTC


Hi Hao,   


We have created a sample using P-Dialog for DocumentEditor. Please check it from below link.


Sample Link :  https://stackblitz.com/edit/angular-qesdcj-v9ngne?file=app.component.html


Can you please check and let us know it satify your requirement? Currently we are working in hide (Close) Dialog using P-dialog. We will update it shortly.


  
Regards,  

Kurthis Banu A.  



HW Hao Wu January 12, 2021 06:16 AM UTC

Thanks Suirya,  the sample code is using a very old Primg libary, it does not work in my page but never mind. I have switched to use the ejs-dialog which had resolved the displaying issue.

The ejs-dialog works great expect one small issue. It opens the dialog by default, I add the hide() into the onCreate(). It kind of works but still can see the dialog popsup then disappear. Not a big issue, just curious if there is any better solution other than call hide() in the onCreate()?


KB Kurthis Banu Abdul Majeeth Syncfusion Team January 13, 2021 05:40 PM UTC

Hi Hao,   
  
We are checking your requirement. We will provide code snippet by January 15,2021.  
  
Regards,  
  
Kurthis Banu A.  



HW Hao Wu January 13, 2021 11:12 PM UTC

Hi Team,

Thanks for the help. I have another displaying issue that make the documennt editor un-usable.
The editor keeps showing in min size, see aattached screenshot. It is showed within ejs-dialog. The first time it displays OK. After close the dialog and open again, the issue happens. I have tried calling the resize, refresh but cannot make it work. Any ideas? 





KB Kurthis Banu Abdul Majeeth Syncfusion Team January 14, 2021 12:35 PM UTC

Hi Hao,    
  
We have created a sample using ejs-Dialog for DocumentEditor. Please check it from below link. 
  
  
Please let us know if you have any other questions.  
  
  
 Regards,   
  
Kurthis Banu A.   


Marked as answer
Loader.
Up arrow icon