Umbraco TinyMCE - not showing absolute URLs in Insert/Update link

半腔热情 提交于 2019-12-04 03:47:45

问题


this has been driving me crazy for a few hours, I managed to fix it on my local development machine and of course when I put it to live it's not working.

Here is what I did in my Umbraco set up:

in the Config/tinyMceConfig.Config I added:

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

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

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

I also amended the Javascript code in insertLink.aspx to set localUrl to blank as this made it work on the dev machine. Does anyone know how to fix this really stupid bug on my live server?

Thanks


回答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.



来源:https://stackoverflow.com/questions/12353953/umbraco-tinymce-not-showing-absolute-urls-in-insert-update-link

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!