Issues with Code Formatting in the Forum Editor

I don’t know which version of UNA the forum is currently using, but it appears that when you post code and then click edit for example, I edited my previous post with the Russian translation error to mark post as solvable I’ve noticed that part of the previously posted code was removed, likely due to the text editor. The posted code gets reformatted. Therefore, it needs to be rewritten in its original form if you want the code to display correctly. This is quite frustrating. If you’re not careful when editing your post, you may later discover that your post is partially deleted and no longer makes sense.

  • 123
  • More
Replies (11)
    • I also have same issue but I did not found solution . https://unacms.com/d/urgent-support-needed-xml-code-in-post

      • Yes, the issue lies with the text editor. When you click the edit button, it reformats any previously present code in the content entered in the editor, almost as if the edit button is applying a content filter before opening the editor. I think it's relative to the permissions that sys_quill has.

        • The issue is not only with the content of the code button in the editor but also with the HTML button. I noticed this when I entered HTML code using the HTML button while editing the terms and conditions of my site.

          The tags from </> button before edit:

          <ul>
           <li>....li>
          ul>
          

          The tags after click on edit:

           
          ....
           
           
          

          are not displayed correctly in the browser, and more specifically, their content disappears. I have to manually reformat the text in the editor to display these lists properly. Additionally, the resulting HTML code after filtering is a single line, so HTML code that was formatted with spaces and line breaks in VS Code may lose its formatting after the filters are applied.

          • I might be very far off, but it reminded me of the iframe problem and that the work around for it was to inject a js script in studio/designer, seemingly reactivating iframe capabilities within post or editor for that sake. Iframes worked well in studio/blocks/raw but failed when used in post/editor... or there was a switch almost like activate or deactivate a particular setting within studio...

            • This is relative to the UNA forum. I think it can be set from the studio. I haven't tested yet the forum on my site. I'm busy with a migration right now and haven't had time to look at the studio settings for the latest version.

              • K, let me look into it.. I have time on hand. I've stop at RC5.. but dev runs on 14 straight... which version are you referring to.

                • It's clear that I don't know which version of UNA is currently used on https://unacms.com/

                  • I'm currently migrating from dolphin 7.4.2 to UNA 12. the rest of my sites are just test sites. So until we migrate my site to version 14, there's still a bit of work to do.

                    • However, the error I encountered with the HTML button code occurred on my test site running version 14.0.0. I translated UNA 14 into Romanian and added the Terms and Conditions via Studio to prepare the site for the migration to version 14. That's when I noticed this issue. Until I solve the migration, I hope to understand how to solve this problem in the editor.

                      • Why 12, in recent days.. I was involved with a similar project where we had to migrate from ossn to unacms.. but we migrate straight to the current version we were using... The only challenge we had or consideration was the fact that unacms uses SHA-1 password encryption whereas ossn used MD5 hashing. and we wanted to move the users across. We used a script, but had to in the end let the users be directed to password reset to avoid further complication, other than that, go for RC5.. I think the patches are released and fixed most of the problems... and might just fix the one you currently have.

                        • I tried to migrate directly to recent versions but we lose content due to incompatibility, so now I'm testing with version 12.0.0 and then I will update to higher versions if works. migrating to higher versions I lost the avatars and image headers

                          Login or Join to comment.