Page 1 of 1

TinyMCE - populating textarea with formatted text

Posted: Tue Mar 28, 2006 6:40 pm
by Luke
I am using TinyMCE on a news administration panel and I have an option to edit a previous news post. When somebody wants to edit a post, it just pulls the information from the database and echoes in between the textarea tags. In FF, it works fine, but in IE, nothing shows up in the textarea box.

Code: Select all

<textarea name="desc" rows="10" cols="34"><?php echo $_GET['desc'] ?></textarea>
I realize it's a long shot that anybody might just know how I could fix this off the top of their head, but I'm asking anyway.

Re: TinyMCE - populating textarea with formatted text

Posted: Tue Mar 28, 2006 6:46 pm
by alex.barylski
The Ninja Space Goat wrote:I am using TinyMCE on a news administration panel and I have an option to edit a previous news post. When somebody wants to edit a post, it just pulls the information from the database and echoes in between the textarea tags. In FF, it works fine, but in IE, nothing shows up in the textarea box.

Code: Select all

<textarea name="desc" rows="10" cols="34"><?php echo $_GET['desc'] ?></textarea>
I realize it's a long shot that anybody might just know how I could fix this off the top of their head, but I'm asking anyway.
I'm missing something...so TinyMCE is displaying...but the content inside Tiny isn't? And only in IE?

Weird :?

Usually it's the other way around...

What does $_GET['desc']; contain???

You seem to get the weirdest behavior out of IE don't you? ;)

Posted: Tue Mar 28, 2006 6:52 pm
by Luke
$_GET['desc'] contains html:

Code: Select all

<tr>
      <td class="" colspan="2">Event Description: <small>(For News Posts)</small><br /><textarea name="desc" rows="10" cols="34"><p>Gold Nugget Days begin Thursday, April 20 and conclude Sunday, April 23. This year&rsquo;s theme is &ldquo;Good as Gold!&rdquo; Parade applications are available at the Gold Nugget Museum, and applications for the Merchants Decorating Contest are at the Paradise Ridge Chamber of Commerce. Events include the Queens Contest, three performances of the melodrama (<em>Impending</em> Perils in Pair O&rsquo; Dice), the Donkey Derby, parade, barbecue, carnival and Sunday Concerts in the Park. Be sure to register your badge to win a pure gold nugget!</p><p>You can find additional information about this event on the <a href=\"gold_nugget_days.php\">Gold Nugget Days</a> page.&nbsp;</p></textarea></td>
     </tr>
It looks like it echoes the html in there just fine... TinyMCE just doesn't parse it in IE.

Posted: Tue Mar 28, 2006 7:33 pm
by alex.barylski
$_GET contains all that???

Anyways, if that is indeed everything you are posting...I believe your problem is with the TEXTAREA as some of your content.

I believe it's due to the way TinyMCE finds textareas to replace...

Get rid of that and try it, see what happens???

Posted: Wed Mar 29, 2006 11:29 am
by Luke
get rid of what?

Posted: Wed Mar 29, 2006 11:38 am
by Roja
The Ninja Space Goat wrote:get rid of what?
The textarea wrapper.

Posted: Wed Mar 29, 2006 11:39 am
by Christopher
you may need to populate the textarea with:

Code: Select all

<textarea ...>
<?php echo htmlentities($_GET['desc']); ?>
</textarea>

Posted: Wed Mar 29, 2006 11:52 am
by Luke
Roja wrote:
The Ninja Space Goat wrote:get rid of what?
The textarea wrapper.
I got rid of the textarea. Now the text that was supposed to be in the textarea is just echoed on the background.

Posted: Wed Mar 29, 2006 12:10 pm
by Roja
The Ninja Space Goat wrote:
Roja wrote:
The Ninja Space Goat wrote:get rid of what?
The textarea wrapper.
I got rid of the textarea. Now the text that was supposed to be in the textarea is just echoed on the background.
If it does so on both IE and FF, then we know it is IE having an issue with the contents of a textarea (good, that narrows it down a bit).

Then work to further narrow that down. Take the source, and start removing layers of that prefilled text until IE displays it. Eventually (hopefully!), you'll be down to a simple set of tags that it doesn't like inside a textarea - which you can work to filter, or find the cause (possibly an IE bug, like a layout error?)

Posted: Wed Mar 29, 2006 7:31 pm
by alex.barylski
I'm pretty sure TinyMCE (it's what I use all the time) under IE anyways, doesn't like FORM elements, especially TEXTAREA, because it's what TinyMCE replaces with it's own WYSIWYG editor.

Basically TinyMCE isn't a FORM editor, so don't bother using it to edit FORM elements until they get it fixed...as I understand it..it's not a concern of theirs :)

Posted: Thu Mar 30, 2006 1:16 am
by Luke
Roja wrote:
The Ninja Space Goat wrote:
Roja wrote: The textarea wrapper.
I got rid of the textarea. Now the text that was supposed to be in the textarea is just echoed on the background.
If it does so on both IE and FF, then we know it is IE having an issue with the contents of a textarea (good, that narrows it down a bit).

Then work to further narrow that down. Take the source, and start removing layers of that prefilled text until IE displays it. Eventually (hopefully!), you'll be down to a simple set of tags that it doesn't like inside a textarea - which you can work to filter, or find the cause (possibly an IE bug, like a layout error?)
Thank you I will try that tomorrow.
Hockey wrote:I'm pretty sure TinyMCE (it's what I use all the time) under IE anyways, doesn't like FORM elements, especially TEXTAREA, because it's what TinyMCE replaces with it's own WYSIWYG editor.

Basically TinyMCE isn't a FORM editor, so don't bother using it to edit FORM elements until they get it fixed...as I understand it..it's not a concern of theirs :)
the html I posted is a from the source of the generated page. the $_GET only contains what is inside the textarea

Posted: Thu Mar 30, 2006 11:34 am
by Luke
OK, I think I may have found the problem, but I have no idea how to fix it. I just noticed that I am getting a javascript error in IE but not in FF:

