Upload an Image from select image file , in pe:ckeditor

Community Driven Extensions Project
Post Reply
traxprimepro
Posts: 3
Joined: 14 Dec 2016, 20:57

14 Dec 2016, 23:18

Hi, I'm using the "pe:ckEditor" in my project, I know that we can include plugins. In my case I'm using "resources-ckeditor-4.0.0." My problem is that I need to upload an image from a local path, (My PC) with just a button using the system file explorer functionality not the standard URL option available.
I'm using: primefaces-5.3.7, primefaces-extensions-4.0.0 and resources-ckeditor-4.0.0,

I can't upgrade my project to the 6.0 primefaces and extensions versions now, because is causing the system to be unstable

If anyone knows a possible solution, please let me know.

User avatar
Melloware
Posts: 1241
Joined: 22 Apr 2013, 15:48

02 Jan 2017, 22:07

It looks like this Enhanced Image Plugin allows loading of local images from your desktop?
PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 7.0.6 / PF Extensions 7.0.2

singareddy
Posts: 14
Joined: 28 Dec 2012, 21:26

31 May 2018, 10:49

Hello,
I am trying to add upload image functionality to the CKEditor. I have downloaded image2 and uploadimage zip and added to the resources-ckeditor plugins directory. As mentioned in the document https://sdk.ckeditor.com/samples/image2.html#sample-1
, one need to add

extraPlugins: 'image2,uploadimage',

or in JSF as

extraPlugins="'image2,uploadimage'"

But extraPlugins is not available in attribute pe:ckEditor. Similar to this need to add following attributes

filebrowserBrowseUrl
filebrowserImageBrowseUrl
filebrowserUploadUrl
filebrowserImageUploadUrl
uploadUrl
format_tags
removeDialogTabs

How to do it? Your help in this regard greatly appreciated.
Thanks

Ravi

User avatar
Melloware
Posts: 1241
Joined: 22 Apr 2013, 15:48

31 May 2018, 13:09

I don't think adding your own plugins to CKEditor is that easy. I think the Extensions team would have to add it for you as plugins to the component.

You can request the enhancement here: https://github.com/primefaces-extension ... com/issues
PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 7.0.6 / PF Extensions 7.0.2

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest