You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -104,7 +104,7 @@ The editor accepts the following properties:
104
104
plugins=""
105
105
tagName="div"
106
106
toolbar=""
107
-
></editor>
107
+
/>
108
108
----
109
109
110
110
None of the configuration properties are *required* for `+tinymce-angular+` to work. Specify a {cloudname} API key using `+apiKey+` to remove the `+This domain is not registered...+` warning message.
@@ -146,9 +144,7 @@ Use this when self-hosting {productname} instead of loading from {cloudname}. Fo
146
144
147
145
[source,jsx]
148
146
----
149
-
<Editor
150
-
licenseKey='your-license-key'
151
-
/>
147
+
<editor licenseKey='your-license-key' />
152
148
----
153
149
154
150
[[cloudchannel]]
@@ -174,7 +170,7 @@ Such as:
174
170
<editor
175
171
apiKey="your-api-key"
176
172
cloudChannel="{productmajorversion}-dev"
177
-
></editor>
173
+
/>
178
174
----
179
175
180
176
For information {productname} development channels, see: xref:editor-plugin-version.adoc#{productmajorversion}-{productmajorversion}-testing-and-{productmajorversion}-dev-release-channels[Specifying the {productname} editor version deployed from Cloud - dev, testing, and stable releases].
@@ -194,9 +190,7 @@ The `+disabled+` property can dynamically switch the editor between a "disabled"
194
190
195
191
[source,html]
196
192
----
197
-
<editor
198
-
[disabled]="true"
199
-
></editor>
193
+
<editor [disabled]="true" />
200
194
----
201
195
202
196
[[id]]
@@ -212,9 +206,7 @@ An id for the editor. Used for retrieving the editor instance using the `+tinymc
212
206
213
207
[source,html]
214
208
----
215
-
<editor
216
-
id="uuid"
217
-
></editor>
209
+
<editor id="uuid" />
218
210
----
219
211
220
212
[[init]]
@@ -237,7 +229,7 @@ For information on the {productname} selector (`+tinymce.init+`), see: xref:basi
@@ -253,15 +245,13 @@ Initial content of the editor when the editor is initialized.
253
245
254
246
[source,html]
255
247
----
256
-
<editor
257
-
initialValue="Once upon a time..."
258
-
></editor>
248
+
<editor initialValue="Once upon a time..." />
259
249
----
260
250
261
251
[[inline]]
262
252
=== `+inline+`
263
253
264
-
Used to set the editor to inline mode. Using `+<editor [inline]="true"></editor>+` is the same as setting `+{inline: true}+` in the {productname} selector (`+tinymce.init+`).
254
+
Used to set the editor to inline mode. Using `+<editor [inline]="true" />+` is the same as setting `+{inline: true}+` in the {productname} selector (`+tinymce.init+`).
265
255
266
256
For information on inline mode, see: xref:inline-editor-options.adoc#inline[User interface options - `+inline+`] and xref:use-tinymce-inline.adoc[Setup inline editing mode].
267
257
@@ -275,27 +265,23 @@ For information on inline mode, see: xref:inline-editor-options.adoc#inline[User
275
265
276
266
[source,html]
277
267
----
278
-
<editor
279
-
[inline]="true"
280
-
></editor>
268
+
<editor [inline]="true" />
281
269
----
282
270
283
271
[[plugins]]
284
272
=== `+plugins+`
285
273
286
-
Used to include plugins for the editor. Using `+<editor plugins="lists code"></editor>+` is the same as setting `+{plugins: 'lists code'}+` in the {productname} selector (`+tinymce.init+`).
274
+
Used to include plugins for the editor. Using `+<editor plugins="lists code" />+` is the same as setting `+{plugins: 'lists code'}+` in the {productname} selector (`+tinymce.init+`).
287
275
288
276
For information on adding plugins to {productname}, see: xref:work-with-plugins.adoc[Add plugins to {productname}].
289
277
290
-
*Type:* `+String+` or `+Array+`
278
+
*Type:* `+String+`
291
279
292
280
==== Example: using `+plugins+`
293
281
294
282
[source,html]
295
283
----
296
-
<editor
297
-
plugins="lists code"
298
-
></editor>
284
+
<editor plugins="lists code" />
299
285
----
300
286
301
287
[[outputformat]]
@@ -313,15 +299,13 @@ Used to specify the format of the content emitted by the `+tinymce-angular+` com
313
299
314
300
[source,html]
315
301
----
316
-
<editor
317
-
outputFormat="text"
318
-
></editor>
302
+
<editor outputFormat="text" />
319
303
----
320
304
321
305
[[tagname]]
322
306
=== `+tagName+`
323
307
324
-
Only valid when xref:inline[`+<editor [inline]="true"></editor>+`]. Used to define the HTML element for the editor in inline mode.
308
+
Only valid when xref:inline[`+<editor [inline]="true" />+`]. Used to define the HTML element for the editor in inline mode.
325
309
326
310
*Type:* `+String+`
327
311
@@ -334,13 +318,13 @@ Only valid when xref:inline[`+<editor [inline]="true"></editor>+`]. Used to defi
334
318
<editor
335
319
[inline]="true"
336
320
tagName="my-custom-tag"
337
-
></editor>
321
+
/>
338
322
----
339
323
340
324
[[toolbar]]
341
325
=== `+toolbar+`
342
326
343
-
Used to set the toolbar for the editor. Using `+<editor toolbar="bold italic"></editor>+` is the same as setting `+{toolbar: 'bold italic'}+` in the {productname} selector (`+tinymce.init+`).
327
+
Used to set the toolbar for the editor. Using `+<editor toolbar="bold italic" />+` is the same as setting `+{toolbar: 'bold italic'}+` in the {productname} selector (`+tinymce.init+`).
344
328
345
329
For information setting the toolbar for {productname}, see: xref:toolbar-configuration-options.adoc#toolbar[User interface options - toolbar].
346
330
@@ -355,7 +339,7 @@ For information setting the toolbar for {productname}, see: xref:toolbar-configu
355
339
<editor
356
340
plugins="code"
357
341
toolbar="bold italic underline code"
358
-
></editor>
342
+
/>
359
343
----
360
344
361
345
[[using-the-ngmodel-directive]]
@@ -365,10 +349,10 @@ The `+ngModel+` directive can be added to use the editor in a form:
365
349
366
350
[source,html]
367
351
----
368
-
<editor [(ngModel)]="dataModel"></editor>
352
+
<editor [(ngModel)]="dataModel" />
369
353
----
370
354
371
-
For information on using `+NgModel+`, see: https://angular.io/api/forms/NgModel[Angular documentation - NgModel].
355
+
For information on using `+NgModel+`, see: https://angular.dev/api/forms/NgModel[Angular documentation - NgModel].
372
356
373
357
[[modelevents]]
374
358
=== `+modelEvents+`
@@ -387,9 +371,7 @@ Used to specify the events that trigger the `+NgModelChange+` to emit.
0 commit comments