Important: when posting, please provide your Club Number at a minimum, and as many details as possible.
For further info, please read This page before posting.

Comments using HTML source disappear

  • ramprao
  • ramprao's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 39
  • Thanks: 2

Comments using HTML source disappear

11 years 5 months ago
#41693
I would like to save some comments via html source on the main home page. However, it does not seem to save them correctly. If I hit Save, it does. But then when I try to edit it again, the comments are gone.

I'm using

<!-- Some comment here -->

I'm not 100% sure but I think it used to work in the past before V2.20.
The topic has been locked.
  • Brian
  • Brian's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 11485
  • Thanks: 3747

Re: Comments using HTML source disappear

11 years 5 months ago
#41695
Steve will have to check the editor options
Thank you,

Brian McDonald DTM
Silver and Wiser Online Toastmasters Club #777940

Technical Support Consultant for FreeToastHost
The topic has been locked.
  • ramprao
  • ramprao's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 39
  • Thanks: 2

Re: Comments using HTML source disappear

11 years 5 months ago
#41701
Brian -- Thanks.
The topic has been locked.
  • SteveTheTechie
  • SteveTheTechie's Avatar
  • Offline
  • Emeritus
  • Emeritus
  • Posts: 11492
  • Thanks: 3057

Re: Comments using HTML source disappear

11 years 5 months ago - 11 years 5 months ago
#41708
Did you put the contents in while you are in Source View, or in the WYSIWYG view? Must be in Source View, if you are going to have any chance of them being kept, and even then it is kind of a "crap shoot".

Basically, we do not really have much control over how the 3rd party HTML editor (CKEditor) works other than the configuration options that they provide us. There are *lots* of configuration options for the editor. However, they never seem to have the option I really need... :pinch:

In this case, they have an option to shut off their "smart" content filter called ACF (Advanced Content Filter)... but if I do that, it will affect a lot of things for every user that I really do not want change.

Yours is likely a case of ACF stripping out HTML comments.

You have to realize that the editor is essentially a monster HTML parser built entirely in JavaScript. That is why it is so huge and takes so long to load and do things.

It almost *always* reformats whatever content is entered into it to what it feels is the best representation. It tries to fix and prevent errors, and do a lot of "dummy proofing" so that the user does not need to be concerned with the underlying HTML.

The catch is that the "dummy proofing" *frequently* gets in the way for users that very proficient with HTML.

When I was developing the name tag templates, for example, I created them in an HTML authoring tool and copy/pasted them into CKEditor to make sure it would keep them intact when someone selected them. It did not... it took me a lot of retries to get templates that the editor would not mess with and screw up. Major pain!

Bottom line: I will see what I can do with the editor configuration options, but no guarantees. Do not count on the editor keeping your HTML content, as is, in Source View. *Always* keep a backup copy of the original HTML when copy/pasting into the Source View.
Last edit: 11 years 5 months ago by SteveTheTechie.
The following user(s) said Thank You: ramprao
The topic has been locked.
  • SteveTheTechie
  • SteveTheTechie's Avatar
  • Offline
  • Emeritus
  • Emeritus
  • Posts: 11492
  • Thanks: 3057

Re: Comments using HTML source disappear

11 years 5 months ago - 11 years 5 months ago
#41709
What I would suggest is relocating where the comments are in the Source View.

I find that sometimes when I just re-sequence things in Source View that can be re-sequenced without impacting the resulting output, I still can get a different result with the editor's reformatting routine.

Anything that looks remotely like erroneous HTML or bogus tags will get stripped out by the editor's ACF code. Keep that in mind.
Last edit: 11 years 5 months ago by SteveTheTechie.
The following user(s) said Thank You: ramprao
The topic has been locked.
Moderators: BrianHeniPamrhtaylor3marc33NotLiableNSBjgavinLcala305peterb323DebbieT
Time to create page: 0.148 seconds

Latest Forum Posts