-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Редактор дублирует текст при вставке #160
Comments
"еще обернут в тег" p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Добрый день!
Есть код:
var item = '<strong class="field" contenteditable="false" data-field="eyJjb2RlIjoiYW1vY3JtX25hbWUiLCJuYW1lIjoiQU1PQ1JNINCY0LzRjyIsInR5cGUiOiJzdHJpbmciLCJ0eXBlX2RhdGEiOiIifQ==">Имя</strong>';
Далее в плагине делаю так:
this.selection.restore(); this.insert.html(item); this.code.sync();
В итоге вставляется 2 одинаковые строки в редактор с кодом, который в переменной item. Только во второй строке этот код еще обернут в тег
При этом курсор мигает перед этими добавленными строками и при повторном запуске функции снова вставляются 2 строки, только не в конец текста, а перед ним.
Помогите, пожалуйста, разобраться в данном вопросе
The text was updated successfully, but these errors were encountered: