Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-19341

commentfield.vm should not manipulate the XWikiComment class

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 12.6
    • Flamingo Skin
    • Unknown
    • N/A
    • N/A
    • Awaiting Committer feedback

    Description

      commentfield.vm is in charge of generating a new editor field on demand for the comments.
      It needs to take into account the wiki and user editor preferences as well as the settings of the XWiki.XWikiComments.comment field for its rendering
      In addition, in case of error when submitting a captcha, or when editing a comment, the submitted content must be displayed again to the user.
      The current approach of the script is based on XClass manipulation that

      • complex
      • can cause strange race conditions

      It's easier to directly use the edit script services to generate editors matching the requirements listed above.

      Attachments

        Issue Links

          Activity

            People

              mleduc Manuel Leduc
              mleduc Manuel Leduc
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: