Closed alexcroox closed 8 years ago
TinyMCE automatically adds
in some cases. I don't think this is an issue since we're dealing with html markup.
I had a similar issue. Since this is a tinymce issue, the best thing you can do is add some sort of placeholder in the front and back of the insert. Then with your server side code you can use this placeholder mark to be able to grab the data. So it might look like $%@Alex$% .
You can then get replace the $% with whatever you like rather than having to do a blanked replace of all occurrences of
Indeed, we also added a wrapper element in our insert
function.
insert: function(item) {
return '<span class="mention">' + item.name + '</span>';
}
This way we can easily parse the mentions.
When I save the message TinyMCE is adding
either side of the mention text which is causing my forum mention system to ignore it.Produces
<p>this is a test @Alex </p>
I'm not sure where the
is coming from