mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-28 07:39:55 +09:00
upgrade xquared to v20071205, remove prototype.js, remove prototype dependencies in editor.html, fix bugs in xquared.js, xquared-min.js, replace xquared.js into xquared-min.js in editor.html
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3160 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
2f0d39d052
commit
b5a09b8fe1
11 changed files with 1127 additions and 4784 deletions
|
|
@ -4,13 +4,12 @@
|
|||
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
|
||||
<title>Xquared example - Default</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 = new xq.Editor("xqEditor");
|
||||
xed.setEditMode('wysiwyg');
|
||||
xed.loadStylesheet("css/xq_contents.css");
|
||||
xed.focus();
|
||||
|
|
|
|||
|
|
@ -4,13 +4,12 @@
|
|||
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
|
||||
<title>Xquared example - Extension point</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 = new xq.Editor("xqEditor");
|
||||
xed.setEditMode('wysiwyg');
|
||||
|
||||
xed.addShortcuts(getAdditionalShortcuts());
|
||||
|
|
@ -101,11 +100,10 @@
|
|||
}},
|
||||
{id:'separator', criteria: /^----*$/, handler: function(xed, rdom, block, text) {
|
||||
if(rdom.tree.isBlockContainer(block)) block = rdom.wrapAllInlineOrTextNodesAs("P", block, true)[0];
|
||||
|
||||
rdom.insertNodeAt(rdom.createElement("HR"), block, "before");
|
||||
block.innerHTML = "";
|
||||
block.appendChild(rdom.createElement("HR"));
|
||||
rdom.selectElement(block);
|
||||
rdom.collapseSelection();
|
||||
rdom.placeCaretAtStartOf(block);
|
||||
return true;
|
||||
}},
|
||||
{id:'heading', criteria: /^\=+[^=]*\=+(\ )*$/, handler: function(xed, rdom, block, text) {
|
||||
var textWithoutEqualMarks = text.strip().replace(/=/g, "");
|
||||
|
|
|
|||
|
|
@ -4,13 +4,12 @@
|
|||
<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 = new xq.Editor("xqEditor");
|
||||
xed.setEditMode('wysiwyg');
|
||||
xed.loadStylesheet("css/xq_contents.css");
|
||||
xed.focus();
|
||||
|
|
|
|||
|
|
@ -4,13 +4,12 @@
|
|||
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
|
||||
<title>Xquared example - Custom toolbar 1</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 = new xq.Editor("xqEditor");
|
||||
xed.config.defaultToolbarButtonMap = [
|
||||
[
|
||||
{className:"foregroundColor", title:"Foreground color", handler:"xed.handleForegroundColor('red')"},
|
||||
|
|
|
|||
|
|
@ -9,13 +9,12 @@
|
|||
font-weight: bold;
|
||||
}
|
||||
</style>
|
||||
<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"), $("xqToolbarContainer"));
|
||||
xed = new xq.Editor("xqEditor", "xqToolbarContainer");
|
||||
xed.setEditMode('wysiwyg');
|
||||
xed.loadStylesheet("css/xq_contents.css");
|
||||
xed.focus();
|
||||
|
|
|
|||
|
|
@ -4,13 +4,12 @@
|
|||
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
|
||||
<title>Xquared example - No toolbar</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 = new xq.Editor("xqEditor");
|
||||
|
||||
// Turn off default toolbar
|
||||
xed.config.generateDefaultToolbar = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue