web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CKEditor instantiated twice in D365

(0) ShareShare
ReportReport
Posted on by

Hello,

I am working on the integration of a custom version of CKEditor in Dynamics 365, however, when I instantiate the CKEDITOR I get the following error :


[CKEDITOR] Error code: editor-element-conflict. Object { editorName: "editor" }

[CKEDITOR] For more information about this error go to ckeditor.com/.../dev_errors.html

Do you have any idea about this problem ? I instantiate my CKEditor only in one place in my code.

Please find below a sample of my code :

<textarea name="editor" class="ckeditor" id="editor"></textarea>

if (wysiwygareaAvailable) {
CKEDITOR.replace('editor', { htmlEncodeOutput: true });
} else {
editorElement.setAttribute('contenteditable', 'true');
CKEDITOR.inline('editor', { htmlEncodeOutput: true });
}

I even tried to destroy all instances before my replace instruction but this doesn't work.

Thank you in advance,
Regards,

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    PhuocLV Profile Picture
    347 on at

    pls use github.com/.../CRMCKEditor

  • Community Member Profile Picture
    on at

    Hello @PhuocLV

    Thank you for the suggestion, I have already developped my specific CKEditor version and can't switch to another one, I just want to fix the error I am getting, have you ever encountered this error ? if yes, How did you fix it ?

    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans