@@ -30,7 +30,7 @@ InlineContentControl: Among inline content inside, as a child of a paragraph. Bl
30
30
31
31
Content control can be inserted using ` insertContentControl ` method in editor module.
32
32
33
- {% highlight ts %}
33
+ ``` typescript
34
34
// Insert Rich Text Content Control
35
35
this .container .documentEditor .editor .insertContentControl (' RichText' );
36
36
// Insert Rich Text Content Control with default sfdt string
@@ -66,36 +66,36 @@ this.container.documentEditor.editor.insertContentControl('DropDownList', 'One',
66
66
this .container .documentEditor .editor .insertContentControl (' Picture' );
67
67
// Insert Picture Content Control with default image
68
68
this .container .documentEditor .editor .insertContentControl (' Picture' , ' data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADgSURBVEhLY3jx4sV/WuDBafCluXH/D6ydhlWObIMPLmn8/32KPBiD2OjyKAY7+zbDsX945/91azehiBWU9IPVgVwJMxSX4SgG65jXwrGVa+v/6TOXoojBDEZ2LQh/m676/+D+/XBzQJgsg0EY5GqQgSCDsYUz2QaDMCiosIUvCKMYDFKIjK9dvYrCB3kXJIaMkfUjY5JdDEpioCCAYZCFyGbAMFkGI0fcMDUYpAgZY4s8EEYWwxWBJLsYhJHFQIYjmwHDQ9xgkGEwDCp0QAYji8EMRhYjymBq4lGDofjFfwCV5AGEIf9DQQAAAABJRU5ErkJggg==' );
69
- {% endhighlight %}
69
+ ```
70
70
71
71
## Import content control properties
72
72
73
73
Content control properties can be set using the ` ContentControlInfo ` and import it using ` importContentControlData `
74
74
75
- {% highlight ts %}
75
+ ``` typescript
76
76
var data = [];
77
77
var contentControlData = { title: placeHolderPrefix + ' Name' , tag: ' ' , value: ' John' , canDelete: false , canEdit: false , type: ' RichText' };
78
78
data .push (contentControlData );
79
79
this .container .documentEditor .importContentControlData (data );
80
- {% endhighlight %}
80
+ ```
81
81
82
82
## Export content control properties
83
83
84
84
Content control properties can be exported using the ` exportContentControlData `
85
85
86
- {% highlight ts %}
86
+ ``` typescript
87
87
var contentControlInfos = this .container .documentEditor .exportContentControlData ();
88
- {% endhighlight %}
88
+ ```
89
89
90
90
## Reset content control
91
91
92
92
Content control properties can be reset using the ` resetcontentcontroldata `
93
93
94
- {% highlight ts %}
94
+ ``` typescript
95
95
var data = [];
96
96
var contentControlData = { title: placeHolderPrefix + ' Name' , tag: ' ' , value: ' John' , canDelete: false , canEdit: false , type: ' RichText' };
97
97
data .push (contentControlData );
98
98
this .container .documentEditor .resetContentControlData (data );
99
- {% endhighlight %}
99
+ ```
100
100
101
101
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