Customize the Special Characters Map

In this topic you will learn how to replace the default characters displayed in the Special Characters Map within KTML with your own symbols.  The Special Characters Map can be accessed from the Insert toolbar, by clicking on the arrow next to the Copyright symbol. By default, the Special Characters Map should look like the following:

 

 

 

The steps you have to take in order to customize the entries in this map are:

  1. Open the includes/ktm/ktml4.config.xxx file in Dreamweaver or a text editor.

  2. Within the page code, locate the KTML4_GLOBALS array. If the array already has an empty entry named "colors"

  3. Inside the brackets, add the new color picker properties. The format for the module properties is:

    module_name { property_name : property_value }

     

  4. In this case, the property value will be an array of the characters you want to display. You can use either the UTF-8 character codes (ex: ă) or HTML entities (ex: ©) These will be enclosed in single quotes, and you can have a maximum of 216 entries. For example, to replace the default character map with only two special characters, the code is as follows:

    "module_props": {
    "character_picker" : {
          "chars" : [ '©', 'ă']
    }
    },
     

 

With this change, you have defined your own custom character map. All that remains is to save the page and load it in a browser.