-
Notifications
You must be signed in to change notification settings - Fork 10
Plugin: Entities
Afraithe edited this page Sep 13, 2010
·
2 revisions
This plugin replaces numeric entity encoding with named ones so custom characters like “å” will be encoded as “å”.
Option: entity_list
This option enables you to specify a list of entities to be replaced. The first item is the numeric value, the second item is the named entity to represent it.
Example:
<textarea id="content1" name="content1"></textarea>
<script type="text/javascript" src="punymce/puny_mce.js"></script>
<script type="text/javascript" src="punymce/plugins/entities.js"></script>
<script type="text/javascript">
var editor1 = new punymce.Editor({
id : 'content1',
plugins : 'Entities',
entity_list : '160,nbsp,161,iexcl'
});
</script>