You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
disclosure: writing this setup by hand, but you'll get the picture
classBookhas_many:pagesaccepts_nested_attributes_for:pagesend# == Schema Information## Table name: books## id :integer not null, primary key# title :string
classPagebelongs_to:bookend# == Schema Information## Table name: books## id :integer not null, primary key# book_id :integer# text :text
When you cycle through the tabs, pre-existing data won't display until you actually click into the MDE. After a bit of investigation, seems like its been an issue with CodeMirror / SimpleMDE ... for ever.
The set up
disclosure: writing this setup by hand, but you'll get the picture
What's happening
When you cycle through the tabs, pre-existing data won't display until you actually click into the MDE. After a bit of investigation, seems like its been an issue with CodeMirror / SimpleMDE ... for ever.
Issues found,
sparksuite/simplemde-markdown-editor#443
sparksuite/simplemde-markdown-editor#596
Work around / Patch
What you need to do, is basically refresh CodeMirror. Here's my javascript snippet I've made as a custom integration.
app/views/rails_admin/main/_form_simple_mde.html.haml
The text was updated successfully, but these errors were encountered: