diff --git a/assets/components/tinymce/tiny.js b/assets/components/tinymce/tiny.js index 5dbcc22..b0e6be7 100644 --- a/assets/components/tinymce/tiny.js +++ b/assets/components/tinymce/tiny.js @@ -92,8 +92,8 @@ var Tiny = { switch (type) { case "get_from_editor": case "insert_to_editor": - var regexp = /(\[\[[^\]]*)&([^\[]*\]\])/g; - value = value.replace(regexp,'$1&$2'); + var regexp = /&([^=`]*=`[^`]*`)/g; + value = value.replace(regexp,'&$1'); break; case "submit_content": //value.innerHTML = value.innerHTML.replace('&','&'); @@ -268,4 +268,4 @@ Ext.extend(Tiny.button.Image,Ext.Button,{ } }); Ext.reg('tiny-btn-image',Tiny.button.Image); -*/ \ No newline at end of file +*/