+ \r
+ //toggle preview of editor\r
+ var display = true;\r
+ var txt = "[{% trans "hide preview" %}]";\r
+ $('#pre-collapse').text(txt);\r
+ $('#pre-collapse').bind('click', function(){\r
+ txt = display ? "[{% trans "show preview" %}]" : "[{% trans "hide preview" %}]";\r
+ display = !display;\r
+ $('#previewer').toggle();\r
+ $('#pre-collapse').text(txt);\r
+ });\r