[FIX] web_editor: summernote: editor fail if at least 10 instance of summernote are create (wrong split to get sumernote instance id)
This commit is contained in:
@@ -48,7 +48,7 @@ define([
|
||||
if ($target.is('.note-editor, .note-air-editor')) {
|
||||
$editor = $target;
|
||||
} else {
|
||||
$editor = $('[data-note-id="' + list.last($target.attr('id')) + '"]');
|
||||
$editor = $('[data-note-id="' + list.last($target.attr('id').split('-')) + '"]');
|
||||
}
|
||||
|
||||
return dom.buildLayoutInfo($editor);
|
||||
|
||||
@@ -42,7 +42,7 @@ define([
|
||||
|
||||
// air mode
|
||||
if ($editor.hasClass('note-air-editor')) {
|
||||
var id = list.last($editor.attr('data-note-id'));
|
||||
var id = list.last($editor.attr('data-note-id').split('-'));
|
||||
makeFinder = function (sIdPrefix) {
|
||||
return function () { return $(sIdPrefix + id); };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user