Skip to content

Commit

Permalink
Merge pull request ckeditor#4882 from ckeditor/t/4878
Browse files Browse the repository at this point in the history
Failing test fix: Set fake observableParent element
  • Loading branch information
jacekbogdanski authored Sep 20, 2021
2 parents 3856cbe + d9d5f0b commit cf9364b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/plugins/preview/manual/previewcdn.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ <h1>Sample <span style="color: red;">document</span></h1>
</div>
<p>dolor sit amet.</p>
</div>
<div id="fake_observable_item"></div>

<script>
if ( bender.tools.env.mobile ) {
Expand All @@ -21,7 +22,10 @@ <h1>Sample <span style="color: red;">document</span></h1>
var editorVersion = '',
path = getCKEditorCORSLink( window.location );

CKEDITOR.replace( 'editor' );
CKEDITOR.replace( 'editor', {
// Set fake element as observableParent due to removing existing instance of the editor.
observableParent: document.getElementById( 'fake_observable_item' )
} );

CKEDITOR.once( 'instanceReady', function() {
var scripts = document.querySelectorAll( 'script' ),
Expand Down

0 comments on commit cf9364b

Please sign in to comment.