Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 11 total
Thread HTML Editor?
Wed, Mar 31 2021 5:58 PMPermanent Link

Steve Gill

Avatar

Hi Tim,

Are there any plans to introduce an HTML Editor component for EWB3?

= Steve
Tue, Apr 6 2021 11:14 AMPermanent Link

Trinione

I am interested in knowing this as well.



Steve Gill wrote:

Hi Tim,

Are there any plans to introduce an HTML Editor component for EWB3?

= Steve

........................................................
PascalNetwork.com
pascal - the language we love
Tue, Apr 6 2021 6:33 PMPermanent Link

Walter Matte

Tactical Business Corporation

I am interested in this as well.

Walter
Wed, Apr 7 2021 9:31 AMPermanent Link

Matthew Jones

Steve Gill wrote:

> Are there any plans to introduce an HTML Editor component for EWB3?

Pretty sure it is easy to use one of the ones out there in the standard embedding way. I'm sure I did it in EWB2 somehow.

--

Matthew Jones
Thu, Apr 8 2021 10:16 AMPermanent Link

Trinione

I believe the issue is that it should be a built-in, feature-rich component, and one should not have to go searching for and 'figuring out' oneself.



"Matthew Jones" wrote:

Steve Gill wrote:

> Are there any plans to introduce an HTML Editor component for EWB3?

Pretty sure it is easy to use one of the ones out there in the standard embedding way. I'm sure I did it in EWB2 somehow.

--

Matthew Jones

........................................................
PascalNetwork.com
pascal - the language we love
Thu, Apr 8 2021 11:40 PMPermanent Link

Steve Gill

Avatar

<< Trinione wrote:

I believe the issue is that it should be a built-in, feature-rich component, and one should not have to go searching for and 'figuring out' oneself. >>

I agree.

= Steve
Fri, Apr 9 2021 11:28 AMPermanent Link

Matthew Jones

Steve Gill wrote:

> I believe the issue is that it should be a built-in, feature-rich component, and one should not have to go searching for and 'figuring out' oneself. >>
>
> I agree.

Hmm, I presume you mean you want a pre-baked integration. You certainly don't want a whole new HTML editor as that would be a massive undertaking. But which one do you integrate with?

I've pasted the code I wrote in EWB2 to test one - CKEditor v4. I had to include their .js files too as part of the project. It is a simple form, a multi-line edit which is taken over by CKEditor, and a browser so I could see the results.

Nothing complicated, and a very powerful HTML editor "for free".

--

Matthew Jones


unit Unit1;

interface

uses WebDom, WebCore, WebUI, WebForms, WebCtrls, WebEdits, WebBrwsr, WebComps, WebCtnrs;

type

  TForm1 = class(TForm)
     Browser1: TBrowser;
     Script1: TScript;
     Panel1: TPanel;
     MultiLineEdit1: TMultiLineEdit;
     procedure Script1Load(Sender: TObject);
     procedure MultiLineEdit1Change(Sender: TObject);
  private
     { Private declarations }
  public
     { Public declarations }
  end;

external TCKEDITOR = class
public
procedure replace(name: string);
end;

CKProc = procedure (sender: TObject) of object;


var
  Form1: TForm1;
   external CKEDITOR : TCKEDITOR;
 external function eval(s: string) : object;

implementation

procedure TForm1.Script1Load(Sender: TObject);
var
   p: CKProc;
text1: string;
begin
   Multilineedit1.clientID := 'Edit1';
   CKEditor.replace('Edit1');
   text1 := '<h1>Hi there</h1><p>welcome</p>';
   eval('CKEDITOR.instances.Edit1.setData("' + text1 + '" );');
   p := MultiLineEdit1Change;

   eval('CKEDITOR.instances.Edit1.on("change", p);');
   MultiLineEdit1Change(nil);
end;

procedure TForm1.MultiLineEdit1Change(Sender: TObject);
begin
   browser1.DocumentText := string(variant(eval('CKEDITOR.instances["Edit1"].getData();')));
end;

end.
Mon, Apr 12 2021 6:54 PMPermanent Link

Steve Gill

Avatar

Hi Matthew,

<< Hmm, I presume you mean you want a pre-baked integration. You certainly don't want a whole new HTML editor as that would be a massive undertaking. But which one do you integrate with? >>

I could be wrong but I believe Tim was considering writing an HTML editor so that EWB3 could be used for creating websites as well as webapps.

<< I've pasted the code I wrote in EWB2 to test one - CKEditor v4. I had to include their .js files too as part of the project. It is a simple form, a multi-line edit which is taken over by CKEditor, and a browser so I could see the results.

Nothing complicated, and a very powerful HTML editor "for free". >>

Thanks!  I'll check it out.

= Steve
Tue, Apr 20 2021 11:25 AMPermanent Link

Trinione

https://www.elevatesoft.com/forums?action=view&category=ewb&id=ewb_general&page=1&msg=13962#13962

That's a link to a post where Tim stated he had started to work on this and would release after 2.07 (now EWB 3) was released.

Can we expect this soon???




Steve Gill wrote:

<< Trinione wrote:

I believe the issue is that it should be a built-in, feature-rich component, and one should not have to go searching for and 'figuring out' oneself. >>

I agree.

= Steve

........................................................
PascalNetwork.com
pascal - the language we love
Tue, Apr 27 2021 2:10 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Trinione,

<< That's a link to a post where Tim stated he had started to work on this and would release after 2.07 (now EWB 3) was released.

Can we expect this soon??? >>

It's half-done (you can see it in the WebEditor unit that is included with EWB), so you can't really use it yet.

Tim Young
Elevate Software
www.elevatesoft.com
Page 1 of 2Next Page »
Jump to Page:  1 2
Image