Line: 2
Char: 76183
Error: Access denied
Code: 0

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <base href="http://goldnuggetmuseum.com/beta/" />
  <link href="style.css" rel="stylesheet" type="text/css" />
  <link href="admin/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="http://www.goldnuggetmuseum.com/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
		tinyMCE.init({
			mode : "textareas",
			theme : "advanced",
			theme_advanced_buttons1 : "bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright, justifyfull,bullist,numlist,undo,redo,link,unlink",
			theme_advanced_buttons2 : "",
			theme_advanced_buttons3 : "",
			theme_advanced_toolbar_location : "top",
			theme_advanced_toolbar_align : "left",
valid_elements : ""
+"a[accesskey|charset|class|coords|dir<ltr?rtl|href|hreflang|id|lang|name"
  +"|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup"
  +"|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|rel|rev"
  +"|shape<circle?default?poly?rect|style|tabindex|title|target|type],"
+"abbr[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
  +"|title],"
+"acronym[class|dir<ltr?rtl|id|id|lang|onclick|ondblclick|onkeydown|onkeypress"
  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
  +"|title],"
+"address[class|align|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown"
  +"|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"
  +"|onmouseup|style|title],"
+"applet[align<bottom?left?middle?right?top|alt|archive|class|code|codebase"
  +"|height|hspace|id|name|object|style|title|vspace|width],"
+"area[accesskey|alt|class|coords|dir<ltr?rtl|href|id|lang|nohref<nohref"
  +"|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup"
  +"|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup"
  +"|shape<circle?default?poly?rect|style|tabindex|title|target],"
+"base[href|target],"
+"basefont[color|face|id|size],"
+"bdo[class|dir<ltr?rtl|id|lang|style|title],"
+"big[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
  +"|title],"
+"blockquote[dir|style|cite|class|dir<ltr?rtl|id|lang|onclick|ondblclick"
  +"|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout"
  +"|onmouseover|onmouseup|style|title],"
+"body[alink|background|bgcolor|class|dir<ltr?rtl|id|lang|link|onclick"
  +"|ondblclick|onkeydown|onkeypress|onkeyup|onload|onmousedown|onmousemove"
  +"|onmouseout|onmouseover|onmouseup|onunload|style|title|text|vlink],"
+"br[class|clear<all?left?none?right|id|style|title],"
+"button[accesskey|class|dir<ltr?rtl|disabled<disabled|id|lang|name|onblur"
  +"|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup|onmousedown"
  +"|onmousemove|onmouseout|onmouseover|onmouseup|style|tabindex|title|type"
  +"|value],"
+"caption[align<bottom?left?right?top|class|dir<ltr?rtl|id|lang|onclick"
  +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
  +"|onmouseout|onmouseover|onmouseup|style|title],"
+"center[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
  +"|title],"
+"cite[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
  +"|title],"
+"code[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
  +"|title],"
+"col[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl|id"
  +"|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown"
  +"|onmousemove|onmouseout|onmouseover|onmouseup|span|style|title"
  +"|valign<baseline?bottom?middle?top|width],"
+"colgroup[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl"
  +"|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown"
  +"|onmousemove|onmouseout|onmouseover|onmouseup|span|style|title"
  +"|valign<baseline?bottom?middle?top|width],"
+"dd[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup"
  +"|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
+"del[cite|class|datetime|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown"
  +"|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"
  +"|onmouseup|style|title],"
+"dfn[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
  +"|title],"
+"dir[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown"
  +"|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"
  +"|onmouseup|style|title],"
+"div[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick"
  +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
  +"|onmouseout|onmouseover|onmouseup|style|title],"
+"dl[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown"
  +"|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"
  +"|onmouseup|style|title],"
+"dt[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup"
  +"|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
+"em/i[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
  +"|title],"
+"fieldset[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
  +"|title],"
+"font[class|color|dir<ltr?rtl|face|id|lang|size|style|title],"
+"form[accept|accept-charset|action|class|dir<ltr?rtl|enctype|id|lang"
  +"|method<get?post|name|onclick|ondblclick|onkeydown|onkeypress|onkeyup"
  +"|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onreset|onsubmit"
  +"|style|title|target],"
+"frame[class|frameborder|id|longdesc|marginheight|marginwidth|name"
  +"|noresize<noresize|scrolling<auto?no?yes|src|style|title],"
+"frameset[class|cols|id|onload|onunload|rows|style|title],"
+"h1[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick"
  +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
  +"|onmouseout|onmouseover|onmouseup|style|title],"
+"h2[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick"
  +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
  +"|onmouseout|onmouseover|onmouseup|style|title],"
+"h3[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick"
  +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
  +"|onmouseout|onmouseover|onmouseup|style|title],"
+"h4[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick"
  +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
  +"|onmouseout|onmouseover|onmouseup|style|title],"
+"h5[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick"
  +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
  +"|onmouseout|onmouseover|onmouseup|style|title],"
+"h6[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick"
  +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
  +"|onmouseout|onmouseover|onmouseup|style|title],"
+"head[dir<ltr?rtl|lang|profile],"
+"hr[align<center?left?right|class|dir<ltr?rtl|id|lang|noshade<noshade|onclick"
  +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
  +"|onmouseout|onmouseover|onmouseup|size|style|title|width],"
+"html[dir<ltr?rtl|lang|version],"
+"iframe[align<bottom?left?middle?right?top|class|frameborder|height|id"
  +"|longdesc|marginheight|marginwidth|name|scrolling<auto?no?yes|src|style"
  +"|title|width],"
+"img[align<bottom?left?middle?right?top|alt|border|class|dir<ltr?rtl|height"
  +"|hspace|id|ismap<ismap|lang|longdesc|name|onclick|ondblclick|onkeydown"
  +"|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"
  +"|onmouseup|src|style|title|usemap|vspace|width],"
+"input[accept|accesskey|align<bottom?left?middle?right?top|alt"
  +"|checked<checked|class|dir<ltr?rtl|disabled<disabled|id|ismap<ismap|lang"
  +"|maxlength|name|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress"
  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onselect"
  +"|readonly<readonly|size|src|style|tabindex|title"
  +"|type<button?checkbox?file?hidden?image?password?radio?reset?submit?text"
  +"|usemap|value],"
+"ins[cite|class|datetime|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown"
  +"|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"
  +"|onmouseup|style|title],"
+"isindex[class|dir<ltr?rtl|id|lang|prompt|style|title],"
+"kbd[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
  +"|title],"
+"label[accesskey|class|dir<ltr?rtl|for|id|lang|onblur|onclick|ondblclick"
  +"|onfocus|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout"
  +"|onmouseover|onmouseup|style|title],"
+"legend[align<bottom?left?right?top|accesskey|class|dir<ltr?rtl|id|lang"
  +"|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
  +"|onmouseout|onmouseover|onmouseup|style|title],"
+"li[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup"
  +"|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title|type"
  +"|value],"
+"link[charset|class|dir<ltr?rtl|href|hreflang|id|lang|media|onclick"
  +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
  +"|onmouseout|onmouseover|onmouseup|rel|rev|style|title|target|type],"
+"map[class|dir<ltr?rtl|id|lang|name|onclick|ondblclick|onkeydown|onkeypress"
  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
  +"|title],"
+"menu[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown"
  +"|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"
  +"|onmouseup|style|title],"
+"meta[content|dir<ltr?rtl|http-equiv|lang|name|scheme],"
+"noframes[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
  +"|title],"
+"noscript[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
  +"|title],"
+"object[align<bottom?left?middle?right?top|archive|border|class|classid"
  +"|codebase|codetype|data|declare|dir<ltr?rtl|height|hspace|id|lang|name"
  +"|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
  +"|onmouseout|onmouseover|onmouseup|standby|style|tabindex|title|type|usemap"
  +"|vspace|width],"
+"ol[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown"
  +"|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"
  +"|onmouseup|start|style|title|type],"
+"optgroup[class|dir<ltr?rtl|disabled<disabled|id|label|lang|onclick"
  +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
  +"|onmouseout|onmouseover|onmouseup|style|title],"
+"option[class|dir<ltr?rtl|disabled<disabled|id|label|lang|onclick|ondblclick"
  +"|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout"
  +"|onmouseover|onmouseup|selected<selected|style|title|value],"
+"p[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick"
  +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
  +"|onmouseout|onmouseover|onmouseup|style|title],"
+"param[id|name|type|value|valuetype<DATA?OBJECT?REF],"
+"pre/listing/plaintext/xmp[align|class|dir<ltr?rtl|id|lang|onclick|ondblclick"
  +"|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout"
  +"|onmouseover|onmouseup|style|title|width],"
+"q[cite|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
  +"|title],"
+"s[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup"
  +"|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
+"samp[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
  +"|title],"
+"script[charset|defer|language|src|type],"
+"select[class|dir<ltr?rtl|disabled<disabled|id|lang|multiple<multiple|name"
  +"|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup"
  +"|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|size|style"
  +"|tabindex|title],"
+"small[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
  +"|title],"
+"span[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown"
  +"|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"
  +"|onmouseup|style|title],"
+"strike[class|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown"
  +"|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"
  +"|onmouseup|style|title],"
+"strong/b[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
  +"|title],"
+"style[dir<ltr?rtl|lang|media|title|type],"
+"sub[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
  +"|title],"
+"sup[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
  +"|title],"
+"table[align<center?left?right|bgcolor|border|cellpadding|cellspacing|class"
  +"|dir<ltr?rtl|frame|height|id|lang|onclick|ondblclick|onkeydown|onkeypress"
  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|rules"
  +"|style|summary|title|width],"
+"tbody[align<center?char?justify?left?right|char|class|charoff|dir<ltr?rtl|id"
  +"|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown"
  +"|onmousemove|onmouseout|onmouseover|onmouseup|style|title"
  +"|valign<baseline?bottom?middle?top],"
+"td[abbr|align<center?char?justify?left?right|axis|bgcolor|char|charoff|class"
  +"|colspan|dir<ltr?rtl|headers|height|id|lang|nowrap<nowrap|onclick"
  +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
  +"|onmouseout|onmouseover|onmouseup|rowspan|scope<col?colgroup?row?rowgroup"
  +"|style|title|valign<baseline?bottom?middle?top|width],"
+"textarea[accesskey|class|cols|dir<ltr?rtl|disabled<disabled|id|lang|name"
  +"|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup"
  +"|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onselect"
  +"|readonly<readonly|rows|style|tabindex|title],"
+"tfoot[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl|id"
  +"|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown"
  +"|onmousemove|onmouseout|onmouseover|onmouseup|style|title"
  +"|valign<baseline?bottom?middle?top],"
+"th[abbr|align<center?char?justify?left?right|axis|bgcolor|char|charoff|class"
  +"|colspan|dir<ltr?rtl|headers|height|id|lang|nowrap<nowrap|onclick"
  +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
  +"|onmouseout|onmouseover|onmouseup|rowspan|scope<col?colgroup?row?rowgroup"
  +"|style|title|valign<baseline?bottom?middle?top|width],"
+"thead[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl|id"
  +"|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown"
  +"|onmousemove|onmouseout|onmouseover|onmouseup|style|title"
  +"|valign<baseline?bottom?middle?top],"
+"title[dir<ltr?rtl|lang],"
+"tr[abbr|align<center?char?justify?left?right|bgcolor|char|charoff|class"
  +"|rowspan|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
  +"|title|valign<baseline?bottom?middle?top],"
+"tt[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup"
  +"|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
+"u[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup"
  +"|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
+"ul[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown"
  +"|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"
  +"|onmouseup|style|title|type],"
+"var[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
  +"|title]"		});
	</script>
  <script language="JavaScript" type="text/javascript" src="admin/CalendarPopup.js"></script>

  <script language="JavaScript" type="text/javascript">
   <!--
	var cal = new CalendarPopup();
   //-->
  </script>
  <title>Gold Nugget Museum Administration Panel</title>
 </head>
 <body>
  <form name="example" method="post" action="admin/preview.php">
   <div id="main">
   <h1>Gold Nugget Museum Web Site Administration</h1>

    <table id="add_table" border="0" cellspacing="0" cellpadding="0">
     <tr>
      <td colspan="2"><img src="images/write_icon.gif" alt="" title="Add an event" style="float: right" /><h3>Add an event</h3></td>
     </tr>
     <tr>
      <td colspan="2"><p>Make your changes and press the preview button.</p></td>
     </tr>
     <tr>

      <td class="" colspan="2"><p>What type of entry is this?<br /><small>(If you select both boxes, this will show up in the calendar and in the news)</small><br /><input type="checkbox" checked='checked' name="database[]" value="1" /> News <input type="checkbox" checked='checked' name="database[]" value="2" /> Calendar </p></td>
     </tr>
     <tr>
      <td class="">Your name:<br /><small>(For administrative use)</small></td>
      <td><input type="text" name="author" size="25" value="Luke Visinoni" /></td>

     </tr>
     <tr>
      <td class="">Event Date:<br /><small>(For calendar posts)</small></td>
      <td><input type="text" name="date1" id="date1" size="25" readonly="readonly" onclick="cal.select(document.forms['example'].date1,'date1','MM/dd/yyyy'); return false;" value="4/20/2006" /></td>
     </tr>
     <tr>
      <td class="">Event Header:<br /><small>(Title)</small></td>

      <td><input type="text" name="title" size="25" value="Gold Nugget Days in Paradise" /></td>
     </tr>
     <tr>
      <td class="" colspan="2">Event Description: <small>(For News Posts)</small><br /><textarea name="desc" rows="10" cols="34"><p>Gold Nugget Days begin Thursday, April 20 and conclude Sunday, April 23. This year&rsquo;s theme is &ldquo;Good as Gold!&rdquo; Parade applications are available at the Gold Nugget Museum, and applications for the Merchants Decorating Contest are at the Paradise Ridge Chamber of Commerce. Events include the Queens Contest, three performances of the melodrama (<em>Impending</em> Perils in Pair O&rsquo; Dice), the Donkey Derby, parade, barbecue, carnival and Sunday Concerts in the Park. Be sure to register your badge to win a pure gold nugget!</p><p>You can find additional information about this event on the <a href=\"gold_nugget_days.php\">Gold Nugget Days</a> page.&nbsp;</p></textarea></td>

     </tr>
     <tr>
      <td>Administrative Note:<br /><small>(will only show up in admin panel)</small></td>
      <td><input type="text" name="note" size="25" value="" /></td>
     </tr>
     <tr>
      <td colspan="2" align="center"><input type="hidden" name="id" value="3" /><input type="submit" class="submit" value="Preview"></td>
     </tr>

     <tr>
      <td colspan="2" align="center"><a href="admin/logout.php">Log out</a> | <a href="index.php">Home Page</a></td>
     </tr>
    </table>
  </form>
    
   <form name="eventmod" action="admin/load_event.php" method="post">
    <table class="tools" border="0" cellspacing="0" cellpadding="0">

     <tr>
      <td><img src="images/edit_icon.gif" alt="" title="Add an event" style="float: right" /><h3>Modify a News Event</h3></td>
     </tr>
     <tr>
      <td>
       <select name="id">
