ember-mobiledoc-editor icon indicating copy to clipboard operation
ember-mobiledoc-editor copied to clipboard

Disabling grammarly with ember-mobile-doc

Open nolman opened this issue 6 years ago • 1 comments

Mobile doc and grammarly do not play well together. I don't believe it is currently possible to use the suggested workaround in ember-mobiledoc-editor? Setting data-gramm="false" does nothing.

Maybe I am missing something? If not I can open a PR to fix this.

nolman avatar Sep 28 '18 04:09 nolman

I've fixed it by adding the following to the component I have that wraps ember-mobiledoc-editor

didRender() {                                                                                                                                                                                                                     
  let editorElement = this.element.querySelector('.mobiledoc-editor__editor');                                                                                                                                                    
  editorElement.setAttribute('data-gramm', false);                                                                                                                                                                                
}, 

chrisgame avatar Feb 04 '19 14:02 chrisgame