【发布时间】:2016-11-06 21:30:12
【问题描述】:
是否有可以在 TinyMCE 中使用文件管理器保存我的工作的软件包?我看了几个视频,但他们只有一个关于图像上传的教程。我找不到任何可以以任何可用格式(如 pdf 等)工作的包。我阅读了文档,但发现没有此类工具栏的示例。
正如您在下面看到的,我的插件和工具栏中有一个save。但这完全是灰色的,因为我仍然找不到任何包。
<script>
tinymce.init
({
selector: '#mytextarea',
plugins: [
'advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker',
'searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking',
'save table contextmenu directionality emoticons template paste textcolor save'
], //The plugins configuration option allows you to enable functionality within the editor.
toolbar: 'insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | print preview media fullpage | forecolor backcolor emoticons | save',
save_enablewhendirty: true,
height: 400,
});
</script>
内容:
@section ('content')
<h3>Create Document</h3>
<div class = "col-md-12">
<div class = "panel-body">
<form class = "form-vertical" method="post">
<div class = "form-group">
<label for = "subject" class = "control-label">Subject:</label>
<input type = "text" name = "subject" class = "form-control">
</div>
<div class = "form-group">
<label for = "to" class = "control-label">To:</label>
<input type = "text" name = "to" class = "form-control">
</div>
<div class = "form-group">
<button type = "submit" class = "btn btn-success">Send</button>
</div>
<textarea id="mytextarea"></textarea>
</form>
</div>
</div>
@endsection
【问题讨论】:
标签: javascript laravel twitter-bootstrap-3 tinymce laravel-5.2