{"id":492,"date":"2011-07-29T16:31:22","date_gmt":"2011-07-30T02:31:22","guid":{"rendered":"http:\/\/mymonkeydo.com\/?p=492"},"modified":"2020-05-03T16:29:07","modified_gmt":"2020-05-04T02:29:07","slug":"tinymce-add-custom-characters","status":"publish","type":"post","link":"https:\/\/mymonkeydo.com\/tinymce-add-custom-characters\/","title":{"rendered":"TinyMCE add Custom Characters"},"content":{"rendered":"
The Hawaiian language has the kahako but tinymce does not have these in their charmap.<\/p>\n
<\/p>\n
To add more characters to the custom character map in tinymce, find the file:<\/p>\n
themes\/advanced\/js\/charmap.js<\/p>\n
If you are using wordpress that directory is located in wp-includes\/js\/tinymce\/<\/p>\n
Open that file and you’ll see a list of characters in the charmap. \u00a0The first parameter is the html code, the second is the unicode character, the third is whether to display or not, the fourth is a description. \u00a0 The easiest way to do this is to first know how many characters you are adding. \u00a0Then comment out that many lines which are displayed (have “true” as the third parameter). \u00a0Then add you characters. \u00a0Below are the characters I added for Hawaiian.<\/p>\n
<\/p>\n
\t['Ā', 'Ā', true,'A kahako'],\n\t['Ē', 'Ē', true,'E kahako'],\n\t['Ī', 'Ī', true,'I kahako'],\n\t['Ō', 'Ō', true,'O kahako'],\n\t['Ū', 'Ū', true,'U kahako'],\n\n\t['ā', 'ā', true,'a kahako'],\n\t['ē', 'ē', true,'e kahako'],\n\t['ī', 'ī', true,'i kahako'],\n\t['ō', 'ō', true,'o kahako'],\n\t['ū', 'ū', true,'u kahako'],<\/pre>\n<\/p>\n
<\/p>\n
For a full explanation to add characters or if you don’t want to comment out existing characters, visit: \u00a0http:\/\/www.patrickgmj.net\/node\/66<\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[2],"tags":[16,62,64],"yoast_head":"\n
TinyMCE add Custom Characters - My Monkey Do<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n\t\n\t\n