From 2ed79b8b8260d66a1eaac9ef5f49f816debae9cb Mon Sep 17 00:00:00 2001 From: Sibiraj <20282546+Sibiraj-S@users.noreply.github.com> Date: Fri, 19 Jan 2018 12:13:06 +0530 Subject: [PATCH] release: ngx-editor v3.3.0-rc.0 (#39) * feat: add code-editor to view/edit plain HTML * fix: default configuration overrides input * chore: update docs * release: ngx-editor v3.3.0-rc.0 * chore: bump dependencies closes #26 --- README.md | 2 - docs/components/NgxEditorComponent.html | 572 +- .../components/NgxEditorMessageComponent.html | 7 +- .../components/NgxEditorToolbarComponent.html | 144 +- docs/graph/dependencies.svg | 120 +- docs/index.html | 1 - docs/js/search/search_index.js | 4 +- docs/license.html | 2 +- docs/miscellaneous/variables.html | 140 +- docs/modules/NgxEditorModule.html | 130 +- docs/modules/NgxEditorModule/dependencies.svg | 120 +- docs/overview.html | 120 +- package-lock.json | 6222 ++++++++++++++--- package.json | 49 +- src/app/app.component.ts | 1 - .../ngx-editor/common/ngx-editor.defaults.ts | 19 +- .../common/utils/ngx-editor.utils.ts | 5 +- .../ngx-editor-message.component.ts | 3 +- .../ngx-editor-toolbar.component.html | 62 +- .../ngx-editor-toolbar.component.scss | 1 - .../ngx-editor-toolbar.component.ts | 14 +- src/app/ngx-editor/ngx-editor.component.html | 15 +- src/app/ngx-editor/ngx-editor.component.scss | 63 +- src/app/ngx-editor/ngx-editor.component.ts | 154 +- src/app/ngx-editor/ngx-editor.module.ts | 5 +- src/styles.scss | 1 + tslint.json | 1 - yarn.lock | 1999 +++++- 28 files changed, 7870 insertions(+), 2106 deletions(-) diff --git a/README.md b/README.md index a62bdfb9..cda26baa 100644 --- a/README.md +++ b/README.md @@ -63,8 +63,6 @@ Demo at stackblitz [ngx-editor](https://ngx-editor.stackblitz.io/) Documentation is auto-generated using [compodoc][compodoc], and can be viewed here: [https://sibiraj-s.github.io/ngx-editor/](https://sibiraj-s.github.io/ngx-editor/) -Wiki [here][wiki] - [npm]: https://www.npmjs.com/ [yarn]: https://yarnpkg.com/lang/en/ [github]: https://sibiraj-s.github.io/ diff --git a/docs/components/NgxEditorComponent.html b/docs/components/NgxEditorComponent.html index 34448f38..5e3ba1bd 100644 --- a/docs/components/NgxEditorComponent.html +++ b/docs/components/NgxEditorComponent.html @@ -402,7 +402,13 @@
config
The config property is a JSON object
+All avaibale inputs inputs can be provided in the configuration as JSON +inputs provided directly are considered as top priority
+
Default value: ngxEditorConfig
editable
Specifies weather the textarea to be editable or not
+
Type: boolean
@@ -635,7 +673,30 @@
+
+ enableToolbar
+ |
+
+ Weather to enable or disable the toolbar +
+ Type: |
+
+ |
+ Sets height of the editor +
Type: Inputs |
- + |
+ Sets minimum height for the editor +
Type: Inputs |
- + |
+ Sets minimum width of the editor +
Type: Inputs |
- + |
+ Placeholder for the textArea +
Type: Inputs |
- + |
+ The editor can be resized vertically. +
Default value: Inputs |
- + |
-
- Default value: Weather to show or hide toolbar +
+ Type: |
- + |
+ The spellcheck property specifies whether the element is to have its spelling and grammar checked or not. +
Type: Inputs |
- + |
+ Toolbar accepts an array which specifies the options to be enabled for the toolbar +Check ngxEditorConfig for toolbar configuration +Passing an empty array will enable all toolbar + |
- + |
+ The translate property specifies whether the content of an element should be translated or not. +Check https://www.w3schools.com/tags/att_global_translate.asp for more information and browser support +
Type: Inputs |
- + |
+ Sets Width of the editor +
Type: Inputs |
- + |
+
+ blur
+ |
+
+ emits $event type: EventEmitter<string>
+
+ |
+
+ + | +
+
+ focus
+ |
+
+ emits $event type: EventEmitter<string>
+
+ |
+
+ + | +
- document:click(event: )
+ document:click(event: MouseEvent)
|
- + |
- + |
- + |
- return a json containing input params +returns a json containing input params
@@ -1001,6 +1133,74 @@ |
+ + + + monitorEditor + + + + | +||||||||
+ monitorEditor(value: any)
+ |
+ ||||||||
+ + | +||||||||
+ monitor text area changes +
+ Parameters :
+
+
+
+
+ Returns :
+ void
+
+
+
+
+ |
+
- + | |||||||
- + | |||||||
+ Executed from the contenteditable section while the input property changes +
Parameters :
@@ -1127,7 +1329,7 @@
-
+
|
-
+
|
-
+
|
-
+
|
-
+
|
|
+ + + + toggleCodeEditor + + + + | +
+ toggleCodeEditor()
+ |
+
+ + | +
+ toggle between codeview and editor +
+ Returns :
+ void
+
+ |
+
- + | |||||
- + - enableToolbar + codeEditor - + | |||||
- enableToolbar: |
+ |||||
+ Type : any
+
+ |
+ |||||
+ Decorators : ViewChild
+ |
+ |||||
+ + | +
+ + + + codeEditorMode + + + + | +
+ codeEditorMode:
|
- + + | +
+ + + + ngxWrapper + + + + | +
+ ngxWrapper:
+ |
+
+ Type : any
+
+ |
+
+ Decorators : ViewChild
+ |
+
+ |
- + |
- Utils: |
+ Type : any
+
+ |
+
Default value : Utils
@@ -1596,7 +1921,7 @@ |
- + |