Skip to content

Commit

Permalink
New config field - Inlinecss.
Browse files Browse the repository at this point in the history
  • Loading branch information
tangar76 committed Nov 13, 2019
1 parent c767a1e commit b761bbf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Block/Adminhtml/System/Config/Form/Field/Css.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function initJsLayout()
/**
* Get editor mode.
*
* @return string
* @return string|array
*/
public function getMode()
{
Expand Down
14 changes: 14 additions & 0 deletions Block/Adminhtml/System/Config/Form/Field/Inlinecss.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace Swissup\Codemirror\Block\Adminhtml\System\Config\Form\Field;

class Inlinecss extends Css
{
/**
* {@inheritdoc}
*/
public function getMode()
{
return ['name' => 'css', 'inline' => true];
}
}

0 comments on commit b761bbf

Please sign in to comment.