-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <title>{$lang_theme_code_title}</title>
- <script language="javascript" type="text/javascript" src="../../tiny_mce_popup.js"></script>
- <script language="javascript" type="text/javascript" src="jscripts/source_editor.js"></script>
-</head>
-<body onload="onLoadInit();" onresize="resizeInputs();" style="display: none">
- <form name="source" onsubmit="saveContent();" action="#">
- <div style="float: left" class="title">{$lang_theme_code_title}</div>
-
- <div style="float: right">
- <script language="javascript" type="text/javascript">renderWordWrap();</script>
- </div>
-
- <textarea name="htmlSource" id="htmlSource" rows="15" cols="100" style="width: 100%; height: 100%; font-family: 'Courier New',Courier,mono; font-size: 12px;" dir="ltr" wrap="soft"></textarea>
-
- <div class="mceActionPanel">
- <div style="float: left">
- <input type="button" name="insert" value="{$lang_update}" onclick="saveContent();" id="insert" />
- </div>
-
- <div style="float: right">
- <input type="button" name="cancel" value="{$lang_cancel}" onclick="tinyMCEPopup.close();" id="cancel" />
- </div>
- </div>
- </form>
-</body>
-</html>
+<html xmlns="http://www.w3.org/1999/xhtml">\r
+<head>\r
+ <title>{#advanced_dlg.code_title}</title>\r
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>\r
+ <script type="text/javascript" src="js/source_editor.js"></script>\r
+</head>\r
+<body onresize="resizeInputs();" style="display:none; overflow:hidden;">\r
+ <form name="source" onsubmit="saveContent();return false;" action="#">\r
+ <div style="float: left" class="title"><label for="htmlSource">{#advanced_dlg.code_title}</label></div>\r
+\r
+ <div id="wrapline" style="float: right">\r
+ <input type="checkbox" name="wraped" id="wraped" onclick="toggleWordWrap(this);" class="wordWrapCode" /><label for="wraped">{#advanced_dlg.code_wordwrap}</label>\r
+ </div>\r
+\r
+ <br style="clear: both" />\r
+\r
+ <textarea name="htmlSource" id="htmlSource" rows="15" cols="100" style="width: 100%; height: 100%; font-family: 'Courier New',Courier,monospace; font-size: 12px;" dir="ltr" wrap="off" class="mceFocus"></textarea>\r
+\r
+ <div class="mceActionPanel">\r
+ <input type="submit" role="button" name="insert" value="{#update}" id="insert" />\r
+ <input type="button" role="button" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" id="cancel" />\r
+ </div>\r
+ </form>\r
+</body>\r
+</html>\r