From bb0a58abf7df7895dad590e470ca4e9a6f3c9e07 Mon Sep 17 00:00:00 2001 From: cahrens Date: Fri, 21 Mar 2014 15:00:31 -0400 Subject: [PATCH] Code review feedback. --- cms/djangoapps/contentstore/features/common.py | 6 ++++-- .../contentstore/features/html-editor.feature | 5 ++--- .../contentstore/features/html-editor.py | 4 ++-- .../lib/xmodule/xmodule/js/src/html/edit.coffee | 4 +++- .../tiny_mce/plugins/codemirror/source.html | 17 +++++++++-------- 5 files changed, 20 insertions(+), 16 deletions(-) diff --git a/cms/djangoapps/contentstore/features/common.py b/cms/djangoapps/contentstore/features/common.py index 0a47f42451..33030e57e5 100644 --- a/cms/djangoapps/contentstore/features/common.py +++ b/cms/djangoapps/contentstore/features/common.py @@ -329,9 +329,11 @@ def type_in_codemirror(index, text, find_prefix="$"): def get_codemirror_value(index=0, find_prefix="$"): - return world.browser.driver.execute_script(""" + return world.browser.driver.execute_script( + """ return {find_prefix}('div.CodeMirror:eq({index})').get(0).CodeMirror.getValue(); - """.format(index=index, find_prefix=find_prefix)) + """.format(index=index, find_prefix=find_prefix) + ) def upload_file(filename): diff --git a/cms/djangoapps/contentstore/features/html-editor.feature b/cms/djangoapps/contentstore/features/html-editor.feature index 04b70bb3f9..68cdba24d7 100644 --- a/cms/djangoapps/contentstore/features/html-editor.feature +++ b/cms/djangoapps/contentstore/features/html-editor.feature @@ -39,9 +39,8 @@ Feature: CMS.HTML Editor When I edit the page And type "

pages

" in the code editor and press OK And I save the page - Then the page text is: + Then the page text contains: """ -

 

pages