I just tried on a stock install and i can save the full URL just fine.
My config has only this in the custom section:
<!-- this area is for custom config settings that should be added during TinyMCE initialization --> <customConfig> <!-- <config key="myKey">mySetting</config>--> <config key="entity_encoding">raw</config> </customConfig>
Maybe try changing yours to be the same and see if that fixes it?
The fact that the site is only used by a few persons (and one of them is me) makes me wish that I could turn of all tinyMCE tidying completely. Since it seems to tidy away good HTML in some cases, I rather take the risk och bad HTML from me instead of bad HTML from tinyMCE. Is this possible at all?
Since I am trying to write a HTML code snippets that users can copy and use on their sites, I need full URLs.
Any ideas? My customer is questioning why umbraco was chosen when "it cannot even save text properly" and I am running out of arguments. Saying that "it should work" does not help.
Cannon enter full URL in text in tinyMCE.
Hello, all.
I am having a lot of trouble trying to accomplish someting simple:
I am trying to write an absolute address in text (bodyText, in a standard Textpage).
When i write
http://www.mysite.com/embedded.aspx
and save, tinyMCE is saving this as
/embedded.aspx
The text is also converted to a link :-( which I do not want either.
Since I am writing instructions for other people to integrate with our site I want to use absolute URL to avoid confusion.
I have tried all the tricks that I know of to disable tinyMCE tidying, but nothing works so far.
I am using umbraco 4.0.2.1.
Any ideas?
/Andreas
Have you tried setting:
Yes I have.
And also:
<TidyEditorContent>False</TidyEditorContent> in umbracoSettings.config
<config key="cleanup">false</config> in tidyMceConfig.config
and I have restarted the application by resaving web.config.
I just tried on a stock install and i can save the full URL just fine.
My config has only this in the custom section:
<!-- this area is for custom config settings that should be added during TinyMCE initialization -->
<customConfig>
<!-- <config key="myKey">mySetting</config>-->
<config key="entity_encoding">raw</config>
</customConfig>
Maybe try changing yours to be the same and see if that fixes it?
hth
I have tried that as well, but with no luck.
The fact that the site is only used by a few persons (and one of them is me) makes me wish that I could turn of all tinyMCE tidying completely. Since it seems to tidy away good HTML in some cases, I rather take the risk och bad HTML from me instead of bad HTML from tinyMCE. Is this possible at all?
I still want the editor but no tidying.
/Andreas
I think that turning off tidying is not recommended.
http://tinymce.moxiecode.com/punbb/viewtopic.php?id=6431
but you can certainly try it by setting:
cleanup : false,
hth
jay
OK, I see why I should not disable tidying completely, but the original problem is still not solved.
The problem is that i cannot write text (text, not a or img tag, but general text) that contains a URL that contains the hostname of the server.
http://www.mysite.co/apage.aspx
is saved as
/apage.aspx
Since I am trying to write a HTML code snippets that users can copy and use on their sites, I need full URLs.
Any ideas? My customer is questioning why umbraco was chosen when "it cannot even save text properly" and I am running out of arguments. Saying that "it should work" does not help.
/Andreas
i also found out that if an external link contains /media/ the whole url gets stripped of. http://externallink.com/var/images/media/teaser.jpg
This seems to me like a bug in handling urls.
mario
This is the methode which creates a problem with those image urls
I entered a workplex item:
http://umbraco.codeplex.com/workitem/27431
private static string StripSrc(string cleanTag, Hashtable ht)
{
string src = helper.FindAttribute(ht, "src");
// update orgSrc to remove umbraco reference
if (src.IndexOf("/media/") > -1)
src = src.Substring(src.IndexOf("/media/"), src.Length - src.IndexOf("/media/"));
cleanTag += " src=\"" + src + "\"";
return cleanTag;
}
You can also remove the http:// to preserve the full text (IIRC). Users don't understand it & browsers don't need it anyhow.
is working on a reply...