function wikiplugin_font_info() { return array( 'name' => tra('FONT'), 'format' => 'wiki', 'documentation' => 'PluginFont', 'description' => tra('Experimental: Font family and font size.'), 'prefs' => array('wikiplugin_font'), 'params' => array(), 'body' => tra('Content'), 'tags' => array( 'experimental' ), 'params' => array( 'family' => array( 'required' => false, 'name' => tra('Font Family'), 'default' => '', 'description' => tra('Select the font family to display the content.'), 'options' => wikiplugin_font_getfontoptions(), ), 'size' => array( 'required' => false, 'name' => tra('Font Size'), 'default' => '', 'description' => tra('Define the size of the font in pixels (enter \'12\' to get a font of 12px)'), // 'px' is compatible with the CKE UI ), ), ); } // wikiplugin_font_info()
function wikiplugin_font_info() { return array('name' => tra('FONT'), 'format' => 'wiki', 'documentation' => 'PluginFont', 'description' => tra('Format the font type and size of text'), 'prefs' => array('wikiplugin_font'), 'body' => tra('Content'), 'tags' => array('basic'), 'iconname' => 'font', 'introduced' => 8, 'params' => array('family' => array('required' => false, 'name' => tra('Font Family'), 'default' => '', 'description' => tra('Select the font family to display the content.'), 'since' => '8.0', 'filter' => 'text', 'options' => wikiplugin_font_getfontoptions()), 'size' => array('required' => false, 'name' => tra('Font Size'), 'since' => '8.0', 'default' => '', 'filter' => 'digits', 'description' => tr('Define the size of the font in pixels (enter %0 to get a font of 12px)', '<code>12</code>')))); }