ckeditor / ckeditor5-angular

Official CKEditor 5 Angular 5+ component.
https://ckeditor.com/ckeditor-5
Other
203 stars 111 forks source link

Cloud integration #431

Closed Mati365 closed 1 month ago

Mati365 commented 3 months ago

Suggested merge commit message (convention)

Feature: Add cloud CDN support.

MAJOR BREAKING CHANGE: Changed minimum supported version of Angular to the oldest supported LTS: >= 16.x MAJOR BREAKING CHANGE: Switched compiler from TS 4.x → 5.x to ensure compatibility with the newest CKEditor packages


Additional information

Related React integration: https://github.com/ckeditor/ckeditor5-react/pull/510 Related Vue integration: https://github.com/ckeditor/ckeditor5-vue/pull/301

Added demo: http://localhost:5000/simple-cdn-usage Example usage:

import { Component, type OnInit } from '@angular/core';
import type { ClassicEditor } from 'https://cdn.ckeditor.com/typings/ckeditor5.d.ts';
import loadCKEditorCloud from 'src/ckeditor/cloud/load-ckeditor-cloud';

@Component( {
  selector: 'app-simple-cdn-usage',
  templateUrl: './simple-cdn-usage.component.html',
  styleUrls: [ './simple-cdn-usage.component.css' ]
} )
export class SimpleCdnUsageComponent implements OnInit {
  public Editor: typeof ClassicEditor | null = null;

  public ngOnInit(): void {
    loadCKEditorCloud( {
      version: '42.0.2'
    } )
      .then( cloud => {
        this.Editor = createCdnEditor( {
          cloud
        } );
      } );
  }
}
coveralls commented 3 months ago

Pull Request Test Coverage Report for Build eb32db8d-5b1c-432a-a592-71a85096bba9

Details


Totals Coverage Status
Change from base Build e055574a-4028-4f2e-8b5f-4b9bf2017819: 0.0%
Covered Lines: 159
Relevant Lines: 159

💛 - Coveralls