admin管理员组

文章数量:1315252

I’m facing an issue with CKEditor 5 where content pasted from WPS Office is not visible in the editor. The text is getting pasted, and formatting is applied correctly (e.g., bold, italic), but the actual text itself is not visible. Here are the details of my setup and the problem:

Steps to Reproduce:

  1. I copy content from WPS Office (including text and formatting).
  2. Paste it into a CKEditor instance configured with both PasteFromOffice and PasteFromOfficeEnhanced plugins enabled.
  3. The text appears in the editor, but it is not visible (though the formatting is still applied).

What I've Tried:

  • Changed the text color (nothing changes, still invisible).
  • Tried pasting the content in the CKEditor builder preview—same issue occurs.
  • Removed all formatting using the built-in remove formatting button, but the issue persists.
  • Inspected the pasted HTML using the developer tools and noticed that the content is being pasted with invisible text, potentially due to background-color or similar properties from WPS Office.

Expected Result:

  • The pasted content should be visible with correct formatting.

Actual Result:

  • The pasted content is invisible, even though it’s there in the editor with correct formatting.

Additional Information:

  • I’ve tried pasting the same content from Microsoft Word and it works perfectly, so the issue might be related to how WPS Office handles the clipboard data.
  • TinyMCE version: CKEditor 5 (latest trial version).
  • Browsers tested: Chrome, Firefox.

Has anyone else encountered a similar issue with CKEditor and WPS Office? I would appreciate any suggestions or workarounds.

本文标签: