0
由于标题状态,我遵循他们的文档,它不是最好的新人或不熟悉jQuery的人。CreateJS工作,但不显示工具栏
我的头:
<div class="well col-md-3" about="/content/create">
<div property="content" contenteditable="true">
Lorem ipsum.
</div>
</div>
这LIB似乎是我想要实现但真的什么都没有那么多的资源/教程真的不错:
<head>
{{ HTML::script('/themes/admin/js/jquery.js') }}
{{ HTML::script('/themes/admin/js/jquery-ui.js') }}
{{ HTML::script('/themes/admin/js/underscore-min.js') }}
{{ HTML::script('/themes/admin/js/vie.js') }}
{{ HTML::script('/packages/createjs/create.js') }}
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('body').midgardCreate({
url: function() { return '/admin/content/create'; }
});
jQuery('body').midgardToolbar({
display: 'full'
});
jQuery('[about]').midgardEditable({
vie: new VIE()
});
});
</script>
</head>
我的身下可编辑的div在上面。
我不知道这一点很重要,因为我从来没有使用过CreateJS,但'about'和'property'不是由W3列出的HTML属性。 [见此](http://www.w3.org/TR/html401/struct/global.html#h-7.5.4) –