Ckeditor4: onChange event is getting called, but with no data, when content is added via plugin like mathtype or wiris

Created on 16 Sep 2020  路  5Comments  路  Source: ckeditor/ckeditor4

Type of report

Bug

Provide detailed reproduction steps (if any)

Creating new issue from previous issue.
Reference:

3817

  1. Open https://ckeditor.com/docs/ckeditor4/latest/examples/mathtype.html
  2. Handle 'change' event of editor, paste in dev console:

CKEDITOR.instances.editor1.on( 'change', function() { console.log( 'change event data', this.getData() ); } );

  1. Delete all content in ckeditor
  2. Launch mathtype from the editor
  3. Add math formula and click insert
  4. Editor 'change event is fired, when you click insert button on mathtype.
  5. call editor.getData(), returns empty result
  6. Formula is is inserted into ckeditor.

Expected result

when call step 7 above, expected to get the mathml code as data

Actual result

returns nothing, believe event get fired before data is inserted into ckeditor and not after.

Other details

  • Browser: Chrome(latest)
  • OS: Windows 10
  • CKEditor version: latest
  • Installed CKEditor plugins: MathType
upstream External confirmed bug

Most helpful comment

Thanks @henok-tesfaye for the follow-up :+1:

As mentioned, the issue has been fixed in 7.24.1 version (more details in wiris/html-integrations#115).

All 5 comments

I can confirm the issue. @carlawiris, could you take a look?

This issue has been fixed, you can close it. FYI the demo page is not upgraded to use the latest version.

Thanks @henok-tesfaye for the follow-up :+1:

As mentioned, the issue has been fixed in 7.24.1 version (more details in wiris/html-integrations#115).

This issue has been fixed, you can close it. FYI the demo page is not upgraded to use the latest version.

How to fix this issue because in angular when i implements at that time I got the same issue

Was this page helpful?
0 / 5 - 0 ratings