【发布时间】:2016-03-29 15:42:09
【问题描述】:
我在我的网站上使用了 summernote 包:summernote:summernote,除了插入图片、视频和链接的功能不起作用之外,一切都运行良好。
例子:
点击插入链接按钮(图片和视频相同)
出现设置链接的弹出窗口。
单击该弹出窗口的任意位置,它就消失了。
这是我的代码:
post_edit.html
<template name="postEdit">
<div class="ui segment">
<form class="ui form">
<h1 class="ui dividing header">Edit post</h1>
<div class="field">
<label>Title</label>
<input type="text" id="title" name="title" value="{{title}}">
</div>
<label>Content</label>
<div class="field" id="content" name="content">
{{{content}}}
</div>
<button type="submit" class="ui orange button"><i class="edit icon"></i> Edit</button>
<a class="negative ui button delete"><i class="remove icon"></i> Delete</a>
<a class="ui button" href="{{pathFor 'postPage'}}"><i class="arrow left icon"></i> Back</a>
</form>
</div>
post_edit.js
Template.postEdit.onRendered(function(){
$(document).ready(function() {
$('#content').summernote({
height: 400,
maxHeight:800,
minHeight:250,
});
});
});
【问题讨论】:
标签: javascript jquery meteor semantic-ui summernote