Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typescript/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Typescript 如何预防<;p>;及<;br>;ContentEditable div中的元素_Typescript_Dom Events_Contenteditable - Fatal编程技术网

Typescript 如何预防<;p>;及<;br>;ContentEditable div中的元素

Typescript 如何预防<;p>;及<;br>;ContentEditable div中的元素,typescript,dom-events,contenteditable,Typescript,Dom Events,Contenteditable,按enter键时,段落和分页符元素将自动添加到编辑器中。建议如何防止编辑器中出现不需要的元素 防止ContentEditable div中的和元素 浏览器行为与ContentEditable不一致。使用更好的东西,例如facebook上的 更多 很多人都试过(像你一样)然后放弃了 不是插件。我是为textEditor做的。

按enter键时,段落和分页符元素将自动添加到编辑器中。建议如何防止编辑器中出现不需要的元素

防止ContentEditable div中的和
元素

浏览器行为与ContentEditable不一致。使用更好的东西,例如facebook上的

更多 很多人都试过(像你一样)然后放弃了


不是插件。我是为textEditor做的。