scratch

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 28  →  ?path2? @ 29
/quickload/text.html
@@ -70,17 +70,25 @@
<script>
$(document).ready(() => {
$('#trumbowyg').trumbowyg({
autogrow: true
}).on("tbwchange", () => {
$.post("store-text.php",
{
text: $('#trumbowyg').trumbowyg('html'),
action: 'save'
},
function(data, status){
//alert("Data: " + data + "\nStatus: " + status);
autogrow: true,
disabled: true
}).on('tbwchange', () => {
$('#editor').trumbowyg('disable');
$.post('share-text.php', {
data: $('#trumbowyg').trumbowyg('html'),
}).done((data) => {
$('#trumbowyg').trumbowyg('enable');
}).fail(() => {
$('#trumbowyg').trumbowyg('enable');
});
});
$.get('share-text.php').done((data) => {
$('#trumbowyg')
.trumbowyg('html', data);
$('#trumbowyg').trumbowyg('enable');
}).fail(() => {
$('#trumbowyg').trumbowyg('enable');
});
});
</script>
</body>