|
|
|
@ -1,13 +1,11 @@
|
|
|
|
|
<script type="text/javascript" src="/wysiwyg/ckeditor.js"></script>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
var editor;
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
KindEditor.ready(function(K) {
|
|
|
|
|
editor = K.create('textarea[name="announce"]', {
|
|
|
|
|
resizeType : 1,
|
|
|
|
|
height:'450px',
|
|
|
|
|
allowPreviewEmoticons : false
|
|
|
|
|
editor = CKEDITOR.replace('announce', {
|
|
|
|
|
width: '100%',
|
|
|
|
|
height: '560px'
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
@ -31,7 +29,7 @@ $(document).ready(function(){
|
|
|
|
|
<textarea name="announce" id="announce" class="span12" ><?php if(isset($announce->ta_content)) echo $announce->ta_content;?></textarea>
|
|
|
|
|
<label></label>
|
|
|
|
|
<input type="hidden" name="announce_id" value="<?php if(isset($announce->ta_id)) echo $announce->ta_id;?>">
|
|
|
|
|
<button type="button" onclick="editor.sync();submitForm('form_announce_add');" class="btn btn-primary pull-right offset1"> 提 交 </button>
|
|
|
|
|
<button type="button" onclick="submitForm('form_announce_add');" class="btn btn-primary pull-right offset1"> 提 交 </button>
|
|
|
|
|
</fieldset>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|