gpt4 book ai didi

javascript - 在 TinyMCE 中禁用 Javascript

转载 作者:行者123 更新时间:2023-12-02 07:47:10 25 4
gpt4 key购买 nike

是否有任何插件/方法可以禁用 tinymce 中的 java 脚本?我不希望人们允许标签或任何内联 java 脚本。

最佳答案

查看 valid_elements选项:

The valid_elements option defines which elements will remain in the edited text when the editor saves. You can use this to limit the returned HTML to a subset.

This option contains a comma separated list of element conversion chunks. Each chunk contains information about how one element and its attributes should be treated. The default rule set for this option is specified below.

关于javascript - 在 TinyMCE 中禁用 Javascript,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6204870/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com