<option value="3">Gold Nugget Days in Paradise</option><option value="4">The Paradise Depot  Museum</option>       </select>

      </td>
     </tr>
     <tr>
      <td align="center">
       <input type="submit" value="Edit" />
      </td>
     </tr>
    </table>
   </form>

    
   <form name="calendarmod" action="admin/load_event.php" method="post">
    <table class="tools" border="0" cellspacing="0" cellpadding="0">
     <tr>
      <td><img src="images/edit_icon.gif" alt="" title="Add an event" style="float: right" /><h3>Modify a Calendar Event</h3></td>
     </tr>
     <tr>
      <td>
       <select name="id">

<option value="3">Gold Nugget Days in Paradise</option>       </select>
      </td>
     </tr>
     <tr>
      <td align="center">
       <input type="submit" value="Edit" />
      </td>
     </tr>

    </table>
   </form>

   <div id="preview">
   <h1>Event review and deletion</h1>
      	 <div class="preview_post">
      	  <h2>The Paradise Depot  Museum <span class="author" style="float: right">News</span></h2>
      	  <h3>March 28, 2006</h3>

      	  <p>  <p class="MsoNormal">The Paradise Depot  Museum is on the way! And the Gold  Nugget Museum needs your help converting the historic Paradise Depot into a local train and logging museum! After the Town of Paradise makes the building structurally sound, the Museum will get to work painting the exterior and turning the interior into a museum. We are asking the community to help help with donations of cash, supplies, memorabilia and labor. Major donors of $1,000 or more in cash or kind will be &ldquo;Golden Spike Sponsors,&rdquo; with their names engraved on golden spikes permanently displayed in the depot.</p> <p class="MsoNormal">For more information, visit the <a href="depot_museum.php">Depot Museum</a> page. </p>  </p>
            <p class="delete"><img src="images/cut_icon.gif" alt="" title="Delete an event" style="float: right" /><a href="admin/delete.php?id=4" style="margin-top: 3px;">Delete this post</a></p>
            <p class="author"><b>Posted by:</b> Luke Visinoni on March 28, 2006 at 3:31pm</p>

            <p class="author"><b>Author's note:</b> </p>
           </div>
      	 <div class="preview_post">
      	  <h2>Gold Nugget Days in Paradise <span class="author" style="float: right">News and Calendar</span></h2>
      	  <h3>April 20, 2006</h3>
      	  <p><p>Gold Nugget Days begin Thursday, April 20 and conclude Sunday, April 23. This year&rsquo;s theme is &ldquo;Good as Gold!&rdquo; Parade applications are available at the Gold Nugget Museum, and applications for the Merchants Decorating Contest are at the Paradise Ridge Chamber of Commerce. Events include the Queens Contest, three performances of the melodrama (<em>Impending</em> Perils in Pair O&rsquo; Dice), the Donkey Derby, parade, barbecue, carnival and Sunday Concerts in the Park. Be sure to register your badge to win a pure gold nugget!</p><p>You can find additional information about this event on the <a href="gold_nugget_days.php">Gold Nugget Days</a> page.&nbsp;</p></p>

            <p class="delete"><img src="images/cut_icon.gif" alt="" title="Delete an event" style="float: right" /><a href="admin/delete.php?id=3" style="margin-top: 3px;">Delete this post</a></p>
            <p class="author"><b>Posted by:</b> Luke Visinoni on March 28, 2006 at 3:22pm</p>
            <p class="author"><b>Author's note:</b> </p>
           </div>
   </div>  

 </body>

</html>

Posted: Thu Mar 30, 2006 11:38 am
by Luke
I FIXED IT!! YAY!!!

The problem was here:

Code: Select all

<script language="javascript" type="text/javascript" src="http://www.goldnuggetmuseum.com/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
I just removed the http://goldnuggetmuseum.com and boom... worky!