|
|
Rank: Aficionado
Joined: 7/19/2006 Posts: 182 Location: Pittsburgh, Pennsylvania, USA
|
On v3, when attempting to insert an umbraco page field using the editor, I get a javascript error indicating 'textareaEditorMode' is undefined. Has anyone else received this? Do I need to set an editor mode in v3?
Thanks!
Jason
|
|
Rank: Devotee
Joined: 9/5/2007 Posts: 70
|
I have the same issue but only after using 3.03, anyone?
|
|
Rank: Devotee
Joined: 9/5/2007 Posts: 70
|
Ok, I've a workaround. Can somebody else take this and make it a proper fix as I'm not really sure how to properly address things. Anyway, its caused by a previous bugfix that stopped tags from being inserted outside the editor, its like the focus has stopped working or something...
An now for the workaround, open up /umbraco/developer/js/xbf.js and find the text 'umbracoInsertField'.
Now replace that function with..
function umbracoInsertField(theObject, tagUrl, tagName, tagText, width, height,path,move) { var fieldName = parent.parent.openDialog("umbracoField", path + tagUrl + ".aspx?tagName=" + tagName + "&tagText=" + tagText + "&move=" + move + "&objectId=meh", width, height); }
i.e. Just removing the little fix that was put in thats causing the problem.
|
|
Rank: Aficionado
Joined: 7/19/2006 Posts: 182 Location: Pittsburgh, Pennsylvania, USA
|
It's weird...i have about 5 different umbraco instances and I only get this error on one of them.
Jason
|
|
Rank: Newbie
Joined: 9/5/2007 Posts: 6
|
Me too... It's really weird.
|
|
Rank: Newbie
Joined: 4/10/2008 Posts: 1
|
Open up /umbraco/js/xbf.js (path could be different) and find the function 'function umbracoInsertField(theObject, tagUrl, tagName, tagText, width, height,path,move)'.
In function replace
if ((textareaEditorMode == 'undefined') && document.selection.createRange().parentElement().tagName == 'DIV') {
with
if ((typeof textareaEditorMode == 'undefined') && document.selection.createRange().parentElement().tagName == 'DIV') {
|
|
|
Guest |