TinyMCE 使用 Wysiwyg 模块剥离 Drupal 6 中的嵌入代码
我安装了 Drupal 6,并将 Wysiwyg 配置文件设置为使用 TinyMCE。该配置文件已打开媒体按钮。我已经定义了过滤的 HTML 输入格式以允许使用 、
<object width="100" height="100" data="http://youtu.be/wEWSHWp5vHM" type="application/x-shockwave-flash">
<param name="data" value="http://youtu.be/wEWSHWp5vHM" />
<param name="src" value="http://youtu.be/wEWSHWp5vHM" />
</object>
但是,当您预览或保存帖子时,视频不会呈现。
以下是允许的标签列表:
<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><form><input><br><p><div><span><img><h1><h2><h3><h4><h5><h6><table><tr><td><thead><th><tbody><iframe><embed><object><param>
有人知道我做错了什么吗?我发现最近的这篇文章似乎暗示您需要将 TinyMCE 设置为不使用 media_strict,但我不敢相信您必须添加自制模块才能使嵌入工作:http://drupal.org/node/368388#comment-5501684
I have a Drupal 6 installation with a Wysiwyg profile set up to use TinyMCE. The profile has the media button turned on. I have defined the Filtered HTML input format to allow the <embed>
, <object>
, and <param>
tags and made this the default format for all roles. When you use the media button (the thing that looks like a couple frames of film) and enter a url, code like the following is generated and visible in the source:
<object width="100" height="100" data="http://youtu.be/wEWSHWp5vHM" type="application/x-shockwave-flash">
<param name="data" value="http://youtu.be/wEWSHWp5vHM" />
<param name="src" value="http://youtu.be/wEWSHWp5vHM" />
</object>
However, when you preview or save the post, the video is not rendered.
Here is the list of allowed tags:
<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><form><input><br><p><div><span><img><h1><h2><h3><h4><h5><h6><table><tr><td><thead><th><tbody><iframe><embed><object><param>
Anybody have any idea what I'm doing wrong? I found this recent post that seems to imply that you need to set TinyMCE to not use media_strict, but I can't believe you have to add a homebrew module to get embedding to work: http://drupal.org/node/368388#comment-5501684
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您尝试使用“完整 HTML 过滤器”嵌入时会发生什么?您还可以为此内容类型创建一个全新的输入过滤器类型。
What happens when you try embedding using 'Full HTML Filter'? You might also create a whole new input filter type for this content type.