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
Comment #1
dwees commentedNote: the same solution applies to spaces entered between the commas and the content types.
Comment #2
drupalnesia commentedThanks. Commit to 5.x-1.2.
Comment #3
drupalnesia commentedOpenWYSIWYG 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)