mirror of
https://ghproxy.net/https://github.com/AlxMedia/curver.git
synced 2025-08-28 09:25:45 +08:00
1.0.7
This commit is contained in:
parent
62def2a89b
commit
7ad333b360
167 changed files with 2955 additions and 2493 deletions
|
@ -5,7 +5,7 @@
|
|||
* @package Kirki
|
||||
* @subpackage Controls
|
||||
* @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
|
||||
* @license https://opensource.org/licenses/MIT
|
||||
* @license https://opensource.org/licenses/MIT
|
||||
* @since 2.2.7
|
||||
*/
|
||||
|
||||
|
@ -96,6 +96,17 @@ class Kirki_Field_Code extends Kirki_Field {
|
|||
if ( ! isset( $this->editor_settings['codemirror']['mode'] ) ) {
|
||||
$this->editor_settings['codemirror']['mode'] = $language;
|
||||
}
|
||||
|
||||
if ( 'text/x-scss' === $this->editor_settings['codemirror']['mode'] ) {
|
||||
$this->editor_settings['codemirror'] = array_merge(
|
||||
$this->editor_settings['codemirror'],
|
||||
array(
|
||||
'lint' => false,
|
||||
'autoCloseBrackets' => true,
|
||||
'matchBrackets' => true,
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue