!it does work outside the modal!
$content = $result->company_profile;
$editor_id = 'mycustomeditor';
$args = array(
'tinymce' => array(
'toolbar1' => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink,undo,redo',
'toolbar2' => '',
'toolbar3' => '',
),
);
wp_editor( $content, $editor_id, $args );
]]>
If that much works, change the CSS so the editor appears like a modal would. Toggle the display with the same script. You now have a rudimentary modal that should work.
]]>