Skip to content

Commit

Permalink
🎨 支持配置编辑器模式 #95
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Apr 6, 2020
1 parent 4a7104e commit c9a79c6
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,13 @@ public void showAdminIndex(final RequestContext context) {

try {
final JSONObject preference = optionQueryService.getPreference();
// 支持配置编辑器模式 https://github.com/88250/solo/issues/95
String editorMode = preference.optString(Option.ID_C_EDITOR_MODE);
if (StringUtils.isBlank(editorMode)) {
editorMode = "wysiwyg";
}
dataModel.put(Option.ID_C_EDITOR_MODE, editorMode);

dataModel.put(Option.ID_C_LOCALE_STRING, preference.getString(Option.ID_C_LOCALE_STRING));
dataModel.put(Option.ID_C_BLOG_TITLE, preference.getString(Option.ID_C_BLOG_TITLE));
dataModel.put(Option.ID_C_BLOG_SUBTITLE, preference.getString(Option.ID_C_BLOG_SUBTITLE));
Expand Down

0 comments on commit c9a79c6

Please # to comment.