You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I've been trying to add Codemirror to the widget by implementing the instruction provided both on Imperavi website and Redactor Manual v10 but to no avail.
/**
* Codemirror asset bundle.
*
* @author NickGoodwind <nickgoodwind@gmail.com>
*/
class CodemirrorAsset extends AssetBundle
{
public $basePath = '@webroot';
public $baseUrl = '@web';
public $js = [
'js/codemirror/codemirror.js',
'js/codemirror/mode/htmlmixed/htmlmixed.js',
];
public $css = [
'css/codemirror.css'
];
public $depends = [
'app\modules\admin\assets\AdminAppAsset'
];
}
By reviewing further into the extension code, it seems that no new CodeMirror editor instance is created anywhere inside the redactor.js file. Are there some missing steps I am not looking?
The text was updated successfully, but these errors were encountered:
NickGoodwind
changed the title
Codemirror implementation for source
CodeMirror implementation for source
May 26, 2022
Hi, I've been trying to add Codemirror to the widget by implementing the instruction provided both on Imperavi website and Redactor Manual v10 but to no avail.
This is the code included in the widget:
<?= $form->field($model, 'description')->widget(Widget::class, [ 'settings' => [ 'codemirror' => true ] ])
This is the result obtained:
Screen.Recording.2022-05-26.at.6.29.28.PM.mov
No changes to the editor at all, not even a new textArea or similar.
This are my files
View:
CodemirrorAsset:
By reviewing further into the extension code, it seems that no new CodeMirror editor instance is created anywhere inside the
redactor.js
file. Are there some missing steps I am not looking?The text was updated successfully, but these errors were encountered: