tokenwithouturl.html 456 B

12345678910111213141516171819
  1. <div id="editor">
  2. <p>Foo bar</p>
  3. </div>
  4. <div id="tokenValue" style="word-break:break-all;border:1px solid red;"></div>
  5. <script>
  6. exportPdfUtils.initManualTest();
  7. var editor = CKEDITOR.replace( 'editor', exportPdfUtils.getDefaultConfig( 'manual', {
  8. exportPdf_tokenUrl: ''
  9. } ) );
  10. editor.on( 'exportPdf', function( evt ) {
  11. var value = CKEDITOR.document.findOne( '#tokenValue' );
  12. value.setHtml( evt.data.token );
  13. }, null, null, 17 );
  14. </script>