Support General WYSIWYG Field not swapping between editor modes Reply To: WYSIWYG Field not swapping between editor modes

#11615
Anh TranAnh Tran
Keymaster

Thanks for the info. I'm checking your site and found a problem: the ID of the field contains a space:

https://i.imgur.com/sFnaTYm.png

That comes from the $prefix = strtolower($this->attributes['post']['single']);, which transform Case Study to just case study. It should be case_study. Please try this code:

$prefix = str_replace(' ', '_', strtolower($this->attributes['post']['single']));

The space in field ID (and then in the input name/ID) causes unexpected behavior, and that might be a cause to this problem.