Sha256: 4d96067c3f9c365f37f70cf681bdc2dfdc7fc76dd490093055af19ce5bb1142b

Contents?: true

Size: 1.06 KB

Versions: 5

Compression:

Stored size: 1.06 KB

Contents

<h3>Editor 1</h3>
<div id="editor1">
	<p>Foo bar</p>
</div>
<div id="tokenValue1" style="word-break:break-all;border:1px solid red;"></div>

<h3>Editor 2</h3>
<div id="editor2">
	<p>Foo bar</p>
</div>
<div id="tokenValue2" style="word-break:break-all;border:1px solid red;"></div>

<script>
	exportPdfUtils.initManualTest();

	var editor1 = CKEDITOR.replace( 'editor1', exportPdfUtils.getDefaultConfig( 'manual', { height: 100 } ) ),
		editor2 = CKEDITOR.replace( 'editor2', exportPdfUtils.getDefaultConfig( 'manual', { exportPdf_tokenUrl: '', height: 100 } ) );

	editor1.on( 'instanceReady', function() {
		if ( !CKEDITOR.config.exportPdf_tokenUrl ) {
			bender.ignore();
		}
	} );

	editor1.on( 'exportPdf', function( evt ) {
		var value = CKEDITOR.document.findOne( '#tokenValue1' );

		value.setHtml( evt.data.token );
		evt.cancel();
	}, null, null, 17 );

	editor2.on( 'exportPdf', function( evt ) {
		var value = CKEDITOR.document.findOne( '#tokenValue2' );

		value.setHtml( evt.data.token );
		evt.cancel();
	}, 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/tokentwoeditorswrong.html
ckeditor_rails-4.16.3 vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/tokentwoeditorswrong.html
ckeditor_rails-4.16.2 vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/tokentwoeditorswrong.html
ckeditor_rails-4.16.1 vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/tokentwoeditorswrong.html
ckeditor_rails-4.16.0 vendor/assets/javascripts/ckeditor/plugins/exportpdf/tests/manual/tokentwoeditorswrong.html