Fix nested plugin type returned to wysiwyg