Html WYSIWYG lib

For everything that's not in any way related to PureBasic. General chat etc...
Dare
Addict
Addict
Posts: 1965
Joined: Mon May 29, 2006 1:01 am
Location: Outback

Html WYSIWYG lib

Post by Dare »

Hi,

I am looking for a decent lib (or dll) that handles WYSIWYG for html editing. Something I can link into a PureBasic app.

I currently use my own cross-browser-based wysiwyg editor in a webgadget, however with both IE and mozilla (the underlying engines) the output is very verbose and mostly unnecessary.

I have fiddled with capturing user input and rendering on the fly to an image/imagegadget. This is not as slow as I feared but it is very fiddly and would be a big task to complete to a decent level.

I cannot get the editor gadget to properly align text/images (even with srod's very nice contribution to the boards).

Something like a Nvu as a .lib/.obj/.dll, or a scintilla-ish lib with image capabilities (including alignment) would be neat. If it doesn't actually produce html that is okay, provided I can parse the in-situ/in-memory data on a character-by-character basis and access properties to build the equivalent HTML.

Is anyone aware of such a lib? Preferably one that is free or at least wouldn't send Bill Gates to the poorhouse.

Thanks!


Edit:

And Ack!

I posted this in Off Topic!

Can some kind mod move it to General Discussion (or Coding Questions if that is more appropriate). Anyhow, somewhere acceptable that gets more traffic, in case someone who doesn't visit off-topic has the answer.

Thanks!
Dare2 cut down to size
Straker
Enthusiast
Enthusiast
Posts: 701
Joined: Wed Apr 13, 2005 10:45 pm
Location: Idaho, USA

Post by Straker »

Check this out just for grins:

http://www.interaktonline.com/Products/ ... 413&res=68

or HTMLAREA if you can find it.
Image Image
Dare
Addict
Addict
Posts: 1965
Joined: Mon May 29, 2006 1:01 am
Location: Outback

Post by Dare »

Hi Straker,

Thanks for the response and the link.

I have written my own cross-browser, browser-based wysiwyg editor (like htmlarea, etc) and am using that at the moment. These things are reliant on the underlying engines (like midas) and so wysiwyg on screen, but also what you get is what you get in the resulting html. :)

I should have mentioned that I am trying to replace that approach, sorry.

I am hoping to find a "scintilla" for html editing.
Dare2 cut down to size
Mike Stefanik
User
User
Posts: 53
Joined: Wed May 03, 2006 6:34 am
Location: California, United States
Contact:

Post by Mike Stefanik »

Might want to check out TinyMCE (http://sourceforge.net/projects/tinymce/) which is a platform independent browser-based editor.
Mike Stefanik
sockettools.com
Dare
Addict
Addict
Posts: 1965
Joined: Mon May 29, 2006 1:01 am
Location: Outback

Post by Dare »

Hi Mike,

Thanks for the link.

At a quick look it does generate simpler html and without the specific tweaks and methodologies of the various engines.

If this is so, it will make it far easier for me to integrate into my own overall approach because regardless of what the user has browser-wise, I could rely on the generated html being the same and reduce (or even eliminate!) the post-creation parsing and modding.

I briefly peeked at their source and (spot checking only) it seems they're actually parsing everything themselves! :shock: Will have a closer look at that later.

Anyhow, will have a really good look at this later. If the above assumptions are correct then this improves on what I am using at the moment.

Edit: Woot! Had another quick peek and it seems to handle drag/drop of ms-word docs okay. This was a major headache. IE and mozilla can create really mind-blowing html this way, and IE sometimes hangs (Mozilla handles MS word better than IE? Go figure).

Anyhow, still to properly check it out.

And .. would still prefer for something that does not need a browser/webgadget, so ...

If you stumble across anything that is eliminates the need for the webgadget/browser, I would appreciate that as well. :)
Dare2 cut down to size
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Use an editor gadget and then use a converter from rtf to html (google that).
Dare
Addict
Addict
Posts: 1965
Joined: Mon May 29, 2006 1:01 am
Location: Outback

Post by Dare »

Hi Trond,

Thanks for the response.

Mate, my problem is getting things like images and text to properly align in the editor gadget. For example:

Code: Select all

.-----.
|     |
|     |
.-----. yada yada
yada yada
Instead of

Code: Select all

.-----. yada yada
|     | yada yada
|     |
.-----.
and so forth. Then there are tables, flash, etc.

All possible the way you suggest, I am sure, I'm just not up to it with the editorgadget.

At the moment I use a browser-based wysiwyg which works, but has some awkward bits. Prior to that I had a flash/actionscript editor but that was short-lived. :)

The html editing is a tiny part of the whole app (but an often used part) and I am not 100% happy with what I have done.

lol. I am sounding picky, even to me. Thing is, I have a working solution, I want a better one. :)
Dare2 cut down to size
Straker
Enthusiast
Enthusiast
Posts: 701
Joined: Wed Apr 13, 2005 10:45 pm
Location: Idaho, USA

Post by Straker »

Dare wrote:Thing is, I have a working solution, I want a better one. :)
You obviously don't work for Microsoft.
Image Image
Dare
Addict
Addict
Posts: 1965
Joined: Mon May 29, 2006 1:01 am
Location: Outback

Post by Dare »

:D

I was running some examples taken from the MS site for an MS app also taken from the MS site. And several crashed. :)

Straight installs, no jigging about, load - crash.



Go! PureBasic!


(ms installs everything! Even little docs like a pdf file get msi-ed and probably create 20,000 registry entries).

Edit: And EULA's everything as well.

And needs six other things for the thing you want (that's also a little unix/linux-like though :P :))
Dare2 cut down to size
Post Reply