如何在ReactJ中禁用CKEditor 5上的副本或粘贴功能?

发布于 2025-01-29 07:49:05 字数 225 浏览 2 评论 0原文

我正在研究候选人可以回答问题的功能,但我不希望他们复制并将答案从其他地方粘贴到Ckeditor 5 我在我的React JS 项目中已集成了

我尝试使用文本字段Oncopy和Onpaste属性,但似乎不起作用。 我可以做任何 prop 配置我可以解决这个问题!

谢谢。

I'm working on a feature where candidates can answer the questions, but I don't want them to copy and paste the answers from somewhere else to the CKEditor 5 which I have integrated in my React Js project.

I tried using text field onCopy and onPaste attributes, but it seems to be not working.
Is there any prop or configuration I can do to resolve this issue!

Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文