-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redactor Rails renders multiple forms #151
Comments
I have also experienced this issue. |
@jaymiejones86 Oh geesus, I spent 45 minutes trying to fix it earlier after following these steps for install, and got no where:
Again, the editor works and the view is fixed on refresh but it is still an error. Ended up tagging this as an Issue and wonder if there is a fix or a text editor that won't do this. |
@tbcooney we had similar issues, only 2 instances of the editor though and the 2 instances showed pretty much all the time. |
I would also note there was no issue back with |
@jaymiejones86 I just reverted to |
@tbcooney hmmm so odd. Ill need to find some spare time to look and maybe issue a PR, but hope someone else beats me to it. |
Had the same issue and messed around with how the JavaScript was initalizing the editor. It worked fine in development but when deployed it would render two editors in production. I'll look back on my commit notes and try to find the fix for you guys. |
Hi guys, I'm also having the same issue. It renders 2 instances of the editor, however even refreshing does not help. I already revised the initialization code but not luck. Anyone got any progress on this? |
@brunnogomes we found that you did not have to have initialisation code if you just want the defaults and are hooking into a class If you do some initialisation, make sure the class name is not |
This happened to me too... I realized that I added a class: "redactor" and initialized it in my javascript code. So if you're going to initialize it, use a different class. |
Thanks @jaymiejones86! |
No worries Brunno.
|
Thanks for this info. I was really confused what the issue was. So I just changed the class name from |
No worries @sankalpsingha |
Perhaps it's not exactly the right solution, but I have a quick fix in my fork. Gemfile: application.js application.css |
Link to the diff bigos@ac2cc62 |
Creating or updating a post renders multiple forms at first, but if you refresh the view the problem is fixed.
The text was updated successfully, but these errors were encountered: