Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to integrate with Grammarly

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>
like image 782
Jesper Bylund Avatar asked Dec 05 '16 08:12

Jesper Bylund


1 Answers

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

You can find more information about this attribute here.

like image 71
Sergii Rudenko Avatar answered Sep 19 '22 09:09

Sergii Rudenko