Skip to content
Discussion options

You must be logged in to vote

@sait-yamdu For Froala (and other contenteditables), cy.type() often works but can be flaky with complex rich text logic.
Standard practice:

  1. Click into the editor body: cy.get(''.fr-element'').click()
  2. Use cy.realType() (from cypress-real-events) if standard type fails to trigger keydown events Froala listens to.
  3. Fallback: Invoke the internal API via window if you just need to set state:
    cy.window().then(win => win.FroalaEditor.INSTANCES[0].html.set(''...''))

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sait-yamdu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants