Initial Commit

This commit is contained in:
2026-01-07 15:46:00 +01:00
commit 7133af82e3
1454 changed files with 362274 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
<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', {
extraPlugins: 'easyimage,exportpdf',
cloudServices_uploadUrl: 'https://33333.cke-cs.com/easyimage/upload/',
cloudServices_tokenUrl: 'https://33333.cke-cs.com/token/dev/ijrDsqFix838Gh3wGO3F77FSW94BwcLXprJ4APSp3XQ26xsUHTi0jcb1hoBt'
} ) );
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>

View File

@@ -0,0 +1,26 @@
@bender-tags: exportpdf, feature, 77
@bender-ui: collapsed
@bender-include: ../../_helpers/tools.js
@bender-ckeditor-plugins: wysiwygarea, toolbar, basicstyles, notification, format, easyimage
Note: You need the Internet connection to run this test.
1. Click `Export to PDF` toolbar button.
1. Examine the area in the red frame below.
**Expected:** There is a long token string in the frame.
**Unexpected:** Frame is empty or says 'undefined'.
1. Wait for the file to download and examine it.
**Expected:** No information about being created with CKEditor was added.
**Unexpected:** There is an additional note about CKEditor at the bottom of page.
1. Upload an image.
1. Examine browser console.
**Expected:** There are no errors or warnings.
**Unexpected:** Any error or warning concerning `Export to PDF` or `Easy Image` occurred.