Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
---
layout: post
title: Default read only in Angular Document editor component | Syncfusion
description: Learn here all about Default read only in Syncfusion Angular Document editor component of Syncfusion Essential JS 2 and more.
title: Default read-only in Angular DOCX Editor | Syncfusion
description: Learn here all about Default read-only in Syncfusion Angular Document Editor component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Default read only
control: Default read-only
documentation: ug
domainurl: ##DomainURL##
---

# Default read only in Angular Document editor component
# Default read-only in Angular Document Editor component

In this article, we are going to see how to open a document in read only mode by default in [Angular DOCX Editor](https://www.syncfusion.com/docx-editor-sdk/angular-docx-editor) (Document Editor) & Document Editor Container.
In this article, we are going to see how to open a document in read-only mode by default in [Angular Document Editor](https://www.syncfusion.com/docx-editor-sdk/angular-docx-editor) (Document Editor) & Document Editor Container.

## Opening a document in read only mode by default in DocumentEditor
## Opening a document in read-only mode by default in DocumentEditor

{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
Expand All @@ -26,7 +26,7 @@ In this article, we are going to see how to open a document in read only mode by

{% previewsample "/document-processing/samples/document-editor/angular/getting-started-cs2" %}

## Opening a document in ready only mode by default in DocumentEditorContainer
## Opening a document in read-only mode by default in DocumentEditorContainer

{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
Expand All @@ -40,4 +40,4 @@ In this article, we are going to see how to open a document in read only mode by

{% previewsample "/document-processing/samples/document-editor/angular/document-editor-container-cs3" %}

Note: You can use the `restrictEditing` in `DocumentEditorContainer` and `isReadOnly` in `DocumentEditor` based on your requirement to change component to read only mode.
N> You can use the `restrictEditing` in `DocumentEditorContainer` and `isReadOnly` in `DocumentEditor` based on your requirement to change the component to read-only mode.