Re: [WebDNA] Froala Editor working with WebDNA

This WebDNA talk-list message is from

2016


It keeps the original formatting.
numero = 113245
interpreted = N
texte = 833 --001a1146c12095704205439fb53e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Palle, Set your 'imageUploadURL' to a WedDNA page. Then on that page add a [sendmail] to yourself with a [formvariables] in the body of the email: [sendmail to=3Dmyemail@email.com&from=3Dfroala@email.com&subject=3DFroala E= ditor Upload Params] [formvariables][name]:[value]
[/formvariables] [/sendmail] That will show you what data is being passed by the editor. You should then be able to parse and deal with it. You *might* need to change the 'imageUploadMethod' to 'post'. There is info in the archives on how to deal with image uploads (i.e http://webdna.us/page.dna?numero=3D58031). - Tom =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Digital Revolutionaries 1st Floor, Castleriver House 14-15 Parliament Street Temple Bar,Dublin 2 Ireland ---------------------------------------------- [t]: + 353 1 4403907 <(01)%20440%203907> [e]: [w]: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D On 14 December 2016 at 11:06, Palle Bo Nielsen wrote: > So I stated a project page where a lot is running as it should. > > Current problem is that I need to make the form accept the drag/drop imag= e > into the Textarea form which is supported by Froala. It depends on some J= S > code=E2=80=A6 > > imageUploadParam: 'file_name', > imageUploadURL: '/dev/froala/image', > imageUploadMethod: 'PUT', > imageMaxSize: 1024 * 1024 * 3, > imageAllowedTypes: ['jpeg', 'jpg', 'png'], > How can i extract the =E2=80=9CimageUploadParam=E2=80=9D into WebDNA and = how do I catch > and store it=E2=80=A6? > > =E2=80=9C...The upload flow for the image is quite simple and it is expla= ined > here: https://www.froala.com/wysiwyg-editor/docs/concepts/image/upload. > First of all you have to tell the editor where to make the upload request > (imageUploadURL). Then, your server should catch the request, store the > image and then return a response in JSON format that looks like this: { > link: 'path/to/image.jpg' }=E2=80=A6" > > If you have anything to add/contribute or just being helpful then visits > http://www.qt.dk/dev/froala/image/ (id and pass is lowercase =E2=80=98a= =E2=80=99). > > /Palle > > > > > > > On 17 Nov 2016, at 07.55, Stuart Tremain wrote: > > Hey Palle > > I had a bit of a look at this, it seems that Froala want a JSON response: > such as {"link":"https://i.froala.com/download/6143ec97622356aaeb > 01df3b648b11a0f3176636.jpg?1479365089=E2=80=9D} > > You can see this by viewing what the AJAX is returning. > > I did have a bit of trouble making JSON work properly on a server a while > ago, the response needs to be handled properly through Apache & webdna > without any spaces at the beginning. If you have problems, I will have a > dig around for what I did to fix it for a system that I developed. > > > > Kind regards > > Stuart Tremain > Pharoah Lane Software > AUSTRALIA > webdna@idfk.com.au > > > > > > > On 7 Nov. 2016, at 02:15, Palle Bo Nielsen > wrote: > > Evening all > > Some of you might know the Froala Javascript Editor which in my opinion i= s > a great editor. The editor enabled a lot of function within a textarea > which for me works great. One of the function where I have not been able = to > make it work is the the image function where you can drag and drop an ima= ge > to the textarea - the image is being uploaded and displayed in the > textarea. The reason for me not being able to make it work is that the > Froala Editor expects some handling server side and I can not figure it > out. The great thing is that I have WebDNA to provide me with the server > side stuff; the bad thing is that I can not see what is needed. > > https://www.froala.com/wysiwyg-editor/docs/concepts/image/upload > > Any care to join me in making it happen? > > The result could be used by Froala as an official WebDNA SDK just as an > PHP has been published. This could benefit the WebDNA community. > > https://www.froala.com/wysiwyg-editor > > https://www.froala.com/wysiwyg-editor/docs > > I hope for a positive response :) > > /Palle > > > > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list . To > unsubscribe, E-mail to: archives: http://mail.webdna.us/list/tal > k@webdna.us Bug Reporting: support@webdna.us > > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list . To > unsubscribe, E-mail to: archives: http://mail.webdna.us/list/tal > k@webdna.us Bug Reporting: support@webdna.us > > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list . To > unsubscribe, E-mail to: archives: http://mail.webdna.us/list/tal > k@webdna.us Bug Reporting: support@webdna.us > > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list . To > unsubscribe, E-mail to: archives: http://mail.webdna.us/list/tal > k@webdna.us Bug Reporting: support@webdna.us > --001a1146c12095704205439fb53e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Palle,

Set your 'imageUploadURL' to a WedDNA page.

Then on that page add a [= sendmail] to yourself with a [formvariables] in the=C2=A0body of the email:=

[sendmail to=3Dmyemail@email.com&= from=3Dfroala@em= ail.com&subject=3DFroala=C2=A0Editor Upload Params]

[formvariables][name]:[value]<<= wbr>br />
[/formvariables]

[/sendmail]

=
That will show you what data is being passed by the editor.=C2= =A0 You should then be able to parse and deal with it. You *might* need to = change the 'imageUploadM= ethod' to 'post'.

There is info= in the archives on how to deal with image uploads (i.e http://webdna.us/page.dna?numero=3D58031<= /a>).




On 14 December 2016 at 11:06, Palle Bo Niels= en <powerpalle@powerpalle.dk> wrote:
So I stated a project page whe= re a lot is running as it should.

Current problem = is that I need to make the form accept the drag/drop image into the Textare= a form which is supported by Froala. It depends on some JS code=E2=80=A6

image= UploadParam: 'file_name',
imageUploadURL: '/dev/froala/image',
imageUploadMethod: 'PUT',
imageMaxSize: 1024 * 1024 * 3,=
imageAllowedTypes: [&#= 39;jpeg', 'jpg', 'png'],

How can i extract the =E2=80=9CimageUpload= Param=E2=80=9D into WebDNA and how do I catch and store it=E2=80=A6?
<= div>
=E2=80=9C...The upload flow for the image is quite simpl= e and it is explained here:=C2=A0https://www.froala.com= /wysiwyg-editor/docs/concepts/image/upload. First of all you = have to tell the editor where to make the upload request (imageUploadURL). = Then, your server should catch the request, store the image and then return= a response in JSON format that looks like this:=C2=A0{ link: 'path/to/= image.jpg' }=E2=80=A6"

If you have = anything to add/contribute or just being helpful then visits http://www.qt.dk/dev/fro= ala/image/=C2=A0(id and pass is lowercase =E2=80=98a=E2=80=99).

/Pa= lle






=
On 17 Nov 2016, at 07.55, Stuart Tremai= n <webdna@idfk.c= om.au> wrote:

Hey Palle

I had a bit of a look at this, it see= ms that Froala want a JSON response: such as=C2=A0{"link":"<= a href=3D"https://i.froala.com/download/6143ec97622356aaeb01df3b648b11a0f31= 76636.jpg?1479365089" target=3D"_blank">https://i.froala.com/download/= 6143ec97622356aaeb01df3b648b11a0f3176636.jpg?1479365089=E2=80= =9D}

You can see this by viewing what the AJAX is = returning.

I did have a bit of trouble making JSON= work properly on a server a while ago, the response needs to be handled pr= operly through Apache & webdna without any spaces at the beginning. If = you have problems, I will have a dig around for what I did to fix it for a = system that I developed.



Kin= d regards

Stuart Tremain
Pharoah Lane So= ftware
AUSTRALIA






On 7 Nov. 2016, at 02:15, Palle Bo = Nielsen <p= owerpalle@powerpalle.dk> wrote:

Evening all

Some of you might know= the Froala Javascript Editor which in my opinion is a great editor. The ed= itor enabled a lot of function within a textarea which for me works great. = One of the function where I have not been able to make it work is the the i= mage function where you can drag and drop an image to the textarea - the im= age is being uploaded and displayed in the textarea. The reason for me not = being able to make it work is that the Froala Editor expects some handling = server side and I can not figure it out. The great thing is that I have Web= DNA to provide me with the server side stuff; the bad thing is that I can n= ot see what is needed.

https:/= /www.froala.com/wysiwyg-editor/docs/concepts/image/upload

Any care to join me in making it happen?
The result could be used by Froala as an official WebDNA SDK j= ust as an PHP has been published. This could benefit the WebDNA community.<= /div>

=
=
I hope for a positive response :)

/= Palle




--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us --001a1146c12095704205439fb53e-- . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Froala Editor working with WebDNA (Stuart Tremain 2016)
  2. Re: [WebDNA] Froala Editor working with WebDNA (Christer Olsson 2016)
  3. Re: [WebDNA] Froala Editor working with WebDNA (Kenneth Grome 2016)
  4. Re: [WebDNA] Froala Editor working with WebDNA (Christer Olsson 2016)
  5. Re: [WebDNA] Froala Editor working with WebDNA (Palle Bo Nielsen 2016)
  6. Fwd: [WebDNA] Froala Editor working with WebDNA (Palle Bo Nielsen 2016)
  7. Re: [WebDNA] Froala Editor working with WebDNA (Stuart Tremain 2016)
  8. Re: [WebDNA] Froala Editor working with WebDNA (Palle Bo Nielsen 2016)
  9. Re: [WebDNA] Froala Editor working with WebDNA (Stuart Tremain 2016)
  10. Re: [WebDNA] Froala Editor working with WebDNA (Palle Bo Nielsen 2016)
  11. Re: [WebDNA] Froala Editor working with WebDNA (Palle Bo Nielsen 2016)
  12. Re: [WebDNA] Froala Editor working with WebDNA (Stuart Tremain 2016)
  13. Re: [WebDNA] Froala Editor working with WebDNA (Stuart Tremain 2016)
  14. Re: [WebDNA] Froala Editor working with WebDNA (Palle Bo Nielsen 2016)
  15. Re: [WebDNA] Froala Editor working with WebDNA (Stuart Tremain 2016)
  16. Re: [WebDNA] Froala Editor working with WebDNA (Palle Bo Nielsen 2016)
  17. Re: [WebDNA] Froala Editor working with WebDNA (Stuart Tremain 2016)
  18. Re: [WebDNA] Froala Editor working with WebDNA (Palle Bo Nielsen 2016)
  19. Re: [WebDNA] Froala Editor working with WebDNA (Tom Duke 2016)
  20. Re: [WebDNA] Froala Editor working with WebDNA (Palle Bo Nielsen 2016)
  21. Re: [WebDNA] Froala Editor working with WebDNA (Palle Bo Nielsen 2016)
  22. Re: [WebDNA] Froala Editor working with WebDNA (Palle Bo Nielsen 2016)
  23. Re: [WebDNA] Froala Editor working with WebDNA (Stuart Tremain 2016)
  24. Re: [WebDNA] Froala Editor working with WebDNA (dale 2016)
  25. Re: [WebDNA] Froala Editor working with WebDNA (WebDNA Development 2016)
  26. [WebDNA] Froala Editor working with WebDNA (Palle Bo Nielsen 2016)
833 --001a1146c12095704205439fb53e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Palle, Set your 'imageUploadURL' to a WedDNA page. Then on that page add a [sendmail] to yourself with a [formvariables] in the body of the email: [sendmail to=3Dmyemail@email.com&from=3Dfroala@email.com&subject=3DFroala E= ditor Upload Params] [formvariables][name]:[value]
[/formvariables] [/sendmail] That will show you what data is being passed by the editor. You should then be able to parse and deal with it. You *might* need to change the 'imageUploadMethod' to 'post'. There is info in the archives on how to deal with image uploads (i.e http://webdna.us/page.dna?numero=3D58031). - Tom =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Digital Revolutionaries 1st Floor, Castleriver House 14-15 Parliament Street Temple Bar,Dublin 2 Ireland ---------------------------------------------- [t]: + 353 1 4403907 <(01)%20440%203907> [e]: [w]: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D On 14 December 2016 at 11:06, Palle Bo Nielsen wrote: > So I stated a project page where a lot is running as it should. > > Current problem is that I need to make the form accept the drag/drop imag= e > into the Textarea form which is supported by Froala. It depends on some J= S > code=E2=80=A6 > > imageUploadParam: 'file_name', > imageUploadURL: '/dev/froala/image', > imageUploadMethod: 'PUT', > imageMaxSize: 1024 * 1024 * 3, > imageAllowedTypes: ['jpeg', 'jpg', 'png'], > How can i extract the =E2=80=9CimageUploadParam=E2=80=9D into WebDNA and = how do I catch > and store it=E2=80=A6? > > =E2=80=9C...The upload flow for the image is quite simple and it is expla= ined > here: https://www.froala.com/wysiwyg-editor/docs/concepts/image/upload. > First of all you have to tell the editor where to make the upload request > (imageUploadURL). Then, your server should catch the request, store the > image and then return a response in JSON format that looks like this: { > link: 'path/to/image.jpg' }=E2=80=A6" > > If you have anything to add/contribute or just being helpful then visits > http://www.qt.dk/dev/froala/image/ (id and pass is lowercase =E2=80=98a= =E2=80=99). > > /Palle > > > > > > > On 17 Nov 2016, at 07.55, Stuart Tremain wrote: > > Hey Palle > > I had a bit of a look at this, it seems that Froala want a JSON response: > such as {"link":"https://i.froala.com/download/6143ec97622356aaeb > 01df3b648b11a0f3176636.jpg?1479365089=E2=80=9D} > > You can see this by viewing what the AJAX is returning. > > I did have a bit of trouble making JSON work properly on a server a while > ago, the response needs to be handled properly through Apache & webdna > without any spaces at the beginning. If you have problems, I will have a > dig around for what I did to fix it for a system that I developed. > > > > Kind regards > > Stuart Tremain > Pharoah Lane Software > AUSTRALIA > webdna@idfk.com.au > > > > > > > On 7 Nov. 2016, at 02:15, Palle Bo Nielsen > wrote: > > Evening all > > Some of you might know the Froala Javascript Editor which in my opinion i= s > a great editor. The editor enabled a lot of function within a textarea > which for me works great. One of the function where I have not been able = to > make it work is the the image function where you can drag and drop an ima= ge > to the textarea - the image is being uploaded and displayed in the > textarea. The reason for me not being able to make it work is that the > Froala Editor expects some handling server side and I can not figure it > out. The great thing is that I have WebDNA to provide me with the server > side stuff; the bad thing is that I can not see what is needed. > > https://www.froala.com/wysiwyg-editor/docs/concepts/image/upload > > Any care to join me in making it happen? > > The result could be used by Froala as an official WebDNA SDK just as an > PHP has been published. This could benefit the WebDNA community. > > https://www.froala.com/wysiwyg-editor > > https://www.froala.com/wysiwyg-editor/docs > > I hope for a positive response :) > > /Palle > > > > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list . To > unsubscribe, E-mail to: archives: http://mail.webdna.us/list/tal > k@webdna.us Bug Reporting: support@webdna.us > > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list . To > unsubscribe, E-mail to: archives: http://mail.webdna.us/list/tal > k@webdna.us Bug Reporting: support@webdna.us > > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list . To > unsubscribe, E-mail to: archives: http://mail.webdna.us/list/tal > k@webdna.us Bug Reporting: support@webdna.us > > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list . To > unsubscribe, E-mail to: archives: http://mail.webdna.us/list/tal > k@webdna.us Bug Reporting: support@webdna.us > --001a1146c12095704205439fb53e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Palle,

Set your 'imageUploadURL' to a WedDNA page.

Then on that page add a [= sendmail] to yourself with a [formvariables] in the=C2=A0body of the email:=

[sendmail to=3Dmyemail@email.com&= from=3Dfroala@em= ail.com&subject=3DFroala=C2=A0Editor Upload Params]

[formvariables][name]:[value]<<= wbr>br />
[/formvariables]

[/sendmail]

=
That will show you what data is being passed by the editor.=C2= =A0 You should then be able to parse and deal with it. You *might* need to = change the 'imageUploadM= ethod' to 'post'.

There is info= in the archives on how to deal with image uploads (i.e http://webdna.us/page.dna?numero=3D58031<= /a>).




On 14 December 2016 at 11:06, Palle Bo Niels= en <powerpalle@powerpalle.dk> wrote:
So I stated a project page whe= re a lot is running as it should.

Current problem = is that I need to make the form accept the drag/drop image into the Textare= a form which is supported by Froala. It depends on some JS code=E2=80=A6

image= UploadParam: 'file_name',
imageUploadURL: '/dev/froala/image',
imageUploadMethod: 'PUT',
imageMaxSize: 1024 * 1024 * 3,=
imageAllowedTypes: [&#= 39;jpeg', 'jpg', 'png'],

How can i extract the =E2=80=9CimageUpload= Param=E2=80=9D into WebDNA and how do I catch and store it=E2=80=A6?
<= div>
=E2=80=9C...The upload flow for the image is quite simpl= e and it is explained here:=C2=A0https://www.froala.com= /wysiwyg-editor/docs/concepts/image/upload. First of all you = have to tell the editor where to make the upload request (imageUploadURL). = Then, your server should catch the request, store the image and then return= a response in JSON format that looks like this:=C2=A0{ link: 'path/to/= image.jpg' }=E2=80=A6"

If you have = anything to add/contribute or just being helpful then visits http://www.qt.dk/dev/fro= ala/image/=C2=A0(id and pass is lowercase =E2=80=98a=E2=80=99).

/Pa= lle






=
On 17 Nov 2016, at 07.55, Stuart Tremai= n <webdna@idfk.c= om.au> wrote:

Hey Palle

I had a bit of a look at this, it see= ms that Froala want a JSON response: such as=C2=A0{"link":"<= a href=3D"https://i.froala.com/download/6143ec97622356aaeb01df3b648b11a0f31= 76636.jpg?1479365089" target=3D"_blank">https://i.froala.com/download/= 6143ec97622356aaeb01df3b648b11a0f3176636.jpg?1479365089=E2=80= =9D}

You can see this by viewing what the AJAX is = returning.

I did have a bit of trouble making JSON= work properly on a server a while ago, the response needs to be handled pr= operly through Apache & webdna without any spaces at the beginning. If = you have problems, I will have a dig around for what I did to fix it for a = system that I developed.



Kin= d regards

Stuart Tremain
Pharoah Lane So= ftware
AUSTRALIA






On 7 Nov. 2016, at 02:15, Palle Bo = Nielsen <p= owerpalle@powerpalle.dk> wrote:

Evening all

Some of you might know= the Froala Javascript Editor which in my opinion is a great editor. The ed= itor enabled a lot of function within a textarea which for me works great. = One of the function where I have not been able to make it work is the the i= mage function where you can drag and drop an image to the textarea - the im= age is being uploaded and displayed in the textarea. The reason for me not = being able to make it work is that the Froala Editor expects some handling = server side and I can not figure it out. The great thing is that I have Web= DNA to provide me with the server side stuff; the bad thing is that I can n= ot see what is needed.

https:/= /www.froala.com/wysiwyg-editor/docs/concepts/image/upload

Any care to join me in making it happen?
The result could be used by Froala as an official WebDNA SDK j= ust as an PHP has been published. This could benefit the WebDNA community.<= /div>

=
=
I hope for a positive response :)

/= Palle




--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us --001a1146c12095704205439fb53e-- . Tom Duke

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Multi Actions (1999) [WriteFile] problems (1997) ASP and Web DNA (1998) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) Talk List Suggestions (1997) Webcatalog error, Plug-in for Webstar (1996) WebDNA vs SQL ? (2002) form data submission gets truncated (1997) 3RD POST Character limit in [Search]? (1998) shownext (1997) Popup Menu Options (1998) WebCatalog for guestbook ? (1997) TRAINING videos - Prove IT. (1998) Erotic Sites (1997) [shell] command (2000) [WebDNA] timestamp conversion (2011) New cart in ShoppingCarts (2003) Cancel Subscription (1996) WebCat2: Items xx to xx shown, etc. (1997) Empty Shopping Carts? (1998)