Sha256: 2f60f870327c0feeb7c1d70b94b8787d695cee295cbab9aa89e3076ed8d9321e

Contents?: true

Size: 1.02 KB

Versions: 5

Compression:

Stored size: 1.02 KB

Contents

<div id="editor1">
	<p>Export to PDF test 1.</p>
</div>

<div id="editor2">
	<p>Export to PDF test 2.</p>
</div>

<script>
	exportPdfUtils.initManualTest();

	var editor1 = CKEDITOR.replace( 'editor1', exportPdfUtils.getDefaultConfig( 'manual' ) );

	editor1.on( 'exportPdf', function( evt ) {
		if ( !evt.data.asyncDone ) {
			setTimeout( function() {
				evt.data.html = '<p>Content filtered!</p>';
				evt.data.asyncDone = true;

				editor1.fire( 'exportPdf', evt.data );
			}, 2000 );

			evt.cancel();
		} else {
			delete evt.data.asyncDone;
		}
	}, null, null, 1 );

	var editor2 = CKEDITOR.replace( 'editor2', exportPdfUtils.getDefaultConfig( 'manual' ) );

	editor2.on( 'exportPdf', function( evt ) {
		if ( !evt.data.asyncDone ) {
			setTimeout( function() {
				evt.data.html = '<p>Content filtered!</p>';
				evt.data.asyncDone = true;

				editor2.fire( 'exportPdf', evt.data );
			}, 2000 );

			evt.cancel();
		} else {
			delete evt.data.asyncDone;
		}
	}, null, null, 17 );
</script>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ckeditor_rails-4.17.0 vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/notificationsasync.html
ckeditor_rails-4.16.3 vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/notificationsasync.html
ckeditor_rails-4.16.2 vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/notificationsasync.html
ckeditor_rails-4.16.1 vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/notificationsasync.html
ckeditor_rails-4.16.0 vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/notificationsasync.html