Okay
  Public Ticket #3143641
HTML in Questions
Closed

Comments

  • sohohosts started the conversation

    Hi,
    I have used some html code in a question to display fractions.
    The code is as follows:
    -----------------------------------------------

    <p>
    <math display="block" >
    1      
          <mfrac>
            <mn>4</mn>
            <msup>
              <mi>5</mi>
              <mn></mn>
            </msup>
          </mfrac>
           +  
    2
          <mfrac>
            <mn>2</mn>
            <msup>
              <mi>5</mi>
              <mn></mn>
            </msup>
          </mfrac>

    </math>
    </p>

    -

    -----------------------------------------------


    However it does not render at all and all I get is numbers 

  • sohohosts replied

    OK - If I paste the code in 
    wp-admin -> LMS -> All Questions -> Edit The Question
    Switch the code area to BLOCKS and then change to HTML and paste the code between the DIV tags I get the desired result. How can I manage this in the Front End? Not possible to manage it this way, we have hundreds of questions to do.

  • [deleted] replied

    From front end this is how you can add html : 

    https://prnt.sc/M6neyl1rM8nj

  • sohohosts replied

    Yes exactly what I did, it seems when saved the front end removes all the tags that are required here. It seems to work fine when editing in the backend. If you edit the question in the front end then the tags are removed.

    So when saved from the frontend 


    THIS CODE

    <p>
    <math display="block" >
    1      
          <mfrac>
            <mn>4</mn>
            <msup>
              <mi>5</mi>
              <mn></mn>
            </msup>
          </mfrac>
           +  
    2
          <mfrac>
            <mn>2</mn>
            <msup>
              <mi>5</mi>
              <mn></mn>
            </msup>
          </mfrac>

    </math>
    </p>


    BECOMES THIS



    <div class="vibe_editor_shortcode">
    <p>1<br><br>4<br><br>5<br><br><br><br> +  <br>2<br><br>2<br><br>5<br><br><br></p>
    </div>


  •   sohohosts replied privately
  • [deleted] replied

    yes this seems to be an issue right now. you can use latex math in the editor : 


  • sohohosts replied

    Brilliant!

    However, I am now facing another problem. When I use latex in the editor, it renders as it should. For some reason when the TEST is rendered to the student all the latex equations are blank? 

    In the video, because of the colours, the code being entered is not visible. While in the editing mode I figured that we do not use the [Latex] Tags and directly enter the code, which renders the fractions fine. With the Tags it was showing the tags and the code. 

    I have already submitted the login credentials if you need.

    The question is Question 12 in the quiz for Primary Maths Course in the site. Attached are images from the editor and the actual text.

  • sohohosts replied

    I tried looking into the code to see if it was a browser issue. It seems that there is some issue with the code rendering. Please look at the attached image.

  • sohohosts replied

    This is the image for code. 

  • [deleted] replied

    Please share your site url and admin creds in private reply.Please also make sure that that vibebp updates to version 1.9.0+

  •   sohohosts replied privately
  •  390
    Ripul replied

    Is now working https://prnt.sc/vz9ty7F7nqek , https://prnt.sc/YYLFHICyXgTY

    the Full editor setting in vibebp - settings was not saved. Please check.

  • sohohosts replied

    Thankyou, it is working now. As this is a proof of concept installation may I request the details of the exact setting so that when we start wok on the actual site we know what to check?

  • [deleted] replied

    We just selected the full editor in wp-admin -> vibebp-> settings -> 

    Editor Interface