Copied to clipboard

Flag this post as spam?

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


  • John Hodgkinson 613 posts 355 karma points
    Nov 16, 2011 @ 16:28
    John Hodgkinson
    0

    absolute URLs are stripped out in anchored text (in editor)

    it look like if you have a URL set as a link within the same domain of the site the absolute path gets stripped out in the anchored text, i.e.

    <a href="http://www.mysite.com/about.aspx">http://www.mysite.com/about.aspx</a>;

    is saved as:

    <a href="http://www.mysite.com/about.aspx">/about.aspx</a>

    why is this happening or ideas on how to fix it? this is causing major problems. thx in advance!

     


     


     

  • Rich Green 2246 posts 4008 karma points
    Nov 16, 2011 @ 16:42
    Rich Green
    0

    Hey John,

    Are you liking to the current site? If so you can link to the node, and not the node name using the toolbar in the Rich Text Editor.

    Rich

  • John Hodgkinson 613 posts 355 karma points
    Nov 16, 2011 @ 16:51
    John Hodgkinson
    0

    Rich - yes I'm linking to the current site... how do I link to the node? I'm using the insert/edit link popup...

    also if I even include an unlinked absolute address as text, i.e. http://www.mysite.com/about.aspx - this gets edited to /about.aspx as text...

    seems like there must be a way to turn this off in TinyMCE or HTMLTidy or whatever is editing the content before it's saved...

     

     

  • Rich Green 2246 posts 4008 karma points
    Nov 16, 2011 @ 16:53
    Rich Green
    0

    From another post:

    "I must be missing something here, but if you highlight "Click here" and click the "Insert/edit link" button, then choose a page in your tree, it should create the correct link regardless. No need to manually construct the href.."

    Is that what you're doing?

    Rich

  • John Hodgkinson 613 posts 355 karma points
    Nov 16, 2011 @ 17:04
    John Hodgkinson
    0

    Rich - I'll show up with snapshots:

     



  • John Hodgkinson 613 posts 355 karma points
    Nov 17, 2011 @ 18:48
    John Hodgkinson
    0

    ok, I believe I found the problem... couple possible issues...

    umbracoEditor controls has some hardcoded TinyMCE properites that appear you cannot overwrite in the /tinyMCE/tinyMCE.cs class file per TinyMCE docs these properties set to true may cause problems... when you try to override these properties via the tinyMCE.config file in the custom config section (as a config entry, i.e. <config key="remove_script_host">false</config>), the properties get appended to the original setting in the above class, so it would render as "remove_script_host: true,false"...

    I also located some old logic Niels placed in the same class that removes the domain if it's the same as the CMS domain and commented this out...  

    I've made the following changes, recompiled the umbraco.editorControls.dll and the domains appear to be saving and publishing correctly now... 




  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies