Document editor container restrictEditing doesn't disable right sidebar/pane


Hi support,

I'm using document editor container on my Angular application.
I need to open the component in readonly mode, relative to a variable assigned on init.

This is the HTML code:
<ejs-documenteditorcontainer [enableToolbar]="true"
[toolbarItems]="toolbarItems"
[restrictEditing]="isDocumentReadOnly"
(created)="onEditorCreated()"
(contentChange)="onEditorContentChange($event)"
(toolbarClick)="onToolbarClick($event)"
serviceUrl="https://ej2services.syncfusion.com/production/web-services/api/documenteditor/"
style="display:block"
height="calc(100vh - 80px)">
</ejs-documenteditorcontainer>
As you can see, I'm binding restrictEditing to a variable.
That boolean variable is true by default.

Then when I open the editor, right sidebar, aka pane from your api documentation, is still working, allowing us to open/close.



The funny thing is that, if I use "Restrict Editing" button from toolbar, right side pane will be disabled for good.



The question is: how can I simulate restrict editing as toolbar button -> readonly a the startup of the component?

Even on your "How to -> Opening a document in ready only mode by default in DocumentEditorContainer"  tutorial,
we can see that default read only state from the beginning is not the same as restrict editing -> read only set from the toolbar button.


Thanks in advance for your help.


4 Replies 1 reply marked as answer

KB Kurthis Banu Abdul Majeeth Syncfusion Team January 18, 2021 02:09 AM UTC

Hi Tommaso, 
  
We are sorry for the inconvenience; we need additional timeline for this reported issue. 
  
We will check and update details without any further delay Jan 20, 2021.  
  
Regards, 
  
Kurthis Banu A. 



KB Kurthis Banu Abdul Majeeth Syncfusion Team January 22, 2021 01:17 AM UTC

Hi Tommaso, 
We have considered the reported scenario as bug and logged defect report. Fix will be included in our upcoming EJ2 patch release which is tentatively scheduled on Feb 2, 2021. Once included, we will update you. You can also track bug fix status from below link.  


Regards, 
Kurthis Banu A. 



KB Kurthis Banu Abdul Majeeth Syncfusion Team February 2, 2021 05:39 PM UTC

 Hi Tommaso,  


We are sorry to not make this possible to include the fix for the report issue with our latest ej2 patch release.  
   

We will include this fix in our upcoming patch releases which is scheduled on Feb 10, 2021 without any further delay.  

You can also track bug fix status from below link.   



Regards, 

Kurthis Banu A.


KB Kurthis Banu Abdul Majeeth Syncfusion Team February 10, 2021 06:03 PM UTC

Hi Tommaso,   
   
We regret for not including the fix for the reported issue in our latest weekly NuGet release (18.4.0.42). So, we have prepared custom patch for the mentioned issue and it can be downloaded from the below link.  
   


The status of this bug task can be tracked through the below link: 


Regards,  

Kurthis Banu A.  


Marked as answer
Loader.
Up arrow icon