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.