This project is archived and is in readonly mode.

#702 ✓invalid
Dr.Death

document.id() conflict with TinyMCE

Reported by Dr.Death | July 5th, 2009 @ 09:07 AM | in 2.0 (closed)

subj

Comments and changes to this ticket

  • Oskar Krawczyk

    Oskar Krawczyk July 8th, 2009 @ 04:59 PM

    • Tag set to 1.2.3, document.id, tinymce
    • Assigned user set to “Aaron Newton”

    I can confirm that.

    Was just about to re-factor the company's CMS to 1.2.3 when I got an error:

    document.id is not a function [Break on this error] return document.id(el, nc, this.document);\n

    Need to go back to 1.2.2, until this gets resolved.

  • Dr.Death

    Dr.Death July 8th, 2009 @ 05:08 PM

    i delete 1.2.2 and don't now where find it in one file with YUI Compressor like in moo download page :D

  • Krzyko

    Krzyko July 8th, 2009 @ 07:01 PM

    Is seems like TinyMCE is overwriting document.id() dollar-safe function defined in mootools. As a workaround I've changed mootools 'id' function name (search for 'id:' string) with 'moo' function name and then replaced all 'document.id' occurrences in core and more with a 'document.moo' string. The latter should apply also for all newly released plugins which make use of mootools document.id() dollar-safe function.

  • Dr.Death

    Dr.Death July 9th, 2009 @ 05:31 AM

    i don't understand why it named simple document.id :( in dojo it's dogo.id why in mootools it's not moo.id or something else unique?

  • Oskar Krawczyk

    Oskar Krawczyk July 9th, 2009 @ 10:51 AM

    I'm sure core devs have a good reason for doing that, plus Moo is not Dojo.

    @Krzyko, while your solution fixes the problem, it's not the most efficient one if you tend to keep your Moo up-to-date.

  • Valerio

    Valerio July 9th, 2009 @ 11:58 AM

    • State changed from “new” to “invalid”
    • Assigned user cleared.

    I wasn't able to replicate the issue, so I'm closing this as invalid. Please provide more info.

  • Oskar Krawczyk

    Oskar Krawczyk July 9th, 2009 @ 03:01 PM

    Solution:

    Update TinyMCE to the newest version. Here's a link to Moo 1.2.3 and newest TinyMCE working together:

    http://nouincolor.com/pub/mootools-tinymce/

    To whom it may concern: Old TinyMCE plugins seem to work fine with the 3.2 release.

  • Chris the Developer

    Chris the Developer July 9th, 2009 @ 03:43 PM

    I'm not seeing this error in Chrome 2 (XP SP3).

  • Dr.Death

    Dr.Death July 9th, 2009 @ 03:55 PM

    i don't see error in IE o_O but in ff error

  • Chris the Developer

    Chris the Developer July 9th, 2009 @ 06:07 PM

    I don't see the error on ff 3.0.11.

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket

Pages