0

我一直在为我的新闻页面设置 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"
});
4

0 回答 0