Rich text editor

Hi,

we using  $core_v2_editor.Render to implement rich text editor, we need to bind data to the same from velocity, while binding we getting error like uploaded image.

our code here " $core_v2_editor.Render('AboutYourCompany',"%{Width='100%', Value='$aboutCompany', ContentTypeId=$core_v2_blogPost.ContentTypeId}")"

Kindly guide us to fix this.

Thank you.

Parents Reply
  • In local I am trying to run this in a widget with no other elements/Controls, there too I am getting the same result, I am not sure what I am missing, trying to figure out the exact issue. 

    <li class="field-item post-body">
    <label for="$core_v2_widget.UniqueId('PostBody')" class="field-item-name">$core_v2_language.GetResource('CreateEditPost_Description')</label>
    <span class="field-item-input">
    #set($body = '')
    #if($threadOrReply)
    #set($body = $threadOrReply.Body('raw'))
    #elseif($tempData)
    #set($body = $tempData.Value('body'))
    #end
    $core_v2_editor.Render('PostBody', "%{Width='100%', Value=$body, ContentTypeId=$contentTypeId}")
    </span>
    <span class="field-item-validation" style="display: none;"></span>
    </li>

    above given is in the main page, code below is in the sample test widget

    $core_v2_editor.Render('testEditor', "%{Width='100%', Value='Test Value', ContentTypeId=$contentTypeId}")

    In both the thing i am getting an editor but unable work in "tools", "Insert"  options.

Children