我是使用的iview admin的后台模板,就是弄不懂它的上传图片的方式?搜了很多都找不到方法解决。。。相关代码<style> @import '../../../../styles/loading.less';</style><template> <div> <Card shadow> <textarea class='tinymce-textarea' id="tinymceEditer"></textarea> </Card> <Spin fix v-if="spinShow"> <Icon type="load-c" size=18 class="demo-spin-icon-load"></Icon> <div>加载组件中...</div> </Spin> </div></template><script>import tinymce from 'tinymce';export default { name: 'text-editor', data () { return { spinShow: true }; }, methods: { init () { this.$nextTick(() => { let vm = this; let height = document.body.offsetHeight - 100; tinymce.init({ selector: '#tinymceEditer', branding: false, elementpath: true, height: height, language: 'zh_CN.GB2312', // menubar: 'edit insert view format table tools', plugins: [ 'advlist autolink lists link image charmap print preview hr anchor pagebreak imagetools', 'searchreplace visualblocks visualchars code fullpage', 'insertdatetime media nonbreaking save table contextmenu directionality', 'emoticons paste textcolor colorpicker textpattern imagetools codesample' ], toolbar1: ' newnote print preview | undo redo | insert | styleselect | forecolor backcolor bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image emoticons media codesample', autosave_interval: '20s', image_advtab: true, table_default_styles: { width: '100%', borderCollapse: 'collapse' },点击插入图片,只有这两种情况,那怎么实现本地上传的昵?
添加回答
举报
0/150
提交
取消