fhemweb.js: Add codemirror support to long textfields (Forum #32709)
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@7693 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -574,6 +574,9 @@ FW_createTextField(elName, devName, vArr, currVal, set, params, cmd)
|
||||
|
||||
$("#td_longText").val($(inp).val());
|
||||
|
||||
if( typeof AddCodeMirror == 'function' )
|
||||
AddCodeMirror($("#td_longText").get(0));
|
||||
|
||||
$('#editdlg').dialog(
|
||||
{ modal:true, closeOnEscape:true, width:$(window).width()*3/4,
|
||||
maxHeight:$(window).height()*3/4,
|
||||
|
||||
Reference in New Issue
Block a user