How to stop extensions/add ons like grammarly on contenteditable editors

前端 未结 4 1055
-上瘾入骨i
-上瘾入骨i 2020-12-14 00:39

We are making contenteditable editor. Wondering how to stop extensions like grammarly (if enabled) on editor page using javascript as these extensions insert their own html

4条回答
  •  感动是毒
    2020-12-14 01:25

    To fix the Gramarly you can add atribute data-gramm_editor="false" on the