|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
I just read the article on creating and implementing a browser-based WYSIWYG editor, and I am quite interested in using this information for a small, private CMS. Throughout the second article, support material is mentioned. However, at the end of the article, it says 'no support material provided'. Does it exist? Is there support material for/in PHP?
Thanks, Joe of 4Life http://www.4life.tk/
__________________
Check out 4Life today! |
|
#2
|
|||
|
|||
|
I think mytch or Ben wrote that the support material for that article was lost while moving to a new ISP..
__________________
Best Regards, Håvard Lindset |
|
#3
|
|||
|
|||
|
what is it you need support with? Just post a msg and you'll get the help!! -- It worked for moi!!
![]() |
|
#4
|
|||
|
|||
|
sorry to say we lost it during a server crash, on our old server, we apoligize for this convience. Due to the fact that they didnt keep a backup a regular backup, we have lost this suport file.
If you get stuck please feel free to post your comments in the forums. Oh and welcome to the forums |
|
#5
|
|||
|
|||
|
Basically what I am having trouble with is <FORM> tags. Whenever I try to use them, the editor doesn't work right!
![]() Thanks y'all, Joe of 4Life |
|
#6
|
|||
|
|||
|
hmm, could you please post the offending code?
|
|
#7
|
|||
|
|||
|
Im not sure how much this helps...
Code: PHP Code:
Btw - the getinput() function is just some JS that puts the code from the IFRAME into a hidden input (stuff). I tried it without it, but it didnt make a difference! ![]() Thanks, Joe of 4Life [edit]I tried it with just a plain <FORM> tag too. No go. [/edit]Last edited by Joe4JC : August 12th, 2002 at 11:24 PM. |
|
#8
|
|||
|
|||
|
One more question: How can I set a default text value for the edit box?
Thanks, Joe of 4Life |
|
#9
|
|||
|
|||
|
ok to set the default vaule (easy bit) create a file with the default data in it. then load that file, like this
<iframe src="default.html"> this will load up the default.html file, and make all the html code editable Note: this doesnt mean you can edit the file and save it, just like that, you need a bit of script (php, asp or perl) to be able to edit files. Now for your other question, it seems weird, that its causing the errors. Try placing the form data underneath the wysiwyg editor, also what version of IE are you using? |
|
#10
|
||||||
|
||||||
|
Quote:
Cool ![]() Quote:
Could you please explain what you mean? ![]() Quote:
Yep, it is weird ![]() Quote:
I tried placing the form data in several places, including below the editor. It didn't seem to make a difference I'm using IE6. ![]() Thanks, Cheers, Joe of 4Life ![]() |
|
#11
|
|||
|
|||
|
Quote:
Some people got the idea, that if you placed the wysiwyg editor in a page, lets say index.html, it would enable you to edit the index.html page, and save it. Sorry, that was just to clear things up for people. anyway, ive been thinking about your problem, the funny thing is that ive used the wysiwyg editor before, and i didnt have that problem. Could you attach the code your trying to use, and ill test it out on a few computers for you. Thanks |
|
#12
|
|||
|
|||
|
Well, the page that I intergrated the editor into is a PHP script, with dependencies (required files), so I hope that a link is fine.
I'll have to comment the code that only lets valid admins in, though. I am only gonna leave like that for about a day, however. Anyhow, here's the link: http://techneaux.mine.nu:81/~c4life/cms/edit.php?id=4 [Note]I edited the CSS on the <IFRAME> to make it look more like an real text area. [/Note][Note]The main problem is the 'Toggle Mode' switch. [/Note][Note]The submit button on that form currently goes nowhere. [/Note]Btw, Im sorry if I sound funny or upset. It's just that the heat here is making me both sick and tired. lol ![]() Thanks, Cheers, Joe of 4Life ![]() |
|
#13
|
|||
|
|||
|
could you remove, all the input tags from your code, and tell me what happens?
|
|
#14
|
|||
|
|||
|
I tried that, no diff....in fact, they're new - I just added them earlier!
Thanks, Joe of 4Life |
|
#15
|
|||
|
|||
|
Lookie what I found!: http://www.devarticles.com/forum/sh...s=&threadid=626
Even has the support file, and how to fix the Toggle Mode switch! ![]() Gonna go try it now! Cheers, Joe of 4Life ![]() |
|
#16
|
|||
|
|||
|
Well, I got it working by placing the form at the bottom of the control, but I can't get it to save the data!
|
|
#17
|
|||
|
|||
|
<form action="print_script.php" method="post">
<script language="JavaScript"> function getCode() { var src = iView.document.body.innerHTML; document.all.test.value = src; } </script> <input type="hidden" name="test"> <input type="button" onClick="getCode();" value="update"> <input type="submit" name="submit" value="upload to DB"> </form> That should do it. |
|
#18
|
|||
|
|||
|
Thank you, but I got it working. The problem was a slight bit of stupidity on my part involving variables. lol
![]() Cheers, Joe of 4Life |
|
#19
|
|||
|
|||
|
Ahh ok, thats cool
|