164
Views
3
Comments
CKEditor - Content doesn't appear on load (Edit Mode)
Question
(Transferring my post from the discussion thread to the main forum)

I have a concern regarding the CKEditor. My use case is as follows:

User views the post and edit it using CKEditor. Currently, the HTML content is already in the textarea but doesn't show up in the CKEditor. 

Based on this post...

Pedro Gonçalves wrote:
Hi again Alexandre,

I remember that happening when my field was set as mandatory. 
You probably need to use the CKEDITOR.instances.editor.updateElement() function. It forces CKEditor's dialog to transfer its contents to the text input.

Check out the details here: https://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.editor.html#updateElement

Also, see the attached sample. Hope it helps.

Cheers!
I tried to follow this, but I can't due to the error that CKEDITOR is not defined. I've attached the OML for your reference. I need to make the contents of the textarea visible in the CKEditor. The content is directly from an advanced query. Any help would be appreciated. 

This screenshot might help you too...



Thanks, 

Julius
Admin.oml
UserImage.jpg
Tekla Dilrukshi
I am having same issue. Need to show saved data on CKEditor for editing purpose.

Any Idea?

Thanks 
Tekla

2018-11-06 14-26-44
Suraj Borade
Hi Ju-Chan,

There are several advance queries in your preparation. Which advance query's result you want to assign to CK Editor?

Suraj
2015-04-07 21-32-04
Julius King Chua
Suraj Borade wrote:
Hi Ju-Chan,

There are several advance queries in your preparation. Which advance query's result you want to assign to CK Editor?

Suraj
@Tekla: Unfortunately, I've used another JS library to cater my Rich Text Editor, so I might not be able to help with regards to this, since I'm also waiting for an answer too. 

@Suraj: With regards to your question, The GetPostByUrlMask is what I need to display in the said module.
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.