4

这让我发疯了几个小时,我设法在我的本地开发机器上修复它,当然当我把它投入使用时它不起作用。

这是我在 Umbraco 设置中所做的:

在我添加的 Config/tinyMceConfig.Config 中:

<config key="relative_urls">false</config>

<config key="convert_urls">false</config>

<config key="remove_script_host">false</config>

我还修改了 insertLink.aspx 中的 Javascript 代码,将 localUrl 设置为空白,因为这使它可以在开发机器上运行。有谁知道如何在我的实时服务器上修复这个非常愚蠢的错误?

谢谢

4

1 回答 1

1

Unfortunately, you could not override "remove_script_host" because it is hardcoded in umbraco.editorControls.tinyMCE3.TinyMCE :

Line 250: config.Add("remove_script_host", "true");.

And when you add new value to config file - you will get "true,false" instead of "false", because of NameValueCollection used.

And as we know, when you add 2 items with same key to NameValueCollection, as result you will have concatenation of that two values, with comma separator.

So don't waste your time on finding out what's wrong with your "remove_script_host" configuration.

于 2013-02-21T13:06:53.190 回答