@alitons/ckeditor5 0.0.4 → 0.0.5
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/README.md +33 -0
- package/build/ckeditor.d.ts +7 -13
- package/build/ckeditor.js +2 -2
- package/build/ckeditor.js.map +1 -1
- package/build/components/list/listitemview.d.ts +15 -0
- package/build/components/list/listseparatorview.d.ts +9 -0
- package/build/components/list/listview.d.ts +25 -0
- package/build/plugins/NumberedDivListSplit.d.ts +6 -0
- package/build/plugins/listaNumerada-bkp.d.ts +5 -0
- package/build/plugins/listaNumerada.d.ts +5 -0
- package/package.json +3 -2
- package/sample/index.html +12 -2
- package/sample/script.js +44 -17
- package/src/ckeditor.ts +7 -2
- package/src/components/list/listitemview.d.ts +35 -0
- package/src/components/list/listitemview.js +42 -0
- package/src/components/list/listview.d.ts +65 -0
- package/src/components/list/listview.js +92 -0
- package/src/css/custom.css +87 -0
- package/src/plugins/NumberedDivListSplit.ts +174 -0
- package/src/plugins/listaNumerada.ts +743 -0
- package/src/plugins/modelo.ts +102 -102
package/README.md
CHANGED
|
@@ -256,6 +256,39 @@ erros: {
|
|
|
256
256
|
}
|
|
257
257
|
```
|
|
258
258
|
|
|
259
|
+
### 🔧 Lista Numerada [modificada]
|
|
260
|
+
|
|
261
|
+
Para adicionar ao toolbar adicione a opção ``numberedDivListSplit`` na lista de ferramentas.
|
|
262
|
+
|
|
263
|
+
#### configurações adicionais
|
|
264
|
+
|
|
265
|
+
Para personalizar o options crie a opção ``listaNumeradaOptions`` no tollbar.
|
|
266
|
+
|
|
267
|
+
```javascript
|
|
268
|
+
...
|
|
269
|
+
toolbar: {
|
|
270
|
+
...
|
|
271
|
+
listaNumeradaOptions: {
|
|
272
|
+
disableEnter: true,
|
|
273
|
+
forceList: 2,
|
|
274
|
+
},
|
|
275
|
+
...
|
|
276
|
+
items: [
|
|
277
|
+
...
|
|
278
|
+
]
|
|
279
|
+
...
|
|
280
|
+
}
|
|
281
|
+
...
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
onde:
|
|
285
|
+
|
|
286
|
+
| Chave | Valor | Descrição
|
|
287
|
+
| :-- | :-- | :--
|
|
288
|
+
| disableEnter | Boolean | Habilita/Desabilita a funcionalidade de criar um novo item ao pressionar a tecla enter
|
|
289
|
+
|forceList | Integer | um número inteiro que representa o sequencial inicial da listagem
|
|
290
|
+
|
|
291
|
+
Se for definido um valor para o ``forceList`` obrigatóriamente todo o conteúdo será adicionado dentro de um lista.
|
|
259
292
|
|
|
260
293
|
### 🔧 Salvar Como
|
|
261
294
|
|
package/build/ckeditor.d.ts
CHANGED
|
@@ -5,44 +5,38 @@
|
|
|
5
5
|
import { DecoupledEditor } from '@ckeditor/ckeditor5-editor-decoupled';
|
|
6
6
|
import { Alignment } from '@ckeditor/ckeditor5-alignment';
|
|
7
7
|
import { Autoformat } from '@ckeditor/ckeditor5-autoformat';
|
|
8
|
-
import { Autosave } from '@ckeditor/ckeditor5-autosave';
|
|
9
8
|
import { Bold, Code, Italic, Strikethrough, Subscript, Superscript, Underline } from '@ckeditor/ckeditor5-basic-styles';
|
|
10
9
|
import { BlockQuote } from '@ckeditor/ckeditor5-block-quote';
|
|
11
10
|
import { CloudServices } from '@ckeditor/ckeditor5-cloud-services';
|
|
12
11
|
import { CodeBlock } from '@ckeditor/ckeditor5-code-block';
|
|
13
12
|
import { Essentials } from '@ckeditor/ckeditor5-essentials';
|
|
14
|
-
import { FindAndReplace } from '@ckeditor/ckeditor5-find-and-replace';
|
|
15
13
|
import { FontBackgroundColor, FontColor, FontFamily, FontSize } from '@ckeditor/ckeditor5-font';
|
|
16
14
|
import { Heading } from '@ckeditor/ckeditor5-heading';
|
|
17
15
|
import { Highlight } from '@ckeditor/ckeditor5-highlight';
|
|
18
16
|
import { HorizontalLine } from '@ckeditor/ckeditor5-horizontal-line';
|
|
19
17
|
import { HtmlEmbed } from '@ckeditor/ckeditor5-html-embed';
|
|
20
|
-
import { DataFilter
|
|
21
|
-
import {
|
|
22
|
-
import { Indent
|
|
18
|
+
import { DataFilter } from '@ckeditor/ckeditor5-html-support';
|
|
19
|
+
import { Image, ImageCaption, ImageInsert, ImageResize, ImageStyle, ImageToolbar, ImageUpload } from '@ckeditor/ckeditor5-image';
|
|
20
|
+
import { Indent } from '@ckeditor/ckeditor5-indent';
|
|
23
21
|
import { TextPartLanguage } from '@ckeditor/ckeditor5-language';
|
|
24
|
-
import {
|
|
22
|
+
import { Link, LinkImage } from '@ckeditor/ckeditor5-link';
|
|
25
23
|
import { List, ListProperties, TodoList } from '@ckeditor/ckeditor5-list';
|
|
26
24
|
import { MediaEmbed } from '@ckeditor/ckeditor5-media-embed';
|
|
27
25
|
import { Mention } from '@ckeditor/ckeditor5-mention';
|
|
28
26
|
import { PageBreak } from '@ckeditor/ckeditor5-page-break';
|
|
29
|
-
import { Paragraph } from '@ckeditor/ckeditor5-paragraph';
|
|
30
|
-
import { PasteFromOffice } from '@ckeditor/ckeditor5-paste-from-office';
|
|
31
27
|
import { RemoveFormat } from '@ckeditor/ckeditor5-remove-format';
|
|
32
28
|
import { StandardEditingMode } from '@ckeditor/ckeditor5-restricted-editing';
|
|
33
29
|
import { SelectAll } from '@ckeditor/ckeditor5-select-all';
|
|
34
30
|
import { ShowBlocks } from '@ckeditor/ckeditor5-show-blocks';
|
|
35
|
-
import {
|
|
36
|
-
import { SpecialCharacters, SpecialCharactersArrows, SpecialCharactersCurrency, SpecialCharactersEssentials, SpecialCharactersLatin, SpecialCharactersMathematical, SpecialCharactersText } from '@ckeditor/ckeditor5-special-characters';
|
|
31
|
+
import { SpecialCharactersEssentials } from '@ckeditor/ckeditor5-special-characters';
|
|
37
32
|
import { Style } from '@ckeditor/ckeditor5-style';
|
|
38
33
|
import { Table, TableCaption, TableCellProperties, TableColumnResize, TableProperties, TableToolbar } from '@ckeditor/ckeditor5-table';
|
|
39
|
-
import { TextTransformation } from '@ckeditor/ckeditor5-typing';
|
|
40
34
|
import { EditorWatchdog } from '@ckeditor/ckeditor5-watchdog';
|
|
41
|
-
import { WordCount } from '@ckeditor/ckeditor5-word-count';
|
|
42
35
|
import ImportarSei from './plugins/sei';
|
|
36
|
+
import NumberedDivList from './plugins/listaNumerada';
|
|
43
37
|
import './css/custom.css';
|
|
44
38
|
declare class Editor extends DecoupledEditor {
|
|
45
|
-
static builtinPlugins: (typeof
|
|
39
|
+
static builtinPlugins: (typeof NumberedDivList | typeof Alignment | typeof Autoformat | typeof Superscript | typeof Subscript | typeof Bold | typeof Code | typeof Italic | typeof Strikethrough | typeof Underline | typeof BlockQuote | typeof CloudServices | typeof CodeBlock | typeof SelectAll | typeof Essentials | typeof FontBackgroundColor | typeof FontColor | typeof FontFamily | typeof FontSize | typeof Heading | typeof Highlight | typeof HorizontalLine | typeof HtmlEmbed | typeof DataFilter | typeof Image | typeof ImageCaption | typeof ImageInsert | typeof ImageResize | typeof ImageStyle | typeof ImageToolbar | typeof ImageUpload | typeof Indent | typeof TextPartLanguage | typeof Link | typeof LinkImage | typeof List | typeof ListProperties | typeof TodoList | typeof MediaEmbed | typeof Mention | typeof PageBreak | typeof RemoveFormat | typeof StandardEditingMode | typeof ShowBlocks | typeof SpecialCharactersEssentials | typeof Style | typeof Table | typeof TableCaption | typeof TableCellProperties | typeof TableColumnResize | typeof TableProperties | typeof TableToolbar | typeof ImportarSei)[];
|
|
46
40
|
static defaultConfig: {
|
|
47
41
|
toolbar: {
|
|
48
42
|
items: string[];
|