Writer : wizkwon 2008-02-29 15:24:24

<!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">&lt;p&gt;Hello &lt;a href="#"&gt;World&lt;/a&gt;!&lt;/p&gt;</textarea>
        </label>
        <input type="submit" />
    </form>
</body>
</html>

폼체크를 위해 자신을 참조할수 없습니다.

object window로 교체되어있습니다.

Mail notification

Comments

  • 2008-02-29 15:47:46

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

  • 2008-02-29 16:10:07

    감사합니다.