Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-67454

Login As removes styles

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.7.1
    • Fix Version/s: None
    • Component/s: HTML and CSS
    • Labels:
      None
    • Affected Branches:
      MOODLE_37_STABLE

      Description

      When creating a course, we have discovered that if we include styles in our HTML it looks fine to the people who are logged in.

      However, if an admin does a "Log in As", styles tags are removed.

      How to duplicate issue:

      1. Set default editor to Plain Text
      2. Create a label.
      3. Give it the code "<style>#testspan { font-size: 30px; }</style><span id="testspan">Test</span>"
      4. Save and view.  Confirm that large Test prints out.
      5. Log in as another user in the course.
      6. See that the word Test is now smaller.
      7. View HTML and see that the styles have been removed.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              syxton Matthew Davidson
              Participants:
              Component watchers:
              Amy Groshek, David Scotson, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: