Add buffer mode to typedInput

This commit is contained in:
Nick O'Leary
2017-06-11 21:19:46 +01:00
parent d407f31ae5
commit d9dc171c28
11 changed files with 256 additions and 15 deletions

View File

@@ -419,5 +419,11 @@
"jsonEditor": {
"title": "JSON editor",
"format": "format JSON"
},
"bufferEditor": {
"title": "Buffer editor",
"modeString": "Handle as UTF-8 String",
"modeArray": "Handle as JSON array",
"modeDesc":"<h3>Buffer editor</h3><p>The Buffer type is stored as a JSON array of byte values. The editor will attempt to parse the entered value as a JSON array. If it is not valid JSON, it will be treated as a UTF-8 String and converted to an array of the individual character code points.</p><p>For example, a value of <code>Hello World</code> will be converted to the JSON array:<pre>[72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100]</pre></p>"
}
}