<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>Xquared example - Form and Textarea</title>
<link rel="stylesheet" type="text/css" href="css/xq_ui.css" />
<script type="text/javascript" src="../js/prototype.js"></script>
<script type="text/javascript" src="../js/xquared.js"></script>
<script type="text/javascript">//<![CDATA[
var xed;
window.onload = function() {
xed = new xq.Editor($("xqEditor"));
xed.setEditMode(true);
xed.loadStylesheet("css/xq_contents.css");
xed.getFrame().style.width = "100%";
xed.getFrame().style.height = "400px";
xed.focus();
}
function tmp(f) {
alert(f);
}
//]]></script>
</head>
<body>
<form action="#" onsubmit="return tmp(this); return false;">
<label>Subject: <input type="text" name="subject" /></label>
<label>Content:
<textarea name="content" id="xqEditor"><p>Hello <a href="#">World</a>!</p></textarea>
</label>
<input type="submit" />
</form>
</body>
</html>
폼체크를 위해 자신을 참조할수 없습니다.
object window로 교체되어있습니다.
- Views 540
- Vote-For 0
- Vote-Against 0


감사합니다. 문제를 수정해서 저장소에 올려놓았어요. 소스를 받아서 빌드하시거나, 다음 릴리즈를 받으시면 해결될거예요. ^^