Omeka.wysiwyg

Omeka.wysiwyg is a JavaScript function that allows you to add TinyMCE to textareas in the administrative panel.

Parameters

Omeka.wysiwyg has the following default parameters

  • convert_urls: false,
  • mode: "textareas",
  • theme: "advanced",
  • theme_advanced_toolbar_location: "top",
  • force_br_newlines: false,
  • forced_root_block: 'p',
  • remove_linebreaks: true,
  • fix_content_duplication: false,
  • fix_list_elements: true,
  • valid_child_elements: "ul[li],ol[li]",
  • theme_advanced_buttons1: "bold,italic,underline,justifyleft,justifycenter,justifyright,bullist,numlist,link,formatselect,code",
  • theme_advanced_buttons2: "",
  • theme_advanced_buttons3: "",
  • theme_advanced_toolbar_align: "left"

Any of these parameters can be changed by passing the new parameter and value to the Omeka.wysiwyg function:

Omeka.wysiwyg({
    mode: "specific_textareas",
    editor_selector: "html-editor",
    forced_root_block: ""
});

A complete list of parameters can be found on the TinyMCE documentation wiki.