зеркало из
https://github.com/rs-pro/activeadmin-quill_editor.git
synced 2026-09-03 10:16:18 +03:00
v0.2.4
Этот коммит содержится в:
@@ -1,12 +1,4 @@
|
||||
window.onload = function() {
|
||||
initQuillEditors();
|
||||
}
|
||||
|
||||
$(document).on('has_many_add:after', function() {
|
||||
initQuillEditors();
|
||||
});
|
||||
|
||||
var initQuillEditors = function() {
|
||||
function initQuillEditors() {
|
||||
var editors = document.querySelectorAll('.quill-editor');
|
||||
var default_options = {
|
||||
modules: {
|
||||
@@ -42,4 +34,12 @@ var initQuillEditors = function() {
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
$(document).ready( function() {
|
||||
initQuillEditors();
|
||||
});
|
||||
|
||||
$(document).on('has_many_add:after', function() {
|
||||
initQuillEditors();
|
||||
});
|
||||
|
||||
Ссылка в новой задаче
Block a user