How to integrate with Grammarly

8.4k views Asked by At

I'm have a service where users write literature. I'm encouraging them to use third party services like Grammarly to check the texts. But I'm using contentEditable and Grammarly doesn't seem to trigger in all views. Any ideas on how to call Grammarly or make Grammarly trigger for specific DOM elements?

<div id="editor" contenteditable="true" placeholder="Then this happened..."></div>
2

There are 2 answers

1
Oleksii Zghurskyi On BEST ANSWER

Now it's possible to integrate via Grammarly Text Editor SDK in really straightforward and clean way.

Here is editor SDK React example.

0
Sergii Rudenko On

You can enable initialization of Grammarly extension by special attribute: data-enable-grammarly="true"

You can find more information about this attribute here.