Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

CKEditor instantiated twice in D365

Posted on by Microsoft Employee

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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: CKEditor instantiated twice in D365

    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

  • Suggested answer
    PhuocLV Profile Picture
    PhuocLV 347 on at
    RE: CKEditor instantiated twice in D365

    pls use github.com/.../CRMCKEditor

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans