Skip to content

Duplicated toolbar #148

@edvasqueza

Description

@edvasqueza

I'm using Rails 5 with turbolinks, when I load the page it loads perfect. If I navigate anywhere else and then press the back button in my browser, the toolbar gets multiplied, as shown in the picture.

image

If I repeat the action I will get 3 toolbars, and so on.
My code is:
$(document).on('turbolinks:load', function () { window['rangy'].initialized = false; $('#news').wysihtml5({locale: "es-ES"}); }

I have another editor, this one using simple form as shown in the docs, but the multiplication happens even if I comment out one or the other. I would appreciate some help.

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