/**
* Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
- * Copyright (C) 2002-2007 The Nucleus Group
+ * Copyright (C) 2002-2009 The Nucleus Group
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* This file contains functions to allow adding items from inside the weblog.
* Also contains code to avoid submitting form data twice.
*
- * $Id: edit.js,v 1.6 2007-02-04 06:28:45 kimitake Exp $
+ * $Id$
* $NucleusJP: edit.js,v 1.5 2006/07/12 07:11:47 kimitake Exp $
*/
function includeImage(collection, filename, type, width, height) {
if (isCaretEmpty()) {
- text = prompt("Text to display ?","");
+ text = prompt("Text to display ?", filename);
} else {
text = getCaretText();
}
function includeOtherMedia(collection, filename) {
if (isCaretEmpty()) {
- text = prompt("Text to display ?","");
+ text = prompt("Text to display ?", filename);
} else {
text = getCaretText();
}