GithubHelp home page GithubHelp logo

Comments (8)

spohlenz avatar spohlenz commented on June 3, 2024

Apologies, the latest gem hadn't been pushed yet. Please run bundle update tinymce-rails and you should be updated to tinymce-rails 3.4.9, which has those helpers.

from tinymce-rails.

archonic avatar archonic commented on June 3, 2024

Sorry to dredge a closed issue but I'm also having trouble installing. I've got tinymce-rails 3.5.8 on rails 3.1.3 (what a nightmare upgrade!). I've run bundle exec rake assets:precompile on my environment and it completed but //= require tinymce-jquery isn't including any tinymce js and I'm getting the undefined error.

Update: I added <%= tinymce_assets %> on tinymce specific pages. Now the assets are loaded it's still saying tinymce is undefined.

from tinymce-rails.

spohlenz avatar spohlenz commented on June 3, 2024

@archonic a couple things to check:

  • make sure you have either //= require tinymce-jquery or <%= tinymce_assets %> and not both.
  • make sure the call to the tinymce helper comes after tinymce_assets
  • check your browser console for any errors, and if the tinyMCE variable is defined.

from tinymce-rails.

eamers avatar eamers commented on June 3, 2024

I'm having this same issue, everything works great in development but in production it can't find the tinymce helper (i've triple checked everything you outlined above).

from tinymce-rails.

spohlenz avatar spohlenz commented on June 3, 2024

@eamers Any chance you could upload a quick app to GitHub which has the issue?

from tinymce-rails.

spohlenz avatar spohlenz commented on June 3, 2024

@eamers Like the jquery-rails gem, tinymce-rails also needs to be in the top-level of your Gemfile. Looks like you have it in the assets group which isn't loaded by default in production.

from tinymce-rails.

saravananNV avatar saravananNV commented on June 3, 2024

undefined local variable or method `tinymce_assets'..can anyone help me.....while running

from tinymce-rails.

spohlenz avatar spohlenz commented on June 3, 2024

@saravananNV From the sounds of this, and your other comment in #3, it sounds like you may have tinymce-rails in the :assets group in your Gemfile. If you take it out of this group, this should fix both issues.

from tinymce-rails.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.