Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Grammarly in keditor #143

Closed
joelatfuel opened this issue Jan 8, 2019 · 6 comments
Closed

Disable Grammarly in keditor #143

joelatfuel opened this issue Jan 8, 2019 · 6 comments

Comments

@joelatfuel
Copy link

A client has had Grammarly enabled when editing content, then Grammarly has injected HTML in the page.

A possible fix would be to add data-gramm="false" to certain text areas.

@bradmac
Copy link
Contributor

bradmac commented Jan 8, 2019

can you give me a link to the documentation for that?

@bradmac
Copy link
Contributor

bradmac commented Jan 8, 2019

Is that something all users would want disable? i guess grammarly does something useful .. ?

@joelatfuel
Copy link
Author

There isn't any specific documentation on it, but there are many Stack Overflow and Github issues on it. Here's a Github issue.

@joelatfuel
Copy link
Author

Grammarly double checks all your spelling and grammar. It is a pain when it injects huge amounts of HTML (in some cases thousands of lines) to the page.

@ducdhm
Copy link
Contributor

ducdhm commented May 7, 2019

@joelatfuel I think you can add data-gramm=false in onRead event of KEditor and add it in anywhere you want.

@ducdhm ducdhm closed this as completed May 7, 2019
@ducdhm ducdhm added the Answered label May 7, 2019
@ducdhm
Copy link
Contributor

ducdhm commented May 7, 2019

FYI:

$(keditor).keditor({
    onReady: function () {
        $('[contenteditable]').attr('data-gramm', false);
    }
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants