Update PR with feedback

pull/3415/head
Janneke Janssen 2017-04-08 15:44:58 +02:00
rodzic 0f39001e46
commit b4beb864dd
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -27,11 +27,11 @@ function makeHalloRichTextEditable(id) {
}
var closestObj = input.closest('.object');
var isDeepNested = input.closest('.struct-block').length;
var isRoot = input.closest('.struct-block').length == 0;
richText.hallo({
toolbar: 'halloToolbarFixed',
toolbarCssClass: (closestObj.hasClass('full')) ? 'full' : (closestObj.hasClass('stream-field') && !isDeepNested) ? '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);