Add <pre> to the types that get textarea inste of input.
This commit is contained in:
parent
a70c1dca7c
commit
05d84c733c
1 changed files with 3 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
|||
var PARAGRAPH_TYPES = new Set(["P", "PRE"]);
|
||||
|
||||
function Editor(elements, on_open, on_save, on_cancel)
|
||||
{
|
||||
/*
|
||||
|
@ -102,7 +104,7 @@ function Editor(elements, on_open, on_save, on_cancel)
|
|||
{
|
||||
var display_element = elements[index];
|
||||
var edit_element;
|
||||
if (display_element.tagName == "P")
|
||||
if (PARAGRAPH_TYPES.has(display_element.tagName))
|
||||
{
|
||||
edit_element = document.createElement("textarea");
|
||||
edit_element.rows = 6;
|
||||
|
|
Loading…
Reference in a new issue