@ -104,7 +104,7 @@ The editor accepts the following properties:
plugins=""
tagName="div"
toolbar=""
></editor>
/>
----
None of the configuration properties are *required* for `+tinymce-angular+` to work. Specify a {cloudname} API key using `+apiKey+` to remove the "A valid API key is required to continue using TinyMCE. Please alert the admin to check the current API key. Click here to learn more." warning message.
@ -146,9 +144,7 @@ Use this when self-hosting {productname} instead of loading from {cloudname}. Fo
[source,jsx]
----
<Editor
licenseKey='your-license-key'
/>
<editor licenseKey='your-license-key' />
----
[[cloudchannel]]
@ -172,9 +168,9 @@ Such as:
[source,html,subs="attributes+"]
----
<editor
apiKey="your-api-key"
apiKey="no-api-key"
cloudChannel="{productmajorversion}-dev"
></editor>
/>
----
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"
[source,html]
----
<editor
[disabled]="true"
></editor>
<editor [disabled]="true" />
----
[[id]]
@ -212,9 +206,7 @@ An id for the editor. Used for retrieving the editor instance using the `+tinymc
[source,html]
----
<editor
id="uuid"
></editor>
<editor id="uuid" />
----
[[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.
[source,html]
----
<editor
initialValue="Once upon a time..."
></editor>
<editor initialValue="Once upon a time..." />
----
[[inline]]
=== `+inline+`
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+`).
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+`).
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].
@ -275,27 +265,23 @@ For information on inline mode, see: xref:inline-editor-options.adoc#inline[User
[source,html]
----
<editor
[inline]="true"
></editor>
<editor [inline]="true" />
----
[[plugins]]
=== `+plugins+`
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+`).
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+`).
For information on adding plugins to {productname}, see: xref:work-with-plugins.adoc[Add plugins to {productname}].
*Type:* `+String+` or `+Array+`
*Type:* `+String+`
==== Example: using `+plugins+`
[source,html]
----
<editor
plugins="lists code"
></editor>
<editor plugins="lists code" />
----
[[outputformat]]
@ -313,15 +299,13 @@ Used to specify the format of the content emitted by the `+tinymce-angular+` com
[source,html]
----
<editor
outputFormat="text"
></editor>
<editor outputFormat="text" />
----
[[tagname]]
=== `+tagName+`
Only valid when xref:inline[`+<editor [inline]="true"></editor>+`]. Used to define the HTML element for the editor in inline mode.
Only valid when xref:inline[`+<editor [inline]="true" />+`]. Used to define the HTML element for the editor in inline mode.
*Type:* `+String+`
@ -334,13 +318,13 @@ Only valid when xref:inline[`+<editor [inline]="true"></editor>+`]. Used to defi
<editor
[inline]="true"
tagName="my-custom-tag"
></editor>
/>
----
[[toolbar]]
=== `+toolbar+`
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+`).
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+`).
For information setting the toolbar for {productname}, see: xref:toolbar-configuration-options.adoc#toolbar[User interface options - toolbar].
@ -355,7 +339,7 @@ For information setting the toolbar for {productname}, see: xref:toolbar-configu
<editor
plugins="code"
toolbar="bold italic underline code"
></editor>
/>
----
[[using-the-ngmodel-directive]]
@ -365,10 +349,10 @@ The `+ngModel+` directive can be added to use the editor in a form:
[source,html]
----
<editor [(ngModel)]="dataModel"></editor>
<editor [(ngModel)]="dataModel" />
----
For information on using `+NgModel+`, see: https://angular.io/api/forms/NgModel[Angular documentation - NgModel].
For information on using `+NgModel+`, see: link:https://angular.dev/api/forms/NgModel[Angular documentation - NgModel].
[[modelevents]]
=== `+modelEvents+`
@ -387,9 +371,7 @@ Used to specify the events that trigger the `+NgModelChange+` to emit.