Copied to clipboard

Flag this post as spam?

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


  • Mikkel Johansen 116 posts 292 karma points
    Sep 21, 2011 @ 09:50
    Mikkel Johansen
    0

    Anchor changes into img-tag

    Umbraco 4.7

    I am trying to insert an anchor in the tinyMCE editor. At first it looks okay, there is an anchor icon in the text.

    When I save the document the anchor is replaced with an img-tag <img src="/" alt="" />

    Do I miss any settings in a config-file?

    /Mikkel

  • Mikkel Johansen 116 posts 292 karma points
    Sep 21, 2011 @ 10:03
    Mikkel Johansen
    0

    A second search on Google lead me to this bug http://umbraco.codeplex.com/workitem/30147

    Seems that it is only a problem when the browser is based on WebKit

    Please go vote for this bug http://umbraco.codeplex.com/workitem/30147

  • Richard Barg 358 posts 532 karma points
    Feb 28, 2013 @ 20:00
    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. 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
    Feb 28, 2013 @ 20:03
    Richard Barg
    0

    Why is this thread marked as solved when the problems persists?

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

    As I posted on http://our.umbraco.org/forum/ourumb-dev-forum/bugs/25242-Anchor-not-working-in-TinyMCE?p=0#comment152216, there is a solution on this page:

    our.umbraco.org/.../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.

  • Richard Barg 358 posts 532 karma points
    Jun 13, 2013 @ 06:13
    Richard Barg
    0

    Thanks.  Btw how do you mark an issue solved. It's not intuitve.

Please Sign in or register to post replies

Write your reply to:

Draft