1.0.10 • Published 3 years ago

spliter-html v1.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

spliter-html

library to split html elements in contentEditable

Result

from:

<div>
<img src="https://picsum.photos/200/300">
</div>

to:

<div></div>
<img src="https://picsum.photos/200/300">
<div></div>

Works for rich text editors

from:

<p>
<span style="font-size:14px">Feel free to open [issues on] Github.</span>
</p>

to:

<p>
<span style="font-size:14px">Feel free to open </span>
<span style="font-size:20px">issues on</span>
<span style="font-size:14px"> Github.</span>
</p>

How to use

spliterHtml(fromElement,toElement);
  • fromElement must be child of toElement.
1.0.9

3 years ago

1.0.10

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago