MayamaTakeshi / redmine_rt

Redmine plugin for Real-Time notification of events
GNU General Public License v3.0
24 stars 4 forks source link

jsToolbar is not showing after updating issue with action cable #51

Closed sk-ys closed 9 months ago

sk-ys commented 9 months ago

jsToolbar is not showing after updating issue with action cable.

image

jsToolbar is initialized in JavaScript in the original Redmine as follows.

<script>
//<![CDATA[
var wikiToolbar = new jsToolBar(document.getElementById('issue_description')); wikiToolbar.setHelpLink('/help/en/wiki_syntax_common_mark.html'); wikiToolbar.setPreviewUrl('/preview/text'); wikiToolbar.draw();
//]]>
</script>

However, the innerHTML property cannot call scripts. Relevant part: https://github.com/MayamaTakeshi/redmine_rt/blob/ccdcd0bda736b1172e0f9802b5f290c118ba31cd/assets/javascripts/channels/issue_channel.js#L256-L258

MayamaTakeshi commented 9 months ago

Thank you.