You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some questions to understand the concept better.
The value contains HTML elements. Is there way to get a plain text by using <div contenteditable />? I cannot use textarea, because I won't be able to give style to the tagged user in the text.
Here is how it looks like when I log the variable:
Due to HTML elements, I am unable to store the value in DB. What kind of approach should I take to store the text that user writes?
I am unable to set deleteMatch. My function never gets called when a tagged user is removed from the text. Is there something I am missing?
In my case I managed to solve it in this way: <div class="editor el-textarea__inner" data-text="Add To Conversation" style="height: 58px;" contenteditable></div>
let textContent = document.querySelector(".editor").textContent;
Hi,
I have some questions to understand the concept better.
<div contenteditable />
? I cannot usetextarea
, because I won't be able to give style to the tagged user in the text.Here is how it looks like when I log the variable:
Due to HTML elements, I am unable to store the value in DB. What kind of approach should I take to store the text that user writes?
deleteMatch
. My function never gets called when a tagged user is removed from the text. Is there something I am missing?Data:
Method:
Let me know if you need more info. Thanks!
cc: @fritx
The text was updated successfully, but these errors were encountered: