freeze the editor when reconnecting

pull/1/head
Caleb James DeLisle 7 years ago
parent 854c1e94a4
commit a6b34491fc

@ -365,6 +365,13 @@ define([
if (href) { ifrWindow.open(bounceHref, '_blank'); }
};
framework.onEditableChange(function (unlocked) {
if (!framework.isReadOnly()) {
$(inner).attr('contenteditable', '' + Boolean(unlocked));
}
$(inner).css({ background: unlocked ? '#fff' : '#eee' });
});
framework.setMediaTagEmbedder(function ($mt) {
$mt.attr('contenteditable', 'false');
$mt.attr('tabindex', '1');

Loading…
Cancel
Save