1

我正在尝试使用 TinyMCE 为我的 CMS 创建预览。单击预览链接 <a href="javascript:preview()">preview</a>时,功能预览正常启动:

function preview() {
    w = window.open("preview.php?text=" + encodeURIComponent(document.getElementsByName("content")[0].value), "Vorschau", "width=" + screen.width + ",height=" + screen.height);
    //...
}

textarea 定义为<textarea name="content" rows="30" cols="100">Some text form a database.</textarea>. 当我尝试打开已编辑文本的预览时,会加载数据库中的文本。

我做错了什么?

4

0 回答 0