tinyMCE - always inserts nav node links at the top?

0 views
Skip to first unread message

Coach

unread,
Oct 17, 2006, 10:37:06 PM10/17/06
to farcry-dev
Hi ,

We are using Farcry 3.0.1 on a CF 7 box and have found that when you
are editting a dmHTML object in the body section, if on the site tree
nav (right nav) u right click a navigation node and select "insert",
the link to the node is put at the top of the tinyMCE WYSIWYG editor
rather than where the cursur last was in the WYSIWYG. Is this normal
behaviour?

Regards,
Coach

elAdi

unread,
Jan 7, 2007, 9:17:19 PM1/7/07
to farcr...@googlegroups.com

I'd like to recover this topic, as we're still having issues with this. The
reason why it is a problem that the link is inserted at the top of the
tinymce editor is that it creates some css class issues, which are rather
difficult to deal with for our contributors, who are not really html/css
literate.

Has anyone come across this problem and even found a solution - or at least
has an idea how we could solve this?

Thanks.
Adrian

--
View this message in context: http://www.nabble.com/tinyMCE---always-inserts-nav-node-links-at-the-top--tf2463718s621.html#a8211727
Sent from the FarCry - Dev mailing list archive at Nabble.com.

Jeff Coughlin

unread,
Jan 7, 2007, 9:32:21 PM1/7/07
to farcr...@googlegroups.com
elAdi

> Has anyone come across this problem and even found a solution

> or at least has an idea how we could solve this?

I've come across this problem. It only seems to affect IE. It appears to
be a javascript bug (which is my gray area). My only suggestion at this
point is to use a more web-standards compliant like Firefox until someone
steps up to fix the bug.

---
Jeff Coughlin
Web Application Developer
http://www.jeffcoughlin.com

elAdi

unread,
Jan 8, 2007, 1:28:02 AM1/8/07
to farcr...@googlegroups.com

Hi Jeff,

You're right on this one. I did some more research and got a few hints from
anther FC user who has this issue:

@@@
In /farcry_core/admin/includes/lib/tinymce/jscripts/tiny_mce/tiny_mce.js
there is a whole lot of browser sniffing going on. If your clients are
using IE7, you may be able to redefine "this.isMSIE" to get it to work since
any unknown version is served the IE 5 stuff.

The function "insertHTML( html )" is delivered inline from
/farcry_core/admin/edittabedit.cfm. It's the one that sends the commands to
the TinyMCE js functions on inserting HTML. You may be able to dial down
to the problem though the function calls in there.
@@@

We'll have a look at it. Maybe you want to do some debugging too. Would let
you know if we come up with a definite solution.

Adrian Wagner

--
View this message in context: http://www.nabble.com/tinyMCE---always-inserts-nav-node-links-at-the-top--tf2463718s621.html#a8213322

elAdi

unread,
Jan 9, 2007, 2:04:05 AM1/9/07
to farcr...@googlegroups.com

Just to keep you in the loop. We were actually using TinyMCE 2.0.6. and I had
a look at the 2.0.8 version of it. This version has been adapted to IE7
requirements (it's now sniffing for IE7 as well in the JS).

However, it still loses the position when a link is inserted from the FarCry
tree.

....and going back to it....

Adrian
--
View this message in context: http://www.nabble.com/tinyMCE---always-inserts-nav-node-links-at-the-top--tf2463718s621.html#a8232937

Jeff Coughlin

unread,
Jan 9, 2007, 10:22:47 AM1/9/07
to farcr...@googlegroups.com
Adrian,

> Just to keep you in the loop. We were actually using TinyMCE 2.0.6.
> and I had a look at the 2.0.8 version of it. This version has been
> adapted to IE7 requirements (it's now sniffing for IE7 as well in
> the JS).

Yup. It has nothing to do directly with the editor. It is strictly a bug
in FarCry when using the IE browser (version 6 or 7). If you try another
browser like FCKEditor the bug is still there.

I actually tested this a couple weeks ago in FarCry 4 Beta where I updated
TinyMCE from 2.01 to 2.08 (FarCry 3 uses TinyMCE v2.01).

In the end I upgraded TinyMCE to 2.07 in FarCry 4 Beta. I did the update
specifically to get access to a new feature introduced in v2.06 where you
could customize the dropdown list of block types (h1-h6, blockquote, etc).
Technically you could do it in v2.01 but you only had access to a few
selections.

So why didn't I update TinyMCE to 2.08 in FarCry 4 Beta? Unfortunately I
was finding more bugs in v2.08 than in 2.07. One in particular that was
really bothering me was the use of blockquote. When used it would replace
the opening part of the tag with a remark tag. So instead of <blockquote>
you had <!-- blockquote>.

There are still many things about TinyMCE that really bother me... like
while using non-IE browsers you can't apply classes to images. Use IE and
it works fine (grr... and no, version 2.08 does not fix that bug either).
Still, FCKEditor's bugs bother me more, so I'm personally sticking with
TinyMCE.

I'm just waiting for the day that someone releases a free full-featured Flex
wysiwyg editor with a flexible API (so we can "Insert" things like HTML
links) so that all of these javascript erros, browser support, and every
other problem we're having goes away. Any takers? (If you develop one
you'll be my hero :) )

Reply all
Reply to author
Forward
0 new messages