Error when adding media to a New Entry
Posted: Tue Mar 29, 2005 10:49 pm
I did something to cause errors when I try to add media to a new entry, and I can't seem to figure out what went wrong.
I go to the administration console and start a new entry. I click on [media] and choose an image from my media library. That part seems to work as it should, though the JavaScript Console does show a series of errors which say:
I then select the size, alignment, etc. on the serendipity_admin_image_selector.php page and click [Done] and nothing happens. I check back with the JS console and I see an error which says:
The function in serendipity_editor.js that is referenced in the error looks like this:
I appreciate any ideas or help that you may have.
I go to the administration console and start a new entry. I click on [media] and choose an image from my media library. That part seems to work as it should, though the JavaScript Console does show a series of errors which say:
Code: Select all
Error: SetCookie is not defined
Source File: .../serendipity_admin_image_selector.php?serendipity[textarea]=body
Code: Select all
Error: document.forms.serendipityEntry has no properties
Source File: .../serendipity_editor.js
Code: Select all
function serendipity_imageSelector_addToBody (str, textarea)
{
document.forms['serendipityEntry']['serendipity['+ textarea +']'].value += str;
document.forms['serendipityEntry']['serendipity['+ textarea +']'].focus();
}