|
    Ultima modificación |
    Ver Log
    | 
  
  
  
     
        
        | Rev | 
        Autor | 
        Línea Nro. | 
        Línea | 
        
     
     
        
           | 6056 | 
           efrain | 
           1 | 
           <div id="editor">
  | 
        
        
            | 
            | 
           2 | 
           	<p>Foo bar</p>
  | 
        
        
            | 
            | 
           3 | 
           </div>
  | 
        
        
            | 
            | 
           4 | 
              | 
        
        
            | 
            | 
           5 | 
           <div id="tokenValue" style="word-break:break-all;border:1px solid red;"></div>
  | 
        
        
            | 
            | 
           6 | 
              | 
        
        
            | 
            | 
           7 | 
           <script>
  | 
        
        
            | 
            | 
           8 | 
           	exportPdfUtils.initManualTest();
  | 
        
        
            | 
            | 
           9 | 
              | 
        
        
            | 
            | 
           10 | 
           	var editor = CKEDITOR.replace( 'editor', exportPdfUtils.getDefaultConfig( 'manual' ) );
  | 
        
        
            | 
            | 
           11 | 
              | 
        
        
            | 
            | 
           12 | 
           	editor.on( 'instanceReady', function() {
  | 
        
        
            | 
            | 
           13 | 
           		if ( !CKEDITOR.config.exportPdf_tokenUrl ) {
  | 
        
        
            | 
            | 
           14 | 
           			bender.ignore();
  | 
        
        
            | 
            | 
           15 | 
           		}
  | 
        
        
            | 
            | 
           16 | 
           	} );
  | 
        
        
            | 
            | 
           17 | 
              | 
        
        
            | 
            | 
           18 | 
           	editor.on( 'exportPdf', function( evt ) {
  | 
        
        
            | 
            | 
           19 | 
           		var value = CKEDITOR.document.findOne( '#tokenValue' );
  | 
        
        
            | 
            | 
           20 | 
              | 
        
        
            | 
            | 
           21 | 
           		value.setHtml( evt.data.token );
  | 
        
        
            | 
            | 
           22 | 
           	}, null, null, 17 );
  | 
        
        
            | 
            | 
           23 | 
           </script>
  |