This repository was archived by the owner on Sep 11, 2020. It is now read-only.
Commit 1668a22
committed
Do not remove plugin on cleaning empty placeholder
This should fix #98
The embed plugin insert a div before the placeholder:
```
add : function ($placeholder) {
var formHtml = '<div class="medium-editor-toolbar...
$(formHtml).appendTo($placeholder.prev());
```
The fix for Firefox that cleanup empty placeholder (related to #28)
has to check if this div exist before removing it.
I've made it kind of generic by checking for a div element instead of a class.1 parent 0ca2a44 commit 1668a22
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
338 | 344 | | |
339 | 345 | | |
340 | 346 | | |
| |||
0 commit comments