扩展编辑器
扩展编辑器

扩展编辑器

Free

扩展编辑器插件,单独增加1个MD编辑器配合使用

Installation with fskey
Installation with Command

本插件使用了editor.md

  1. 本插件为扩展编辑器插件,在原编辑基础上增加了1个编辑器
  2. 可以自动获取上传的图片并插入到编辑器中(图片必须先上传)

1.0.2 支持地图服务 扩展 内容处理扩展 地图服务 选择本插件

1.03 add 付费购买帖子

安装在后 在扩展 编辑器扩展 添加2个

1 名字 编辑器 or 其他 插件选择本插件 自定义参数 editor

2 名字 付费帖 or 其他 插件选择本插件 自定义参数 money

本插件需要修改客户端模版

修改文件及位置因主题不同也会不同这里以Moments为例

文件:\plugins\Moments\resources\views\commons\fresns.blade.php

查找

@if (fs_db_config('website_stat_position') == 'head')
        {!! fs_db_config('website_stat_code') !!}
    @endif

下面添加

 <link rel="stylesheet" href="/assets/MoreEditor/js/prism/prism.css?v={{ $fresnsVersion }}">
<script src="/assets/MoreEditor/js/jquery.tmpl.min.js?v={{ $fresnsVersion }}"></script>
<link rel="stylesheet" href="//lib.baomitu.com/KaTeX/0.16.9/katex.min.css?v=748aa60c88f0516d"  crossorigin="anonymous">
<script defer src="//lib.baomitu.com/KaTeX/0.16.9/katex.min.js?v=748aa60c88f0516d"  crossorigin="anonymous"></script>

    <!-- To automatically render math in text elements, include the auto-render extension: -->
    <script>
var katex_config = {
	delimiters: 
	[
		{left: "$$", right: "$$", display: false},
  		{left: "$", right: "$", display: true}
	]
};
</script>

    <script defer src="//lib.baomitu.com/KaTeX/0.16.9/contrib/auto-render.min.js?v=748aa60c88f0516d"  crossorigin="anonymous"
        onload="renderMathInElement(document.body,katex_config);"></script>

查找

@stack('script')

下面添加

<script src="/assets/MoreEditor/js/prism/prism.js?v={{ $fresnsVersion}}"></script>
<script src="/assets/MoreEditor/js/codecopy/codecopy.js?v={{ $fresnsVersion}}"></script>

查找并注释

<link rel="stylesheet" href="/assets/{{ $clientFskey }}/css/prism.min.css?v={{ $clientVersion}}">
<script src="/assets/{{ $clientFskey }}/js/prism.min.js?v={{ $clientVersion}}"></script>

文件 /plugins/Moments/resources/views/editor/edit.blade.php 查找

 {{-- Anonymous --}}
                        @if ($config['editor']['features']['anonymous'])
                            @component('components.editor.section.anonymous', [
                                'type' => $type,
                                'isAnonymous' => $draft['detail']['isAnonymous'],
                            ])@endcomponent
                        @endif

下面添加

 {{-- comment disable and private --}}
                        @if ($type == 'post')
                            <div class="form-check ms-3">
                                <input class="form-check-input" type="checkbox" name="postIsCommentDisabled" value="1" id="postIsCommentDisabled" {{ $draft['detail']['isCommentDisabled'] ? 'checked' : '' }}>
                                <label class="form-check-label" for="postIsCommentDisabled">
                                    {{ fs_lang('editorCommentDisable') }}
                                </label>
                            </div>

                            <div class="form-check ms-3">
                                <input class="form-check-input" type="checkbox" name="postIsCommentPrivate" value="1" id="postIsCommentPrivate" {{ $draft['detail']['isCommentPrivate'] ? 'checked' : '' }}>
                                <label class="form-check-label" for="postIsCommentPrivate">
                                    {{ fs_lang('editorCommentPrivate') }}
                                </label>
                            </div>
                        @endif

                        {{-- Markdown --}}
                        <div class="form-check ms-3">
                            <input class="form-check-input" type="checkbox" name="isMarkdown" value="1" id="isMarkdown" {{ $draft['detail']['isMarkdown'] ? 'checked' : '' }}>
                            <label class="form-check-label" for="isMarkdown">Markdown</label>
                        </div>

完事

Categories

Editor

Works With

Fresns 3.x

Database

Database Supports

  • MySQL/MariaDB

Involved Fresns Data Tables

  • configs
  • posts

About

Version 1.1.0

Released on 04/24/2024 10:54

1.1.0 04/24/2024 10:54

修改后台保存设置 报错

1.0.9 04/17/2024 15:01

兼容3.0.0

1.0.8 11/29/2023 20:42

修正一些问题

增加公式支持

<link rel="stylesheet" href="//lib.baomitu.com/KaTeX/0.16.9/katex.min.css?v=748aa60c88f0516d"  crossorigin="anonymous">
<script defer src="//lib.baomitu.com/KaTeX/0.16.9/katex.min.js?v=748aa60c88f0516d"  crossorigin="anonymous"></script>

    <!-- To automatically render math in text elements, include the auto-render extension: -->
    <script>
var katex_config = {
	delimiters: 
	[
		{left: "$$", right: "$$", display: false},
  		{left: "$", right: "$", display: true}
	]
};
</script>

    <script defer src="//lib.baomitu.com/KaTeX/0.16.9/contrib/auto-render.min.js?v=748aa60c88f0516d"  crossorigin="anonymous"
        onload="renderMathInElement(document.body,katex_config);"></script>

加到客户端公共头部

1.0.7 10/25/2023 17:01

fix 删除订阅命令字问题

1.0.6 10/17/2023 22:43

修复一些问题

1.0.5 10/09/2023 09:54

兼容 2.19.0

1.0.4 08/20/2023 19:41

更换CDN JS加速地址

1.0.3 06/20/2023 13:41

add 付费购买主题 扩展 编辑器扩展 添加1个 插件选择本插件 自定义参数 money

1.0.2 06/19/2023 17:43

1 add 地图服务支持 扩展 内容服务 地图服务 2 add 后台百度地图设置 3 fix 地图定位bug

1.0.1 06/18/2023 16:08

修正只发布UBB内容,程序替换后内容为空导致主程序报错的问题

1.0.0 06/15/2023 11:27

1.0.0

Fresns Marketplace Disclaimer

The Fresns App Marketplace is a repository of Fresns extensions, aggregating public and private extensions developed on top of the Fresns ecosystem.

The Fresns Marketplace is an open platform and any account registered as a developer can publish apps (certified developer can publish paid apps). As a result, the Fresns App Marketplace is unable to fully monitor applications uploaded to the App Marketplace by third parties and therefore does not guarantee the legitimacy, security, integrity, authenticity or quality of applications. By downloading an application from the Fresns Marketplace, you agree to use your own judgement and assume all risks without relying on the Fresns Marketplace.

Free applications are not explicitly stated and the developer is not obliged to provide technical support, so please install your own test functions.

In any case, Fresns Marketplace reserves the right to discontinue the Application Marketplace service and to take appropriate action in accordance with the law, including but not limited to removal of the application in question, suspension of all or part of the service. Fresns shall not be liable, directly, indirectly or jointly, for any damages that may be caused to you or to third parties.

Fresns