Allow for easier filling out of a tinymce form behat step
Bug #1557200 reported by
Robert Lyon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Low
|
Robert Lyon |
Bug Description
Currently we have a long clumsy way to do it by finding out the id of the iframe, eg
And I fill in "This is a description" in WYSIWYG editor "edit_interacti
It would be better if the step itself could find the right iframe and fill in the text
eg: And I fill in "This is a description" in editor "Description"
where 'Description' is the label for the editor
Changed in mahara: | |
status: | New → In Progress |
importance: | Undecided → Low |
assignee: | nobody → Robert Lyon (robertl-9) |
milestone: | none → 16.04.0 |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Already implemented.
@Given /^(?:|I )fill in "(?P<text>[^"]*)" in WYSIWYG editor(?:| "(?P<iframe> [^"]*)" )$/
Defined in function iFillInInWysiWY GEditor( $text, $iframe = null) in BehatForms.php
You can either use it with an iframe name, or without. If you use it without an iframe name, then it uses the first TinyMCE editor currently on the page. This is useful for filling in TinyMCE's that might have dynamically generated unpredictable names. Or, for that matter, it's useful in most situations, because we rarely have more than one TinyMCE editor on a single page.
Example: I fill in "This is an interactive editor" in WYSIWYG editor