tce_functions_tcecode_editor.php

Functions for custom mark-up language editor.

Source: admin/code/tce_functions_tcecode_editor.php

Functions for custom mark-up language editor.

Functions

getImageButton()

Display one tag button

function getImageButton(
    mixed $name,
    mixed $tag,
    mixed $image,
    mixed $onclick = '',
    mixed $accesskey = ''
): XHTML

Parameters:

  • $name (mixed): (string) name of the button
  • $tag (mixed): (string) tag value
  • $image (mixed): (string) image file of button
  • $onclick (mixed): (string) default onclick action
  • $accesskey (mixed): (string) accesskey: character for keyboard shortcut

Returns: XHTML: string

Source: admin/code/tce_functions_tcecode_editor.php:196

tcecodeEditorTagButtons()

Display TCExam Code EDITOR Tag Buttons

function tcecodeEditorTagButtons(mixed $callingform, mixed $callingfield): XHTML

Parameters:

  • $callingform (mixed): (string) name of calling xhtml form
  • $callingfield (mixed): (string) name of calling form field (textarea where output code will be sent)

Returns: XHTML: string

Source: admin/code/tce_functions_tcecode_editor.php:32