Rev 1 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
@editor @editor_tiny @tiny_noautolinkFeature: Tiny noautolinkIn order to prevent auto-linking in TinyMCEAs a UserI need be able to apply the auto-link prevention feature to the selected textBackground:Given I log in as "admin"And I navigate to "Plugins > Text editors > TinyMCE editor > General settings" in site administrationAnd I click on "Enable No auto-link" "link"@javascriptScenario: Add and remove auto-link prevention to URLsGiven I open my profile in edit modeAnd I set the field "Description" to "<p>https://moodle.org</p>"# Add auto-link prevention.And I select the "p" element in position "0" of the "Description" TinyMCE editorWhen I click on the "No auto-link" button for the "Description" TinyMCE editorThen the field "Description" matches value "<p><span class='nolink'>https://moodle.org</span></p>"# Remove auto-link prevention.And I select the "span" element in position "0" of the "Description" TinyMCE editorAnd I click on the "No auto-link" button for the "Description" TinyMCE editorAnd the field "Description" matches value "<p>https://moodle.org</p>"@javascriptScenario: Add and remove auto-link prevention to simple textGiven I open my profile in edit modeAnd I set the field "Description" to "Some text"# Add auto-link prevention.And I select the "p" element in position "0" of the "Description" TinyMCE editorWhen I click on the "No auto-link" button for the "Description" TinyMCE editorThen the field "Description" matches value "<p><span class='nolink'>Some text</span></p>"# Remove auto-link prevention.And I select the "span" element in position "0" of the "Description" TinyMCE editorAnd I click on the "No auto-link" button for the "Description" TinyMCE editorAnd the field "Description" matches value "<p>Some text</p>"