Added proper support for font size and color
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / messageFormPreviewButton.tpl
1 <button id="previewButton" class="jsOnly" accesskey="p">{lang}wcf.global.button.preview{/lang}</button>
2
3 <script data-relocate="true">
4 //<![CDATA[
5 $(function() {
6 WCF.Language.addObject({
7 'wcf.global.preview': '{lang}wcf.global.preview{/lang}'
8 });
9
10 new WCF.Message.DefaultPreview({if MODULE_ATTACHMENT && $attachmentHandler !== null}'{@$attachmentObjectType}', '{@$attachmentObjectID}', '{$tmpHash|encodeJS}'{/if});
11 });
12 //]]>
13 </script>