wokenqingtian

Joined

10 Experience
0 Lessons Completed
0 Questions Solved

Activity

better write your updating here
https://gorails.com/forum/s...

simplemde = null

cleanupSimpleMDE = ->
if simplemde?
simplemde.toTextArea()
simplemde = null

$(window).on 'popstate', cleanupSimpleMDE
$(document).on 'turbolinks:before-visit', cleanupSimpleMDE

$(document).on "turbolinks:load", ->
simplemde = new SimpleMDE()

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2020 GoRails, LLC. All rights reserved.