-
Notifications
You must be signed in to change notification settings - Fork 10
Plugin: Protect
Afraithe edited this page Sep 13, 2010
·
1 revision
This plugin enables you to protect custom data inside the editor for example some script or some placeholder.
Example:
<textarea id="content1" name="content1"></textarea>
<script type="text/javascript" src="punymce/puny_mce.js"></script>
<script type="text/javascript" src="punymce/protect.js"></script>
<script type="text/javascript">
var editor1 = new punymce.Editor({
id : 'content1',
plugins : 'Protect',
protect : {
list : [
/<(script|noscript|style)[\u0000-\uFFFF]*?<\/(script|noscript|style)>/g
]
}
});
</script>