@kolkov/angular-editor 1.1.5 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/LICENSE +21 -0
- package/README.md +265 -263
- package/bundles/kolkov-angular-editor.umd.js +1567 -1530
- package/bundles/kolkov-angular-editor.umd.js.map +1 -1
- package/esm2015/kolkov-angular-editor.js +6 -6
- package/esm2015/lib/ae-select/ae-select.component.js +173 -173
- package/esm2015/lib/angular-editor-toolbar.component.js +353 -350
- package/esm2015/lib/angular-editor.component.js +383 -376
- package/esm2015/lib/angular-editor.module.js +18 -18
- package/esm2015/lib/angular-editor.service.js +272 -272
- package/esm2015/lib/config.js +36 -28
- package/esm2015/lib/utils.js +4 -4
- package/esm2015/public-api.js +8 -8
- package/fesm2015/kolkov-angular-editor.js +1210 -1190
- package/fesm2015/kolkov-angular-editor.js.map +1 -1
- package/kolkov-angular-editor.d.ts +5 -5
- package/kolkov-angular-editor.metadata.json +1 -1
- package/lib/ae-select/ae-select.component.d.ts +43 -43
- package/lib/angular-editor-toolbar.component.d.ts +94 -88
- package/lib/angular-editor.component.d.ts +127 -126
- package/lib/angular-editor.module.d.ts +2 -2
- package/lib/angular-editor.service.d.ts +83 -83
- package/lib/config.d.ts +39 -34
- package/lib/utils.d.ts +1 -1
- package/package.json +7 -7
- package/public-api.d.ts +5 -5
- package/bundles/kolkov-angular-editor.umd.min.js +0 -2
- package/bundles/kolkov-angular-editor.umd.min.js.map +0 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<a name="1.0.2"></a>
|
|
2
|
+
## [1.0.2](https://github.com/kolkov/angular-editor/compare/v1.0.1...v1.0.2) (2019-11-28) Technical release
|
|
3
|
+
* Readme update for npmjs.com
|
|
4
|
+
|
|
5
|
+
<a name="1.0.1"></a>
|
|
6
|
+
## [1.0.1](https://github.com/kolkov/angular-editor/compare/v1.0.0...v1.0.1) (2019-11-27) Technical release
|
|
7
|
+
* Fix logo at npmjs.com readme
|
|
8
|
+
|
|
9
|
+
<a name="1.0.0"></a>
|
|
10
|
+
## [1.0.0](https://github.com/kolkov/angular-editor/compare/v1.0.0-rc.2...v1.0.0) (2019-11-27) Initial release
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2018 Andrey Kolkov
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,263 +1,265 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<img width="150px" src="https://raw.githubusercontent.com/kolkov/angular-editor/master/docs/angular-editor-logo.png?raw=true" alt="AngularEditor logo"/>
|
|
3
|
-
</p>
|
|
4
|
-
|
|
5
|
-
# AngularEditor
|
|
6
|
-
[](https://badge.fury.io/js/%40kolkov%2Fangular-editor)
|
|
7
|
-
[](https://stackblitz.com/edit/angular-editor-wysiwyg)
|
|
8
|
-
[](https://travis-ci.com/kolkov/angular-editor)
|
|
9
|
-
[](https://www.npmjs.com/package/@kolkov/angular-editor)
|
|
10
|
-
[](https://www.jsdelivr.com/package/npm/@kolkov/angular-editor)
|
|
11
|
-
[](https://coveralls.io/github/kolkov/angular-editor?branch=master)
|
|
12
|
-
[](https://david-dm.org/kolkov/angular-editor)
|
|
13
|
-
[](https://david-dm.org/kolkov/angular-editor?type=dev)
|
|
14
|
-
[](https://codecov.io/gh/kolkov/angular-editor)
|
|
15
|
-
[](https://paypal.me/AndreyKolkov)
|
|
16
|
-
|
|
17
|
-
A simple native WYSIWYG/Rich Text editor for Angular 6-
|
|
18
|
-
|
|
19
|
-

|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
## Demo
|
|
23
|
-
[demo](https://angular-editor-wysiwyg.stackblitz.io/) | [See the code in StackBlitz](https://stackblitz.com/edit/angular-editor-wysiwyg).
|
|
24
|
-
|
|
25
|
-
## Getting Started
|
|
26
|
-
|
|
27
|
-
### Installation
|
|
28
|
-
|
|
29
|
-
Install via [npm][npm] package manager
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
npm install @kolkov/angular-editor --save
|
|
33
|
-
```
|
|
34
|
-
### Versions
|
|
35
|
-
|
|
36
|
-
1.0.0 and above - for Angular v8.x.x and above
|
|
37
|
-
|
|
38
|
-
0.18.4 and above - for Angular v7.x.x
|
|
39
|
-
|
|
40
|
-
0.15.x - for Angular v6.x.x
|
|
41
|
-
|
|
42
|
-
### Usage
|
|
43
|
-
|
|
44
|
-
Import `angular-editor` module
|
|
45
|
-
|
|
46
|
-
```js
|
|
47
|
-
import { HttpClientModule} from '@angular/common/http';
|
|
48
|
-
import { AngularEditorModule } from '@kolkov/angular-editor';
|
|
49
|
-
|
|
50
|
-
@NgModule({
|
|
51
|
-
imports: [ HttpClientModule, AngularEditorModule ]
|
|
52
|
-
})
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
Then in HTML
|
|
56
|
-
|
|
57
|
-
```html
|
|
58
|
-
<angular-editor [placeholder]="'Enter text here...'" [(ngModel)]="htmlContent"></angular-editor>
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
or for usage with reactive forms
|
|
62
|
-
|
|
63
|
-
```html
|
|
64
|
-
<angular-editor formControlName="htmlContent" [config]="editorConfig"></angular-editor>
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
if you using more than one editor on same page set `id` property
|
|
68
|
-
|
|
69
|
-
```html
|
|
70
|
-
<angular-editor id="editor1" formControlName="htmlContent1" [config]="editorConfig"></angular-editor>
|
|
71
|
-
<angular-editor id="editor2" formControlName="htmlContent2" [config]="editorConfig"></angular-editor>
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
where
|
|
75
|
-
|
|
76
|
-
```js
|
|
77
|
-
import { AngularEditorConfig } from '@kolkov/angular-editor';
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
editorConfig: AngularEditorConfig = {
|
|
81
|
-
editable: true,
|
|
82
|
-
spellcheck: true,
|
|
83
|
-
height: 'auto',
|
|
84
|
-
minHeight: '0',
|
|
85
|
-
maxHeight: 'auto',
|
|
86
|
-
width: 'auto',
|
|
87
|
-
minWidth: '0',
|
|
88
|
-
translate: 'yes',
|
|
89
|
-
enableToolbar: true,
|
|
90
|
-
showToolbar: true,
|
|
91
|
-
placeholder: 'Enter text here...',
|
|
92
|
-
defaultParagraphSeparator: '',
|
|
93
|
-
defaultFontName: '',
|
|
94
|
-
defaultFontSize: '',
|
|
95
|
-
fonts: [
|
|
96
|
-
{class: 'arial', name: 'Arial'},
|
|
97
|
-
{class: 'times-new-roman', name: 'Times New Roman'},
|
|
98
|
-
{class: 'calibri', name: 'Calibri'},
|
|
99
|
-
{class: 'comic-sans-ms', name: 'Comic Sans MS'}
|
|
100
|
-
],
|
|
101
|
-
customClasses: [
|
|
102
|
-
{
|
|
103
|
-
name: 'quote',
|
|
104
|
-
class: 'quote',
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
name: 'redText',
|
|
108
|
-
class: 'redText'
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
name: 'titleText',
|
|
112
|
-
class: 'titleText',
|
|
113
|
-
tag: 'h1',
|
|
114
|
-
},
|
|
115
|
-
],
|
|
116
|
-
uploadUrl: 'v1/image',
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
['
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
|
132
|
-
|
|
|
133
|
-
|
|
|
134
|
-
|
|
|
135
|
-
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
|
141
|
-
|
|
|
142
|
-
| (
|
|
143
|
-
| (
|
|
144
|
-
| (
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
|
160
|
-
|
|
|
161
|
-
|
|
|
162
|
-
|
|
|
163
|
-
|
|
|
164
|
-
|
|
|
165
|
-
|
|
|
166
|
-
|
|
|
167
|
-
|
|
|
168
|
-
|
|
|
169
|
-
|
|
|
170
|
-
|
|
|
171
|
-
|
|
|
172
|
-
|
|
|
173
|
-
|
|
|
174
|
-
|
|
|
175
|
-
|
|
|
176
|
-
|
|
|
177
|
-
|
|
|
178
|
-
|
|
|
179
|
-
|
|
|
180
|
-
|
|
|
181
|
-
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
'
|
|
189
|
-
'
|
|
190
|
-
'
|
|
191
|
-
'
|
|
192
|
-
'
|
|
193
|
-
'
|
|
194
|
-
'
|
|
195
|
-
'
|
|
196
|
-
'
|
|
197
|
-
'
|
|
198
|
-
'
|
|
199
|
-
'
|
|
200
|
-
'
|
|
201
|
-
'
|
|
202
|
-
'
|
|
203
|
-
'
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
'
|
|
209
|
-
'
|
|
210
|
-
'
|
|
211
|
-
'
|
|
212
|
-
'
|
|
213
|
-
'
|
|
214
|
-
'
|
|
215
|
-
'
|
|
216
|
-
'
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
`angular-editor
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
[
|
|
262
|
-
|
|
263
|
-
[
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img width="150px" src="https://raw.githubusercontent.com/kolkov/angular-editor/master/docs/angular-editor-logo.png?raw=true" alt="AngularEditor logo"/>
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
# AngularEditor
|
|
6
|
+
[](https://badge.fury.io/js/%40kolkov%2Fangular-editor)
|
|
7
|
+
[](https://stackblitz.com/edit/angular-editor-wysiwyg)
|
|
8
|
+
[](https://travis-ci.com/kolkov/angular-editor)
|
|
9
|
+
[](https://www.npmjs.com/package/@kolkov/angular-editor)
|
|
10
|
+
[](https://www.jsdelivr.com/package/npm/@kolkov/angular-editor)
|
|
11
|
+
[](https://coveralls.io/github/kolkov/angular-editor?branch=master)
|
|
12
|
+
[](https://david-dm.org/kolkov/angular-editor)
|
|
13
|
+
[](https://david-dm.org/kolkov/angular-editor?type=dev)
|
|
14
|
+
[](https://codecov.io/gh/kolkov/angular-editor)
|
|
15
|
+
[](https://paypal.me/AndreyKolkov)
|
|
16
|
+
|
|
17
|
+
A simple native WYSIWYG/Rich Text editor for Angular 6-12+
|
|
18
|
+
|
|
19
|
+

|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## Demo
|
|
23
|
+
[demo](https://angular-editor-wysiwyg.stackblitz.io/) | [See the code in StackBlitz](https://stackblitz.com/edit/angular-editor-wysiwyg).
|
|
24
|
+
|
|
25
|
+
## Getting Started
|
|
26
|
+
|
|
27
|
+
### Installation
|
|
28
|
+
|
|
29
|
+
Install via [npm][npm] package manager
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
npm install @kolkov/angular-editor --save
|
|
33
|
+
```
|
|
34
|
+
### Versions
|
|
35
|
+
|
|
36
|
+
1.0.0 and above - for Angular v8.x.x and above
|
|
37
|
+
|
|
38
|
+
0.18.4 and above - for Angular v7.x.x
|
|
39
|
+
|
|
40
|
+
0.15.x - for Angular v6.x.x
|
|
41
|
+
|
|
42
|
+
### Usage
|
|
43
|
+
|
|
44
|
+
Import `angular-editor` module
|
|
45
|
+
|
|
46
|
+
```js
|
|
47
|
+
import { HttpClientModule} from '@angular/common/http';
|
|
48
|
+
import { AngularEditorModule } from '@kolkov/angular-editor';
|
|
49
|
+
|
|
50
|
+
@NgModule({
|
|
51
|
+
imports: [ HttpClientModule, AngularEditorModule ]
|
|
52
|
+
})
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Then in HTML
|
|
56
|
+
|
|
57
|
+
```html
|
|
58
|
+
<angular-editor [placeholder]="'Enter text here...'" [(ngModel)]="htmlContent"></angular-editor>
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
or for usage with reactive forms
|
|
62
|
+
|
|
63
|
+
```html
|
|
64
|
+
<angular-editor formControlName="htmlContent" [config]="editorConfig"></angular-editor>
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
if you using more than one editor on same page set `id` property
|
|
68
|
+
|
|
69
|
+
```html
|
|
70
|
+
<angular-editor id="editor1" formControlName="htmlContent1" [config]="editorConfig"></angular-editor>
|
|
71
|
+
<angular-editor id="editor2" formControlName="htmlContent2" [config]="editorConfig"></angular-editor>
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
where
|
|
75
|
+
|
|
76
|
+
```js
|
|
77
|
+
import { AngularEditorConfig } from '@kolkov/angular-editor';
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
editorConfig: AngularEditorConfig = {
|
|
81
|
+
editable: true,
|
|
82
|
+
spellcheck: true,
|
|
83
|
+
height: 'auto',
|
|
84
|
+
minHeight: '0',
|
|
85
|
+
maxHeight: 'auto',
|
|
86
|
+
width: 'auto',
|
|
87
|
+
minWidth: '0',
|
|
88
|
+
translate: 'yes',
|
|
89
|
+
enableToolbar: true,
|
|
90
|
+
showToolbar: true,
|
|
91
|
+
placeholder: 'Enter text here...',
|
|
92
|
+
defaultParagraphSeparator: '',
|
|
93
|
+
defaultFontName: '',
|
|
94
|
+
defaultFontSize: '',
|
|
95
|
+
fonts: [
|
|
96
|
+
{class: 'arial', name: 'Arial'},
|
|
97
|
+
{class: 'times-new-roman', name: 'Times New Roman'},
|
|
98
|
+
{class: 'calibri', name: 'Calibri'},
|
|
99
|
+
{class: 'comic-sans-ms', name: 'Comic Sans MS'}
|
|
100
|
+
],
|
|
101
|
+
customClasses: [
|
|
102
|
+
{
|
|
103
|
+
name: 'quote',
|
|
104
|
+
class: 'quote',
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
name: 'redText',
|
|
108
|
+
class: 'redText'
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: 'titleText',
|
|
112
|
+
class: 'titleText',
|
|
113
|
+
tag: 'h1',
|
|
114
|
+
},
|
|
115
|
+
],
|
|
116
|
+
uploadUrl: 'v1/image',
|
|
117
|
+
upload: (file: File) => { ... }
|
|
118
|
+
uploadWithCredentials: false,
|
|
119
|
+
sanitize: true,
|
|
120
|
+
toolbarPosition: 'top',
|
|
121
|
+
toolbarHiddenButtons: [
|
|
122
|
+
['bold', 'italic'],
|
|
123
|
+
['fontSize']
|
|
124
|
+
]
|
|
125
|
+
};
|
|
126
|
+
```
|
|
127
|
+
For `ngModel` to work, you must import `FormsModule` from `@angular/forms`, or for `formControlName`, you must import `ReactiveFormsModule` from `@angular/forms`
|
|
128
|
+
|
|
129
|
+
## API
|
|
130
|
+
### Inputs
|
|
131
|
+
| Input | Type | Default | Required | Description |
|
|
132
|
+
| ------------- | ------------- | ------------- | ------------- | ------------- |
|
|
133
|
+
| id | `string` | `-` | no | Id property when multiple editor used on same page |
|
|
134
|
+
| [config] | `AngularEditorConfig` | `default config` | no | config for the editor |
|
|
135
|
+
| placeholder | `string` | `-` | no | Set custom placeholder for input area |
|
|
136
|
+
| tabIndex | `number` | `-` | no | Set Set tabindex on angular-editor |
|
|
137
|
+
|
|
138
|
+
### Outputs
|
|
139
|
+
|
|
140
|
+
| Output | Description |
|
|
141
|
+
| ------------- | ------------- |
|
|
142
|
+
| (html) | Output html |
|
|
143
|
+
| (viewMode) | Fired when switched visual and html source mode |
|
|
144
|
+
| (blur) | Fired when editor blur |
|
|
145
|
+
| (focus) | Fired when editor focus |
|
|
146
|
+
|
|
147
|
+
### Methods
|
|
148
|
+
Name | Description |
|
|
149
|
+
| ------------- | ------------- |
|
|
150
|
+
| focus | Focuses the editor element |
|
|
151
|
+
|
|
152
|
+
### Other
|
|
153
|
+
Name | Type | Description |
|
|
154
|
+
| ------------- | ------------- | ------------- |
|
|
155
|
+
| AngularEditorConfig | configuration | Configuration for the AngularEditor component.|
|
|
156
|
+
|
|
157
|
+
### Configuration
|
|
158
|
+
|
|
159
|
+
| Input | Type | Default | Required | Description |
|
|
160
|
+
| ------------- | ------------- | ------------- | ------------- | ------------- |
|
|
161
|
+
| editable | `bolean` | `true` | no | Set editing enabled or not |
|
|
162
|
+
| spellcheck | `bolean` | `true` | no | Set spellchecking enabled or not |
|
|
163
|
+
| translate | `sting` | `yes` | no | Set translating enabled or not |
|
|
164
|
+
| sanitize | `bolean` | `true` | no | Set DOM sanitizing enabled or not |
|
|
165
|
+
| height | `string` | `auto` | no | Set height of the editor |
|
|
166
|
+
| minHeight | `string` | `0` | no | Set minimum height of the editor |
|
|
167
|
+
| maxHeight | `string` | `auto` | no | Set maximum height of the editor |
|
|
168
|
+
| width | `string` | `auto` | no | Set width of the editor |
|
|
169
|
+
| minWidth | `string` | `0` | no | Set minimum width of the editor |
|
|
170
|
+
| enableToolbar | `bolean` | `true` | no | Set toolbar enabled or not |
|
|
171
|
+
| showToolbar | `bolean` | `true` | no | Set toolbar visible or not |
|
|
172
|
+
| toolbarPosition | `string` | `top` | no | Set toolbar position top or bottom |
|
|
173
|
+
| placeholder | `string` | `-` | no | Set placeholder text |
|
|
174
|
+
| defaultParagraphSeparator | `string` | `-` | no | Set default paragraph separator such as `p` |
|
|
175
|
+
| defaultFontName | `string` | `-` | no | Set default font such as `Comic Sans MS` |
|
|
176
|
+
| defaultFontSize | `string` | `-` | no | Set default font size such as `1` - `7` |
|
|
177
|
+
| uploadUrl | `string` | `-` | no | Set image upload endpoint `https://api.exapple.com/v1/image/upload` and return response with imageUrl key. {"imageUrl" : <url>} |
|
|
178
|
+
| upload | `function` | `-` | no | Set image upload function |
|
|
179
|
+
| uploadWithCredentials | `bolean` | `false` | no | Set passing or not credentials in the image upload call |
|
|
180
|
+
| fonts | `Font[]` | `-` | no | Set array of available fonts `[{name, class},...]` |
|
|
181
|
+
| customClasses | `CustomClass[]` | `-` | no | Set array of available fonts `[{name, class, tag},...]` |
|
|
182
|
+
| outline | `bolean` | `true` | no | Set outline of the editor if in focus |
|
|
183
|
+
| toolbarHiddenButtons | `string[][]` | `-` | no | Set of the array of button names or elements to hide |
|
|
184
|
+
|
|
185
|
+
```js
|
|
186
|
+
toolbarHiddenButtons: [
|
|
187
|
+
[
|
|
188
|
+
'undo',
|
|
189
|
+
'redo',
|
|
190
|
+
'bold',
|
|
191
|
+
'italic',
|
|
192
|
+
'underline',
|
|
193
|
+
'strikeThrough',
|
|
194
|
+
'subscript',
|
|
195
|
+
'superscript',
|
|
196
|
+
'justifyLeft',
|
|
197
|
+
'justifyCenter',
|
|
198
|
+
'justifyRight',
|
|
199
|
+
'justifyFull',
|
|
200
|
+
'indent',
|
|
201
|
+
'outdent',
|
|
202
|
+
'insertUnorderedList',
|
|
203
|
+
'insertOrderedList',
|
|
204
|
+
'heading',
|
|
205
|
+
'fontName'
|
|
206
|
+
],
|
|
207
|
+
[
|
|
208
|
+
'fontSize',
|
|
209
|
+
'textColor',
|
|
210
|
+
'backgroundColor',
|
|
211
|
+
'customClasses',
|
|
212
|
+
'link',
|
|
213
|
+
'unlink',
|
|
214
|
+
'insertImage',
|
|
215
|
+
'insertVideo',
|
|
216
|
+
'insertHorizontalRule',
|
|
217
|
+
'removeFormat',
|
|
218
|
+
'toggleEditorMode'
|
|
219
|
+
]
|
|
220
|
+
]
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
## What's included
|
|
224
|
+
|
|
225
|
+
Within the download you'll find the following directories and files. You'll see something like this:
|
|
226
|
+
|
|
227
|
+
```
|
|
228
|
+
angular-editor/
|
|
229
|
+
└── projects/
|
|
230
|
+
├── angular-editor/
|
|
231
|
+
└── angular-editor-app/
|
|
232
|
+
```
|
|
233
|
+
`angular-editor/` - library
|
|
234
|
+
|
|
235
|
+
`angular-editor-app/` - demo application
|
|
236
|
+
|
|
237
|
+
## Documentation
|
|
238
|
+
|
|
239
|
+
The documentation for the AngularEditor is hosted at our website [AngularEditor](https://angular-editor.kolkov.ru/)
|
|
240
|
+
|
|
241
|
+
## Contributing
|
|
242
|
+
|
|
243
|
+
Please read through our [contributing guidelines](https://github.com/kolkov/angular-editor/blob/master/CONTRIBUTING.md). Included are directions for opening issues, coding standards, and notes on development.
|
|
244
|
+
|
|
245
|
+
Editor preferences are available in the [editor config](https://github.com/kolkov/angular-editor/blob/master/.editorconfig) for easy use in common text editors. Read more and download plugins at <http://editorconfig.org>.
|
|
246
|
+
|
|
247
|
+
## Versioning
|
|
248
|
+
|
|
249
|
+
For a transparency into our release cycle and in striving to maintain backward compatibility, AngularEditor is maintained under [the Semantic Versioning guidelines](http://semver.org/).
|
|
250
|
+
|
|
251
|
+
See [the Releases section of our project](https://github.com/kolkov/angular-editor/releases) for changelogs for each release version.
|
|
252
|
+
|
|
253
|
+
## Creators
|
|
254
|
+
|
|
255
|
+
**Andrey Kolkov**
|
|
256
|
+
|
|
257
|
+
* <https://github.com/kolkov>
|
|
258
|
+
|
|
259
|
+
## Donate
|
|
260
|
+
|
|
261
|
+
If you like my work and I save your time you can buy me a :beer: or :pizza: [](https://paypal.me/AndreyKolkov)
|
|
262
|
+
|
|
263
|
+
[npm]: https://www.npmjs.com/package/@kolkov/angular-editor
|
|
264
|
+
[demo]: https://angular-editor-wysiwyg.stackblitz.io/
|
|
265
|
+
[example]: https://stackblitz.com/edit/angular-editor-wysiwyg
|