editor-js / list

Advanced List tool for the Editor.js.
MIT License
48 stars 47 forks source link

Chore (toolbox-input): add sanitize method for input #95

Closed e11sy closed 3 weeks ago

e11sy commented 3 weeks ago

Problem

default html attributes of the input can not provide correct behaviour of the input e. g. in the input for startWith toolbox should be only decimal numbers (without dots and commas)

Solution

Added sanitize attribute to the renderToolboxInput(), which normalizes input.value on every input via sanitize method