Skip to content

Issue with Rails 5 Turbolinks #9

@DeadSuperHero

Description

@DeadSuperHero

I'm trying to use this gem with a project, and have found that it clashes with turbolinks in Rails 5. Here's a breakdown:

  1. Enabling the gem and the requisite javascript works, and I'm able to call up an instance of the editor on a form element. So far, so good!

  2. When turbolinks is enabled, I've found that the javascript for the editor doesn't load properly. It will always work on a secondary page refresh, but if you initially visit a new page, the editor stops working again.

  3. When turbolinks is disabled, md-editor works automatically.

Is there anything that can be done to get this working properly in Rails 5?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions