Simon
|
| Posted: 02/12/2003, 2:27 PM |
|
Just though I'd let you know that I have found a great Dreamweaver MX extension that adds a decent, easy to use WYSIWYG editor. I found someone using this on codechargers.com and had a look for myself.
I can't remember the link to it, but try a google search for "PD Editor Dreamweaver extension" it's near to the top.
I'm building a page to upload pictures to a certain directory, then, next to the editor I will have a grid that shows the pictures and they can be dragged and dropped into the editor window, as easy as that!
Hope thats of some help to someone as I like to give a bit back to the community, if this helps, please help me with my simple question post about creating dynamic paypal links!
Cheers
Simon
|
|
|
 |
RonB
|
| Posted: 02/12/2003, 2:48 PM |
|
Glad I could be of assistance, my full explanation( in two posts) can be found here:
http://codechargers.net/bb/viewtopic.php?t=87&highlight=wysiwyg
thought it might be usefull to give the link to the article.
Ron
|
|
|
 |
Simon
|
| Posted: 02/13/2003, 2:20 AM |
|
Yeah, it's really useful, and really easy too! I thought I'd put it in here as I noticed a few posts about WYSIWYG editors, and I hate the one from interactive tools (don't ask why, I don't really know!)
For using pictures I now have a link next to the editor which opens a window with the picture grid in, so there is more space, then its just draggin and droppin!
Next feat, an upload system that updates the info in the database with the url in ASP!
|
|
|
 |
lneisius
|
| Posted: 02/13/2003, 4:40 PM |
|
YES claims to have 70% or better complete on there asp upload component! Maybe a wait would be worth it? Should be in 2.0 final.
|
|
|
 |
kurtmel
|
| Posted: 02/13/2003, 7:31 PM |
|
Another "drop in" HTML editor is HTMLeditbox
and it already has an uploader and an image browser incorporated.
it's $10 but money well worth it if you're trying to write your own image viewer and uploader. you can find it at http://www.labs4.com/go/index.php?p=products&w=htmleditbox
Later,
Kurt
|
|
|
 |
Simon
|
| Posted: 02/14/2003, 7:56 AM |
|
Thanks for that, it looks interesting, but as I am messing around with something that I would build for a client that would be a bit hard as I would need to buy a new license each time.
RonB - Could you give me a bit of help getting the PD_editor to work, well I mean from within CCS, I'm trying to link it to an admin page and it's proving to be abit harder than anticipated!
Does anyone know of any other WYSIWYG editors, preferably where you can just link them to a text area that is already on the screen, if you see what I mean.
Simon
|
|
|
 |
Eladesor
|
| Posted: 02/14/2003, 8:11 AM |
|
You could try emailing Bill Noble at http://www.web-presentations.com
He made an excellent addon for CCS1 and I 'think' he has one planned for CCS2.
No harm is asking :)
Regards to all
Eladesor http://www.CodeChargers.net
|
|
|
 |
DaveRexel
|
| Posted: 02/14/2003, 11:18 AM |
|
::
http://www.interactivetools.com/products/htmlarea/
This is used in the admin sections at
http://codechargers.net/ccs/default.php
and is rock solid albeit restricted to IE 5.5+
The public section of the site is Moz and OSX friendly as well.
The main problem in using HTMLAREA is restricting the input (allowing users to input any old html will lay waste to a community site in a jiffy) and I will post a tutorial on this at Code Chargers.
I find the DatePicker in CCS to be rather primitive (it does not have an option for time values not even as a default) involving re-working of date-time fields to avoid the wrong format error - bleh - but I reworked my designs to use this since it's in the IDE. But I keep my ancient hand-written pop-ups for image-upload and thumbnails logic with easy calls from CCS IDE... the CCS upload as in YS-KB will leave a lot of orphan images clogging the upload folders as they are named for a random value wheras I prefer to use values that will cause overwriting if the record is edited... (example == cat_name_pk_id_1024.jpg)
Anyway it will be interesting to see how the new Studio 2 will handle such issues, adding a JS CCS native WYSIWYG editor should not be very hard for YS to develop and it would certainly enhance the toolbox.
Greetings
Dave
|
|
|
 |
Tony M
|
| Posted: 02/15/2003, 8:57 AM |
|
Simon
I've used Bill's WYSIWYG Extension for 'Studio One'...It's a no brainer and has saved me a lot of time.
About an hour ago Bill informed me of his 'Studio Two' version...due for release...when 'Studio Two' is released.
Sneak preview demo @ http://www.web-presentations.com/editordemo.asp
...additional features will also be added when 'Studio Two' is released.
It's a one click 'Extension insert'...that will be well worth the token charge of $25.
I hope this will encourage other 'skilled' developers...to find the time...to write and offer...free/chargeable 'Studio' extensions.
Regards
Tony M
|
|
|
 |
