GUIEditor.php
changeset 2 307591683f3b
parent 1 960c1572df75
child 3 1e6929f9978b
equal deleted inserted replaced
1:960c1572df75 2:307591683f3b
    14 $plugins->attachHook('compile_template', 'guied_attach_script();');
    14 $plugins->attachHook('compile_template', 'guied_attach_script();');
    15 
    15 
    16 function guied_attach_script()
    16 function guied_attach_script()
    17 {
    17 {
    18 	global $template;
    18 	global $template;
    19 	$template->add_header_js('<script type="text/javascript" src="' . scriptPath . '/plugins/guieditor/editor.js"></script>');
    19 	$template->add_header_js('<style type="text/css">
       
    20 			select.guied_dropdown {
       
    21 				font-size: 10px;
       
    22 				padding: 0;
       
    23 				border: 1px solid #aaaaff;
       
    24 				background-color: white;
       
    25 				color: #202020;
       
    26 			}
       
    27 		</style><script type="text/javascript" src="' . scriptPath . '/plugins/guieditor/editor.js"></script>');
    20 }
    28 }
    21 
    29 
    22 //
    30 //
    23 // Image search autofill
    31 // Image search autofill
    24 //
    32 //
    68 				btn_italic: 'Italic',
    76 				btn_italic: 'Italic',
    69 				btn_underline: 'Underline',
    77 				btn_underline: 'Underline',
    70 				btn_intlink: 'Internal link',
    78 				btn_intlink: 'Internal link',
    71 				btn_extlink: 'External link',
    79 				btn_extlink: 'External link',
    72 				btn_image: 'Image',
    80 				btn_image: 'Image',
       
    81 				btn_table: 'Table',
       
    82 				btn_ulist: 'Bulleted list',
       
    83 				btn_olist: 'Numbered list',
    73 				
    84 				
       
    85 				sample_heading: 'Heading',
    74 				sample_bold: 'Bold text',
    86 				sample_bold: 'Bold text',
    75 				sample_italic: 'Italic text',
    87 				sample_italic: 'Italic text',
    76 				sample_underline: 'Underlined text',
    88 				sample_underline: 'Underlined text',
       
    89 				// translators: translating this may be easier if you understand wiki-table syntax
       
    90 				sample_table: '|-\n! Column header 1\n! Column header 2\n|-\n| Row 1, column 1\n| Row 1, column 2\n|-\n| Row 2, column 1\n| Row 2, column 2',
       
    91 				sample_ulist: '\n* Bulleted list\n** Sub-level\n*** Deeper indent\n* Back to one indent',
       
    92 				sample_olist: '\n# Numbered list\n## Sub-level\n### Deeper indent\n# Back to one indent',
       
    93 				
       
    94 				lbl_heading: 'Heading',
    77 				
    95 				
    78 				intlink_title: 'Insert internal link',
    96 				intlink_title: 'Insert internal link',
    79 				intlink_lbl_page: 'Page:',
    97 				intlink_lbl_page: 'Page:',
    80 				intlink_lbl_text: 'Link text:',
    98 				intlink_lbl_text: 'Link text:',
    81 				intlink_af_hint: 'Type a few letters to search.',
    99 				intlink_af_hint: 'Type a few letters to search.',