如何在知识渊博的编辑器上停止扩展/附加语法等 [英] How to stop extensions/add ons like grammarly on contenteditable editors

查看:204
本文介绍了如何在知识渊博的编辑器上停止扩展/附加语法等的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在做出令人满意的编辑。想知道如何在编辑器页面上使用JavaScript停止扩展,如语法(如果启用),因为这些扩展在编辑器中插入自己的html。在保存数据的时候,这给我们带来了很多问题。

Checked Medium编辑器和extnesion / add-on在那里不起作用。这种问题的任何参考或解决方案?搜索了很多,但找不到解决方案。提前致谢

解决方案

要修复Gramarly,您可以添加属性 data-gramm_editor =false / code>放在< textarea> 元素上。


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 in the editor itself. It's giving us lot of problems while saving the data.

Checked Medium editor and extnesion/add-on doesn't work over there. Any reference or solution to this kind of problem? Searched a lot but couldn't find a solution for it. Thanks in advance

解决方案

To fix the Gramarly you can add atribute data-gramm_editor="false" on the <textarea> element.

这篇关于如何在知识渊博的编辑器上停止扩展/附加语法等的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