Skip to content

Commit

Permalink
[front] update ckeditor lib & fixes on markdown editor part (#454)
Browse files Browse the repository at this point in the history
Co-authored-by: Romuald Lemesle <[email protected]>
  • Loading branch information
guillaumejparis and RomuDeuxfois authored Dec 11, 2023
1 parent 6ab1fbe commit 88b01e7
Show file tree
Hide file tree
Showing 92 changed files with 944 additions and 787 deletions.
2 changes: 1 addition & 1 deletion openex-front/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.eslintcache

# dependencies
/node_modules
node_modules

# testing
/coverage
Expand Down
4 changes: 2 additions & 2 deletions openex-front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "Apache-2.0",
"type": "module",
"dependencies": {
"@ckeditor/ckeditor5-react": "5.0.6",
"@ckeditor/ckeditor5-react": "6.2.0",
"@emotion/react": "11.11.1",
"@emotion/styled": "11.11.0",
"@hookform/resolvers": "3.3.2",
Expand All @@ -20,7 +20,7 @@
"@uiw/react-md-editor": "4.0.1",
"apexcharts": "3.44.2",
"axios": "1.6.2",
"ckeditor5-custom-build": "0.0.1",
"ckeditor5-custom-build": "link:packages/ckeditor5-custom-build",
"classnames": "2.3.2",
"date-fns": "2.30.0",
"dompurify": "3.0.6",
Expand Down
4 changes: 2 additions & 2 deletions openex-front/packages/ckeditor5-custom-build/LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Software License Agreement
==========================

Copyright (c) 2014-2022, CKSource Holding sp. z o.o. All rights reserved.
Copyright (c) 2014-2023, CKSource Holding sp. z o.o. All rights reserved.

Online builder code samples are licensed under the terms of the MIT License (see Appendix A):

Expand All @@ -28,7 +28,7 @@ Appendix A: The MIT License

The MIT License (MIT)

Copyright (c) 2014-2022, CKSource Holding sp. z o.o.
Copyright (c) 2014-2023, CKSource Holding sp. z o.o.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
10 changes: 1 addition & 9 deletions openex-front/packages/ckeditor5-custom-build/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@ This repository presents a CKEditor 5 editor build generated by the [Online buil

1. Open the `sample/index.html` page in the browser.

If you picked the real-time collaboration plugins:

2. Fill the dialog with correct token, websocket and upload URL endpoints. If you do not have these yet or do not know their meaning, [contact us](https://ckeditor.com/contact/).

3. Copy the URL and share it or paste in another tab to enjoy real-time collaborative editing.

If you picked the non-real-time collaboration plugins:

2. Fill the prompt with the license key. If you do not have the license key yet [contact us](https://ckeditor.com/contact/).

## Configuring build
Expand Down Expand Up @@ -57,7 +49,7 @@ Follow the guides available on https://ckeditor.com/docs/ckeditor5/latest/framew
## FAQ
| Where is the place to report bugs and feature requests?

You can create an issue on https://github.com/ckeditor/ckeditor5/issues including the build id - `ua703b27p7m3-v3heajuinf4`. Make sure that the question / problem is unique, please look for a possibly asked questions in the search box. Duplicates will be closed.
You can create an issue on https://github.com/ckeditor/ckeditor5/issues including the build id - `qw9x3g9ms7rw-vvglrix6ht7h`. Make sure that the question / problem is unique, please look for a possibly asked questions in the search box. Duplicates will be closed.

| Where can I learn more about the CKEditor 5 framework?

Expand Down
34 changes: 34 additions & 0 deletions openex-front/packages/ckeditor5-custom-build/build/ckeditor.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/**
* @license Copyright (c) 2014-2023, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
import { ClassicEditor } from '@ckeditor/ckeditor5-editor-classic';
import { Alignment } from '@ckeditor/ckeditor5-alignment';
import { Autoformat } from '@ckeditor/ckeditor5-autoformat';
import { Bold, Code, Italic, Subscript, Superscript, Underline } from '@ckeditor/ckeditor5-basic-styles';
import { BlockQuote } from '@ckeditor/ckeditor5-block-quote';
import { CodeBlock } from '@ckeditor/ckeditor5-code-block';
import type { EditorConfig } from '@ckeditor/ckeditor5-core';
import { Essentials } from '@ckeditor/ckeditor5-essentials';
import { FontBackgroundColor, FontColor, FontFamily, FontSize } from '@ckeditor/ckeditor5-font';
import { Heading } from '@ckeditor/ckeditor5-heading';
import { Highlight } from '@ckeditor/ckeditor5-highlight';
import { HorizontalLine } from '@ckeditor/ckeditor5-horizontal-line';
import { AutoImage, Image, ImageInsert, ImageResize, ImageStyle, ImageToolbar, ImageUpload } from '@ckeditor/ckeditor5-image';
import { Indent, IndentBlock } from '@ckeditor/ckeditor5-indent';
import { AutoLink, Link, LinkImage } from '@ckeditor/ckeditor5-link';
import { List } from '@ckeditor/ckeditor5-list';
import { MediaEmbed } from '@ckeditor/ckeditor5-media-embed';
import { PageBreak } from '@ckeditor/ckeditor5-page-break';
import { Paragraph } from '@ckeditor/ckeditor5-paragraph';
import { PasteFromOffice } from '@ckeditor/ckeditor5-paste-from-office';
import { RemoveFormat } from '@ckeditor/ckeditor5-remove-format';
import { SpecialCharacters } from '@ckeditor/ckeditor5-special-characters';
import { Table, TableColumnResize } from '@ckeditor/ckeditor5-table';
import { TextTransformation } from '@ckeditor/ckeditor5-typing';
import { Base64UploadAdapter } from '@ckeditor/ckeditor5-upload';
declare class Editor extends ClassicEditor {
static builtinPlugins: (typeof Alignment | typeof AutoImage | typeof AutoLink | typeof Autoformat | typeof Base64UploadAdapter | typeof BlockQuote | typeof Bold | typeof Code | typeof CodeBlock | typeof Essentials | typeof FontBackgroundColor | typeof FontColor | typeof FontFamily | typeof FontSize | typeof Heading | typeof Highlight | typeof HorizontalLine | typeof Image | typeof ImageInsert | typeof ImageResize | typeof ImageStyle | typeof ImageToolbar | typeof ImageUpload | typeof Indent | typeof IndentBlock | typeof Italic | typeof Link | typeof LinkImage | typeof List | typeof MediaEmbed | typeof PageBreak | typeof Paragraph | typeof PasteFromOffice | typeof RemoveFormat | typeof SpecialCharacters | typeof Subscript | typeof Superscript | typeof Table | typeof TableColumnResize | typeof TextTransformation | typeof Underline)[];
static defaultConfig: EditorConfig;
}
export default Editor;

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 88b01e7

Please sign in to comment.