I found the solution. Example.
Trick is to edit multiline_field.php and add css (‘editor-buttons‘) and js (‘editor‘) dependencies – which otherwise are added only if the content editor is present.
JS editor dependency might not look needed at first, but without it, when you switch to HTML and back to visual, editor will crash.
class multiline_field extends mf_custom_fields {
public $allow_multiple = TRUE;
public $has_properties = TRUE;
function get_properties() {
return array(
'js' => TRUE,
'js_dependencies' => array
(
'editor'
),
'css' => FALSE,
'css_dependencies' => array
(
'editor-buttons'
)
);
}
(...)
WP version 3.3.2
Thanks CircaLucid, js error made me look in right direction.
Emil,
Can you please use our support form available in our panel for reporting problems? https://panel.inteliwise.com/index.php?view=support
The link is located in the top right corner of our panel: http://cl.ly/24372q1O0j3h2H0X303p
Regards,
Andrew