if ($content_type === 'multi-column') { // load multi column $editor->mc_edit($values); } elseif ($content_type === 'add-column') { // add column $editor->add_column(str_replace('#', '', $editor->id), str_replace('#', '', $editor->parent_id), 'span6'); } else { // load standard edit $editor->load_module(stripslashes($editor->rom['content']), $values, $editor->content_type); } } elseif ($edit_mode === 'custom-fontset') { // get custom fontset $editor->custom_fontset(); } elseif ($edit_mode === 'load-template') { // load semplice preset $editor->load_template(); } elseif ($edit_mode === 'init') { function strposOffset($search, $string, $offset) { $arr = explode($search, $string); switch ($offset) { case $offset == 0: return false; break; case $offset > max(array_keys($arr)): return false; break; default: return strlen(implode($search, array_slice($arr, 0, $offset))); } }