Version 4.3.0
This commit is contained in:
1 parent
96997ddd8e
commit
fe1acf984a
1349 files changed
+116159
-67711
No files matched your search
@@ -32,7 +32,8 @@ class _Codemirror extends TextArea
|
||||
'placeholder' => 'e.g. ...', // A placeholder (NB: Will only work on compatible browsers)
|
||||
'tags' => array(), // An array of extra insertable tags in key => value pair with key being what is inserted and value serving as a description
|
||||
'mode' => 'php' // Formatting mode. Default is htmlmixed.
|
||||
'height' => 300 // Height of code mirror editor
|
||||
'height' => 300 // Height of code mirror editor
|
||||
'preview' => 'http://...' // A URL where the value can be POSTed (as "value") and will return a preview. Defaults to NULL, which will hide the preview button.
|
||||
);
|
||||
* @endcode
|
||||
*/
|
||||
@@ -44,7 +45,8 @@ class _Codemirror extends TextArea
|
||||
'tags' => array(),
|
||||
'mode' => 'htmlmixed',
|
||||
'nullLang' => NULL,
|
||||
'height' => 300
|
||||
'height' => 300,
|
||||
'preview' => NULL
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -80,6 +82,6 @@ class _Codemirror extends TextArea
|
||||
$this->options['height'] = is_numeric( $this->options['height'] ) ? $this->options['height'] . 'px' : $this->options['height'];
|
||||
}
|
||||
|
||||
return \IPS\Theme::i()->getTemplate( 'forms', 'core', 'global' )->codemirror( $this->name, $this->value, $this->required, $this->options['maxLength'], $this->options['disabled'], '', $this->options['placeholder'], $this->options['tags'], $this->options['mode'], $this->htmlId ? "{$this->htmlId}-input" : NULL, $this->options['height'] );
|
||||
return \IPS\Theme::i()->getTemplate( 'forms', 'core', 'global' )->codemirror( $this->name, $this->value, $this->required, $this->options['maxLength'], $this->options['disabled'], '', $this->options['placeholder'], $this->options['tags'], $this->options['mode'], $this->htmlId ? "{$this->htmlId}-input" : NULL, $this->options['height'], $this->options['preview'] );
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user