stylesheets.html 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <h2>Classic Editor</h2>
  2. <textarea id="editor1">
  3. <span class="badge badge-success">Classic Editor</span>
  4. </textarea>
  5. <h2>Divarea Editor</h2>
  6. <div id="editor2">
  7. <span class="badge badge-success">Divarea Editor</span>
  8. </div>
  9. <h2>Inline Editor</h2>
  10. <div id="editor3" contenteditable="true">
  11. <span class="badge badge-success">Inline Editor</span>
  12. </div>
  13. <script>
  14. exportPdfUtils.initManualTest();
  15. CKEDITOR.replace( 'editor1', exportPdfUtils.getDefaultConfig( 'manual', {
  16. exportPdf_stylesheets: [ 'https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css' ],
  17. extraPlugins: 'wysiwygarea,exportpdf',
  18. allowedContent: true
  19. } ) );
  20. CKEDITOR.replace( 'editor2', exportPdfUtils.getDefaultConfig( 'manual', {
  21. exportPdf_stylesheets: [ 'https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css' ],
  22. extraPlugins: 'divarea,exportpdf',
  23. allowedContent: true
  24. } ) );
  25. CKEDITOR.inline( 'editor3', exportPdfUtils.getDefaultConfig( 'manual', {
  26. exportPdf_stylesheets: [ 'https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css' ],
  27. extraPlugins: 'floatingspace,exportpdf',
  28. allowedContent: true
  29. } ) );
  30. </script>