mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-18 12:11:11 +00:00
Merge pull request #3415 from jjanssen/fix/1511
Fixes hallotoolbar misplacement within StreamField StructBlock
This commit is contained in:
commit
49d804d831
1 changed files with 2 additions and 1 deletions
|
|
@ -27,10 +27,11 @@ function makeHalloRichTextEditable(id) {
|
|||
}
|
||||
|
||||
var closestObj = input.closest('.object');
|
||||
var isRoot = input.closest('.struct-block').length == 0;
|
||||
|
||||
richText.hallo({
|
||||
toolbar: 'halloToolbarFixed',
|
||||
toolbarCssClass: (closestObj.hasClass('full')) ? 'full' : (closestObj.hasClass('stream-field')) ? 'stream-field' : '',
|
||||
toolbarCssClass: (closestObj.hasClass('full')) ? 'full' : (closestObj.hasClass('stream-field') && isRoot) ? 'stream-field' : '',
|
||||
plugins: halloPlugins
|
||||
}).bind('hallomodified', function(event, data) {
|
||||
input.val(data.content);
|
||||
|
|
|
|||
Loading…
Reference in a new issue