Skip to content

Commit 24ba493

Browse files
author
SalmanBaris25
committed
890821: Addressed feedback
1 parent 1785193 commit 24ba493

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

ej2-asp-core-mvc/document-editor/content-control.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ InlineContentControl: Among inline content inside, as a child of a paragraph. Bl
3030

3131
Content control can be inserted using `insertContentControl` method in editor module.
3232

33-
{% highlight ts %}
33+
```typescript
3434
//Insert Rich Text Content Control
3535
this.container.documentEditor.editor.insertContentControl('RichText');
3636
//Insert Rich Text Content Control with default sfdt string
@@ -66,36 +66,36 @@ this.container.documentEditor.editor.insertContentControl('DropDownList', 'One',
6666
this.container.documentEditor.editor.insertContentControl('Picture');
6767
//Insert Picture Content Control with default image
6868
this.container.documentEditor.editor.insertContentControl('Picture', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADgSURBVEhLY3jx4sV/WuDBafCluXH/D6ydhlWObIMPLmn8/32KPBiD2OjyKAY7+zbDsX945/91azehiBWU9IPVgVwJMxSX4SgG65jXwrGVa+v/6TOXoojBDEZ2LQh/m676/+D+/XBzQJgsg0EY5GqQgSCDsYUz2QaDMCiosIUvCKMYDFKIjK9dvYrCB3kXJIaMkfUjY5JdDEpioCCAYZCFyGbAMFkGI0fcMDUYpAgZY4s8EEYWwxWBJLsYhJHFQIYjmwHDQ9xgkGEwDCp0QAYji8EMRhYjymBq4lGDofjFfwCV5AGEIf9DQQAAAABJRU5ErkJggg==');
69-
{% endhighlight %}
69+
```
7070

7171
## Import content control properties
7272

7373
Content control properties can be set using the `ContentControlInfo` and import it using `importContentControlData`
7474

75-
{% highlight ts %}
75+
```typescript
7676
var data = [];
7777
var contentControlData = { title: placeHolderPrefix + 'Name', tag: '', value: 'John', canDelete: false, canEdit: false, type: 'RichText' };
7878
data.push(contentControlData);
7979
this.container.documentEditor.importContentControlData(data);
80-
{% endhighlight %}
80+
```
8181

8282
## Export content control properties
8383

8484
Content control properties can be exported using the `exportContentControlData`
8585

86-
{% highlight ts %}
86+
```typescript
8787
var contentControlInfos = this.container.documentEditor.exportContentControlData();
88-
{% endhighlight %}
88+
```
8989

9090
## Reset content control
9191

9292
Content control properties can be reset using the `resetcontentcontroldata`
9393

94-
{% highlight ts %}
94+
```typescript
9595
var data = [];
9696
var contentControlData = { title: placeHolderPrefix + 'Name', tag: '', value: 'John', canDelete: false, canEdit: false, type: 'RichText' };
9797
data.push(contentControlData);
9898
this.container.documentEditor.resetContentControlData(data);
99-
{% endhighlight %}
99+
```
100100

101101
N> Content control with custom XML mapping of file type WordML is converted as normal Rich Text Content Control to provide lossless round-tripping upon saving.

0 commit comments

Comments
 (0)