I'm trying to incorporate Responsive file manager with Laravel 5.2.
I believe that I've followed the documentation properly, but I can't find which .js file to use in the <script>
tag, and not really sure how it works.
Basically I copied and pasted the template flow the official site.
<script type="text/javascript">
console.log("test");
tinymce.init({
selector: "textarea",theme: "modern",width: 680,height: 300,
plugins: [
"advlist autolink link image lists charmap print preview hr anchor pagebreak",
"searchreplace wordcount visualblocks visualchars insertdatetime media nonbreaking",
"table contextmenu directionality emoticons paste textcolor responsivefilemanager code"
],
toolbar1: "undo redo | bold italic underline | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | styleselect",
toolbar2: "| responsivefilemanager | link unlink anchor | image media | forecolor backcolor | print preview code ",
image_advtab: true ,
external_filemanager_path:"js/filemanager/",
filemanager_title:"Responsive Filemanager" ,
external_plugins: { "filemanager" : "/filemanager/plugin.min.js"}
});
</script>
Of course it doesn't show the tinymce's template, causing the following error.
Uncaught ReferenceError: tinymce is not defined
I did put the filemanager
folder under the assets
folder, so that the folder would be moved to under the public folder. Still, it doesn't show the tinymce's template.
I would appreciate if you would give any advice.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire