diff --git a/public/build/beike/admin/js/app.js b/public/build/beike/admin/js/app.js
index e7bf616e..d78e6fb3 100644
--- a/public/build/beike/admin/js/app.js
+++ b/public/build/beike/admin/js/app.js
@@ -2147,7 +2147,34 @@ function tinymceInit() {
font_formats: "微软雅黑='Microsoft YaHei';黑体=黑体;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Georgia=georgia,palatino;Helvetica=helvetica;Times New Roman=times new roman,times;Verdana=verdana,geneva",
fontsize_formats: "10px 12px 14px 18px 24px 36px",
relative_urls: true,
- setup: function setup(ed) {// ed.on('change', function(e) {
+ setup: function setup(ed) {
+ ed.ui.registry.addButton('toolbarImageButton', {
+ // text: '',
+ icon: 'image',
+ onAction: function onAction() {
+ layer.open({
+ type: 2,
+ title: '图片管理器',
+ shadeClose: false,
+ skin: 'file-manager-box',
+ scrollbar: false,
+ shade: 0.4,
+ area: ['1060px', '680px'],
+ content: "".concat(base, "/file_manager"),
+ success: function success(layerInstance, index) {
+ var iframeWindow = window[layerInstance.find("iframe")[0]["name"]];
+
+ iframeWindow.callback = function (images) {
+ if (images.length) {
+ images.forEach(function (e) {
+ ed.insertContent(""));
+ });
+ }
+ };
+ }
+ });
+ }
+ }); // ed.on('change', function(e) {
// if (e.target.targetElm.dataset.key) {
// app.form[e.target.targetElm.dataset.key] = ed.getContent()
// }
diff --git a/resources/beike/admin/js/app.js b/resources/beike/admin/js/app.js
index 708ac44a..1c6f3818 100644
--- a/resources/beike/admin/js/app.js
+++ b/resources/beike/admin/js/app.js
@@ -76,6 +76,32 @@ function tinymceInit() {
fontsize_formats: "10px 12px 14px 18px 24px 36px",
relative_urls : true,
setup:function(ed) {
+ ed.ui.registry.addButton('toolbarImageButton',{
+ // text: '',
+ icon: 'image',
+ onAction:function() {
+ layer.open({
+ type: 2,
+ title: '图片管理器',
+ shadeClose: false,
+ skin: 'file-manager-box',
+ scrollbar: false,
+ shade: 0.4,
+ area: ['1060px', '680px'],
+ content: `${base}/file_manager`,
+ success: function(layerInstance, index) {
+ var iframeWindow = window[layerInstance.find("iframe")[0]["name"]];
+ iframeWindow.callback = function(images) {
+ if (images.length) {
+ images.forEach(e => {
+ ed.insertContent(`
`);
+ });
+ }
+ }
+ }
+ });
+ }
+ });
// ed.on('change', function(e) {
// if (e.target.targetElm.dataset.key) {
// app.form[e.target.targetElm.dataset.key] = ed.getContent()
diff --git a/resources/beike/admin/views/pages/pages/form.blade.php b/resources/beike/admin/views/pages/pages/form.blade.php
index bb49f128..c52184e6 100644
--- a/resources/beike/admin/views/pages/pages/form.blade.php
+++ b/resources/beike/admin/views/pages/pages/form.blade.php
@@ -2,15 +2,46 @@
@section('title', '信息页面')
+@push('header')
+
+@endpush
+
@section('content')