UNPKG

ngx-editor-sodo

Version:

WYSIWYG Editor for Angular Applications

1,081 lines (974 loc) 107 kB
<!doctype html> <html class="no-js" lang=""> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title>NgxEditor</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" type="image/x-icon" href="../images/favicon.ico"> <link rel="stylesheet" href="../styles/style.css"> </head> <body> <div class="navbar navbar-default navbar-fixed-top visible-xs"> <a href="../" class="navbar-brand">NgxEditor</a> <button type="button" class="btn btn-default btn-menu fa fa-bars" id="btn-menu"></button> </div> <div class="xs-menu menu" id="mobile-menu"> <div id="book-search-input" role="search"> <input type="text" placeholder="Type to search"> </div> <nav> <ul class="list"> <li class="title"> <a href="index.html" data-type="index-link">NgxEditor</a> </li> <li class="divider"></li> <li class="chapter"> <a data-type="chapter-link" href="index.html"><span class="fa fa-home"></span>Getting started</a> <ul class="links"> <li class="link"> <a href="overview.html" href="overview.html" data-type="chapter-link"> <span class="fa fa-fw fa-th"></span>Overview </a> </li> <li class="link"> <a href="index.html" data-type="chapter-link"><span class="fa fa-file-text-o"></span>README</a> </li> <li class="link"> <a href="license.html" data-type="chapter-link"> <span class="fa fa-fw fa-file-text-o"></span>LICENSE </a> </li> <li class="link"> <a href="dependencies.html" data-type="chapter-link"> <span class="fa fa-fw fa-list"></span>Dependencies </a> </li> </ul> </li> <li class="chapter"> <div class="simple menu-toggler" data-toggle="collapse" data-target="#xs-additional-pages" > <span class="fa fa-fw fa-book"></span> <span>Wiki</span> <span class="fa fa-angle-down"></span> </div> <ul class="links collapse" id="xs-additional-pages" > <li class="link "> <a href="additional-documentation/prerequisites.html" data-type="entity-link" data-context-id="additional">Prerequisites</a> </li> <li class="link "> <a href="additional-documentation/configuration.html" data-type="entity-link" data-context-id="additional">Configuration</a> </li> <li class="link "> <a href="additional-documentation/toolbar.html" data-type="entity-link" data-context-id="additional">Toolbar</a> </li> <li class="link "> <a href="additional-documentation/font-size.html" data-type="entity-link" data-context-id="additional">Font Size</a> </li> <li class="link "> <a href="additional-documentation/colors.html" data-type="entity-link" data-context-id="additional">Colors</a> </li> <li class="link "> <a href="additional-documentation/image-uploader.html" data-type="entity-link" data-context-id="additional">Image Uploader</a> </li> <li class="link "> <a href="additional-documentation/insert-video.html" data-type="entity-link" data-context-id="additional">Insert Video</a> </li> <li class="link "> <a href="additional-documentation/resizer.html" data-type="entity-link" data-context-id="additional">Resizer</a> </li> <li class="link "> <a href="additional-documentation/errors.html" data-type="entity-link" data-context-id="additional">Errors</a> </li> </ul> </li> <li class="chapter modules"> <a data-type="chapter-link" href="modules.html"> <div class="menu-toggler linked" data-toggle="collapse" data-target="#xs-modules-links" > <span class="fa fa-fw fa-archive"></span> <span class="link-name">Modules</span> <span class="fa fa-angle-down"></span> </div> </a> <ul class="links collapse" id="xs-modules-links" > <li class="link"> <a href="modules/NgxEditorModule.html" data-type="entity-link">NgxEditorModule</a> <li class="chapter inner"> <div class="simple menu-toggler" data-toggle="collapse" data-target="#xs-components-links-module-NgxEditorModule-839ea65a-ab8c-410e-bac6-f433ae77f0e2" > <span class="fa fa-fw fa-cogs"></span> <span>Components</span> <span class="fa fa-angle-down"></span> </div> <ul class="links collapse" id="xs-components-links-module-NgxEditorModule-839ea65a-ab8c-410e-bac6-f433ae77f0e2" > <li class="link"> <a href="components/NgxEditorComponent.html" data-type="entity-link" data-context="sub-entity" data-context-id="modules">NgxEditorComponent</a> </li> <li class="link"> <a href="components/NgxGrippieComponent.html" data-type="entity-link" data-context="sub-entity" data-context-id="modules">NgxGrippieComponent</a> </li> <li class="link"> <a href="components/NgxEditorMessageComponent.html" data-type="entity-link" data-context="sub-entity" data-context-id="modules">NgxEditorMessageComponent</a> </li> <li class="link"> <a href="components/NgxEditorToolbarComponent.html" data-type="entity-link" data-context="sub-entity" data-context-id="modules">NgxEditorToolbarComponent</a> </li> </ul> </li> <li class="chapter inner"> <div class="simple menu-toggler" data-toggle="collapse" data-target="#xs-injectables-links-module-NgxEditorModule-839ea65a-ab8c-410e-bac6-f433ae77f0e2" > <span class="fa fa-fw fa-long-arrow-down"></span> <span>Injectables</span> <span class="fa fa-angle-down"></span> </div> <ul class="links collapse" id="xs-injectables-links-module-NgxEditorModule-839ea65a-ab8c-410e-bac6-f433ae77f0e2" > <li class="link"> <a href="injectables/CommandExecutorService.html" data-type="entity-link" data-context="sub-entity" data-context-id="modules"}>CommandExecutorService</a> </li> <li class="link"> <a href="injectables/MessageService.html" data-type="entity-link" data-context="sub-entity" data-context-id="modules"}>MessageService</a> </li> </ul> </li> </li> </ul> </li> <li class="chapter"> <div class="simple menu-toggler" data-toggle="collapse" data-target="#xs-injectables-links" > <span class="fa fa-fw fa-long-arrow-down"></span> <span>Injectables</span> <span class="fa fa-angle-down"></span> </div> <ul class="links collapse" id="xs-injectables-links" > <li class="link"> <a href="injectables/CommandExecutorService.html" data-type="entity-link">CommandExecutorService</a> </li> <li class="link"> <a href="injectables/MessageService.html" data-type="entity-link">MessageService</a> </li> </ul> </li> <li class="chapter"> <div class="simple menu-toggler" data-toggle="collapse" data-target="#xs-miscellaneous-links" > <span class="fa fa-fw fa-cubes"></span> <span>Miscellaneous</span> <span class="fa fa-angle-down"></span> </div> <ul class="links collapse" id="xs-miscellaneous-links" > <li class="link"> <a href="miscellaneous/functions.html" data-type="entity-link">Functions</a> </li> <li class="link"> <a href="miscellaneous/variables.html" data-type="entity-link">Variables</a> </li> </ul> </li> </ul> </nav> </div> <div class="container-fluid main"> <div class="row main"> <div class="hidden-xs menu"> <nav> <ul class="list"> <li class="title"> <a href="index.html" data-type="index-link">NgxEditor</a> </li> <li class="divider"></li> <div id="book-search-input" role="search"> <input type="text" placeholder="Type to search"> </div> <li class="chapter"> <a data-type="chapter-link" href="index.html"><span class="fa fa-home"></span>Getting started</a> <ul class="links"> <li class="link"> <a href="overview.html" href="overview.html" data-type="chapter-link"> <span class="fa fa-fw fa-th"></span>Overview </a> </li> <li class="link"> <a href="index.html" data-type="chapter-link"><span class="fa fa-file-text-o"></span>README</a> </li> <li class="link"> <a href="license.html" data-type="chapter-link"> <span class="fa fa-fw fa-file-text-o"></span>LICENSE </a> </li> <li class="link"> <a href="dependencies.html" data-type="chapter-link"> <span class="fa fa-fw fa-list"></span>Dependencies </a> </li> </ul> </li> <li class="chapter"> <div class="simple menu-toggler" data-toggle="collapse" data-target="#additional-pages" > <span class="fa fa-fw fa-book"></span> <span>Wiki</span> <span class="fa fa-angle-down"></span> </div> <ul class="links collapse" id="additional-pages" > <li class="link "> <a href="additional-documentation/prerequisites.html" data-type="entity-link" data-context-id="additional">Prerequisites</a> </li> <li class="link "> <a href="additional-documentation/configuration.html" data-type="entity-link" data-context-id="additional">Configuration</a> </li> <li class="link "> <a href="additional-documentation/toolbar.html" data-type="entity-link" data-context-id="additional">Toolbar</a> </li> <li class="link "> <a href="additional-documentation/font-size.html" data-type="entity-link" data-context-id="additional">Font Size</a> </li> <li class="link "> <a href="additional-documentation/colors.html" data-type="entity-link" data-context-id="additional">Colors</a> </li> <li class="link "> <a href="additional-documentation/image-uploader.html" data-type="entity-link" data-context-id="additional">Image Uploader</a> </li> <li class="link "> <a href="additional-documentation/insert-video.html" data-type="entity-link" data-context-id="additional">Insert Video</a> </li> <li class="link "> <a href="additional-documentation/resizer.html" data-type="entity-link" data-context-id="additional">Resizer</a> </li> <li class="link "> <a href="additional-documentation/errors.html" data-type="entity-link" data-context-id="additional">Errors</a> </li> </ul> </li> <li class="chapter modules"> <a data-type="chapter-link" href="modules.html"> <div class="menu-toggler linked" data-toggle="collapse" data-target="#modules-links" > <span class="fa fa-fw fa-archive"></span> <span class="link-name">Modules</span> <span class="fa fa-angle-down"></span> </div> </a> <ul class="links collapse" id="modules-links" > <li class="link"> <a href="modules/NgxEditorModule.html" data-type="entity-link">NgxEditorModule</a> <li class="chapter inner"> <div class="simple menu-toggler" data-toggle="collapse" data-target="#components-links-module-NgxEditorModule-839ea65a-ab8c-410e-bac6-f433ae77f0e2" > <span class="fa fa-fw fa-cogs"></span> <span>Components</span> <span class="fa fa-angle-down"></span> </div> <ul class="links collapse" id="components-links-module-NgxEditorModule-839ea65a-ab8c-410e-bac6-f433ae77f0e2" > <li class="link"> <a href="components/NgxEditorComponent.html" data-type="entity-link" data-context="sub-entity" data-context-id="modules">NgxEditorComponent</a> </li> <li class="link"> <a href="components/NgxGrippieComponent.html" data-type="entity-link" data-context="sub-entity" data-context-id="modules">NgxGrippieComponent</a> </li> <li class="link"> <a href="components/NgxEditorMessageComponent.html" data-type="entity-link" data-context="sub-entity" data-context-id="modules">NgxEditorMessageComponent</a> </li> <li class="link"> <a href="components/NgxEditorToolbarComponent.html" data-type="entity-link" data-context="sub-entity" data-context-id="modules">NgxEditorToolbarComponent</a> </li> </ul> </li> <li class="chapter inner"> <div class="simple menu-toggler" data-toggle="collapse" data-target="#injectables-links-module-NgxEditorModule-839ea65a-ab8c-410e-bac6-f433ae77f0e2" > <span class="fa fa-fw fa-long-arrow-down"></span> <span>Injectables</span> <span class="fa fa-angle-down"></span> </div> <ul class="links collapse" id="injectables-links-module-NgxEditorModule-839ea65a-ab8c-410e-bac6-f433ae77f0e2" > <li class="link"> <a href="injectables/CommandExecutorService.html" data-type="entity-link" data-context="sub-entity" data-context-id="modules"}>CommandExecutorService</a> </li> <li class="link"> <a href="injectables/MessageService.html" data-type="entity-link" data-context="sub-entity" data-context-id="modules"}>MessageService</a> </li> </ul> </li> </li> </ul> </li> <li class="chapter"> <div class="simple menu-toggler" data-toggle="collapse" data-target="#injectables-links" > <span class="fa fa-fw fa-long-arrow-down"></span> <span>Injectables</span> <span class="fa fa-angle-down"></span> </div> <ul class="links collapse" id="injectables-links" > <li class="link"> <a href="injectables/CommandExecutorService.html" data-type="entity-link">CommandExecutorService</a> </li> <li class="link"> <a href="injectables/MessageService.html" data-type="entity-link">MessageService</a> </li> </ul> </li> <li class="chapter"> <div class="simple menu-toggler" data-toggle="collapse" data-target="#miscellaneous-links" > <span class="fa fa-fw fa-cubes"></span> <span>Miscellaneous</span> <span class="fa fa-angle-down"></span> </div> <ul class="links collapse" id="miscellaneous-links" > <li class="link"> <a href="miscellaneous/functions.html" data-type="entity-link">Functions</a> </li> <li class="link"> <a href="miscellaneous/variables.html" data-type="entity-link">Variables</a> </li> </ul> </li> </ul> </nav> </div> <!-- START CONTENT --> <div class="content component"> <div class="content-data"> <ol class="breadcrumb"> <li>Components</li> <li>NgxEditorComponent</li> </ol> <ul class="nav nav-tabs" role="tablist"> <li class="active"> <a href="#info" id="info-tab" role="tab" data-toggle="tab" data-link="info">Info</a> </li> <li> <a href="#source" role="tab" id="source-tab" data-toggle="tab" data-link="source">Source</a> </li> <li> <a href="#templateData" role="tab" id="templateData-tab" data-toggle="tab" data-link="template">Template</a> </li> <li> <a href="#tree" role="tab" id="tree-tab" data-toggle="tab" data-link="dom-tree">DOM Tree</a> </li> </ul> <div class="tab-content"> <div class="tab-pane fade active in" id="c-info"><p class="comment"> <h3>File</h3> </p> <p class="comment"> <code>src/app/ngx-editor/ngx-editor.component.ts</code> </p> <p class="comment"> <h3>Implements</h3> </p> <p class="comment"> <code><a href="https://angular.io/api/core/OnInit" target="_blank" >OnInit</a></code> <code><a href="https://angular.io/api/forms/ControlValueAccessor" target="_blank" >ControlValueAccessor</a></code> </p> <section> <h3>Metadata</h3> <table class="table table-sm table-hover"> <tbody> <tr> <td class="col-md-3">providers</td> <td class="col-md-9"> <code>{ : , : (() &#x3D;&gt; ), : true }</code> </td> </tr> <tr> <td class="col-md-3">selector</td> <td class="col-md-9"><code>app-ngx-editor</code></td> </tr> <tr> <td class="col-md-3">styleUrls</td> <td class="col-md-9"><code>ngx-editor.component.scss</code></td> </tr> <tr> <td class="col-md-3">templateUrl</td> <td class="col-md-9"><code>./ngx-editor.component.html</code></td> </tr> </tbody> </table> </section> <section> <h3 id="index">Index</h3> <table class="table table-sm table-bordered index-table"> <tbody> <tr> <td class="col-md-4"> <h6><b>Properties</b></h6> </td> </tr> <tr> <td class="col-md-4"> <ul class="index-list"> <li> <a href="#ngxWrapper">ngxWrapper</a> </li> <li> <a href="#textArea">textArea</a> </li> <li> <a href="#Utils">Utils</a> </li> </ul> </td> </tr> <tr> <td class="col-md-4"> <h6><b>Methods</b></h6> </td> </tr> <tr> <td class="col-md-4"> <ul class="index-list"> <li> <a href="#executeCommand">executeCommand</a> </li> <li> <a href="#getCollectiveParams">getCollectiveParams</a> </li> <li> <a href="#onContentChange">onContentChange</a> </li> <li> <a href="#onEditorFocus">onEditorFocus</a> </li> <li> <a href="#onTextAreaBlur">onTextAreaBlur</a> </li> <li> <a href="#onTextAreaFocus">onTextAreaFocus</a> </li> <li> <a href="#refreshView">refreshView</a> </li> <li> <a href="#registerOnChange">registerOnChange</a> </li> <li> <a href="#registerOnTouched">registerOnTouched</a> </li> <li> <a href="#resizeTextArea">resizeTextArea</a> </li> <li> <a href="#togglePlaceholder">togglePlaceholder</a> </li> <li> <a href="#writeValue">writeValue</a> </li> </ul> </td> </tr> <tr> <td class="col-md-4"> <h6><b>Inputs</b></h6> </td> </tr> <tr> <td class="col-md-4"> <ul class="index-list"> <li> <a href="#config">config</a> </li> <li> <a href="#editable">editable</a> </li> <li> <a href="#enableToolbar">enableToolbar</a> </li> <li> <a href="#height">height</a> </li> <li> <a href="#imageEndPoint">imageEndPoint</a> </li> <li> <a href="#minHeight">minHeight</a> </li> <li> <a href="#minWidth">minWidth</a> </li> <li> <a href="#placeholder">placeholder</a> </li> <li> <a href="#resizer">resizer</a> </li> <li> <a href="#showToolbar">showToolbar</a> </li> <li> <a href="#spellcheck">spellcheck</a> </li> <li> <a href="#toolbar">toolbar</a> </li> <li> <a href="#translate">translate</a> </li> <li> <a href="#width">width</a> </li> </ul> </td> </tr> <tr> <td class="col-md-4"> <h6><b>Outputs</b></h6> </td> </tr> <tr> <td class="col-md-4"> <ul class="index-list"> <li> <a href="#blur">blur</a> </li> <li> <a href="#focus">focus</a> </li> </ul> </td> </tr> </tbody> </table> </section> <section> <h3 id="constructor">Constructor</h3> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <code>constructor(_messageService: <a href="../injectables/MessageService.html">MessageService</a>, _commandExecutor: <a href="../injectables/CommandExecutorService.html">CommandExecutorService</a>, _renderer: <a href="https://angular.io/api/core/Renderer2" target="_blank">Renderer2</a>)</code> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <a href="" data-line="89" class="link-to-prism">src/app/ngx-editor/ngx-editor.component.ts:89</a></div> </td> </tr> <tr> <td class="col-md-4"> <div> <b>Parameters :</b> <table class="params"> <thead> <tr> <td>Name</td> <td>Type</td> <td>Optional</td> <td>Description</td> </tr> </thead> <tbody> <tr> <td>_messageService</td> <td> <code><a href="../injectables/MessageService.html" target="_self" >MessageService</a></code> </td> <td> no </td> <td> <code><p>service to send message to the editor message component</p> </code> </td> </tr> <tr> <td>_commandExecutor</td> <td> <code><a href="../injectables/CommandExecutorService.html" target="_self" >CommandExecutorService</a></code> </td> <td> no </td> <td> <code><p>executes command from the toolbar</p> </code> </td> </tr> <tr> <td>_renderer</td> <td> <code><a href="https://angular.io/api/core/Renderer2" target="_blank" >Renderer2</a></code> </td> <td> no </td> <td> <code><p>access and manipulate the dom element</p> </code> </td> </tr> </tbody> </table> </div> </td> </tr> </tbody> </table> </section> <section> <h3 id="inputs">Inputs</h3> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-2"> <a name="config"></a> <code>config</code> </td> <td class="col-md-10"> <div><p>The config property is a JSON object</p> <p>All avaibale inputs inputs can be provided in the configuration as JSON inputs provided directly are considered as top priority</p> </div> <p> <em>Default value: </em><code>ngxEditorConfig</code> </p> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="70" class="link-to-prism">src/app/ngx-editor/ngx-editor.component.ts:70</a></div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-2"> <a name="editable"></a> <code>editable</code> </td> <td class="col-md-10"> <div><p>Specifies weather the textarea to be editable or not </p> </div> <p> <em>Type:</em> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code> </p> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="29" class="link-to-prism">src/app/ngx-editor/ngx-editor.component.ts:29</a></div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-2"> <a name="enableToolbar"></a> <code>enableToolbar</code> </td> <td class="col-md-10"> <div><p>Weather to enable or disable the toolbar </p> </div> <p> <em>Type:</em> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code> </p> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="74" class="link-to-prism">src/app/ngx-editor/ngx-editor.component.ts:74</a></div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-2"> <a name="height"></a> <code>height</code> </td> <td class="col-md-10"> <div><p>Sets height of the editor </p> </div> <p> <em>Type:</em> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code> </p> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="41" class="link-to-prism">src/app/ngx-editor/ngx-editor.component.ts:41</a></div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-2"> <a name="imageEndPoint"></a> <code>imageEndPoint</code> </td> <td class="col-md-10"> <div><p>Endpoint for which the image to be uploaded </p> </div> <p> <em>Type:</em> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code> </p> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="76" class="link-to-prism">src/app/ngx-editor/ngx-editor.component.ts:76</a></div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-2"> <a name="minHeight"></a> <code>minHeight</code> </td> <td class="col-md-10"> <div><p>Sets minimum height for the editor </p> </div> <p> <em>Type:</em> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code> </p> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="43" class="link-to-prism">src/app/ngx-editor/ngx-editor.component.ts:43</a></div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-2"> <a name="minWidth"></a> <code>minWidth</code> </td> <td class="col-md-10"> <div><p>Sets minimum width of the editor </p> </div> <p> <em>Type:</em> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code> </p> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="47" class="link-to-prism">src/app/ngx-editor/ngx-editor.component.ts:47</a></div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-2"> <a name="placeholder"></a> <code>placeholder</code> </td> <td class="col-md-10"> <div><p>Placeholder for the textArea </p> </div> <p> <em>Type:</em> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code> </p> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="33" class="link-to-prism">src/app/ngx-editor/ngx-editor.component.ts:33</a></div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-2"> <a name="resizer"></a> <code>resizer</code> </td> <td class="col-md-10"> <div><p>The editor can be resized vertically.</p> <p><code>basic</code> resizer enables the html5 reszier. Check here <a href="https://www.w3schools.com/cssref/css3_pr_resize.asp">https://www.w3schools.com/cssref/css3_pr_resize.asp</a></p> <p><code>stack</code> resizer enable a resizer that looks like as if in <a href="https://stackoverflow.com">https://stackoverflow.com</a></p> </div> <p> <em>Default value: </em><code>&#x27;stack&#x27;</code> </p> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="63" class="link-to-prism">src/app/ngx-editor/ngx-editor.component.ts:63</a></div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-2"> <a name="showToolbar"></a> <code>showToolbar</code> </td> <td class="col-md-10"> <div><p>Weather to show or hide toolbar </p> </div> <p> <em>Type:</em> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code> </p> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="72" class="link-to-prism">src/app/ngx-editor/ngx-editor.component.ts:72</a></div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-2"> <a name="spellcheck"></a> <code>spellcheck</code> </td> <td class="col-md-10"> <div><p>The spellcheck property specifies whether the element is to have its spelling and grammar checked or not. </p> </div> <p> <em>Type:</em> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code> </p> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="31" class="link-to-prism">src/app/ngx-editor/ngx-editor.component.ts:31</a></div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-2"> <a name="toolbar"></a> <code>toolbar</code> </td> <td class="col-md-10"> <div><p>Toolbar accepts an array which specifies the options to be enabled for the toolbar</p> <p>Check ngxEditorConfig for toolbar configuration</p> <p>Passing an empty array will enable all toolbar</p> </div> <p> <em>Type:</em> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" target="_blank" >Object</a></code> </p> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="55" class="link-to-prism">src/app/ngx-editor/ngx-editor.component.ts:55</a></div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-2"> <a name="translate"></a> <code>translate</code> </td> <td class="col-md-10"> <div><p>The translate property specifies whether the content of an element should be translated or not.</p> <p>Check <a href="https://www.w3schools.com/tags/att_global_translate.asp">https://www.w3schools.com/tags/att_global_translate.asp</a> for more information and browser support</p> </div> <p> <em>Type:</em> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code> </p> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="39" class="link-to-prism">src/app/ngx-editor/ngx-editor.component.ts:39</a></div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-2"> <a name="width"></a> <code>width</code> </td> <td class="col-md-10"> <div><p>Sets Width of the editor </p> </div> <p> <em>Type:</em> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code> </p> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class