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

Closed
dkonayuki opened this issue Sep 17, 2014 · 2 comments
Closed

wysihtml5 is fired twice #99

dkonayuki opened this issue Sep 17, 2014 · 2 comments

Comments

@dkonayuki
Copy link

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
Owner

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.

@Waxolunist
Copy link
Owner

The development of bootstrap3-wysiwyg will be continued in a new repo: https://github.com/bootstrap-wysiwyg/bootstrap3-wysiwyg
@schnawel007 and @Waxolunist are bundling development forces for an even better editor.
This issue will be continued here: bootstrap-wysiwyg/bootstrap3-wysiwyg#99

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

2 participants