Questions tagged [tinymce-rails]

The tinymce-rails gem integrates the TinyMCE editor with the Rails asset pipeline.

This gem is compatible with Rails 3.1.1 and higher (including Rails 4).

Support for TinyMCE 4 is currently available in the tinymce-4 branch. For the time being, parallel versions of TinyMCE (3.5.x and 4.x) will be maintained. However TinyMCE 4 will eventually be promoted to the master branch.

32 questions
42
votes
13 answers

TinyMCE 4 links plugin modal in not editable

I am using tinyMCE4 editor inside a Boostrap modal dialog. when I clicked on link icon it opens a new modal dialog box, It displayed fine but the input areas are not editable.
3
votes
1 answer

Why I get undefined method each_key?

When I try to deploy my app, I get this error: rake aborted! NoMethodError: undefined method each_key' for false:FalseClass…
simo
  • 23,342
  • 38
  • 121
  • 218
2
votes
2 answers

How to add tinymce-rails gem in activeadmin?

I am using active admin gem in my Rails application.In that, I have a resources article and user and I need to use TinyMCE-rails in the article. It is possible to add if possible how?
Ajith Kumar
  • 169
  • 2
  • 16
2
votes
0 answers

Rails 4 - Tinymce Amazon S3 - images in post not loading

I have some images embedded in a post(which is a textarea with tinymce editor). These images are successfully uploaded to Amazon S3 through Paperclip. I can see that the post shows the image outline embedded in the text but I'm unable to display it…
Means
  • 322
  • 2
  • 4
  • 16
2
votes
1 answer

Initializing tinymce-rails-image-upload using tinymce-rails

I'm trying to set up image uploading using the tinymce-image-upload gem and the tinymce-rails gem. I'm having trouble with one of the steps in the tinymce-image-upload setup: Set up TinyMCE as you would normally, but in the call to .tinymce(),…
user2759575
  • 553
  • 3
  • 25
2
votes
1 answer

How to add custom menu opton in Tinymce in Rails

I am using tinymce-rails gem for Tinymce and I want to add custom menu option. Right now I am doing what is suggested in the readme of gem like: <%= f.input :content , :label => false , :placeholder => 'Content', input_html: {class: "tinymce"}…
Manoj Sehrawat
  • 1,283
  • 1
  • 10
  • 25
2
votes
2 answers

Rails - After setting up TinyMCE rails gem, text-area box re-size issue

My goal is to set up User Interface Text Editor above a text area. I drew inspiration from Stack Overflow, who also utilizes this technique. I just installed the TinyMCE gem for Rails. In compliance with TinyMCE documentation, I created a…
Johnson
  • 1,679
  • 1
  • 14
  • 21
2
votes
1 answer

customize tinymce in rails

My tinymce is working fine with rails 4 but where do i customize the text_area. I have added following block of code in config/tinymce.yml theme_advanced_toolbar_location: top theme_advanced_toolbar_align: left theme_advanced_statusbar_location:…
Prabhakaran
  • 3,900
  • 15
  • 46
  • 113
2
votes
1 answer

Trying to get codehighlighting-for-TinyMCE working with tinymce-rails

I'm using the tinymce-rails in my Ruby on Rails application and I wanted to add syntax highlighting to TinyMCE then i found this plugin https://github.com/grena/codehighlighting-for-TinyMCE and added it to…
Mr_Nizzle
  • 6,644
  • 12
  • 55
  • 85
1
vote
1 answer

TinyMCE: Capybara::ElementNotFound: Unable to find visible frame "content_ifr"

In a Capybara feature spec, I am attempting to do the following: within_frame("element_content_content_ifr") do # do stuff end Where element_content_content_ifr is the CSS ID of my tinymce iframe. I get the error:…
1
vote
0 answers

TinyMCE is not working for mobile view in Google Chrome using "tinymce-rails" gem

I have added "gem 'tinymce-rails'" in my rails application I have added "//= require tinymce-jquery" in my application.js And in my js.erb file, I initialized it using tinyMCE.init({ selector: '#offer_description', menubar: false, branding:…
1
vote
1 answer

tinymce wordcount is not working on BACKSPCAE

word count function is working fine only when I am typing something in text area when I try to delete words with backspace word count is not working.
Jay_Pandya
  • 137
  • 9
1
vote
2 answers

Rails. TinyMCE ImageUpload is requesting GET instead of POST as in Development

I am working on rails using TinyMCE Imageupload. It works just fine in Development (funny enough it used to work also in Production). The problem is that on production it issues the wrong GET request: ActionController::RoutingError (No route…
1
vote
1 answer

TinyMCE loads only on refresh in ReactJS

I'm rendering my submit form via ReactJS using tinymce-rails gem for Rails app. Followed this tutorial to install tinymce: https://github.com/spohlenz/tinymce-rails Render code: render: function() {