Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@editor @editor_tiny @tiny_html @javascript
2
Feature: Edit HTML in TinyMCE
3
  To write rich text - I need to be able to easily edit the HTML.
4
 
5
  Scenario: View HTML in TinyMCE source code view
6
    Given I log in as "admin"
7
    When I open my profile in edit mode
8
    And I set the field "Description" to "This is my draft"
9
    And I click on the "View > Source code" menu item for the "Description" TinyMCE editor
10
    And I should see "Source code"
11
    Then I should see "<p>This is my draft</p>" source code for the "Description" TinyMCE editor
12
 
13
  Scenario: View multiline HTML with indenting in TinyMCE source code view
14
    Given I log in as "admin"
15
    When I open my profile in edit mode
16
    And I set the field "Description" to "<div><p>This is my draft</p></div>"
17
    And I click on the "View > Source code" menu item for the "Description" TinyMCE editor
18
    And I should see "Source code"
19
    Then I should see this multiline source code for the "Description" TinyMCE editor:
20
      """
21
      <div>
22
        <p>This is my draft</p>
23
      </div>
24
      """