html editor component
lazarus / 31-LCL
----------------------------------------------------------------------
mohamedyousof · 2013-04-14 17:29
hey everyone
I need html editor component to create and edit html docs. like the
one used in the forum so I can insert photo and link and video, make
bold, italic etc...
thanks in advance
----------------------------------------------------------------------
Bart · 2013-04-14 18:47
WYSIWYG or will text-based with syntax highlighting do?
Bart
----------------------------------------------------------------------
mohamedyousof · 2013-04-14 20:53
thanks Bart for your reply, but I don't know what wysiwyg is?
I need just component to edit and create html files
thanks
mohamed
----------------------------------------------------------------------
Bart · 2013-04-14 22:19
Quote from: mohamedyousof on April 14, 2013, 10:53:48 pmthanks Bart
for your reply, but I don't know what wysiwyg is?
What You See Is What You Get.
So, basically, the end user of the component does not (necessarily)
see the HTML code, but the end result.
He/she just inserts pictures and actually sees them on the page.
Something like FrontPage.
(Basically however, WYSIWYG in HTML editing is kind of bogus. There is
no reliable way for you to design anything in HTML and be absolutely
sure how it looks in my browser.)
On the other side of the spectrum is plain text editing, with or
without syntax highlighting.
This can easily be achieved by dropping a TSynEdit on a form and bind
it to a HTML highlighter.
You can even be lazy and use Lazarus IDE for it.
Or use LazEdit.
Quote from: mohamedyousof on April 14, 2013, 10:53:48 pmI need just
component to edit and create html files
Then you need to be more specific as to what this (edit and create
html-files) means in your context.
To make HTML Notepad, or even edlin would suffice.
Bart
----------------------------------------------------------------------
a.atalla · 2013-04-14 22:41
i work with mohamed in the same project , we need to make an Email-
Messages Editor , so we want the user of our application be able to
formate his message befor sending it to his customers
----------------------------------------------------------------------
mohamedyousof · 2013-04-14 22:53
or if you have example for
On the other side of the spectrum is plain text editing, with or
without syntax highlighting.
This can easily be achieved by dropping a TSynEdit on a form and bind
it to a HTML highlighter.
You can even be lazy and use Lazarus IDE for it.
how to achieve this? just an example, simple one
thanks
----------------------------------------------------------------------
theo · 2013-04-15 09:06
For GTK2, there is LazWebkit which has an editor in "examples".
You can use LazActiveX on Windows and set the IE in "edit" mode.
http://wiki.freepascal.org/Webbrowser
----------------------------------------------------------------------
felipemdc · 2013-04-15 10:29
SynEdit which comes pre-installed with Lazarus has support syntax
highlighting for editing HTML:
http://wiki.freepascal.org/Lazarus_Tutorial#SynEdit
----------------------------------------------------------------------
a.atalla · 2013-04-15 11:42
Quote from: felipemdc on April 15, 2013, 12:29:47 pmSynEdit which
comes pre-installed with Lazarus has support syntax highlighting for
editing HTML: http://wiki.freepascal.org/Lazarus_Tutorial#SynEdit
We are not looking for a code editor , we are looking for a Rich text
Editor .
----------------------------------------------------------------------
BigChimp · 2013-04-15 11:52
You obviously haven't tried it.
----------------------------------------------------------------------
theo · 2013-04-15 13:44
Quote from: BigChimp on April 15, 2013, 01:52:01 pmYou obviously
haven't tried it.
Who and what do you mean?
----------------------------------------------------------------------
BigChimp · 2013-04-15 14:48
Who: a.atalla
What: synedit
Thought that was clear from the context (e.g. the post that I replied
to)
----------------------------------------------------------------------
a.atalla · 2013-04-15 14:58
no , i did try SynEdit with an SynHighlighterHTML unless u mean
something else
----------------------------------------------------------------------
theo · 2013-04-15 15:04
Quote from: BigChimp on April 15, 2013, 04:48:14 pmWho: a.atalla
What: synedit
But I still don't get the point. Synedit is not a Rich Text Editor. It
is a source code editor.
LazWebkit has an HTML (Rich) Editor option (Attachment).
----------------------------------------------------------------------
a.atalla · 2013-04-15 15:15
Exactly Theo , that what i'm saying the problem is that Lazwebkit is
GTK only and we want our application to run on both windows and linux
i caould use lzRichEdit for most of the work but still can't insert
URLs or Images from URl , also the arabic strings when saving the
lzRichedit to rtf converts into unreadable characters
That what i get til now (attached)
----------------------------------------------------------------------
theo · 2013-04-15 19:45
Quote from: a.atalla on April 15, 2013, 05:15:15 pmExactly Theo , that
what i'm saying the problem is that Lazwebkit is GTK only and we want
our application to run on both windows and linux
Yes, but you can do probably the same with Internet Explorer using
LazAcitivex.
See:
http://delphidev.org/?page_id=189
http://wiki.freepascal.org/LazActiveX
----------------------------------------------------------------------
mohamedyousof · 2013-04-18 16:12
Quote from: theo on April 15, 2013, 09:45:49 pmQuote from: a.atalla on
April 15, 2013, 05:15:15 pmExactly Theo , that what i'm saying the
problem is that Lazwebkit is GTK only and we want our application to
run on both windows and linux
Yes, but you can do probably the same with Internet Explorer using
LazAcitivex.
See:
http://delphidev.org/?page_id=189
http://wiki.freepascal.org/LazActiveX
yes theo but it will work only on windows and we need it to work on
both linux and windows
----------------------------------------------------------------------
theo · 2013-04-18 21:19
Quote from: mohamedyousof on April 18, 2013, 06:12:38 pmyes theo but
it will work only on windows and we need it to work on both linux and
windows
You have a solution for Linux and a solutiion for Windows. What's the
problem?
----------------------------------------------------------------------
a.atalla · 2013-04-19 13:21
Till now i can only view webpages via activex and IE , how can i edit
inside it ???
----------------------------------------------------------------------
theo · 2013-04-19 14:48
Quote from: a.atalla on April 19, 2013, 03:21:39 pmTill now i can only
view webpages via activex and IE , how can i edit inside it ???
I have posted a link above. ( http://delphidev.org/?page_id=189 )
Did you try to convert this to Lazarus?
----------------------------------------------------------------------
a.atalla · 2013-04-19 21:25
QuoteI have posted a link above. ( http://delphidev.org/?page_id=189
)
Did you try to convert this to Lazarus?
That is difficult , no luck converting this
----------------------------------------------------------------------
Timewarp · 2013-04-19 22:19
QuoteThat is difficultUsing designmode in IE is just one line,
browser.Document.designMode:='on';