diff options
Diffstat (limited to 'askbot/templates/ask.html')
-rw-r--r-- | askbot/templates/ask.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/askbot/templates/ask.html b/askbot/templates/ask.html index 030780f6..4a20d864 100644 --- a/askbot/templates/ask.html +++ b/askbot/templates/ask.html @@ -61,6 +61,14 @@ {% else %} var codeFriendlyMarkdown = false; {% endif %} + (function() { + var bodyTriggerLink = $('.question-body-trigger'); + if (bodyTriggerLink.length === 1) { + var foldedEditor = new FoldedEditor(); + foldedEditor.setExternalTrigger(bodyTriggerLink); + foldedEditor.decorate($('.folded-editor')); + } + })(); $().ready(function(){ //set current module button style $('#editor').TextAreaResizer(); |