|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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! |
|
#2
|
|||
|
|||
|
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.
|
|
#3
|
|||
|
|||
|
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.
|
|
#4
|
|||
|
|||
|
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:
That should do it ![]() Edit: Tested it, and it works. Hooray. Last edited by ejbe99 : September 4th, 2002 at 05:12 PM. |
|
#5
|
|||
|
|||
|
Quote:
Theres a really cool feature called search, and if you look for wysiwyg you will find at least 30 threads on the subject |
|
#6
|
|||
|
|||
|
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. |
|
#7
|
|||
|
|||
|
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??? |
|
#8
|
|||
|
|||
|
How do you mean image select??? could you please explain in more detail what your trying to do
|
|
#9
|
|||
|
|||
|
Quote:
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. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > WYSIWYG Input |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|