2009-06-11 21 views
4

tinyMCEの最新バージョンでは、私の埋め込みタグとjavascriptを削除しています。私は、幸運なことなく、verify_htmlフラグをfalseに設定しようとしました。ここにtinyMCEの設定jsがありますが、誰かが私が間違っていることを見ることができますか?tinyMCEを使用してHTMLタグを削除しました

更新:私はサーバー側の問題ではないと確信しています。私はtinymceがロードされていないプレーンテキストエリアを使用し、それは完全に働いた。それは剥奪しているtinyMCEです。

tinyMCE.init({ 
    // General options 
    mode: "textareas", 
    theme: "advanced", 
    plugins: 
safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell, 
insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality, 
fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,inlinepopups", 
    valid_elements: "*[*]", 
    verify_html : false, 


    // Theme options 
    theme_advanced_buttons1:  
    bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright, 
justifyfull,|,formatselect,fontselect,fontsizeselect|,ltr,rtl,|,fullscreen|,forecolor, 
backcolor,code", 
    theme_advanced_buttons2: 
    "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|, 
outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,advhr", 
    theme_advanced_buttons3: 
"tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media", 
    theme_advanced_toolbar_location: "top", 
    theme_advanced_toolbar_align: "left", 
    theme_advanced_statusbar_location: "bottom", 
    theme_advanced_resizing: true, 
    height: "500px", 

    // Example word content CSS (should be your site CSS) this one removes paragraph 
    // margins 
    content_css: "content/word.css", 

    // Drop lists for link/image/media/template dialogs 
    template_external_list_url: "lists/template_list.js", 
    external_link_list_url: "lists/link_list.js", 
    external_image_list_url: "lists/image_list.js", 
    media_external_list_url: "lists/media_list.js", 

    // Replace values for the template plugin 
    template_replace_values: { 
     username: "Some User", 
     staffid: "991234" 
    } 
}); 
+0

もう一度更新されました。 –

答えて

3

更新#2

いくつかのより多くの掘削を行った後、あなたは次のことをしようとするべきです。

セット:

media_strict: false 

そして<embed>タグの設定を設定します。

+'embed[width|height|name|flashvars|src|bgcolor|align|play|loop|quality|allowscriptaccess|type|pluginspage]' 

ソース(MoxieCode Forum


更新

あなたはextended_valid_elementsを設定しますが、valid_elementsを設定していない?

valid_elements: "*[*]" 

extended_valid_elementsは、現在のルールセットに使用されます。しかし、valid_elementsでは、実際にそのルールセットを作成することができます。


旧回答

は、あなたはそれがTinyMCEのは、それをやっていることを確認しており、何がサーバー側の要求を解析しているではありませんか?

ASP.NETを使用している場合は、ページにValidateRequest="False"が設定されていることを確認してください。あなたはASP.NET MVCを使用している場合は、コントローラのアクションの上、下記を配置する必要があります:

[ValidateInput(false)] 

は、しかし、あなたは少なくともwhitelist to keep bad stuff outを使用していることを確認してください。

関連する問題