Here is what I wanna do. Create diffrent contents with input and upload and finally add all the content together. I am using jQuery to append the content to my Modal for a preview. First had the problem that it appended multiple times, solved that with one("click"...
But when I am editing my content in the Editor it should recognize it and change the content. Can I add a change.() or something? Or is there a custom function already for that kind of purpose.
function appendAll($param){
var test = tinyMCE.activeEditor.getContent();
$($param).append(test);
}
$("#preview").one("click", function() {
$("#preview").change(appendAll('.modal-body'));
});
Aucun commentaire:
Enregistrer un commentaire