@alitons/ckeditor5 0.0.2
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/LICENSE.md +49 -0
- package/README.md +262 -0
- package/build/ckeditor.d.ts +70 -0
- package/build/ckeditor.js +17 -0
- package/build/ckeditor.js.map +1 -0
- package/build/plugins/autotexto.d.ts +7 -0
- package/build/plugins/modelo.d.ts +15 -0
- package/build/plugins/salvarcomo.d.ts +5 -0
- package/build/plugins/sei.d.ts +6 -0
- package/build/translations/af.js +1 -0
- package/build/translations/ar.js +1 -0
- package/build/translations/ast.js +1 -0
- package/build/translations/az.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/bs.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de-ch.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/en-gb.js +1 -0
- package/build/translations/en.js +1 -0
- package/build/translations/eo.js +1 -0
- package/build/translations/es-co.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/eu.js +1 -0
- package/build/translations/fa.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/gu.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/jv.js +1 -0
- package/build/translations/kk.js +1 -0
- package/build/translations/km.js +1 -0
- package/build/translations/kn.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/ku.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/nb.js +1 -0
- package/build/translations/ne.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/oc.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/si.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sl.js +1 -0
- package/build/translations/sq.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/tt.js +1 -0
- package/build/translations/ug.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/ur.js +1 -0
- package/build/translations/uz.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/package.json +76 -0
- package/sample/index.html +34 -0
- package/sample/script.js +120 -0
- package/sample/styles.css +510 -0
- package/src/ckeditor.js +210 -0
- package/src/ckeditor.js.map +1 -0
- package/src/ckeditor.ts +255 -0
- package/src/plugins/autotexto.ts +159 -0
- package/src/plugins/modelo.ts +251 -0
- package/src/plugins/salvarcomo.ts +163 -0
- package/src/plugins/sei.ts +184 -0
- package/tsconfig.json +20 -0
- package/tsconfig.types.json +9 -0
- package/webpack.config.js +96 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
Software License Agreement
|
|
2
|
+
==========================
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2014-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
5
|
+
|
|
6
|
+
Online builder code samples are licensed under the terms of the MIT License (see Appendix A):
|
|
7
|
+
|
|
8
|
+
http://en.wikipedia.org/wiki/MIT_License
|
|
9
|
+
|
|
10
|
+
CKEditor 5 collaboration features are only available under a commercial license. [Contact us](https://ckeditor.com/contact/) for more details.
|
|
11
|
+
|
|
12
|
+
Free 30-days trials of CKEditor 5 collaboration features are available:
|
|
13
|
+
* https://ckeditor.com/collaboration/ - Real-time collaboration (with all features).
|
|
14
|
+
* https://ckeditor.com/collaboration/comments/ - Inline comments feature (without real-time collaborative editing).
|
|
15
|
+
* https://ckeditor.com/collaboration/track-changes/ - Track changes feature (without real-time collaborative editing).
|
|
16
|
+
|
|
17
|
+
Trademarks
|
|
18
|
+
----------
|
|
19
|
+
|
|
20
|
+
CKEditor is a trademark of CKSource Holding sp. z o.o. All other brand
|
|
21
|
+
and product names are trademarks, registered trademarks or service
|
|
22
|
+
marks of their respective holders.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
Appendix A: The MIT License
|
|
27
|
+
---------------------------
|
|
28
|
+
|
|
29
|
+
The MIT License (MIT)
|
|
30
|
+
|
|
31
|
+
Copyright (c) 2014-2023, CKSource Holding sp. z o.o.
|
|
32
|
+
|
|
33
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
34
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
35
|
+
in the Software without restriction, including without limitation the rights
|
|
36
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
37
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
38
|
+
furnished to do so, subject to the following conditions:
|
|
39
|
+
|
|
40
|
+
The above copyright notice and this permission notice shall be included in
|
|
41
|
+
all copies or substantial portions of the Software.
|
|
42
|
+
|
|
43
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
44
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
45
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
46
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
47
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
48
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
49
|
+
THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
|
|
2
|
+
# CkEditor + Plugins SEI, AutoTexto e Documento Modelo
|
|
3
|
+
|
|
4
|
+
### 💻 Requisitos
|
|
5
|
+
**Bootstrap:** 5.x (Opcional)
|
|
6
|
+
|
|
7
|
+
## Modo de usar
|
|
8
|
+
|
|
9
|
+
Importe o Bootstrap em seu projeto
|
|
10
|
+
|
|
11
|
+
Adicione o diretório build (desse repositório)
|
|
12
|
+
|
|
13
|
+
``` html
|
|
14
|
+
...
|
|
15
|
+
<script src="../build/ckeditor.js"></script>
|
|
16
|
+
...
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Adicione ao seu HTML no para exibir o editor
|
|
20
|
+
|
|
21
|
+
```html
|
|
22
|
+
<div class="row">
|
|
23
|
+
<div class="col-12">
|
|
24
|
+
<div class="document-editor__toolbar"></div>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="col-12 row-editor">
|
|
27
|
+
<div class="editor-container">
|
|
28
|
+
<div class="editor">
|
|
29
|
+
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Nesse exemplo, foi levado em consideração o uso do Bootstrap.
|
|
37
|
+
|
|
38
|
+
No html é necessário apenas 2 divs. Uma div onde será exibido o toolbar, no caso do exemplo acima está identificado pela classe `.document-editor__toolbar`. Outra classe onde será exibido o editor, nesse exemplo identificado pela classe `.editor`
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
Para inicializar o editor:
|
|
42
|
+
- Instancie o CKEditor usando o metodo `EditorWatchdog`.
|
|
43
|
+
- Adicione o toolbar usando o metodo `setCreator`.
|
|
44
|
+
- Inicie o editor usando o metodo `create`.
|
|
45
|
+
|
|
46
|
+
Veja um código de exemplo abaixo:
|
|
47
|
+
|
|
48
|
+
```javascript
|
|
49
|
+
const watchdog = new CKSource.EditorWatchdog();
|
|
50
|
+
|
|
51
|
+
watchdog.setCreator( ( element, config ) => {
|
|
52
|
+
return CKSource.Editor
|
|
53
|
+
.create( element, config )
|
|
54
|
+
.then( editor => {
|
|
55
|
+
document.querySelector( '.document-editor__toolbar' ).appendChild( editor.ui.view.toolbar.element );
|
|
56
|
+
document.querySelector( '.ck-toolbar' ).classList.add( 'ck-reset_all' );
|
|
57
|
+
|
|
58
|
+
return editor;
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
watchdog.create( document.querySelector( '.editor' ), {
|
|
63
|
+
toolbar: {
|
|
64
|
+
autoTextoOptions: {
|
|
65
|
+
ajax: {
|
|
66
|
+
url: 'http://url-da-api-autotexto',
|
|
67
|
+
method: 'GET'
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
documentoModeloOptions: {
|
|
71
|
+
categoria: {
|
|
72
|
+
ajax: {
|
|
73
|
+
url: 'http://url-da-api-da-categoria-de-modelos',
|
|
74
|
+
method: 'GET'
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
ajax: {
|
|
78
|
+
url: 'http://url-da-api-dos-modelos',
|
|
79
|
+
method: 'GET'
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
seiOptions: {
|
|
83
|
+
url: 'http://url-da-api-sei',
|
|
84
|
+
resultData: 'data[0].autotexto',
|
|
85
|
+
},
|
|
86
|
+
items: [
|
|
87
|
+
'heading',
|
|
88
|
+
'|',
|
|
89
|
+
'bold',
|
|
90
|
+
'italic',
|
|
91
|
+
'link',
|
|
92
|
+
'bulletedList',
|
|
93
|
+
'numberedList',
|
|
94
|
+
'|',
|
|
95
|
+
'undo',
|
|
96
|
+
'redo',
|
|
97
|
+
'|',
|
|
98
|
+
'autotexto',
|
|
99
|
+
'importarsei',
|
|
100
|
+
'documentoModelo'
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
})
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Para adicionar os plugins em seu editor você deve informar no toolbar os itens `autotexto`, `importarsei` e `documentoModelo`. Além disso é necessário criar uma objeto com as configurações de cada um deles, caso o contrário o botão ficará desabilitado.
|
|
107
|
+
|
|
108
|
+
### 🔧 Configurações dos plugins AutoTexto e Documento Modelo
|
|
109
|
+
|
|
110
|
+
As opções de textos podem ser definidas através de uma requisição ajax ou até mesmo já iniciados com o plugin.
|
|
111
|
+
|
|
112
|
+
O plugin `AutoTexto` e `documentoModelo` tem as seguintes opções
|
|
113
|
+
|
|
114
|
+
| Chave | Valor | Obrigatório | Descrição |
|
|
115
|
+
| :---------- | :--------- | :--------- |:---------------------------------- |
|
|
116
|
+
| options | Array | `false` Obrigatório se não tiver o parametro ajax | Um array de objetos com os valores dos autotextos desejados |
|
|
117
|
+
| ajax | Object | `false` Obrigatório se não tiver o parametro options | Um objetos com as informações da requisição ajax |
|
|
118
|
+
|
|
119
|
+
Caso você não informe um dos 2 parametros acima o botão irá ficar inativo
|
|
120
|
+
|
|
121
|
+
#### Informando valores de forma manual
|
|
122
|
+
|
|
123
|
+
O atributo `options` precisa ser um array com os itens que poderam ser selecionados. Veja um exemplo abaixo:
|
|
124
|
+
|
|
125
|
+
```
|
|
126
|
+
...
|
|
127
|
+
toolbar: {
|
|
128
|
+
...
|
|
129
|
+
|
|
130
|
+
autoTextoOptions: {
|
|
131
|
+
options: [
|
|
132
|
+
{
|
|
133
|
+
autotexto: '<p>Conteúdo do autotexto 1</p>',
|
|
134
|
+
titulo: 'TÃtulo do autotexto 2'
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
autotexto: '<p>Conteúdo do autotexto 2</p>',
|
|
138
|
+
titulo: 'TÃtulo do autotexto 1'
|
|
139
|
+
}
|
|
140
|
+
...
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
...
|
|
144
|
+
}
|
|
145
|
+
...
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
onde:
|
|
149
|
+
|
|
150
|
+
| parametro | Valor | Obrigatórios | Descrição
|
|
151
|
+
| :-- | :-- | :-- | :--
|
|
152
|
+
| autotexto | String | `true` | Valor que será adiciona ao editor quando a opção for selecionada
|
|
153
|
+
| titulo | String | `true` | Valor que será exibido no option` para identificar o autotexto.
|
|
154
|
+
|
|
155
|
+
#### Informando valores com o uso de autoTextoOptions
|
|
156
|
+
|
|
157
|
+
Informe no atributo `ajax` as informações da sua API
|
|
158
|
+
|
|
159
|
+
| Chave | Valor | Obrigatório | Descrição
|
|
160
|
+
| :-- | :-- | :-- | :--
|
|
161
|
+
| url | String | `true` | O endereço da sua API
|
|
162
|
+
| method | String | `false` | Metodo que sua requisição será chamada podendo ser `GET` ou `POST`. Caso não seja informado será usado `GET`
|
|
163
|
+
| data | Object | `false` | Nesse campo você pode enviar valores para serem enviados na requisição. Por exemplo, você precisa identificar o id do usuário envie `{ id_usuario: 1}`
|
|
164
|
+
| results | Object | `false` | Informe em quais atributos os valores serão retornado. Por exemplo, você deseja o atributo nome dese ser o tÃtulo e o atributo conteúdo deve ser o autotexto `{autotexto: 'conteudo', titulo: 'nome'}`
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
### 🔧 Configurações dos plugin SEI
|
|
168
|
+
|
|
169
|
+
O plugin do SEI tem apenas o tributo `ajax` com as seguintes atributos.
|
|
170
|
+
|
|
171
|
+
| Chave | Valor | Obrigatório | Descrição
|
|
172
|
+
| :-- | :-- | :-- | :--
|
|
173
|
+
| url | String | `true` | Endereço da API
|
|
174
|
+
| method | String | `false` | Metodo que sua requisição será chamada podendo ser `GET` ou `POST`. Caso não seja informado será usado `GET`
|
|
175
|
+
| resultData | String | `false` | Atributo onde estará o valor do autotexto.
|
|
176
|
+
| erros | Object | `false` | Mensagem de erros de acordo com o código da resposta HTTP.
|
|
177
|
+
|
|
178
|
+
#### Exemplo das mensagens de erro.
|
|
179
|
+
|
|
180
|
+
```
|
|
181
|
+
...
|
|
182
|
+
erros: {
|
|
183
|
+
'404': 'Nenhum documento encontrado',
|
|
184
|
+
'500': 'Ocorreu um erro interno. Tente novamente em 1 hora'
|
|
185
|
+
}
|
|
186
|
+
...
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
## Exemplo de retorno de uma requisição ajax.
|
|
190
|
+
|
|
191
|
+
**api.php**
|
|
192
|
+
```
|
|
193
|
+
{
|
|
194
|
+
"current_page": 1,
|
|
195
|
+
"data": [
|
|
196
|
+
{
|
|
197
|
+
"id_autotexto": 4,
|
|
198
|
+
"id_categoria_autotexto": 1,
|
|
199
|
+
"id_usuario": null,
|
|
200
|
+
"id_lotacao": null,
|
|
201
|
+
"id_orgao": null,
|
|
202
|
+
"titulo": "Justificativa",
|
|
203
|
+
"descricao": "",
|
|
204
|
+
"autotexto": "<ol><li>A contrata\u00e7\u00e3o pretendida mostra-se vi\u00e1vel, atende adequadamente \u00e0s demandas de neg\u00f3cio formuladas, as diretrizes do normativo, os benef\u00edcios pretendidos s\u00e3o adequados, os custos previstos s\u00e3o compat\u00edveis e caracterizam a economicidade, os riscos envolvidos s\u00e3o administr\u00e1veis e a \u00e1rea requisitante priorizar\u00e1 o fornecimento de todos os elementos aqui relacionados necess\u00e1rios \u00e0 consecu\u00e7\u00e3o dos benef\u00edcios pretendidos, pelo que recomendo vi\u00e1vel a contrata\u00e7\u00e3o.<\/li><\/ol>",
|
|
205
|
+
"id_usuario_cadastro": null,
|
|
206
|
+
"data_cadastro": null,
|
|
207
|
+
"id_usuario_ultima_alteracao": null,
|
|
208
|
+
"data_ultima_alteracao": null,
|
|
209
|
+
"id_usuario_exclusao": null,
|
|
210
|
+
"data_exclusao": null
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"id_autotexto": 5,
|
|
214
|
+
"id_categoria_autotexto": 1,
|
|
215
|
+
"id_usuario": null,
|
|
216
|
+
"id_lotacao": null,
|
|
217
|
+
"id_orgao": null,
|
|
218
|
+
"titulo": "Teste2",
|
|
219
|
+
"descricao": null,
|
|
220
|
+
"autotexto": "Teste",
|
|
221
|
+
"id_usuario_cadastro": null,
|
|
222
|
+
"data_cadastro": null,
|
|
223
|
+
"id_usuario_ultima_alteracao": null,
|
|
224
|
+
"data_ultima_alteracao": null,
|
|
225
|
+
"id_usuario_exclusao": null,
|
|
226
|
+
"data_exclusao": null
|
|
227
|
+
}
|
|
228
|
+
],
|
|
229
|
+
"first_page_url": "http:\/\/url-api\/api\/teste?page=1",
|
|
230
|
+
"from": 1,
|
|
231
|
+
"last_page": 1,
|
|
232
|
+
"last_page_url": "http:\/\/url-api\/api\/teste?page=1",
|
|
233
|
+
"links": [
|
|
234
|
+
{
|
|
235
|
+
"url": null,
|
|
236
|
+
"label": "pagination.previous",
|
|
237
|
+
"active": false
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"url": "http:\/\/url-api\/api\/teste?page=1",
|
|
241
|
+
"label": "1",
|
|
242
|
+
"active": true
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"url": null,
|
|
246
|
+
"label": "pagination.next",
|
|
247
|
+
"active": false
|
|
248
|
+
}
|
|
249
|
+
],
|
|
250
|
+
"next_page_url": null,
|
|
251
|
+
"path": "http:\/\/url-api\/api\/teste",
|
|
252
|
+
"per_page": 10,
|
|
253
|
+
"prev_page_url": null,
|
|
254
|
+
"to": 2,
|
|
255
|
+
"total": 2
|
|
256
|
+
}
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
### 🔧 Salvar Como
|
|
261
|
+
|
|
262
|
+
O Plugin *Salvar Como* pode ser chamado
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2014-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
import { DecoupledEditor } from '@ckeditor/ckeditor5-editor-decoupled';
|
|
6
|
+
import { Alignment } from '@ckeditor/ckeditor5-alignment';
|
|
7
|
+
import { Autoformat } from '@ckeditor/ckeditor5-autoformat';
|
|
8
|
+
import { Autosave } from '@ckeditor/ckeditor5-autosave';
|
|
9
|
+
import { Bold, Code, Italic, Strikethrough, Subscript, Superscript, Underline } from '@ckeditor/ckeditor5-basic-styles';
|
|
10
|
+
import { BlockQuote } from '@ckeditor/ckeditor5-block-quote';
|
|
11
|
+
import { CloudServices } from '@ckeditor/ckeditor5-cloud-services';
|
|
12
|
+
import { CodeBlock } from '@ckeditor/ckeditor5-code-block';
|
|
13
|
+
import { Essentials } from '@ckeditor/ckeditor5-essentials';
|
|
14
|
+
import { FindAndReplace } from '@ckeditor/ckeditor5-find-and-replace';
|
|
15
|
+
import { FontBackgroundColor, FontColor, FontFamily, FontSize } from '@ckeditor/ckeditor5-font';
|
|
16
|
+
import { Heading } from '@ckeditor/ckeditor5-heading';
|
|
17
|
+
import { Highlight } from '@ckeditor/ckeditor5-highlight';
|
|
18
|
+
import { HorizontalLine } from '@ckeditor/ckeditor5-horizontal-line';
|
|
19
|
+
import { HtmlEmbed } from '@ckeditor/ckeditor5-html-embed';
|
|
20
|
+
import { DataFilter, DataSchema, GeneralHtmlSupport, HtmlComment } from '@ckeditor/ckeditor5-html-support';
|
|
21
|
+
import { AutoImage, Image, ImageCaption, ImageInsert, ImageResize, ImageStyle, ImageToolbar, ImageUpload } from '@ckeditor/ckeditor5-image';
|
|
22
|
+
import { Indent, IndentBlock } from '@ckeditor/ckeditor5-indent';
|
|
23
|
+
import { TextPartLanguage } from '@ckeditor/ckeditor5-language';
|
|
24
|
+
import { AutoLink, Link, LinkImage } from '@ckeditor/ckeditor5-link';
|
|
25
|
+
import { List, ListProperties, TodoList } from '@ckeditor/ckeditor5-list';
|
|
26
|
+
import { MediaEmbed } from '@ckeditor/ckeditor5-media-embed';
|
|
27
|
+
import { Mention } from '@ckeditor/ckeditor5-mention';
|
|
28
|
+
import { PageBreak } from '@ckeditor/ckeditor5-page-break';
|
|
29
|
+
import { Paragraph } from '@ckeditor/ckeditor5-paragraph';
|
|
30
|
+
import { PasteFromOffice } from '@ckeditor/ckeditor5-paste-from-office';
|
|
31
|
+
import { RemoveFormat } from '@ckeditor/ckeditor5-remove-format';
|
|
32
|
+
import { StandardEditingMode } from '@ckeditor/ckeditor5-restricted-editing';
|
|
33
|
+
import { SelectAll } from '@ckeditor/ckeditor5-select-all';
|
|
34
|
+
import { ShowBlocks } from '@ckeditor/ckeditor5-show-blocks';
|
|
35
|
+
import { SourceEditing } from '@ckeditor/ckeditor5-source-editing';
|
|
36
|
+
import { SpecialCharacters, SpecialCharactersArrows, SpecialCharactersCurrency, SpecialCharactersEssentials, SpecialCharactersLatin, SpecialCharactersMathematical, SpecialCharactersText } from '@ckeditor/ckeditor5-special-characters';
|
|
37
|
+
import { Style } from '@ckeditor/ckeditor5-style';
|
|
38
|
+
import { Table, TableCaption, TableCellProperties, TableColumnResize, TableProperties, TableToolbar } from '@ckeditor/ckeditor5-table';
|
|
39
|
+
import { TextTransformation } from '@ckeditor/ckeditor5-typing';
|
|
40
|
+
import { EditorWatchdog } from '@ckeditor/ckeditor5-watchdog';
|
|
41
|
+
import { WordCount } from '@ckeditor/ckeditor5-word-count';
|
|
42
|
+
import ImportarSei from './plugins/sei';
|
|
43
|
+
declare class Editor extends DecoupledEditor {
|
|
44
|
+
static builtinPlugins: (typeof ImportarSei | typeof Alignment | typeof AutoImage | typeof AutoLink | typeof Autoformat | typeof Autosave | typeof BlockQuote | typeof Bold | typeof CloudServices | typeof Code | typeof CodeBlock | typeof DataFilter | typeof DataSchema | typeof Essentials | typeof FindAndReplace | typeof FontBackgroundColor | typeof FontColor | typeof FontFamily | typeof FontSize | typeof GeneralHtmlSupport | typeof Heading | typeof Highlight | typeof HorizontalLine | typeof HtmlComment | typeof HtmlEmbed | typeof Image | typeof ImageCaption | typeof ImageInsert | typeof ImageResize | typeof ImageStyle | typeof ImageToolbar | typeof ImageUpload | typeof Indent | typeof IndentBlock | typeof Italic | typeof Link | typeof LinkImage | typeof List | typeof ListProperties | typeof MediaEmbed | typeof Mention | typeof PageBreak | typeof Paragraph | typeof PasteFromOffice | typeof RemoveFormat | typeof SelectAll | typeof ShowBlocks | typeof SourceEditing | typeof SpecialCharacters | typeof SpecialCharactersArrows | typeof SpecialCharactersCurrency | typeof SpecialCharactersEssentials | typeof SpecialCharactersLatin | typeof SpecialCharactersMathematical | typeof SpecialCharactersText | typeof StandardEditingMode | typeof Strikethrough | typeof Style | typeof Subscript | typeof Superscript | typeof Table | typeof TableCaption | typeof TableCellProperties | typeof TableColumnResize | typeof TableProperties | typeof TableToolbar | typeof TextPartLanguage | typeof TextTransformation | typeof TodoList | typeof Underline | typeof WordCount)[];
|
|
45
|
+
static defaultConfig: {
|
|
46
|
+
toolbar: {
|
|
47
|
+
items: string[];
|
|
48
|
+
shouldNotGroupWhenFull: boolean;
|
|
49
|
+
};
|
|
50
|
+
language: string;
|
|
51
|
+
image: {
|
|
52
|
+
toolbar: string[];
|
|
53
|
+
};
|
|
54
|
+
table: {
|
|
55
|
+
contentToolbar: string[];
|
|
56
|
+
};
|
|
57
|
+
list: {
|
|
58
|
+
properties: {
|
|
59
|
+
styles: boolean;
|
|
60
|
+
startIndex: boolean;
|
|
61
|
+
reversed: boolean;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
declare const _default: {
|
|
67
|
+
Editor: typeof Editor;
|
|
68
|
+
EditorWatchdog: typeof EditorWatchdog;
|
|
69
|
+
};
|
|
70
|
+
export default _default;
|