Skip to content
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

wysihtml5 is fired twice #99

Open
Waxolunist opened this issue Sep 29, 2014 · 1 comment
Open

wysihtml5 is fired twice #99

Waxolunist opened this issue Sep 29, 2014 · 1 comment

Comments

@Waxolunist
Copy link
Contributor

Issue by dkonayuki
Wednesday Sep 17, 2014 at 15:19 GMT
Originally opened as Waxolunist/bootstrap3-wysihtml5-bower#99


This issue is related to rails-turbolinks.
When I open my page the first time, wysihtml5 run fine. After clicking some links and press back button, wysihtml5 in the original page stops working. It looks like this: ( can't type anything inside the editor )

screen shot 2014-09-18 at 12 12 51 am

Btw, I'm using the v0.3.0. Here is my js file. ( I included all the downloaded js files manually. Didn't remember where I downloaded them though. )
//= require ./wysihtml5.js
//= require ./wysihtml5x-0.4.3-toolbar.js
//= require ./templates.js
//= require ./bootstrap3-wysihtml5.js
//= require ./bootstrap-wysihtml5.en-US.js
//= require ./commands.js

@Waxolunist
Copy link
Contributor Author

Comment by Waxolunist
Wednesday Sep 17, 2014 at 21:47 GMT


Hi, thx for the report. I am at the phone, so I will keep it short. First, I don't know anything about rails-turbolinks.
Second, is there any reason you can't upgrade to the latest release?
I think you are requiring wysihtml 2 times. Once the one without x, then the one with x and toolbar. Seems to be a pretty mess.
Get the latest and look into the examples folder if you are using amd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant