Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text input is opened in HTML if an additional answer is added #1460

Open
DmytroAlipov opened this issue Nov 4, 2024 · 0 comments
Open

Text input is opened in HTML if an additional answer is added #1460

DmytroAlipov opened this issue Nov 4, 2024 · 0 comments
Labels
bug Report of or fix for something that isn't working as intended

Comments

@DmytroAlipov
Copy link
Contributor

Steps to Reproduce:

  1. Go to Studio
  2. In unit
  3. Add new component Problem "Text input"
  4. Fill in at least question and answers
  5. Add one more answer
  6. Save
  7. Open problem on edit
Знімок екрана 2024-11-04 о 10 25 59

It is expected to be opened as standard Text input but opens as markup editing.


This issue appears for a specific scenario:
Suppose an incorrect answer option is added to a text problem. In this case, the markup contains the tag.

Знімок екрана 2024-11-04 о 10 34 28

Then the markup looks something like this:

<problem>
    <stringresponse answer="correct" type="ci">
        <div>some question</div>
        <correcthint>
            <div>some text</div>
        </correcthint>
        <stringequalhint answer="incorrect"></stringequalhint>
        <additional_answer answer="correct"></additional_answer>
        <textline size="20"></textline>
    </stringresponse>
</problem>

If there is an incorrect answer, feedback must be present for the first correct answer. In this case, when you reopen the issue, it will appear in standard view rather than as markup.

@DmytroAlipov DmytroAlipov added the bug Report of or fix for something that isn't working as intended label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Report of or fix for something that isn't working as intended
Projects
None yet
Development

No branches or pull requests

1 participant