/g,"{loop$1}").replace(//g,"{/loop}"); newdata = newdata.replace(//g,"{if$1}").replace(//g,"{elseif$1}").replace(//g,"{else}").replace(//g,"{/if}"); event.editor.setData(newdata); } function editorWithOutStyles(editorID, heightVal, widthVal){ if(heightVal == undefined){ heightVal = 400; } if(!widthVal){ widthVal = 500; } $("#"+editorID).attr("showstyle", "no"); CKEDITOR.replace(editorID, { on : { instanceReady : editorReady }, height: heightVal, toolbar: "TigerCMS_Template", templates_files: [ '/tigercms/templatesforeditor' ], bodyId: 'content', width: widthVal }); } function editorWithStyles(editorID, heightVal, widthVal){ if(heightVal == undefined){ heightVal = 400; } if(!widthVal){ widthVal = 500; } $("#"+editorID).attr("showstyle", "yes"); CKEDITOR.replace(editorID, { on : { instanceReady : editorReady }, height: heightVal, toolbar: "TigerCMS_Template", templates_files: [ '/tigercms/templatesforeditor' ], contentsCss: '/theme/edgemo-shop/css/style.css', bodyId: 'content', width: widthVal }); } var currentLang = 'dk';