Hi guys,
Just to let you know of an annoying issue with the code block drag and drop widget in the Advanced Editor.
If I copy and paste code into the box (I write the code in an external program and then bring it into there) and then click “update”, the code gets saved fine (including line breaks, indentations etc). HOWEVER! On the front-end the code is all placed onto a single line of code. This means that if I have written some comments in the code then the code gets cut halfway through (or at the beginning if I’ve place a comment at the beginning).
I appreciate I can resolve this by removing comments from the code, but clear commenting is vital if someone else comes along to look at what the code does.
If you could make Enfold output the code “as is” that would be fantastic.
Hey scottybowl,
It should work fine if you select the options “Escape HTML Code”.
If yous till have any issue please post your code to pastebin.com and share the link here so we can test it on our installation.
Best regards,
Vinay
Interesting, I’ll give that a try. One thing though, it’s not possible to put in line breaks into the textarea unless I copy and paste.
It might also be worth adding additional information about what “Escape HTML Code” actually does as at the moment it’s not very clear.