@dignite-ng/expand.ck-editor 3.0.0-rc.40 → 3.0.0-rc.43

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.
@@ -243,339 +243,6 @@ var Simple = {
243
243
  },
244
244
  },
245
245
  };
246
- // export var defaults: any= {
247
- // toolbar: {
248
- // items: [
249
- // 'undo',
250
- // 'redo',
251
- // '|',
252
- // 'heading',
253
- // '|',
254
- // 'fontSize',
255
- // 'fontFamily',
256
- // 'fontColor',
257
- // 'fontBackgroundColor',
258
- // 'link',
259
- // '|',
260
- // 'bold',
261
- // 'italic',
262
- // 'underline',
263
- // '|',
264
- // 'insertImage',
265
- // ],
266
- // shouldNotGroupWhenFull: false,
267
- // },
268
- // plugins: [],
269
- // heading: {
270
- // options: [
271
- // {
272
- // model: 'paragraph',
273
- // title: 'Paragraph',
274
- // class: 'ck-heading_paragraph',
275
- // },
276
- // {
277
- // model: 'heading1',
278
- // view: 'h1',
279
- // title: 'Heading 1',
280
- // class: 'ck-heading_heading1',
281
- // },
282
- // {
283
- // model: 'heading2',
284
- // view: 'h2',
285
- // title: 'Heading 2',
286
- // class: 'ck-heading_heading2',
287
- // },
288
- // {
289
- // model: 'heading3',
290
- // view: 'h3',
291
- // title: 'Heading 3',
292
- // class: 'ck-heading_heading3',
293
- // },
294
- // {
295
- // model: 'heading4',
296
- // view: 'h4',
297
- // title: 'Heading 4',
298
- // class: 'ck-heading_heading4',
299
- // },
300
- // {
301
- // model: 'heading5',
302
- // view: 'h5',
303
- // title: 'Heading 5',
304
- // class: 'ck-heading_heading5',
305
- // },
306
- // {
307
- // model: 'heading6',
308
- // view: 'h6',
309
- // title: 'Heading 6',
310
- // class: 'ck-heading_heading6',
311
- // },
312
- // ],
313
- // },
314
- // fontSize: {
315
- // options: [10, 12, 14, 'default', 18, 20, 22, 24, 26, 28, 30, 32],
316
- // },
317
- // link: {
318
- // addTargetToExternalLinks: true,
319
- // defaultProtocol: 'https://',
320
- // decorators: {
321
- // toggleDownloadable: {
322
- // mode: 'manual',
323
- // label: 'Downloadable',
324
- // attributes: {
325
- // download: 'file',
326
- // },
327
- // },
328
- // },
329
- // },
330
- // image: {
331
- // toolbar: [
332
- // 'toggleImageCaption',
333
- // 'imageTextAlternative',
334
- // '|',
335
- // 'imageStyle:inline',
336
- // 'imageStyle:wrapText',
337
- // 'imageStyle:breakText',
338
- // '|',
339
- // 'resizeImage',
340
- // ],
341
- // styles: {
342
- // options: [
343
- // 'inline', 'alignLeft', 'alignRight',
344
- // 'alignCenter', 'alignBlockLeft', 'alignBlockRight',
345
- // 'block', 'side'
346
- // ]
347
- // },
348
- // resizeOptions: [{
349
- // name: 'resizeImage:original',
350
- // label: 'Original',
351
- // value: null
352
- // },
353
- // {
354
- // name: 'resizeImage:25',
355
- // label: '25%',
356
- // value: '25'
357
- // },
358
- // {
359
- // name: 'resizeImage:50',
360
- // label: '50%',
361
- // value: '50'
362
- // },
363
- // {
364
- // name: 'resizeImage:75',
365
- // label: '75%',
366
- // value: '75'
367
- // }
368
- // ],
369
- // },
370
- // }
371
- // export var standard: any= {
372
- // toolbar: {
373
- // items: [
374
- // 'undo',
375
- // 'redo',
376
- // '|',
377
- // 'heading',
378
- // '|',
379
- // 'fontSize',
380
- // 'fontFamily',
381
- // 'fontColor',
382
- // 'fontBackgroundColor',
383
- // '|',
384
- // 'bold',
385
- // 'italic',
386
- // 'underline',
387
- // 'strikethrough',
388
- // '|',
389
- // 'link',
390
- // 'insertImage',
391
- // 'insertTable',
392
- // '|',
393
- // 'alignment',
394
- // '|',
395
- // 'bulletedList',
396
- // 'numberedList',
397
- // ],
398
- // shouldNotGroupWhenFull: false,
399
- // },
400
- // plugins: [],
401
- // fontSize: {
402
- // options: [10, 12, 14, 'default', 18, 20, 22, 24, 26, 28, 30, 32],
403
- // supportAllValues: true,
404
- // },
405
- // heading: {
406
- // options: [
407
- // {
408
- // model: 'paragraph',
409
- // title: 'Paragraph',
410
- // class: 'ck-heading_paragraph',
411
- // },
412
- // {
413
- // model: 'heading1',
414
- // view: 'h1',
415
- // title: 'Heading 1',
416
- // class: 'ck-heading_heading1',
417
- // },
418
- // {
419
- // model: 'heading2',
420
- // view: 'h2',
421
- // title: 'Heading 2',
422
- // class: 'ck-heading_heading2',
423
- // },
424
- // {
425
- // model: 'heading3',
426
- // view: 'h3',
427
- // title: 'Heading 3',
428
- // class: 'ck-heading_heading3',
429
- // },
430
- // {
431
- // model: 'heading4',
432
- // view: 'h4',
433
- // title: 'Heading 4',
434
- // class: 'ck-heading_heading4',
435
- // },
436
- // {
437
- // model: 'heading5',
438
- // view: 'h5',
439
- // title: 'Heading 5',
440
- // class: 'ck-heading_heading5',
441
- // },
442
- // {
443
- // model: 'heading6',
444
- // view: 'h6',
445
- // title: 'Heading 6',
446
- // class: 'ck-heading_heading6',
447
- // },
448
- // ],
449
- // },
450
- // htmlSupport: {
451
- // allow: [
452
- // {
453
- // name: /^.*$/,
454
- // styles: true,
455
- // attributes: true,
456
- // classes: true,
457
- // },
458
- // ],
459
- // },
460
- // image: {
461
- // toolbar: [
462
- // 'toggleImageCaption',
463
- // 'imageTextAlternative',
464
- // '|',
465
- // 'imageStyle:inline',
466
- // 'imageStyle:wrapText',
467
- // 'imageStyle:breakText',
468
- // '|',
469
- // 'resizeImage',
470
- // ],
471
- // styles: {
472
- // options: [
473
- // 'inline', 'alignLeft', 'alignRight',
474
- // 'alignCenter', 'alignBlockLeft', 'alignBlockRight',
475
- // 'block', 'side'
476
- // ]
477
- // },
478
- // resizeOptions: [{
479
- // name: 'resizeImage:original',
480
- // label: 'Original',
481
- // value: null
482
- // },
483
- // {
484
- // name: 'resizeImage:25',
485
- // label: '25%',
486
- // value: '25'
487
- // },
488
- // {
489
- // name: 'resizeImage:50',
490
- // label: '50%',
491
- // value: '50'
492
- // },
493
- // {
494
- // name: 'resizeImage:75',
495
- // label: '75%',
496
- // value: '75'
497
- // }
498
- // ],
499
- // },
500
- // link: {
501
- // addTargetToExternalLinks: true,
502
- // defaultProtocol: 'https://',
503
- // decorators: {
504
- // toggleDownloadable: {
505
- // mode: 'manual',
506
- // label: 'Downloadable',
507
- // attributes: {
508
- // download: 'file',
509
- // },
510
- // },
511
- // },
512
- // },
513
- // list: {
514
- // properties: {
515
- // styles: true,
516
- // startIndex: true,
517
- // reversed: true,
518
- // },
519
- // },
520
- // style: {
521
- // definitions: [
522
- // {
523
- // name: 'Article category',
524
- // element: 'h3',
525
- // classes: ['category'],
526
- // },
527
- // {
528
- // name: 'Title',
529
- // element: 'h2',
530
- // classes: ['document-title'],
531
- // },
532
- // {
533
- // name: 'Subtitle',
534
- // element: 'h3',
535
- // classes: ['document-subtitle'],
536
- // },
537
- // {
538
- // name: 'Info box',
539
- // element: 'p',
540
- // classes: ['info-box'],
541
- // },
542
- // {
543
- // name: 'Side quote',
544
- // element: 'blockquote',
545
- // classes: ['side-quote'],
546
- // },
547
- // {
548
- // name: 'Marker',
549
- // element: 'span',
550
- // classes: ['marker'],
551
- // },
552
- // {
553
- // name: 'Spoiler',
554
- // element: 'span',
555
- // classes: ['spoiler'],
556
- // },
557
- // {
558
- // name: 'Code (dark)',
559
- // element: 'pre',
560
- // classes: ['fancy-code', 'fancy-code-dark'],
561
- // },
562
- // {
563
- // name: 'Code (bright)',
564
- // element: 'pre',
565
- // classes: ['fancy-code', 'fancy-code-bright'],
566
- // },
567
- // ],
568
- // },
569
- // table: {
570
- // contentToolbar: [
571
- // 'tableColumn',
572
- // 'tableRow',
573
- // 'mergeTableCells',
574
- // 'tableProperties',
575
- // 'tableCellProperties',
576
- // ],
577
- // },
578
- // }
579
246
  var Classic = {
580
247
  toolbar: {
581
248
  items: [
@@ -616,6 +283,7 @@ var Classic = {
616
283
  ],
617
284
  shouldNotGroupWhenFull: false,
618
285
  },
286
+ pasteFromWordRemoveStyles: true,
619
287
  plugins: [],
620
288
  fontFamily: {
621
289
  supportAllValues: true,
@@ -826,7 +494,6 @@ var LanguagesMap;
826
494
  /* eslint-disable no-async-promise-executor */
827
495
  // import { CkEditorModeEnum } from '../enums/ck-editor-mode-enum';
828
496
  class SetCkEditorConfigsService {
829
- constructor() { }
830
497
  async get(input) {
831
498
  const { language, type } = input;
832
499
  return new Promise(async (resolve, rejects) => {
@@ -834,7 +501,6 @@ class SetCkEditorConfigsService {
834
501
  const { AccessibilityHelp, Highlight, Alignment, Autoformat, AutoImage, Autosave, Base64UploadAdapter, BlockQuote, Bold, CloudServices, Code, Essentials, FontBackgroundColor, FontColor, FontFamily, FontSize, GeneralHtmlSupport, Heading, HorizontalLine, ImageBlock, ImageCaption, ImageInline, ImageInsert, ImageInsertViaUrl, ImageResize, ImageStyle, ImageTextAlternative, ImageToolbar, ImageUpload, Indent, IndentBlock, Italic, Link, LinkImage, List, ListProperties, MediaEmbed, Paragraph, PasteFromOffice, RemoveFormat, SelectAll, SpecialCharacters, SpecialCharactersArrows, SpecialCharactersCurrency, SpecialCharactersEssentials, SpecialCharactersLatin, SpecialCharactersMathematical, SpecialCharactersText, Strikethrough, Style, Subscript, Superscript, Table, TableCaption, TableCellProperties, TableColumnResize, TableProperties, TableToolbar, TextTransformation, TodoList, Underline, Undo } = await import('ckeditor5');
835
502
  configs.plugins = [AccessibilityHelp, Highlight, Alignment, Autoformat, AutoImage, Autosave, Base64UploadAdapter, BlockQuote, Bold, CloudServices, Code, Essentials, FontBackgroundColor, FontColor, FontFamily, FontSize, GeneralHtmlSupport, Heading, HorizontalLine, ImageBlock, ImageCaption, ImageInline, ImageInsert, ImageInsertViaUrl, ImageResize, ImageStyle, ImageTextAlternative, ImageToolbar, ImageUpload, Indent, IndentBlock, Italic, Link, LinkImage, List, ListProperties, MediaEmbed, Paragraph, PasteFromOffice, RemoveFormat, SelectAll, SpecialCharacters, SpecialCharactersArrows, SpecialCharactersCurrency, SpecialCharactersEssentials, SpecialCharactersLatin, SpecialCharactersMathematical, SpecialCharactersText, Strikethrough, Style, Subscript, Superscript, Table, TableCaption, TableCellProperties, TableColumnResize, TableProperties, TableToolbar, TextTransformation, TodoList, Underline, Undo];
836
503
  configs.language = LanguagesMap[language];
837
- configs.forcePasteAsPlainText = true;
838
504
  await import(`@ckeditor/ckeditor5-build-decoupled-document/build/translations/${LanguagesMap[language]}`);
839
505
  resolve(configs);
840
506
  });
@@ -847,7 +513,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImpor
847
513
  args: [{
848
514
  providedIn: 'root',
849
515
  }]
850
- }], ctorParameters: () => [] });
516
+ }] });
851
517
 
852
518
  /* eslint-disable no-async-promise-executor */
853
519
  /* eslint-disable @typescript-eslint/no-this-alias */