Rich text editor issue

Hi Team,

I am using rich text editor to add description in my event, but when I am pasting any link or tagging a person, it is converting it to as mention which is the current behavior of editor.

But after saving the event details when I am trying to fetch event description then it is returning as [mention:somekey:somekey]

Please guide how to fetch event details correctly so that mentions gets converted to a link.

Fetching event as #set(#event = $calendar_v1_events.Show('%{Content-Id = id}'));

Fetching description as $event.description/$event.rawDescription.

Parents Reply
  • Hi, here is the code I am trying to execute for RTE:

    <span class="field-item-input">
    #set($body = '')
    
    #if($eventId != 0)
    #set ($event = $calendar_v1_events.Show($eventId))
    #if ($event)
    #set ($body = $event.EventDescription)
    #end
    #end
    $core_v2_editor.Render('eventDescription', "%{Width='100%', Height='300px', Value=$body, ContentTypeId=$calendar_v1_events.ContentTypeId}")
    </span>

    It's still rendering [mention:key:key] in editor, it should show as we are able to see in preview mode from tools of editor i.e. A link.

    Also I tried both the ways  

    $event.EventDescription.

    Or you could use  $event.HtmlDescription("web")

    But still it is not fetching mention text and converting it to Link, it is showing only [mention:key:key] here as well.

Children