@ -302,6 +302,9 @@ var socket,
var formattingBar = document.querySelector('.formatting-bar'),
postContentEl = document.getElementById('post_content');
jQuery('#post_window').slideToggle(0);
if(formattingBar) {
formattingBar.addEventListener('click', function(e) {
if (e.target.nodeName === 'I' || e.target.nodeName === 'SPAN') {
var cursorEnd = postContentEl.value.length,
@ -360,7 +363,8 @@ var socket,
}
}, false);
})
});