RonB
|
| Posted: 02/15/2003, 2:46 PM |
|
Simon,
to get the content of the editor in a text field all you have to do is change three things
1. when creating the grid set the textfield to hidden and move it to the top of the grid. Best is to put it outside the table right after the form tag. Remember the name of the textfield variable.
2. In the html look for the function copyValue(). change one line :
function copyValue() {
var theHtml = "" + document.frames("myEditor").document.frames("textEdit").document.body.innerHTML + "";
document.all.name_of_your_textfield.value = theHtml;
}
now in the pd_edit.htm file change the following function:
// Initialize the editor with an empty document
function initEditor() {
var htmlString = parent.document.all.name_of_your_textbox.value;
textEdit.document.designMode="On"
textEdit.document.open()
textEdit.document.write(htmlString)
textEdit.document.close()
textEdit.focus()
}
after you have done this not only will a new record insert into the database but if you link from, let's say, a grid containing article titles the editor starts with the contents of the database record.
Just remember to click on the disk icon before submitting the record to the database. This action will now copy the editors html content to your textfield and it will be inserted or updated.
Ron
|
|
|
 |
yodabear
|
| Posted: 02/15/2003, 5:37 PM |
|
Look I've used Bill's WYSIWYG Extension and its a poor copy of Interactive Tools freeeditor even the icons Bill has have been copied from HtmlArea.
The popupup code for the color-pickers and links is exactly the same : $25 for poor copy of free code : No Thanks
So TonyM if you have money to burn I have a few things to sell you.
|
|
|
 |
Tony M
|
| Posted: 02/15/2003, 8:34 PM |
|
Yodabear
If your intention was to insult Bill for all his work, time and effort in providing and promoting 'Studio Extensions'...you've succeeded
If your intention was to insult me...and wind me up...you've succeeded
I'm sick to death of clowns like you...who criticise and snipe...at any attempts made to get this forum as professional as other 'developer sites'
You call yourself a developer...BUT you only develop animosity
I consider it essential to have as many tools...free/purchased...in my toolkit as possible...for current/new projects.
I have been buying developer add-ons for over twenty years...because I never have the time or the foresight...many developers spend more on add-ons then their developing programme.
Skilled and talented developers who can exploit the short comings of a programme...feed their families and survive by providing tools for other developers.
You must be hell to live and work with...you're also one of the reasons...I believe in birth control.
Tony M
|
|
|
 |
