YetiForceCompany / YetiForceCRM

Our team created for you one of the most innovative CRM systems that supports mainly business processes and allows for customization according to your needs. Be ahead of your competition and implement YetiForce!
https://yetiforce.com
Other
1.74k stars 749 forks source link

Missing possibility to ul images to PDF #3623

Closed kpaulaha closed 8 years ago

kpaulaha commented 8 years ago

Issue

When creating pdf, you got not possibility to upload images

Actual Behavior

(Sorry, Finnish browser) 2016-10-03 11_50_41-pdf

Expected Behavior

2016-10-03 12_01_44-asetukset

How to trigger the error

  1. create pdf, add image 2. 3.

    Your Environment

    • YetiForce Version used: 3.2.xx
    • Browser name and version:
    • Environment name and version:
    • Operating System and version:
kpaulaha commented 8 years ago

Noticed CKFinder is payable now. What about KCFinder?

bpabiszczak commented 8 years ago

It's Not a Bug, It's The Future :) We removed this library, in the future we will write a plugin. You can use direct links

PercyP commented 8 years ago

Hi,

using direct links isn't practical. When you say 'in the future' how long into the future would that be?

Because there isn't a field type for images, I use the text editor to add associated images to records. Other users will not have an option to upload their images outside of yetiforce i.e. to the server (as this is what it would entail if the wanted to add images), and even then, they would need to know the full path to the image file).

Can this functionality not be re-instated until a plugin is developed? If not, are you able to tell us which files/folders have been deleted so those of us who want the image uploader can re-install it ourselves?

Kind regards

Percy

kpaulaha commented 8 years ago

I think the reason why it is removed is that the price for ckfinder is now 99usd. Maybe could use kcfinder instead, free open source.

PercyP commented 8 years ago

@kpaulaha It was actally kcfinder that was installed and this is what it says about it "KCFinder is free open-source replacement of CKFinder web file manager".

I have just been looking on ckeditor website and there are lots of useful plugins I wouldn't mind installing, including an image gallery. However it doesn't seem that straight forward to install via this integrated version of ckeditor.

kpaulaha commented 8 years ago

Damn, you are right, it was kcfinder, had not checked in the libraries of old versions. Well, in that case as you said, if could get that back until getting something new. We have no problems with direct links on our servers, but others might have.

PercyP commented 8 years ago

@kpaulaha

I have been trying to re-add for the last few hours, basically as follows:

  1. took a download of yetiforce 3.2
  2. Copied the file for kcfinder from libraries/ to my version /libraries
  3. Opened the kcfinder folder and changed the upload permission to 777
  4. Opened /libraries/jquery/ckeditor/config.js
  5. re-added (just below this line: config.shiftEnterMode = CKEDITOR.ENTER_P;

the following 2 lines:

config.filebrowserBrowseUrl = 'libraries/kcfinder/browse.php?type=images'; 
config.filebrowserUploadUrl = 'libraries/kcfinder/upload.php?type=images'; 

Then added filebrowser here

config.plugins = 'dialogui,dialog,about,a11yhelp,dialogadvtab,basicstyles,bidi,blockquote,clipboard,button,panelbutton,panel,floatpanel,colorbutton,colordialog,menu,contextmenu,div,resize,toolbar,elementspath,enterkey,entities,popup,filebrowser,find,fakeobjects,floatingspace,listblock,richcombo,font,format,horizontalrule,htmlwriter,wysiwygarea,image,indent,indentblock,indentlist,justify,link,list,liststyle,magicline,pagebreak,preview,removeformat,selectall,showborders,sourcearea,specialchar,menubutton,scayt,stylescombo,tab,table,tabletools,undo,wsc';

However I am obviously missing some additional steps as this still doesn't load the upload button. Any ideas?

kpaulaha commented 8 years ago

@PercyP Seems ok at a quick look. Have to dive into it later with time.