protected function parseEditorOptions($string)
{
$options = array();
$substrings = preg_split('/,\\s*\\n|\\n/', trim($string));
foreach ($substrings as $bits) {
$option = explode(":", $bits, 2);
if (count($option) == 2) {
$value = trim(trim($option[1]), "'\"");
if (($s = strtolower($value)) === 'false') {
$value = false;
} elseif ($s === 'true') {
$value = true;
}
$options[trim($option[0])] = $value;
}
}
return $options;
}