$(document).ready(function() { setTimeout(function () { var editor = XF.getEditorInContainer($(document)); if (!!editor) { editor.ed.events.on('focus', function() { $('.uix_fabBar').css('display', 'none'); }) editor.ed.events.on('blur', function() { $('.uix_fabBar').css('display', ''); }) } }, 100) })