@alitons/ckeditor5 0.0.4 → 0.0.6

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 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
 
@@ -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, 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';
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 { AutoLink, Link, LinkImage } from '@ckeditor/ckeditor5-link';
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 { SourceEditing } from '@ckeditor/ckeditor5-source-editing';
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 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)[];
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[];