1

How to clear all text/content from the CK editor? I've already tried all methods such as: value(locator, '') or * clear(locator). Still not working & test cases are getting passed even though the field is not cleared.

Can refer actual example here - https://ckeditor.com/docs/ckeditor5/latest/features/mentions.html

Can anyone help me with the other solution? thanks

Amol
  • 25
  • 3

1 Answers1

1

Here you go:

* script('.ck-editor__editable', "_.ckeditorInstance.setData('')")
Peter Thomas
  • 54,465
  • 21
  • 84
  • 248
  • 1
    Yes, It is working now without any issue. Thanks for the quick response. @Peter Thomas – Amol May 26 '21 at 09:51