We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a6f456 commit 862e1a3Copy full SHA for 862e1a3
code/libraries/joomlatools/component/koowa/template/helper/editor.php
@@ -72,6 +72,29 @@ public function display($config = array())
72
73
$result .= sprintf('<ktml:style src="%s" />', $url);
74
}
75
+
76
+ if ($config->editor == 'codemirror')
77
+ {
78
+ $result .= "<script>
79
+ kQuery(function($)
80
81
+ let form = $('.k-js-form-controller');
82
+ if (form.length)
83
84
+ form.on('k:submit' , function()
85
86
+ let editor = Joomla.editors.instances['" . $config->name . "'];
87
+ let textarea = $('#" . $config->name . "');
88
89
+ if (editor && textarea.length) {
90
+ textarea.html(editor.getValue());
91
+ }
92
+ });
93
94
95
+ </script>
96
+ ";
97
98
99
100
return $result;
0 commit comments