tinymce-在iframe窗口中加载预览

tinymce-在iframe窗口中加载预览,iframe,tinymce,Iframe,Tinymce,我一直在为我的新闻页面设置tinymce,并且我能够设计一个定制的预览页面。不过我希望能更进一步 如何将tinymce设置为在iframe而不是弹出窗口中加载预览窗口 我真的很想在同一个窗口中预览结果 TinyMCE配置: tinyMCE.init({ posttitle : "<?php echo $title;?>", // General options mode : "exact", elements: "message", the

我一直在为我的新闻页面设置tinymce,并且我能够设计一个定制的预览页面。不过我希望能更进一步

如何将tinymce设置为在iframe而不是弹出窗口中加载预览窗口

我真的很想在同一个窗口中预览结果

TinyMCE配置:

tinyMCE.init({

    posttitle : "<?php echo $title;?>",

    // General options
    mode : "exact",
    elements: "message",
    theme : "advanced",
    plugins : "pagebreak,style,advhr,advimage,advlink,preview,searchreplace,paste,visualchars,nonbreaking,xhtmlxtras,imagemanager",

    // Theme options
    theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,copy,paste|,search,replace,|,blockquote,|,undo,redo,|,link,unlink,image,cleanup,code,|,preview,|,advhr,visualchars,nonbreaking,visualblocks",
    theme_advanced_buttons2 : "",
    theme_advanced_buttons3 : "",
    theme_advanced_toolbar_location : "top",
    theme_advanced_toolbar_align : "left",
    theme_advanced_statusbar_location : "bottom",
    theme_advanced_resizing : false,
    content_css : "custom_tinymce.css?v=1",
    plugin_preview_pageurl : "preview_tinymce.html",
    plugin_preview_width : "540",
    plugin_preview_height : "400",
    width: "100%",
    height: "200"
});

为了回答您的问题,我需要一些您已经用来显示弹出窗口和完整tinymce配置的代码谢谢。为了显示弹出窗口,我刚刚定义了一个新的plugin\u preview\u pageurl配置选项。我已经在上面添加了我的完整配置。