зеркало из
https://github.com/rs-pro/activeadmin-quill_editor.git
synced 2026-09-04 02:35:51 +03:00
Fix data-options lookup when multiple editors exist.
Этот коммит содержится в:
@@ -20,7 +20,7 @@ window.onload = function() {
|
|||||||
for( var i = 0; i < editors.length; i++ ) {
|
for( var i = 0; i < editors.length; i++ ) {
|
||||||
var content = editors[i].querySelector( '.quill-editor-content' );
|
var content = editors[i].querySelector( '.quill-editor-content' );
|
||||||
if( content ) {
|
if( content ) {
|
||||||
var options = editors[0].getAttribute( 'data-options' ) ? JSON.parse( editors[0].getAttribute( 'data-options' ) ) : default_options;
|
var options = editors[i].getAttribute( 'data-options' ) ? JSON.parse( editors[i].getAttribute( 'data-options' ) ) : default_options;
|
||||||
editors[i]['_quill-editor'] = new Quill( content, options );
|
editors[i]['_quill-editor'] = new Quill( content, options );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user