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?
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:
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.
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
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
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?
Why is this thread marked as solved when the problems persists?
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.
Thanks. Btw how do you mark an issue solved. It's not intuitve.
is working on a reply...