Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@core @editor_tiny @javascript
2
Feature: A user can insert script tag in TinyMCE using the default TinyMCE functionalities.
3
 
4
  Scenario: Allow script elements in the editor with the additional HTML plugin disabled.
5
    Given the following config values are set as admin:
6
      | config   | value | plugin |
7
      | disabled | 1     | tiny_html |
8
    And I am on the "Profile advanced editing" page logged in as "admin"
9
    And I set the field "Description" to "<p><script>alert('script in tiny');</script></p>"
10
    When I click on the "Tools > Source code" menu item for the "Description" TinyMCE editor
11
    And I click on "Save" "button"
12
    Then the field "Description" matches expression "@<script>.*alert\('script in tiny'\);.*</script>@s"