• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 4.x Series
    • Bug
    • [4.1.2] Edited page changes are lost if BB code is toggled (code view) and unsaved changes are previewed

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Issue: [4.1.2] Edited page changes are lost if BB code is toggled (code view) and unsaved changes are previewed

    • Issue Tools
      • View Changes
    1. issueid=6248 August 25, 2021 8:10 AM
      ACL ACL is offline
      Regular Member
      [4.1.2] Edited page changes are lost if BB code is toggled (code view) and unsaved changes are previewed

      Changes to a pages contents appear to be lost if the page is edited in code view mode (Toggle BB code) and the page is previewed.

      The first preview shows the drafted changes, however further previews lose any unsaved changes and instead shows a preview based on the public page. Saving the edited page at this point will result in all changes to the page content being lost. This does not appear to affect additional fields like meta description and edit description. Not previewing an edited page or previewing a maximum of one time seems to avoid this data loss problem.

      If a new page is wholly edited in code view and previewed, then the page is created with no page contents (placeholder stub text is displayed instead). This also triggers a javascript error when previewing more than once (core-compiled.js: Was not provided an object or HTML content).

      TL;DR:
      • Edit page in code view = No data loss.
      • Edit page in code view with 1 preview = Preview appears OK, saved page data loss.
      • Edit page in code view with >1 preview = All but first preview not as expected, saved page data loss.


      ----

      Additionally, while attempting to reproduce this problem, a newly checked parseurl checkbox field reverts to unchecked when the same page is reopened for further editing. This test was repeated for creating a brand new page and the same reset to unchecked same behaviour was witnessed.
    Issue Details
    Issue Number 6248
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Editing Pages
    Status Fixed
    Priority 1 - Security / Login / Data Loss
    Affected Version 4.1.2
    Fixed Version 4.1.2
    Milestone (none)
    Software DependencyXenForo 2.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. August 25, 2021 11:29 AM
      pegasus pegasus is offline
      VaultWiki Team
      Thanks for this report. It seems like this has been an issue since VaultWiki on XF 1.x way back in 2013-4, even though it might have only started causing data loss under XF 2.2. This occurs due to a misinterpretation of how the text fields should be prioritized during processing of BB-Code vs RTE. It was thought that XenForo gave priority to the RTE field, but it turns out it actually gives priority to the code field. Due to the data-loss potential, this issue will be handled by a patch.

      Unfortunately, since BB-Code/RTE handling is spread out over multiple code areas and changes could have unforeseen consequences, I cannot provide any edits for now. In the mean time, your workaround of not using preview should suffice.
      Reply Reply  
    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 3:21 AM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.