Closed ryanple closed 10 years ago
Do you notice any 404s (either in the browser console or server logs) relating to the TinyMCE scripts? Can you paste the relevant portions of code to do with TinyMCE integration?
Don't see any 404's, only problem in browser console is the Uncaught errors aforementioned.
I should note, I'm not the one who did the integration.. was someone else on our team, I was just asked to look into the issue. :)
gem 'tinymce-rails'
/config/tinymce.yml>>>
default:
browser_spellcheck : true
content_css : "/assets/application.css"
image_advtab : true
importcss_append: true
paste_data_images : true
relative_urls : true
selector : "textarea"
theme : "modern"
templates : [
{title : 'Test template 1', content : 'Now is the time for all good men to come to the aid of their country. '},
{title : 'Test template 2', content : "
app/assets/javascripts/application.js >>> //= require jquery //= require jquery_ujs //= require jquery.ui.all //= require_tree ../../../vendor/assets/javascripts //= require_tree . //= stub "mercury" //= require tinymce-jquery <<<
and then we have our app/assets/javascripts/tinymce directory with a /plugins, /skins, license.txt, as well as tinymce.min.js
and then we have our app/assets/javascripts/tinymce directory with a /plugins, /skins, license.txt, as well as tinymce.min.js
This shouldn't be necessary. Apart from any custom plugins/skins, try removing these files and see if that helps.
Also, I assume you are using the tinymce
helper to initialize TinyMCE? Does this come after the application.js
script tag is included?
Hello,
Having a strange issue with tinymce-rails. I saw a similar issue after googling about two years ago, but don't think this relates.
tinymce loads fine in our development environment, but on Production, my console is showing the following. I believe it's causing some other problems with unrelated js as well. I'm still pretty novice at dev'ing in general, but know my way around the app..
Uncaught ReferenceError: tinymce is not defined.com/assets/application-7e0548dd4db60e690a29cbcfb5113240.js:27886
Uncaught TypeError: undefined is not a function .com/assets/application-7e0548dd4db60e690a29cbcfb5113240.js:26330
Any ideas or suggestions? Thanks!