Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我刚刚开始使用 TinyMCE,并在论坛中四处寻找我的问题的答案,但我发现的只是一个过时的插件,可以解决我的问题。
回到这个问题,是否有可能以某种方式在 textarea 中键入 ie,然后在我从数据库中检索信息时让它调用该函数?
我考虑过制作某种类型的 BBCode ([php] callFunction(); [/php]) 来完成这项工作,我在正确的轨道上吗?
只是为了让自己清楚,请指出我正确的方向!
是的,如果你使用 [php] callFunction(); [/php] 你可以用它preg_match()来查找php代码,然后用exec()它来运行它。
preg_match()
exec()
确保您有很好的安全性并验证谁已登录以及他们正在尝试运行哪些功能。