Rich text Editor Preview issue?

Hi,

I am trying to see text in preview mode but it is giving me error with below code:

$core_v2_editor.Render('PostBody', "%{Width='100%', Height='300px', Value=$body, ContentTypeId = $core_v2_forumThread.ContentTypeId}")

If I'm using normal code without optional fields it is working but with below code: 

$core_v2_editor.Render('PostBody')

This is working but not able to see File upload option under "Insert image/video/file".


Please help me out on this.

Thanks,
Rahul