I have a html module which contains a div with just an id and nothing else i.e. {looks like this editor as removed my div example}
this works fine on my Live site using RadEditor (DNN 8.00.04)
I've a test site running DNN 9.03.02 which CKEditor, this doesn't display the
I've tried set AllowedContent to true in the CKEditor Provider Settings screen.
I also installed the latest version of CKEditor from https://github.com/w8tcha...or/releases and also have the same problem, as anybody resolved this.
I also installed version 2.1.20 onto my Live site DNN 8, as this seems to be the last version which includes a version for DNN8 , still the same problem.
I'd like to upgrade my Live site to DNN 9, but i need to resolve the problem first.
I need an editor which doesn't change my html code after entering it.
As you are the third person asking about this in about a week, I wrote a blog post about the "issue". https://dnncommunity.org/blogs/Post/2841
HTH Timo
I just tested this using:
extraAllowedContent = div(*);div{*}
And this HTML and it seems to work ok.
< div class="test">test < /div> < div id="test">test < /div>
Ok, that's another issue, that's empty tag stripping. I think you need an extra cofiuration for that along this line: https://ckeditor.com/old/...tags#forum-topic-top
I'll try that later today and see if I can get it to work.
BTW: I would strongly advise you to not use the editor for these kind of scenarios. I don't know exactly what you are trying to accomplish, but inserting empty DIV elements is much easier en better to manage using a structured content module like Open Content (or 2SXC). You can post what you want to do on the dicussions tab and we'll help determine if it feasable to use OC and to get you started.
Possible Solution - Use Chrome Hi, I know this is an old thread but just in case someone else is still looking for a (different) solution... I had the same problem: HTML tags were stripped from my code in the editor (but they were still processed and to be found in the db, table "HtmlText"). I followed any suggestion I could find in these forums (in HTML Editor Manager, setting AllowedContent to true and/or changing the config files and/or removing other modules from the pages that may interfere, logging in as superuser vs siteadmin)... nothing helped. The solution I found (after approx. 12 hours of frustrating research and trial and error) was as simple as this: When correctly setting AllowedContent to true, Firefox and Internet Explorer both continue to strip the tags. Only Chrome displays the tags (I haven't tried out Edge). Hope that may help someone. Britta
Well that's very strange, as I'm using this with Firefox and it works as expected (see the previousy mentioned blog post about CkEditor stripping HTML)
Timo,
thanks for your feedback and also for your blog post that I had read and followed before.
This is indeed strange that it works for you in Firefox but it doesn't for me. So there must be something else going wrong in my DNN website. Until I find out what that is, I am just happy that I was able to upgrade to 9.9.0 and remove Telerik - even if that means that for right now, I can only use Chrome for the handful of modules where I do use HTML tags that would otherwise be stripped.
Best, Britta
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.