2

我正在尝试与 TinyMCE 合作,但我在来源方面遇到了严重问题。我需要的是获取此代码:

<audio controls="controls">
  <source src="file.mp3" />
  <source src="file.ogg" />
</audio>

但 TinyMCE 将其更改为

<audio controls="controls" width="300" height="32" preload="none" src="file.mp3" />
  <source src="file.ogg" />
</audio>

这使得 Firefox 中的代码中断。

我试图改变 TinyMCE 选项。实际上我正在使用以下内容:

tinyMCE.init({
  mode : "exact",
  theme : 'advanced',
  plugins : 'pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,advlist',
  media_strict: false,
  theme_advanced_toolbar_location : 'top',
  theme_advanced_toolbar_align : 'left',
  extended_valid_elements : 'script[language|type]',
  theme_advanced_resizing : true,
  content_css : './sites/default/css/styles.css',
  theme_advanced_statusbar_location : 'bottom',
  theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect,fontselect,fontsizeselect",
  theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,preview,|,forecolor,backcolor",
  theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,|,ltr,rtl,|,fullscreen,|,attribs",

  // ADDING THE FOLLOWING DID NOT CHANGE THE RESULT
  cleanup_on_startup: false,
  trim_span_elements: false,
  verify_html: false,
  cleanup: false,
  convert_urls: false
});
4

0 回答 0