yes. It's a plugin to be installed with a WYSIWYG editor...
I've found this solution. It may not be the best. but it works.
Code:
function parseMe() {
content = document.getElementById("introtext").value;
try {
model = content.substring(content.indexOf("<!-- model -->")+14,content.indexOf("<!-- /model -->")+15);
content = content.replace(content.substring(content.indexOf("<!-- model -->"),content.indexOf("<!-- /model -->")),"");
} catch (er) {
alert('ocorreu um erro ao capturar os dados do template');
return false;
}
document.getElementById("introtext").value = content;
}
Bookmarks