Skip to content

CKEditro V46 working on my local but not working on server #537

Description

@houazib6

Hello,
I'm using CKEditor with Angular V16,
in my package.json, I set this configuration:

"@ckeditor/ckeditor5-angular": "^10.0.0",
 "ckeditor5": "^46.0.0",

my template is :

<ckeditor [editor]="Editor" [config]="config" data="<p>Hello, world!</p>">
</ckeditor>

in my .ts:

public Editor = ClassicEditor;
	public config = {
		licenseKey: 'GPL', 
		plugins: [ Essentials, Paragraph, Bold, Italic ],
		toolbar: [ 'undo', 'redo', '|', 'bold', 'italic']
	}

In my local CKeditor is working fine
but when running on server, I get the error:
main.ts:31 CKEditorError: view-writer-cannot-break-empty-element
Read more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#error-view-writer-cannot-break-empty-element
at ViewDowncastWriter._breakAttributes (index.js:7990:14)
at ViewDowncastWriter._insertNodes (index.js:7735:38)
at ViewDowncastWriter.insert (index.js:7366:32)
at DowncastDispatcher. (index.js:20986:30)
at DowncastDispatcher.fire (index.js:1280:28)
at DowncastDispatcher._testAndFire (index.js:17119:14)
at DowncastDispatcher._convertInsert (index.js:16899:18)
at Object.convertItem (index.js:17153:39)
at reinsertOrConvertNodes (index.js:22055:27)
at DowncastDispatcher. (index.js:20990:9)

Image

FYI: I'm using the same version of npm and nodejs on local and server:
nodejs: v18.10.0
npm: 8.19.2

I'm using the plugin com.github.eirslett v1.6 for build on server

<plugin>
  <groupId>com.github.eirslett</groupId>
  <artifactId>frontend-maven-plugin</artifactId>
  <version>1.6</version>

thank you for your help,

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions