menus = $menus; return $this; } /** * 关闭样式过滤 * @param bool $showFullScreen * @return $this */ public function pasteFilterStyle(bool $pasteFilterStyle = false) { $this->pasteFilterStyle = $pasteFilterStyle; return $this; } /** * 开启全屏按钮 * @param bool $showFullScreen * @return $this */ public function showFullScreen(bool $showFullScreen = true) { $this->showFullScreen = $showFullScreen; return $this; } /** * 编辑区域的 z-index * @param int $zIndex * @return $this */ public function zIndex(int $zIndex) { $this->zIndex = $zIndex; return $this; } /** * 使用 base64 保存图片 * @param bool $uploadImgShowBase64 * @return $this */ public function uploadImgShowBase64(bool $uploadImgShowBase64 = true) { $this->uploadImgShowBase64 = $uploadImgShowBase64; return $this; } /** * 配置服务器端地址 * @param string $uploadImgServer * @return $this */ public function uploadImgServer(string $uploadImgServer) { $this->uploadImgServer = $uploadImgServer; return $this; } /** * 自定义 fileName * @param mixed $uploadFileName * @return WangEditor */ public function uploadFileName(string $uploadFileName) { $this->uploadFileName = $uploadFileName; return $this; } /** * 自定义 header * @param mixed $uploadImgHeaders * @return WangEditor */ public function uploadImgHeaders(array $uploadImgHeaders) { $this->uploadImgHeaders = $uploadImgHeaders; return $this; } /** * @param mixed $component * @return WangEditor */ public function component($component) { $this->component = $component; return $this; } }