Problem/Motivation

Currently, the CodeMirror configuration is hardcoded.

Proposed resolution

This issue seeks to add a global configuration for CodeMirror for the 'template_code' field on the add/edit form. Allow site builders to define configuration in YAML.

Remaining tasks

  • Submit patch
  • Review

User interface changes

Addition of Twig UI Templates global config page/form

API changes

None.

Data model changes

Addition of codemirror_config to the twig_ui.settings config entity

Issue fork twig_ui-3177982

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Chris Burge created an issue. See original summary.

chris burge’s picture

Title: Allow for configuration of CodeMirror buttons » Allow for configuration of CodeMirror
Issue summary: View changes

chris burge’s picture

Assigned: Unassigned » chris burge
Status: Active » Needs work

Code has been committed to MR. Settings to 'Needs work' for tests.

chris burge’s picture

Hmmm.. tests pass locally

  • Chris Burge committed 1a21f02 on 1.0.x
    Issue #3177982 by Chris Burge: Allow for configuration of CodeMirror
    
chris burge’s picture

Assigned: chris burge » Unassigned
Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.