Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: integrations cleanup. #16217

Merged

Conversation

godai78
Copy link
Contributor

@godai78 godai78 commented Apr 16, 2024

Suggested merge commit message (convention)

Docs: integrations cleanup.


Additional information

Follow this document.

@godai78
Copy link
Contributor Author

godai78 commented May 14, 2024

Ustawiam blokery, żeby uniknąć nadpisania zmian po tej stronie.

@gorzelinski gorzelinski requested a review from Witoso May 20, 2024 08:13
Copy link
Member

@Witoso Witoso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a few remarks, I didn't run the samples.

@@ -9,52 +9,27 @@ menu-title: .NET

As a pure JavaScript/TypeScript application, CKEditor 5 will work inside any environment that supports such components. While we do not offer official integrations for any non-JavaScript frameworks, you can include a custom build of CKEditor 5 in a non-JS framework of your choice, for example, Microsoft's [.NET](https://dotnet.microsoft.com/).

To integrate CKEditor 5 with .NET, we will create a custom CKEditor 5 build using the [online builder](https://ckeditor.com/ckeditor-5/online-builder/), and then import it into the .NET project.
## Using the Builder
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using CKEditor 5 Builder or Using Builder. This needs to change everywhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have 26 results for Builder, but only 8 out of these are CKEditor 5 Builder.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can unify the occurrences to "CKEditor 5 Builder." For me, it sounds better than bare-bones "Builder."

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's ok to use Builder in the context of CKE5, but then don't use the.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we, however, make it on epic, to no longer postpone this branch?


```bash
npm install --save @ckeditor/ckeditor5-core @ckeditor/ckeditor5-engine @ckeditor/ckeditor5-utils @ckeditor/ckeditor5-watchdog
npm install @ckeditor/ckeditor5-core @ckeditor/ckeditor5-engine @ckeditor/ckeditor5-utils @ckeditor/ckeditor5-watchdog
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to keep it? This is not needed with ckeditor5.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without those dependencies, I got typescript errors that "those types are not assignable to others." But I was testing earlier alpha. Let me check for the new version.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, for the newest nightly version, the errors still occurs. They occur in the template, and it is a type mismatch:

Type 'typeof ClassicEditor' is not assignable to type '{ create(sourceElementOrData: string | HTMLElement, config?: EditorConfig | undefined): Promise<Editor>; }'

Type '{ toolbar: string[]; plugins: (typeof Bold | typeof Essentials | typeof Italic | typeof Paragraph | typeof Undo)[]; }' is not assignable to type 'EditorConfig'.

Those dependencies are for the @ckeditor/ckeditor5-angular package. So, if we want to remove them, the integration itself would need to change, probably.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, we will change the integration, I would act as this would not be needed and let's remove this right now. We will review this as we have new versions of integrations.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, sure!

import { Component } from '@angular/core';
import Editor from 'ckeditor5-custom-build/build/ckeditor';
import 'ckeditor5/index.css';
import 'ckeditor5-premium-features/index.css';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a cautionary comment, as I'm a bit lost, should dist be here or not?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't dist only in HTML calls? Not in JS calls?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK we needed the dist prefix in some earlier alpha versions. But, there was a change to the paths. We don't need it for npm, but it's required for the CDN, though.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK!

├── app
├── bootstrap
├── config
├── database
├── public
│ ├── assets
| ├── vendor
| └── ckeditor5
| └── ckeditor.js
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This whole block is not needed. File will be downloaded via CDN script (as below).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the current form of this guide - it is needed. I recommended putting there the code from the Builder (JS snippet). Scripts from the snippet below will download the editor and styles, but we also need to create the editor in our project.

I could put everything in one HTML file. I tested it, and it works. But it looked cluttered to me.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha, sorry missed that! You're right!

@gorzelinski gorzelinski requested a review from Witoso May 21, 2024 10:05
Copy link
Member

@Witoso Witoso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So far LGTM, let's merge to master, and do the later reviews there :D

@gorzelinski gorzelinski merged commit 63f19d9 into cc/5763-install-docs-structure May 21, 2024
6 checks passed
@gorzelinski gorzelinski deleted the cc/5763-integrations-install branch May 21, 2024 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants