Copied to clipboard

Flag this post as spam?

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


  • Tom 713 posts 954 karma points
    Oct 25, 2011 @ 01:37
    Tom
    0

    Anchor not working in TinyMCE

    When you insert an anchor it adds an image of a little anchor.. when you hit save and publish it saves the blank image tag as source instead of turning the highlighted text in to an anchor..

  • Rasmus Fjord 675 posts 1566 karma points c-trib
    Mar 09, 2012 @ 12:50
    Rasmus Fjord
    0

    Did you find a solution ?

  • karen 186 posts 461 karma points
    Jan 04, 2013 @ 00:38
    karen
    0

    yes having the same issue - any solution?

  • Richard Barg 358 posts 532 karma points
    Feb 28, 2013 @ 20:02
    Richard Barg
    0

    This is fairly serious annoyance and confuses content edtiors using Google Chrome and other website browsers. Had this problem been addressed. Links to the workitems are broken:

    http://our.umbraco.org/forum/using/ui-questions/24203-Anchor-changes-into-img-tag

    That may be a bug w/the new forum hosting or not.

    Question:  has the bug when inserting anchor links in Website browsers in TinyMCE in Umbraco been fixed?

  • Richard Barg 358 posts 532 karma points
    Jun 11, 2013 @ 08:26
    Richard Barg
    0

    30 months have passed since this issue was raised and its still broken as far as I know.

  • lucyconnuk 7 posts 28 karma points
    Jun 12, 2013 @ 12:18
    lucyconnuk
    0

    There is a solution on this page:

    http://our.umbraco.org/forum/using/ui-questions/15240-TinyMCE-Creates-Invalid-Anchor-Tags

    Chris Dunsing suggests (September 27, 2011 @ 08:59) that you comment out the following lines (28 through 30 for me) in /umbraco_client/tinymce3/themes/umbraco/js/anchor.js:

    /*if (tinymce.isWebKit)
    ed.execCommand('mceInsertContent', 0, ed.dom.createHTML('img', { mce_name: 'a', name: document.forms[0].anchorName.value, 'class': 'mceItemAnchor' })); 
    else*/
    ed.execCommand('mceInsertContent', 0, ed.dom.createHTML('a', {name : document.forms[0].anchorName.value, 'class' : 'mceItemAnchor'}, ''));

    This is the code that, if you are using a webkit browser such as Chrome to edit your page, inserts a blank <img> tag as an anchor, instead of an <a> tag.

    This seems to be working fine for me, with no ill effects.

Please Sign in or register to post replies

Write your reply to:

Draft