General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old September 4th, 2002, 10:01 AM
holyworld holyworld is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 3 holyworld User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
WYSIWYG Input

Hello,

how can I put the content from my database into the iframe used by the wysiwyg-editor shown on this site. There was already an information about that topic here in the forums, but I can't find it now. Please help me. Thank you!

Reply With Quote
  #2  
Old September 4th, 2002, 03:45 PM
ejbe99 ejbe99 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Posts: 43 ejbe99 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 40 sec
Reputation Power: 7
I think you're talking about EditWorksPro. If you already have EWP, and you want to know how to use it, try Ben's Tutorial.

Reply With Quote
  #3  
Old September 4th, 2002, 04:35 PM
holyworld holyworld is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 3 holyworld User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
No, I'm talking about the general WYSIWYG-tutorial, which can be found on devarticles. I've already setup the editor with a lot more functions than described here (tables, image selection etc.) but the only problem I have is how to get the content back into the iframe when I want to edit an already existing article.

Reply With Quote
  #4  
Old September 4th, 2002, 05:07 PM
ejbe99 ejbe99 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Posts: 43 ejbe99 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 40 sec
Reputation Power: 7
Ah, I see.

I think that you could add this line in your Javscript code, in the "Init()" function (Note - this code is not PHP! It's in between the Javascript tags).

PHP Code:
function Init() 

iView.document.designMode 'On'
iView.document.write("<?php print $somevariable ?>"); 



That should do it

Edit: Tested it, and it works. Hooray.

Last edited by ejbe99 : September 4th, 2002 at 05:12 PM.

Reply With Quote
  #5  
Old September 4th, 2002, 06:51 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Quote:
There was already an information about that topic here in the forums, but I can't find it now


Theres a really cool feature called search, and if you look for wysiwyg you will find at least 30 threads on the subject

Reply With Quote
  #6  
Old September 5th, 2002, 01:44 PM
holyworld holyworld is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 3 holyworld User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thank you for your help. It's right that waym, but now I have two new problems:

All tags produced by the wysiwyg editor are in capital/big letters like <P> or <B>. What can I do to force the editor to use small letters?

And the second problem is that the editor uses line breaks always after the <p> tag ist used. The problem is that when I import the data from my db the editor only shows data which is on the first line of the source and I can't remove the line breaks with "str_replace", "chop()", "trim()" or sth. like that.

Reply With Quote
  #7  
Old September 17th, 2002, 03:37 PM
R.A.F. R.A.F. is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Denmark
Posts: 4 R.A.F. User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
It seems like Holyworld have got most of it figured out.

Maybe you could help me out.

Like you I have made an image selection but I can't figure out how to get the image i select into the iframe

How do you do it???

Reply With Quote
  #8  
Old September 17th, 2002, 07:04 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
How do you mean image select??? could you please explain in more detail what your trying to do

Reply With Quote
  #9  
Old September 18th, 2002, 09:45 AM
R.A.F. R.A.F. is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Denmark
Posts: 4 R.A.F. User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally posted by Ben Rowe
How do you mean image select??? could you please explain in more detail what your trying to do


Thank you for the quick respond
I have made an external php page that opens when I click the image button in the wysiwyg editor. The page reads all the images from a image directory, and shows them in small size. Just beside the image I have made a link.

I would like this link to transfer/send the path and image information back to the editor.

I called it 'image selection' because that was the word Holyworld used in his post.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > WYSIWYG Input


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway