Asp.net TinyMCE编辑器未显示在线Windows Server,但可在localhost上运行

问题描述:

TinyMCE编辑器在发布后未显示。虽然,它可以在本地主机上工作。我看到的是:

TinyMCE editor is not showing up after publishing. Though, it works on localhost. Here's what I see:

您需要在初始化tinyMCE之前提供 baseURL 。您可以在 tinymce.init({...})之前执行此操作。通常,没有此命令,它就可以在localhost上运行,但是在服务器上,它无法找到tinymce根目录。

You need to provide baseURL to tinyMCE before initialising it. You can do that right before tinymce.init({...}). Often, it works on localhost without this but on server it is not able to find the tinymce root directory.

根据 TinyMCE文档

属性: baseURL ,键入: String ,描述:TinyMCE根目录所在的基本URL。

"property: baseURL, type: String, Description: Base URL where the root directory of TinyMCE is located."

示例:

tinyMCE.baseURL = "PATH/TO/tinymce/directory/";

tinyMCE.init({
    theme : "simple",
    ...
});