Hi,
I'm setting up a Humhub intranet and want to add some extra features to comments from users.
The comment box is an editable div of which the content is cloned into an hidden textarea.
But when entering an url , it isn't recognized...
Can you please help me finding a solution?
<textarea style="width: 300px; height: 100px;" placeholder="write here"></textarea>
$(document).ready(function () {
$('.input-area').keyup(function () {
if ($(this).html() == "" || $(this).html() == " " || $(this).html() == "
") {
$(this).html(placeholder);
$(this).addClass('atwho-placeholder');
} else {
$('textarea').val(getPlainInput($(this).clone()));
}
})
});
$('textarea').liveUrl({
loadStart : function(){
console.log('start');
},
loadEnd : function(){
console.log('finished');
},
success : function(data) {
console.log(data);
}
});
Hi,
I'm setting up a Humhub intranet and want to add some extra features to comments from users.
The comment box is an editable div of which the content is cloned into an hidden textarea.
But when entering an url , it isn't recognized...
Can you please help me finding a solution?
<textarea style="width: 300px; height: 100px;" placeholder="write here"></textarea>
$(document).ready(function () {$(this).html() == "" || $ (this).html() == " " || $(this).html() == "
$('.input-area').keyup(function () {
if (
") {
$(this).html(placeholder);
$(this).addClass('atwho-placeholder');
} else {
$('textarea').val(getPlainInput($(this).clone()));
}
})
});
$('textarea').liveUrl({
loadStart : function(){
console.log('start');
},
loadEnd : function(){
console.log('finished');
},
success : function(data) {
console.log(data);
}
});