Skip to content

not executing script on hidden textarea when content is cloned to it... #15

@pieterheyns

Description

@pieterheyns

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);
}
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions