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