WebsiteBaker Support (2.13.x) > Modules
PDF Dateien zum Download bereitstellen - mit welchem Modul?
hgs:
--- Quote from: dbs on February 09, 2022, 07:03:43 AM ---Hallo Matthias, versuch mal vorher eine Gruppe anzulegen und dieser das PDF zuordnen.
--- End quote ---
Das ist das Problem. Ich habe es gerade mal einen einer frischen Installation getestet.
Erst wenn eine Gruppe angelegt ist und die Datei dieser zugeordnet ist, wird es im FE (FrontEnd) auch angezeigt.
hgs:
--- Quote from: crnogorac081 on February 09, 2022, 06:57:20 AM ---Hello,
2. You can upload, but you can't display pdf file on page ?
In case 2, I can send you the CKEditor plugin that I created, to display PDF file on page.
--- End quote ---
You are welcome to post the plugin.
Is the PDF output readable in the FE with it?
crnogorac081:
Hello,
here is plugin. It uses Iframe and https://drive.google.com/viewerng/viewer for displaying files. Inside plugin you can change this for any other viewer.
There is no documentation about Google doc viewer API available for commercial use, if someone finds any, please provide info.
The plugin uses publicly available url, so it cannot be tested on local machine !
To make it work, here is procedure:
1. Unpack and paste folder in Plugins folder (root/modules/ckeditor/ckeditor/plugins)
2. Open file root/modules/ckeditor/wb_config/wb_config.js and inside toolbar that you are using ADD Button "pdfOglas"
Example:
--- Code: --- config.toolbar_WB_Full =
[
{ name: 'document', items : ['Source','-','Save','Print','-','DocProps','Preview','NewPage','-','Templates']},
{ name: 'clipboard', items : ['Cut','Copy','-','Undo','Redo']},
{ name: 'editing', items : ['Find','-','SelectAll','-','SpellChecker', 'Scayt']},
{ name: 'colors', items : ['TextColor','BGColor']},
'/',
{ name: 'basicstyles', items : ['Bold','Italic','Underline','Strike','Subscript','Superscript','Shy','-','RemoveFormat']},
{ name: 'paragraph', items : ['NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl']},
{ name: 'forms', items : ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton','HiddenField']},
'/',
{ name: 'styles', items : ['Styles','Format','Font','FontSize' ]},
{ name: 'links', items : ['Link','Unlink','Anchor','Wbdroplets','Wblink']},
{ name: 'insert', items : ['Image','Table','HorizontalRule','Smiley','emoji','SpecialChar','PageBreak','Iframe']},
{ name: 'media', items : ['wboembed']},
{ name: 'tools', items : ['Maximize', 'ShowBlocks','Syntaxhighlight','CreatePlaceholder']},
{ name: 'info', items : ['About']},
'/',
{ name: 'custom1', items : ['pdfOglas']}
];
--- End code ---
Note last line - 'custom1' toolbar group, and its Button there pdfOglas.
3. Open file root/modules/ckeditor/include.php and around line 211
--- Code: --- if (!$bWbConfigSetting ) {
$ckeditor->config['extraPlugins'] =
'codemirror'
. ',filebrowser'
. ',syntaxhighlight'
. ',wblink'
. ',wbdroplets'
. ',wbabout'
. ',wboembed'
. ',wbrelation'
// ADD PLUGIN
. ',pdfoglas'
--- End code ---
Thats it, there will be red PDF button inside CKEditor. The styling you can adapt to your own needs. To access dialog, there are different varions: 1. click on placeholder than Button, double click on placeholder, or right click on placeholder.
Have fun.
I.
hgs:
Ok, vielen Dank für´s teilen.
Da aber mit dem Urteil zu Google-Fonts dass ganze von den FE-Usern zugestimmt werden müsste, sehe ich da ein Problem bei den "abmahnfreudigen Menschen" in Deutschland
Link zum Bericht
DeepL
Ok, thanks for sharing.
But since with the Google Fonts ruling the whole thing would have to be approved by the FE users, I see a problem there with the "warning happy people" in Germany
Link to the report in German
crnogorac081:
I understand. Of course I did not impose this, but only presented as an option how I solved this problem, because as you know on the desktop PDF file is displayed, but on mobile devices it is not displayed, but only as a download link. If you like you can use another provider to display pdf and if there is better one, which has no problem with use, I would like you to let me know.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version