Closed sk-ys closed 9 months ago
jsToolbar is not showing after updating issue with action cable.
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
Thank you.
jsToolbar is not showing after updating issue with action cable.
jsToolbar is initialized in JavaScript in the original Redmine as follows.
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