Skip to content

Fix source editor for the case of no CodeMirror editor. - #3244

Merged
cahrens merged 1 commit into
rc/2014-04-09from
christina/latex-bug-release
Apr 8, 2014
Merged

Fix source editor for the case of no CodeMirror editor.#3244
cahrens merged 1 commit into
rc/2014-04-09from
christina/latex-bug-release

Conversation

@cahrens

@cahrens cahrens commented Apr 8, 2014

Copy link
Copy Markdown

In the HTML component, there is no longer a tabbed CodeMirror Editor. STUD-1516.

There are no tests for this. I had previously written a smoke test for the high level source editor for LaTeX problems, but it has been disabled because the test did not pass reliably.

In problem-editor.feature:

Disabled 11/13/2013 after failing in master

The screenshot showed that the LaTeX editor had the text "hi",

but Selenium timed out waiting for the text to appear.

It also caused later tests to fail with "UnexpectedAlertPresent"

This feature will work in Firefox only when Firefox is the active window

IE will not interact with the high level source in sauce labs

#@skip_internetexplorer
#Scenario: High Level source is persisted for LaTeX problem (bug STUD-280)

Given I have created a LaTeX Problem

When I edit and compile the High Level Source

Then my change to the High Level Source is persisted

And when I view the High Level Source I see my changes

@valera-rozuvan

Copy link
Copy Markdown
Contributor

@auraz @polesye @olmar @jmclaus Christina asked the Blades to review this PR.

@cahrens

cahrens commented Apr 8, 2014

Copy link
Copy Markdown
Author

@chrisndodge This will need to go into the release candidate.

Comment thread cms/templates/widgets/source-edit.html Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cahrens Please use:

window.tinyMCE !== undefined && window.tinyMCE.activeEditor !== undefined

Your variant will throw an error if tinyMCE is not defined.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@polesye

polesye commented Apr 8, 2014

Copy link
Copy Markdown
Contributor

I have checked it manually and it works well on local env 👍

In the HTML component, there is no longer a tabbed CodeMirror Editor. STUD-1516.
@cahrens

cahrens commented Apr 8, 2014

Copy link
Copy Markdown
Author

@valera-rozuvan I addressed your feedback.

@valera-rozuvan

Copy link
Copy Markdown
Contributor

@cahrens 👍 Good to merge!

cahrens pushed a commit that referenced this pull request Apr 8, 2014
Fix source editor for the case of no CodeMirror editor.
@cahrens
cahrens merged commit 550f9d7 into rc/2014-04-09 Apr 8, 2014
@cahrens
cahrens deleted the christina/latex-bug-release branch April 8, 2014 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants