Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Andreas Paulsson 9 posts 29 karma points
    Mar 07, 2010 @ 21:00
    Andreas Paulsson
    0

    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

  • jaygreasley 416 posts 403 karma points
    Mar 07, 2010 @ 21:12
    jaygreasley
    0

    Have you tried setting:

    relative_urls : false
    convert_urls : false

  • Andreas Paulsson 9 posts 29 karma points
    Mar 08, 2010 @ 08:39
    Andreas Paulsson
    0

    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.

  • jaygreasley 416 posts 403 karma points
    Mar 08, 2010 @ 14:52
    jaygreasley
    0

    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

  • Andreas Paulsson 9 posts 29 karma points
    Mar 09, 2010 @ 10:11
    Andreas Paulsson
    0

    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

  • jaygreasley 416 posts 403 karma points
    Mar 09, 2010 @ 10:24
    jaygreasley
    0

    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

  • Andreas Paulsson 9 posts 29 karma points
    Mar 23, 2010 @ 10:02
    Andreas Paulsson
    0

    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

  • Mario Allegro 17 posts 35 karma points
    May 26, 2010 @ 16:48
    Mario Allegro
    0

    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

  • Mario Allegro 17 posts 35 karma points
    Jun 08, 2010 @ 21:24
    Mario Allegro
    0

    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;
            }

  • dandrayne 1138 posts 2262 karma points
    Jun 08, 2010 @ 21:41
    dandrayne
    0

    You can also remove the http:// to preserve the full text (IIRC).  Users don't understand it & browsers don't need it anyhow.

Please Sign in or register to post replies

Write your reply to:

Draft