所见即所得编辑器和加载内容麻烦

发布于 2024-08-07 10:06:04 字数 336 浏览 2 评论 0原文

我有一个所见即所得的编辑器ckeditor。它有一个文本区域。好吧,一切正常,但直到我尝试加载已经有输入元素(文本区域)的内容。所以,我们有:

<textarea id="ckeditor">
   ... Loadable content ...
  <textarea id="some_other"></textarea>
</textarea>

如您所见,可加载文本区域正在关闭 ckeditor 区域,而另一个内容位于编辑器之外。有什么建议可以在我的 ckeditor 区域中创建另一个文本区域吗?

I have a wysiwyg editor ckeditor. It has a textarea. Okay, everything works fine, but until I'm trying to load content which already has inputs elements (textarea). So, we have:

<textarea id="ckeditor">
   ... Loadable content ...
  <textarea id="some_other"></textarea>
</textarea>

As you see loadable textarea is closing ckeditor-area, and another content is outside editor. Any suggestions to make another textarea in my ckeditor-area?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

旧瑾黎汐 2024-08-14 10:06:04

逃避它:

<textarea>...</textarea>...</textarea>

每种语言都有相应的函数,例如 PHP 中的 htmlspecialchars。

Escape it:

<textarea>...</textarea>...</textarea>

There are functions for that in every language, e.g. htmlspecialchars in PHP.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文