Commit 4a7104ec authored by Liang Ding's avatar Liang Ding

🎨 支持配置编辑器模式 #95

parent c7158abd
......@@ -40,7 +40,7 @@ import org.json.JSONObject;
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="https://hacpai.com/member/hzchendou">hzchendou</a>
* @version 2.0.0.0, Feb 9, 2020
* @version 2.0.0.1, Apr 6, 2020
* @since 0.4.0
*/
@Singleton
......@@ -164,6 +164,14 @@ public class PreferenceConsole {
* "syncGitHub": boolean,
* "pullGitHub": boolean,
* "customVars" "", // 支持配置自定义参数 https://github.com/b3log/solo/issues/12535
* "showCodeBlockLn": boolean, // 支持代码块行号显示 https://github.com/88250/solo/issues/4
* "footnotes": boolean, // Markdown 支持改进 https://github.com/88250/solo/issues/54
* "showToC": boolean, // Markdown 支持改进 https://github.com/88250/solo/issues/54
* "autoSpace": boolean, // Markdown 支持改进 https://github.com/88250/solo/issues/54
* "fixTermTypo": boolean, // Markdown 支持改进 https://github.com/88250/solo/issues/54
* "chinesePunct": boolean, // Markdown 支持改进 https://github.com/88250/solo/issues/54
* "inlineMathAllowDigitAfterOpenMarker": boolean, // Markdown 支持改进 https://github.com/88250/solo/issues/54
* "editorMode": "", // 支持配置编辑器模式 https://github.com/88250/solo/issues/95
* }
* }
* </pre>
......
......@@ -250,7 +250,7 @@
</div>
<div id="tabPreferencePanel_markdown" class="fn__none form">
${editorModeLabel}
<label><input name="editorMode" type="radio" value="wysiwyg">&nbsp;${editorModeWYSIWYGLabel} </label>
<label><input name="editorMode" type="radio" value="wysiwyg" checked>&nbsp;${editorModeWYSIWYGLabel} </label>
<label><input name="editorMode" type="radio" value="ir">&nbsp;${editorModeIRLabel} </label>
<label><input name="editorMode" type="radio" value="sv">&nbsp;${editorModeSVLabel} </label>
......
This diff is collapsed.
......@@ -79,6 +79,8 @@ admin.preference = {
'true' === preference.chinesePunct ? $('#chinesePunct').attr('checked', 'checked') : $('#chinesePunct').removeAttr('checked')
'true' === preference.inlineMathAllowDigitAfterOpenMarker ? $('#inlineMathAllowDigitAfterOpenMarker').attr('checked', 'checked') : $('#inlineMathAllowDigitAfterOpenMarker').removeAttr('checked')
$("input:radio[value='" + preference.editorMode + "']").attr('checked','true');
admin.preference.locale = preference.localeString
// sign
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment