Initial Commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<div id="editor">
|
||||
<p>Foo bar</p>
|
||||
</div>
|
||||
|
||||
<div id="tokenValue" style="word-break:break-all;border:1px solid red;"></div>
|
||||
|
||||
<script>
|
||||
exportPdfUtils.initManualTest();
|
||||
|
||||
var editor = CKEDITOR.replace( 'editor', exportPdfUtils.getDefaultConfig( 'manual' ) );
|
||||
|
||||
editor.on( 'instanceReady', function() {
|
||||
if ( !CKEDITOR.config.exportPdf_tokenUrl ) {
|
||||
bender.ignore();
|
||||
}
|
||||
} );
|
||||
|
||||
editor.on( 'exportPdf', function( evt ) {
|
||||
var value = CKEDITOR.document.findOne( '#tokenValue' );
|
||||
|
||||
value.setHtml( evt.data.token );
|
||||
}, null, null, 17 );
|
||||
</script>
|
||||
Reference in New Issue
Block a user