Skip to content

Commit

Permalink
Fix Wiki Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-ians committed Nov 27, 2023
1 parent ac893ba commit cb5a538
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/org/labkey/test/tests/wiki/WikiTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,12 @@ protected void doTestInlineEditor()

protected void setInlineEditorContent(String editorId, String content)
{
executeScript("if (!tinyMCE) {throw 'tinyMCE API is not available'}" +
"editor = tinyMCE.getInstanceById(arguments[0]);" +
"if (!editor) {throw 'No tinyMCE instance: ' + arguments[0];}" +
"editor.setContent(arguments[1]);", editorId, content);
executeScript("if (!tinymce) {throw 'tinymce API is not available'}" +
"editor = tinymce.get(arguments[0]);" +
"if (!editor) {throw 'No tinymce instance: ' + arguments[0];}" +
"editor.setContent(arguments[1]);" +
"editor.setDirty(true);" // Explicitly setDirty as the setContent doesn't by default
, editorId, content);
}

@Override
Expand Down

0 comments on commit cb5a538

Please sign in to comment.