Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This post unfortunately needed to be re-posted here to resolve issues with the code. Sorry for any confusion!
Anonymous
October 07, 2015
Nice job Peter this is very cool!
Anonymous
November 20, 2015
Great post Peter. I got it working but I want to add the ability to pick the text color. Is there a way to add the CKEditor plugins with your method?
Anonymous
November 20, 2015
The comment has been removed
Anonymous
December 02, 2015
Changing the URL for the editor worked great. I now see the full editor with text color. I have another issue now. When I type in the editor it is not updating the underlying field. So the CRM doesn't think the record is dirty and does not save my changes. Any advice on that one?
Anonymous
December 02, 2015
The comment has been removed
Anonymous
December 10, 2015
Hey Peter,
thanks for the interresting article. I see the CKEditor in the form, but unfortunately it doesn't save the content. I noticed that everytime I press a key in the editor, I get an "Uncaught TypeError: Cannot read property 'call' of undefined". The error is thrown from ckeditor.js. Currently I'm working with Microsoft Dynamics® CRM 2016. Have you tried the CKEditor with the new CRM already? Or do you have any ideas how to make it working?
Best regards!
Anonymous
December 10, 2015
Hi Patrick - good question, I haven't tried this on Dynamics CRM 2016 yet, we are upgrading probably in Jan sometime... I bet it's because the page is structured slightly different. I'm happy to help further, but we should probably take the conversation out of blog comments - you can email me directly at peter dot hauge at microsoft dot com if you want to dig further. :-) Thanks!
Anonymous
February 08, 2016
Good news - I just got this working on the latest Dynamics CRM online! I updated the code above, thanks to Anton Kurnitzky for his help!
Anonymous
February 21, 2016
Hello Peter,
Thanks a lot for this!! We were able to get ckeditor working in our crm form using your guidance...
We have just one issue now...the CRM field shows the HTML markup text...and not the rich text editing when form loads...
Only when we click on the field...does the Ckeditor showup...any suggestions on how to get around this?
Anonymous
February 22, 2016
Great - really glad it was helpful! My best guess is that the script block is loading faster than the other UI elements on the page, but probably can't really diagnose without seeing it. Feel free to reach out directly (my email is in one of the prior comments) and we can work through it.
Anonymous
March 23, 2016
This method uses document.getElementById(), rendering it unsupported. Do you have a recommended way of implementing the CKEditor in a supported fashion?
Anonymous
June 10, 2016
Thank you so much for this post it has been extremely useful, and I can see the editor when I load my form. I then tried to change to the full version and when I went into the form again the web resource was not there, but if I go to Web Resources entity it is there. I altered it in the Web Resources entity and published but it has not updated the form. Can you giveme any idea why this would be?Many thanks
Anonymous
June 10, 2016
I have followed the step above and I have received the following error convertToRichText is undefined at eval code {eval code 1:1)Any guidance would be greatly appreciatedThe log file shows thisReferenceError: 'ConvertToRichText' is undefined at eval code (eval code:1:1) at RunHandlerInternal (https://sno.crm4.dynamics.com/form/ClientApiWrapper.aspx?ver=1640910717:156:1) at RunHandlers (https://sno.crm4.dynamics.com/form/ClientApiWrapper.aspx?ver=1640910717:115:1) at Anonymous function (https://sno.crm4.dynamics.com/form/ClientApiWrapper.aspx?ver=1640910717:99:63) at Anonymous function (https://sno.crm4.dynamics.com/_static/_common/scripts/MicrosoftAjax.js?ver=1640910717:1:294)
Anonymous
June 15, 2016
This looks promising, but I am getting a "Unable to get property 'getEditor' of undefined or null reference" error and the editor controls don't show up... any ideas? This is for CRM 2013 on-premise.
Anonymous
April 06, 2017
Hello,You solution is good however i have found a few problems with CRM 2016 Online.On the initial load of the form the script doesn't work correctly as the ckeditor javascript hasnt fully loaded yet so you get a TypeError: Cannot call method 'getEditor' of undefined. However once you reload the form it works as intented.Another problem i have found with your script is that when using multiple fields it doesn't work as expected. I have trying doing this with 3 fields however it only works on the last field in the array, also the other 2 fields won't save and only show the Rich Text Editor when you focus on them.I have developed the script to be working with multiple fields however i can seem to fix the problem of loading the form for the first time.We can communicate if you would like to come up with a solution.
Anonymous
April 14, 2017
Hi Peter,This is a very handy solution. Can it be utilized anyhow for Notes editor? I cannot find any way to access notes editor.
Anonymous
May 22, 2017
The comment has been removed
Anonymous
June 08, 2017
Just an FYI - there was an issue with the wordpress dashboard mangling the code so I had to re-post this to a new location entirely. You can find that here: https://blogs.msdn.microsoft.com/peterhauge/2017/06/08/how-to-enable-rich-text-in-dynamics-crm-using-ckeditor-2/ . Thanks!
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in