Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/266.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
tinymce不在php中工作?_Php_Javascript_Tinymce - Fatal编程技术网

tinymce不在php中工作?

tinymce不在php中工作?,php,javascript,tinymce,Php,Javascript,Tinymce,我是tinymce编辑的新手。根据该网站,他们的安装是非常容易的,它的工作以及。但是在php中接收时。它得到不完整的代码 这是html代码: <script type="text/javascript" src="http://localhost/tiny_mce/jquery.tinymce.js"></script> <script type="text/javascript"> $().ready(function() { $('textare

我是tinymce编辑的新手。根据该网站,他们的安装是非常容易的,它的工作以及。但是在php中接收时。它得到不完整的代码

这是html代码:

<script type="text/javascript" src="http://localhost/tiny_mce/jquery.tinymce.js"></script>

<script type="text/javascript">
$().ready(function() {
    $('textarea').tinymce({
        // Location of TinyMCE script
        script_url : 'http://localhost/tiny_mce/tiny_mce.js',

        // General options
        theme : "advanced",
        plugins : "autolink,lists,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",

        // Theme options
        theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,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,|,insertdate,inserttime,preview,|,forecolor,backcolor",
        theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
        theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        theme_advanced_statusbar_location : "bottom",
        theme_advanced_resizing : true,

        // Example content CSS (should be your site CSS)
        content_css : "css/content.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"
        }
    });
   });
</script>
在编辑器中,它看起来很好,但在php中显示时,只需输入以下完整代码

 <p><span  xx-large; font-family: impact,chicago; color: #99cc00;">I am testing it</span></p>

显示TinyMCE编辑器的跨度的style=“font size:部分在哪里?它看起来好像被某种方式切断了

您的HTML:

<p><span  xx-large; font-family: impact,chicago; color: #99cc00;">I am testing it</span></p>

这就是你在输出前对
f_page_body
POST值所做的一切吗?我认为眼前的问题是显而易见的,但我认为除非你做的更多,否则这是一个TinyMCE问题,而不是PHP。在这种情况下,它要么是最初发送给TinyMCE的内容(可能会被破坏,但我们没有要审查的内容),或者最有可能的情况是,TinyMCE在将标记发送到帖子之前正在咀嚼标记。请尝试在其他地方使用新代码设置测试页面,看看通过简单的设置,它是否有效,然后添加每个自定义/高级附加技术,直到您发现问题,或者它有效,您可以将其转移到您现在拥有的原始位置。我强烈建议e所有tinymce用户不要使用jquery tinymce版本,因为它是键盘输入处理的麻烦和缓慢的来源。
 <p><span  xx-large; font-family: impact,chicago; color: #99cc00;">I am testing it</span></p>
<p><span  xx-large; font-family: impact,chicago; color: #99cc00;">I am testing it</span></p>
<p><span style="font-size: xx-large; font-family: impact,chicago; color: #99cc00;">I am testing it</span></p>