<div class="modal-body ptb0 plr0">
	{include file='_publisher.tpl' _quick_mode=true _modal_mode=true _handle="me" _node_can_monetize_content=$user->_data['can_monetize_content'] _node_monetization_enabled=$user->_data['user_monetization_enabled'] _node_monetization_plans=$user->_data['user_monetization_plans'] _privacy=true}
</div>

<script>
$(document).ready(function() {
	// initialize quill publisher
    quill_publisher();

    // run tagify
    tagify_ajax('.js_tagify-ajax');
	
    // remove the publisher if exists
    if ($('#publisher-wapper').length > 0) {
		var publisherContent = $('#publisher-wapper').html();
		$('#publisher-wapper').empty();
    }

	// trigger the publisher textarea
    $('.publisher textarea').trigger('click');

    // close the publisher modal
    var modal = $('.js_close-publisher-modal').closest('.modal');
      
	$('.js_close-publisher-modal').on('click', function(event) {
		modal.modal('hide');
    });

	modal.on('hidden.bs.modal', function() {
		if (publisherContent) {
			$('#publisher-wapper').html(publisherContent);
			$('body').removeClass('publisher-focus');
        }
	});
});
</script>