Hi Everyone
After some fun I have finally built my first custom module, I have leveraged the DNN CKEditor which seems to work well until I start testing it using real world scenarios. I copy and paste some well formed HTML into the editor and it encodes all of the html tags. eg in source I enter hi which gets saved as <b>hi</b>
After researching this seems to be well complained about behaviour with no option to truely tell CKEditor to leave the html alone. Wiht Telerik Editor there was a html property to extract and populate the control with html. I cant find a similar property with the DNN CKEditor control.
Configurations I have tried with no success:
Is there a way to tell CKEditor to leave the HTML alone? Thanks
There seems to be a solution as my simple bold tag displays as expected when injected into the DNN forum page, which I assume is using the CKEditor?
Cheers
So it seems the answer is HtmlEncode = false, the setting does not work through the editor configurator under sites. I altered the editor property through the control tag in the page and things are now working as expected. Well that took a while :)
You set the AllowedContent setting to true in the HTML Editor Config Manager, like in this screenshot below? Doing that for me made me able to include any markup I tried inside an HTML module.
You may also want to look at the extraAllowedContent setting.
extraAllowedContent
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.