我正试图与IPWEditor一道用 j子书写一个单元。
主要任务是能够绕过一块小块,如果一个用户在干iv上重复点击,则四粒会与锡兰采融为一体,另一件事是,在点击 but子时,会增加一个新的四块。
来源代码:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="jquery-1.3.2.js"></script>
<script type="text/javascript" src="jquery.ipweditor-1.2.1.js"></script>
<script type="text/javascript" src="tinymce/jscripts/tiny_mce/tiny_mce_src.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/jquery-ui.js"></script>
<script>
$(function() {
$( .text ).live( click , function() {
$(this).draggable( {containment: parent });
});
var ed = new tinymce.Editor( content , {
mode: "exact",
theme: "advanced",
plugins: "emotions,table",
theme_advanced_toolbar_location: "top",
theme_advanced_statusbar_location: "bottom",
theme_advanced_resizing: true,
theme_advanced_buttons1: "bold,italic,underline,strikethrough,sup,sub,charmap,fontselect,fontsizeselect,forecolor,backcolor,",
theme_advanced_buttons2: "copy,paste,undo,redo,|,hr,blockquote,bullist,numlist,outdent,indent,justifyleft,justifycenter,justifyright,|,image,emotions,",
theme_advanced_buttons3: "",
table_default_cellspacing: 0,
table_default_border: 1,
remove_linebreaks : false
});
$( .test ).live( dblclick ,function(){
$(this).editable({
tooltip : "",
indicator : Saving... ,
type: wysiwyg ,
editor: ed,
submit: save ,
cancel: cancel
});
});
});
function displaymessage()
{
$(".boxContainer").append("<div class= text test style= width: 280px onClick= $(this).addClass('selectedBorder') onmouseout= $(this).removeClass('selectedBorder') > Click me! I am editable and WYSIWYG!!!</div>");
}
</script>
<style>
p {margin:0; padding: 0;}
.text {cursor:pointer; line-height: 100%; border: 1px dotted transparent;}
.selectedBorder {border: 1px dotted black;}
</style>
</head>
<body>
<div class="boxContainer" style="border: solid thin gray; width: 1000px; height: 500px">
<div class="text test" style="width: 280px" onClick="$(this).addClass( selectedBorder )" onmouseout="$(this).removeClass( selectedBorder )">
<b> Click me! I am editable and WYSIWYG!!!</b>
</div>
</div>
<button type="button" class="newBox" onclick="displaymessage();">Add new box</button>
</body>
</html>
现在,在我点击“Add个新的盒子”纽顿时,出现了新的四分之四。 四分五裂是可笑的,当我对新的四分点进行双重点击时,四分五分之四是不容置疑的,但当我试图点上光子时,没有发生。
任何人都可以向我提供int或帮助。
非常感谢。
Best Respect / Johnny