Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #647295

    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.

    • This topic was modified 8 years, 5 months ago by scottybowl.
    #647316

    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

    #647854

    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.

    #649194

    Hi,

    Have you had a chance to try it? :)
    Also, which version of Enfold and WordPress are you using?

    Best regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.