зеркало из
https://github.com/rs-pro/activeadmin-quill_editor.git
synced 2026-09-07 12:05:51 +03:00
Fix editor loading with Turbolinks
Этот коммит содержится в:
@@ -85,11 +85,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// --- events ------------------------------------------------------------------
|
// --- events ------------------------------------------------------------------
|
||||||
$(document).ready(() => {
|
$(document).ready(initQuillEditors)
|
||||||
initQuillEditors()
|
$(document).on('has_many_add:after', '.has_many_container', initQuillEditors)
|
||||||
})
|
$(document).on('turbolinks:load', initQuillEditors)
|
||||||
|
|
||||||
$(document).on('has_many_add:after', '.has_many_container', () => {
|
|
||||||
initQuillEditors()
|
|
||||||
})
|
|
||||||
})()
|
})()
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user