mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-11 15:56:06 +01:00
Support native spell checkers in codemirror editor #1266
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
1. [](#improved)
|
||||
* Removed sourcemaps references from fork-awesome.min.css [#2122](https://github.com/getgrav/grav-plugin-admin/issues/2122)
|
||||
* Support native spell checkers in CodeMirror editor [#1266](https://github.com/getgrav/grav-plugin-admin/issues/1266)
|
||||
1. [](#bugfix)
|
||||
* Moved preset CSS compile to earlier in the process to ensure compilation happens in time.
|
||||
* Prevent Save actions from Flex Objects to trigger the unsaved unload notice [#2125](https://github.com/getgrav/grav-plugin-admin/issues/2125)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "forms/fields/editor/editor.html.twig" %}
|
||||
{% set theme = config.plugins.admin.whitelabel.codemirror_theme ?? 'paper.css' %}
|
||||
{% set font = config.plugins.admin.whitelabel.codemirror_md_font ?? 'sans' %}
|
||||
{% set codemirrorOptions = {'mode': 'gfm', 'theme': theme, 'font': font, 'ignore': []}|merge(field.codemirror|default({})) %}
|
||||
{% set codemirrorOptions = {'spellcheck': 'true', 'inputStyle': 'contenteditable', 'mode': 'gfm', 'theme': theme, 'font': font, 'ignore': []}|merge(field.codemirror|default({})) %}
|
||||
|
||||
{# backward compatibility #}
|
||||
{% if field.showPreview %}
|
||||
|
||||
Reference in New Issue
Block a user