If you enter in your textarea ids into the visibility page with spaces between the commas, the editor will not display as expected.

Solution:

1. Don't enter any spaces OR
2. Add the following after:


/*
 * Validation against textarea ID filters. 
 */
function _openwysiwyg_validate_element_id($id){
  $valid = false;
  // when returned valid, the openwysiwyg editor will be shown
  $values = variable_get('openwysiwyg_textarea_id_val','edit-teaser,edit-body');
  $values_arr = split(',',$values);

change to:


/*
 * Validation against textarea ID filters. 
 */
function _openwysiwyg_validate_element_id($id){
  $valid = false;
  // when returned valid, the openwysiwyg editor will be shown
  $values = variable_get('openwysiwyg_textarea_id_val','edit-teaser,edit-body');
  $values_arr = split(',',$values);
  
  // someone might put a space between the comma and the next textarea id
  foreach ($values_arr as $key => $value) {
    $values_arr[$key] = trim($value);
  }

Comments

dwees’s picture

Note: the same solution applies to spaces entered between the commas and the content types.

drupalnesia’s picture

Status: Needs review » Fixed

Thanks. Commit to 5.x-1.2.

drupalnesia’s picture

Status: Fixed » Closed (fixed)

OpenWYSIWYG 5.x-1.2:
Bug Fix: escape space in textarea-id and content-type setting (by dwees)
Bug Fix: Visibility, no "Save confuguration" button (by zcc_nz)