Asp.net TinyMCE编辑器未显示在线Windows Server,但可在localhost上运行 [英] Asp.net TinyMCE editor is not showing up online windows server but it works on localhost

查看:74
本文介绍了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",
    ...
});

这篇关于Asp.net TinyMCE编辑器未显示在线Windows Server,但可在localhost上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