richview as basis of html wsyiwyg editor

General TRichView support forum. Please post your questions here
Post Reply
andybd
Posts: 2
Joined: Sun May 03, 2009 8:18 am

richview as basis of html wsyiwyg editor

Post by andybd »

Hi
I am looking for a replacement for ProfDHTMLEdit for a project I am working on. The reason I want to use a different component is that ProfDHTMLEdit does not appear to be supported any more.

OK, my questions.

What I need to implement is a WYSIWYG html editor. The editor will need to do simple stuff which I have seen is easy enough in Richview. However, here are a couple of specific things that I need to do. If anyone can just give me a yes or no, I'd appreciate it:

1. Allow hyperlinks to be created with target & rel
2. Modify title and meta tags.
3. Import HTML (I see a couple of solutions - how good are they)?

If anyone has created a WYSIWYG web editor with richview, perhaps you could let me know what problems you had.

Richview looks fantastic (if a little overkill for what I need) and the support seems top notch. I am hoping this component will meet my needs.
[/list]
Sergey Tkachenko
Site Admin
Posts: 17571
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

1. As for saving hyperlinks: TRichView uses OnWriteHyperlink event to store links in HTML. All TRichView demos use items tags to store hyperlinks targets, and they use this event to store href in HTML. You can use items tags to store additional information (tag is a string, so you can encode any information), then use this event to save it (assign target to Target parameter, assign additional <a> attributes to Extras parameters).
As for reading hyperlinks, I am afraid you need to change the code for HTML import to read additional parameters.

2. Saving: a title is provided as a parameter, meta tags can be saved in OnSaveHTMLExtra event. Loading: not loaded, you need to change code for importing.

3. There are two solutions for importing: TrvHtmlImporter (reads HTML from string) and TrvHtmlViewImporter (reads HTML from www.pbear.com 's THTMLViewer). Both are free with source code. The latter is better.
andybd
Posts: 2
Joined: Sun May 03, 2009 8:18 am

Post by andybd »

Thanks Sergey for the reply. Richview might just be a little more work than I want to get everything sorted out, so I'll leave it for this project. Have to say though that I am very impressed by Richview's versatility, so will be buying it soon for another project (or maybe a different part of my current project).

Thanks again.
Post Reply