template editor error on insert umbraco page field Options
jason
Posted: Tuesday, August 28, 2007 9:33:36 PM
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
sfxpete
Posted: Sunday, October 21, 2007 11:43:25 PM
Rank: Devotee

Joined: 9/5/2007
Posts: 70
I have the same issue but only after using 3.03, anyone?
sfxpete
Posted: Sunday, October 21, 2007 11:57:35 PM
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.

jason
Posted: Monday, October 22, 2007 9:48:51 PM
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
tednyberg
Posted: Saturday, March 08, 2008 3:11:33 PM
Rank: Newbie

Joined: 9/5/2007
Posts: 6
Me too... It's really weird.
karlo
Posted: Thursday, April 10, 2008 1:44:05 PM
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') {

Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.