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

Login As removes styles

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 3.7.1
    • HTML and CSS
    • None
    • MOODLE_37_STABLE

      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.

            Unassigned Unassigned
            syxton Matthew Davidson
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.