Closed Shyam268 closed 1 year ago
i have to add the text in editor and tried following example
const textarea = screen.getByRole('textbox'); const event = createEvent.paste(textarea, { clipboardData: { types: ['text/plain'], getData: () => 'MyText', }, }); fireEvent(textarea, event);
but no luck.
please help me how to change the text in the editor?
works fine
i have to add the text in editor and tried following example
but no luck.
please help me how to change the text in the editor?