Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
7ca5e4ab
Commit
7ca5e4ab
authored
Jan 19, 2016
by
Ben Patterson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11255 from edx/benp/replace-actionchain-with-js
[firefox upgrade] Replace action chain with tinymce JS.
parents
26e09fee
699aa4d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
common/test/acceptance/pages/studio/html_component_editor.py
+2
-7
No files found.
common/test/acceptance/pages/studio/html_component_editor.py
View file @
7ca5e4ab
...
...
@@ -39,18 +39,13 @@ class HtmlComponentEditorView(ComponentEditorView):
self
.
cancel
()
def
set_content
(
self
,
content
):
"""
Types content into
the html component, leaving the component open.
"""
Sets content in
the html component, leaving the component open.
Arguments:
content (str): The content to be used.
"""
self
.
q
(
css
=
self
.
editor_mode_css
)
.
click
()
selector
=
'.html-editor .mce-edit-area'
editor
=
self
.
q
(
css
=
self
.
_bounded_selector
(
selector
))[
0
]
ActionChains
(
self
.
browser
)
.
click
(
editor
)
.
\
send_keys
([
Keys
.
CONTROL
,
'a'
])
.
key_up
(
Keys
.
CONTROL
)
.
\
send_keys
(
content
)
.
perform
()
self
.
browser
.
execute_script
(
"tinyMCE.activeEditor.setContent('
%
s')"
%
content
)
def
set_raw_content
(
self
,
content
):
"""Types content in raw html mode, leaving the component open.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment