Recent

Author Topic: TinyMCE for Lazarus (Html Editor Control)  (Read 7966 times)

derek.john.evans

  • Guest
TinyMCE for Lazarus (Html Editor Control)
« on: October 01, 2014, 08:30:13 pm »
This is just a crazy idea I had today. Running TinyMCE inside a TWebBrowser to look like normal lazarus control.
Seems to work.  ;D

Download source code here:
http://www.wascal.net/bin/WebControls.zip

TinyMCE is here:
http://www.tinymce.com/

Timewarp

  • Full Member
  • ***
  • Posts: 144
Re: TinyMCE for Lazarus (Html Editor Control)
« Reply #1 on: October 01, 2014, 09:03:54 pm »
Have used http://ckeditor.com/ for many years.

Even wrote small demo year ago, but never posted it.

http://netikka.net/dev/ckeditor_laz.zip

Copy of CKeditor is in same folder. Another way would be to load it from web. I'm using both, first looking for local, then loading from web.

derek.john.evans

  • Guest
Re: TinyMCE for Lazarus (Html Editor Control)
« Reply #2 on: October 01, 2014, 09:27:06 pm »
Wow, that looks pretty dam amazing.

Timewarp

  • Full Member
  • ***
  • Posts: 144
Re: TinyMCE for Lazarus (Html Editor Control)
« Reply #3 on: October 01, 2014, 10:22:15 pm »
Thanks for the demo, looks very nice. Interresting to compare how you did it

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: TinyMCE for Lazarus (Html Editor Control)
« Reply #4 on: October 02, 2014, 07:42:39 am »
I'd like to thank you both for your samples. I was looking to do something similar for the last 2 weeks your posts are god send at this points thank you.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

snorkel

  • Hero Member
  • *****
  • Posts: 817
Re: TinyMCE for Lazarus (Html Editor Control)
« Reply #5 on: October 02, 2014, 05:18:46 pm »
hmm that's pretty interesting, I could see that being used in a chat application instead of a rich text control.

Have either of you tested the output this creates with http://wiki.lazarus.freepascal.org/THtmlPort ?

I could see the TinyMCE or other control being used as the chat input and then have the THTMLport as the receiver of incoming and outgoing
chat messages.
***Snorkel***
If I forget, I always use the latest stable 32bit version of Lazarus and FPC. At the time of this signature that is Laz 3.0RC2 and FPC 3.2.2
OS: Windows 10 64 bit

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: TinyMCE for Lazarus (Html Editor Control)
« Reply #6 on: October 02, 2014, 05:51:43 pm »
hmm that's pretty interesting, I could see that being used in a chat application instead of a rich text control.

Have either of you tested the output this creates with http://wiki.lazarus.freepascal.org/THtmlPort ?

I could see the TinyMCE or other control being used as the chat input and then have the THTMLport as the receiver of incoming and outgoing
chat messages.

I'm using it for something much more basic than chat, email client and if everything goes well I'll probably port an ICQ client that I have from delphi too, later though for now I'll try to implement the bare minimum of the email client.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

derek.john.evans

  • Guest
Re: TinyMCE for Lazarus (Html Editor Control)
« Reply #7 on: October 02, 2014, 08:21:02 pm »
Quote
I'd like to thank you both for your samples. I was looking to do something similar for the last 2 weeks your posts are god send at this points thank you.

Cool, thanks, this code was a great help:
http://forum.lazarus.freepascal.org/index.php/topic,19506.0.html

I have a lot of plans to use this stuff in Wascal. I guess, I will be going with the JS html editor which is the smallest, fastest and works inside a TWebBrowser without causing any stability issues with the host.

Time will tell

 

TinyPortal © 2005-2018