feha
|
| Posted: 02/16/2003, 4:15 AM |
|
yodabear
I must say it is not the same ...
You don't have image catalog listing and viewing...
So a $25 is worth only for this.
It has to be similar beacuse all of this uses Active-X functions...
(That's the reason why this works only Win platforms and IE 5.5 and above ...)
So before Your conclutions please analize first the code and then accuse someone for the copy etc ... i don't agree with you yodabear .
regards
feha
[www.vision.to]
|
|
|
 |
feha
|
| Posted: 02/16/2003, 6:37 AM |
|
Sorry I was wrong i was refering to:
http://www.labs4.com/go/index.php?p=products&w=htmleditbox
It has all for $9.95 USD ...
regards
feha
[www.vision.to]
|
|
|
 |
Simon
|
| Posted: 02/16/2003, 6:38 AM |
|
RonB - Thanks for the help, I can get it to work great now. I had a mess around with the extension one too and it's also quite good, and is a bit easier to implement, I didn't realise, but you can still drag and drop into that one, so I may use that, as I have quite a few places where I would use the editor, so I would need lots of copies of the html file, unless I called all of my textareas the same neme!
Thanks again, still not sure which to use yet! Two good choices though.
Simon
|
|
|
 |
Simon
|
| Posted: 02/17/2003, 11:57 AM |
|
Using the ccs extension at the moment, but I can't get the editor window inside the form tags, which means I need to have the editor below the submit button, which is a bit annoying, is there any way of having it inside the form, so the submit button is below the editor a I also have a few text fields, pull downs etc which are updated from the same record.
thanx
Simon
|
|
|
 |
Simon
|
| Posted: 02/18/2003, 6:24 AM |
|
Just have a look over at interavtive tools website and noticed that HTMLarea has a nice liscence, i.e. you can redistribute it with your commercial products. I may resort to using this as it seems a little easier, and it's what I use in my bands forum, http://www.malevolus.com/forum/thread-post.asp
Cheers for all the posts!
Simon
|
|
|
 |
lneisius
|
| Posted: 02/18/2003, 1:52 PM |
|
Simon: On here you say go look its what you want but on your forum you say your going to change because its crap! Which is it???????
|
|
|
 |
Simon
|
| Posted: 02/18/2003, 2:46 PM |
|
Yeah, that was before I realised some of the add on's, and the fact that I had seen another one which was better, but ironically not easier to use. I also did not look into the fact that more options etc were already added and had to be implemented in your own code (someone else added it to the forum for me, so I had no idea). I have also had a few complaints from users about various things, which I realise that I can change now, especially with the great image upload function I have found, that post was basically saying that I was upgrading to this version.
After a few hours in the interactive tools forum I realise how good this one actually is, and I'm just in the process of producing a .zip with info on how to use a certain one with CCS. This one has an image uploader and broswer that is really easy to use and very useful, I think it could answer a few prayers! At least for me anyway. The upload component in CCS2 should be really great too.
I'll post it up here soon!
Simon
PS. As you guess I take back any bad things I have said about htmlarea, which was due to me not being educated on it enough, sorry!
|
|
|
 |
DaveRexel
|
| Posted: 02/18/2003, 2:59 PM |
|
Hi Simon
Here's an easy way to integrate the htmlarea WYSIWYG editor in your CCS project. There's a download of a sample project as well.
http://codechargers.net/ccs/kb.php?language_id=1&category_id=40&event_id=58
Greetings
Dave
|
|
|
 |
Simon
|
| Posted: 02/18/2003, 3:50 PM |
|
Thats what I have been using, well, it's just as in the readme for the editor anyway. You might be interested in this http://www.malevolus.com/WYSIWYG11.zip it's the same as the normal one apart from, when clicking on the image button a window opens which allows you to browse the picture dir, upload pictures or just link to a url. It's really quite good, the picture uploader is in some other language but you can easily see how it's done! In ASP by the way but it should be easy to convert to php.
I found it on the interactive tools forum and thought it was cool, I've added a little txt file in there too, which just give details of how to solve a problem I had.
Hope this is useful, see it in action at www.malevolus.com/forum/category-view.asp
Simon
|
|
|
 |
Aaron Judd
|
| Posted: 02/20/2003, 5:35 PM |
|
God, how many times has this conversation taken place on here?...
Here is a pretty complete and helpful list of inline Wysiwyg editors:
http://www.bris.ac.uk/is/projects/cms/ttw/ttw.html
And my personal favorite (because of the more advanced upload, - my images go into a MySQL database)(oh, and it's a good PHP incorporation)...
http://vsbabu.org/tools/ieeditor/index.php
|
|
|
 |
Marcus
|
| Posted: 02/20/2003, 11:12 PM |
|
Simon,
what board are you using?
|
|
|
 |
Simon
|
| Posted: 02/21/2003, 8:21 AM |
|
I tried a search and didn't come across many posts, anyway it started by me mentioning that I had come across a dreamweaver extension and an explanation of how I intended to use it to upload pics, I guess people just got talking (community?) and my opinion chaged on various products and hence my projects have changed, for the better at the moment anyway!
The board I'm using is Mega BBS by www.pd9soft.com it's free and has got a really good community with lots of mods etc, very active!
Simon
|
|
|
 |
RonB
|
| Posted: 02/23/2003, 3:19 AM |
|
HTMLarea has some extra's written by other people that greatly extend the functionality (all for free). I also found it's easy to adapt yourself. I just started editing the insert_image.html to include two iFrame's.
One holding the content of the database table images,showing the titles of the image files (I store them in a table for easy reference to the image files on the site. I do not store the images themselfes in the database just the names)
The second Iframe hold a preview of the image selected in the first iFrames grid. with a simple onclick event the url for the selected image is transfered to the image url box on the page.
Since I only store the filenames, not the actual path, I use a simple piece of php that reads the image dir and stores the names of the image files in my database. So before the page with the editor loads it will go to the specified image dir and insert all the image filenames in to the database table. The iframe holding the filename grid will always show the current content of that dir. The Directory is going to change depending on the user by having the user to login and based on that login only the images of that user are first deleted from the table wich is then filled again by the current content of their directory.
I know this might sound a bit strange but this way I'm sure there won't be a lot of dead image links in the database.
Ron
|
|
|
 |