Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kim Grandgagnage 63 posts 87 karma points
    Dec 13, 2010 @ 10:42
    Kim Grandgagnage
    1

    tinyMCE is not defined

    Hi,

    I'm using umbraco 4.5.2. When I go to the content section of Umbraco and view a page which uses a tinymce, I get a javascript error saying: "tinyMCE is not defined". The error occures on the tinyMCE.init line, which is situated in editContent.aspx.

    Any ideas?

    grts,

    Kim

     

     

  • Comment author was deleted

    Dec 14, 2010 @ 09:46

    Does this happen on all types of documents ? try creating a test one that only has a rte property, does it also happen then?

  • Kim Grandgagnage 63 posts 87 karma points
    Dec 14, 2010 @ 10:07
    Kim Grandgagnage
    0

    I tried this. The same problem occurs...

  • Comment author was deleted

    Dec 14, 2010 @ 10:13

    Double check file permissions , if they are all ok, try replacing the /umbraco and /umbraco_client dir with a fresh 4.5.2

  • Kim Grandgagnage 63 posts 87 karma points
    Dec 14, 2010 @ 10:30
    Kim Grandgagnage
    0

    Ok, checked the file permissions. They seemed to be ok. Replaced /umbraco and /umbraco_client, but the tinymce still won't show.

  • Bram Loquet 72 posts 102 karma points
    Dec 14, 2010 @ 10:31
    Bram Loquet
    0

    Nope,

    just replaced the /umbraco and /umbraco_client dir with a freshly downloaded 4.5.2 :(

  • Comment author was deleted

    Dec 14, 2010 @ 10:34

    Be sure to delete the client dependency stuff, /app_data/temp/ClientDependency

    Are you running the backend on a specific port (other then 80 ?) or in an other directory then /umbraco ?

  • Kim Grandgagnage 63 posts 87 karma points
    Dec 14, 2010 @ 10:49
    Kim Grandgagnage
    0

    I'm running the backend on port 80 and directory /umbraco. I also deleted the client depedency files in the temp folder of ClientDependency.

    Still no luck...:(

  • Comment author was deleted

    Dec 14, 2010 @ 10:56

    And when you inspect the page with firebug (or another tool) do you see any missing files (scripts) ?

  • Kim Grandgagnage 63 posts 87 karma points
    Dec 14, 2010 @ 11:09
    Kim Grandgagnage
    0

    None of the script files are missing. Using Firebug, I only get the error:

    "tinyMCE is not defined" on the line tinyMCE.init
  • Comment author was deleted

    Dec 14, 2010 @ 11:13

    Do you see a request to the

    /umbraco/plugins/tinymce3/tinymce3tinymceCompress.aspx?rnd=eafebeb1-6daf-438a-80fe-afc2c67821b1&module=gzipmodule&themes=umbraco&plugins=contextmenu,umbracomacro,noneditable,inlinepopups,table,advlink,media,paste,spellchecker,umbracoimg,umbracocss&languages=en

     

    file ? What does that return (does it look like the tinymce js)?

  • Comment author was deleted

    Dec 14, 2010 @ 11:14
  • Kim Grandgagnage 63 posts 87 karma points
    Dec 14, 2010 @ 11:22
    Kim Grandgagnage
    0

    When I request this, it returns an error:

    "Fout 330 (net::ERR_CONTENT_DECODING_FAILED): Onbekende fout"

  • Comment author was deleted

    Dec 14, 2010 @ 11:26

    Ok then that seems to be the cause, probable something you need to correct/setup on the server

  • Rik Helsen 670 posts 873 karma points
    Dec 14, 2010 @ 13:38
    Rik Helsen
    0

    there's no url rewiting in play that could cause problems?

  • Kim Grandgagnage 63 posts 87 karma points
    Dec 14, 2010 @ 14:13
    Kim Grandgagnage
    0

    Url rewriting is not used. When I switch to a different domain name on IIS, the following link:

    http://[YOURSITE]/umbraco/plugins/tinymce3/tinymce3tinymceCompress.aspx?rnd=eafebeb1-6daf-438a-80fe-afc2c67821b1&module=gzipmodule&themes=umbraco&plugins=contextmenu,umbracomacro,noneditable,inlinepopups,table,advlink,media,paste,spellchecker,umbracoimg,umbracocss&languages=en

    works, and returns:

    var tinyMCEPreInit = 

    , but the richtexteditors are still not visible.

  • Bram Loquet 72 posts 102 karma points
    Dec 14, 2010 @ 16:12
    Bram Loquet
    0

    Jihaaa, Kim found it.

    The viewstateMoverModule was causing this problem.
    When set to false all rich text editors work again.

      <!-- This moves the asp.net viewstate data to the end of the html document instead of having it in the beginning-->
      <viewstateMoverModule enable="false" />

     

  • Kim Grandgagnage 63 posts 87 karma points
    Dec 14, 2010 @ 16:19
    Kim Grandgagnage
    1

    An important remark is to remove the files in ClientDependency after changing the flag in viewstateMoverModule (in Umbracosettings.config) to false. Then restart IIS and the richtexteditors will work again!

  • Lennart Stoop 304 posts 842 karma points
    Dec 14, 2010 @ 16:44
    Lennart Stoop
    0

    I didn't even know that module existed.. Nice catch :-)

    I guess its enabled by default ?

  • Bram Loquet 72 posts 102 karma points
    Dec 14, 2010 @ 16:59
    Bram Loquet
    0

    No it's not enabled by default :-)

Please Sign in or register to post replies

Write your reply to:

Draft