* adjust the kindeditor tools.

This commit is contained in:
wangchunsheng
2010-09-12 13:39:53 +00:00
parent 9a0e31bd78
commit 836ae51efd
8 changed files with 19 additions and 45 deletions

View File

@@ -124,15 +124,11 @@ function loadProjectBuilds(projectID)
$('#buildBox').load(link);
}
/* 富文本编辑器。*/
KE.show({
id:'steps',
items:bugTools
});
var userList = "<?php echo join(',', array_keys($users));?>".split(',');
$(function() {
$("#mailto").autocomplete(userList, { multiple: true, mustMatch: true});
setAssignedTo();
KE.show({id:'steps',items:bugTools});
})
</script>

View File

@@ -143,16 +143,13 @@ function setDuplicate(resolution)
}
}
/* 富文本编辑器。*/
KE.show({
id:'steps',
items:bugTools
});
var userList = "<?php echo join(',', array_keys($users));?>".split(',');
$(function() {
$("#mailto").autocomplete(userList, { multiple: true, mustMatch: true});
$("#searchStories").colorbox({width:680, height:400, iframe:true, transition:'none'});
$("#searchTasks").colorbox({width:680, height:400, iframe:true, transition:'none'});
KE.show({id:'steps', items:simpleTools});
});
</script>
<form method='post' target='hiddenwin' enctype='multipart/form-data'>

View File

@@ -1,14 +1,16 @@
<?php if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}?>
<script src='<?php echo $jsRoot;?>jquery/kindeditor/kindeditor.js' type='text/javascript'></script>
<script language='javascript'>
var bugTools = ['fullscreen', '|', 'title', 'fontname', 'fontsize', '|',
'textcolor', 'bgcolor', 'bold', 'italic','underline', 'removeformat','undo', 'redo', '|',
'justifyleft', 'justifycenter', 'justifyright', 'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', '|',
'source', 'selectall', 'emoticons', 'image', 'link', 'savetemplate', '|', 'about'];
var simpleTools = [ 'fullscreen', '|', 'title', 'fontname', 'fontsize', '|',
'textcolor', 'bgcolor', 'bold', 'italic','underline', 'removeformat','undo', 'redo', '|',
'justifyleft', 'justifycenter', 'justifyright', 'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', '|',
'source', 'selectall', 'emoticons', 'image', 'link', '|', 'about' ];
var bugTools = [ 'title', 'fontname', 'fontsize',
'textcolor', 'bgcolor', 'bold', 'italic','underline',
'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist', 'insertunorderedlist', '|',
'emoticons', 'image', 'link', '|', 'removeformat','undo', 'redo', 'fullscreen', 'source', 'savetemplate'];
var simpleTools = [ 'title', 'fontname', 'fontsize',
'textcolor', 'bgcolor', 'bold', 'italic','underline',
'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist', 'insertunorderedlist', '|',
'emoticons', 'image', 'link', '|', 'removeformat','undo', 'redo', 'fullscreen', 'source'];
var tools = ['source', '|', 'fullscreen', 'undo', 'redo', 'print', 'cut', 'copy', 'paste', 'plainpaste', 'wordpaste', '|',
'justifyleft', 'justifycenter', 'justifyright', 'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript', 'superscript', '|',
'selectall', 'title', 'fontname', 'fontsize', '|',

View File

@@ -24,13 +24,7 @@
?>
<?php include './header.html.php';?>
<?php include '../../common/view/kindeditor.html.php';?>
<script language='javascript'>
/* 富文本编辑器。*/
KE.show({
id:'spec',
items:simpleTools
});
</script>
<script language='javascript'>KE.show({id:'spec', items:simpleTools});</script>
<div class='yui-d0'>
<form method='post' enctype='multipart/form-data' target='hiddenwin'>
<table class='table-1'>

View File

@@ -25,13 +25,7 @@
<?php include './header.html.php';?>
<?php include '../../common/view/kindeditor.html.php';?>
<style>#plan {width:245px}</style>
<script language='javascript'>
/* 富文本编辑器。*/
KE.show({
id:'spec',
items:simpleTools
});
</script>
<script language='javascript'>KE.show({id:'spec', items:simpleTools});</script>
<div class='yui-d0'>
<form method='post' enctype='multipart/form-data' target='hiddenwin'>
<table align='center' class='table-1'>

View File

@@ -23,9 +23,7 @@
*/
?>
<?php include './header.html.php';?>
<style>
#module, #plan {width:90%}
</style>
<style>#module, #plan {width:90%}</style>
<form method='post' enctype='multipart/form-data' target='hiddenwin'>
<div class='yui-d0'>
<div id='titlebar'>

View File

@@ -64,14 +64,10 @@ function setPreview()
}
}
/* 富文本编辑器。*/
KE.show({
id:'desc',
items:simpleTools
});
var userList = "<?php echo join(',', array_keys($users));?>".split(',');
$(document).ready(function()
{
KE.show({id:'desc', items:simpleTools}); //富文本编辑器。
setPreview();
$("#mailto").autocomplete(userList, { multiple: true, mustMatch: true});
});

View File

@@ -33,15 +33,12 @@
</style>
<script language='Javascript'>
/* 富文本编辑器。*/
KE.show({
id:'desc',
items:simpleTools
});
var userList = "<?php echo join(',', array_keys($users));?>".split(',');
$(function() {
$("#mailto").autocomplete(userList, { multiple: true, mustMatch: true});
$("#searchStories").colorbox({width:680, height:400, iframe:true, transition:'none'});
KE.show({ id:'desc', items:simpleTools }); // 富文本编辑器。
})
</script>
<form method='post' enctype='multipart/form-data' target='hiddenwin'>