Zippo9
Zippo9

Reputation: 706

Redactor Rails gem

I have walked through the Redactor rails gem several times but am having hard time having the editor appear on my page. I have initialized the editor with:

     <%= f.text_field :content, class: 'redactor form-control', :placeholder => "Place content Here!", id: "redactor"%>

What am I doing wrong here? I have given it a unique id and placed the redactor class so what else would be missing?

Upvotes: 0

Views: 952

Answers (1)

Niket
Niket

Reputation: 1115

You should initialise redactor. You will get detailed documentation here

For you below code will work

$('#redactor').redactor({ options });

Upvotes: 1

Related Questions