Commit e770393b authored by Lingnan Wu's avatar Lingnan Wu

Add setSlidesContent and getSlidesContentthese 2 functions in...

Add setSlidesContent and getSlidesContentthese 2 functions in slidesshow_editor ,and use them in the officejs.js
parent e5b12c17
......@@ -175,29 +175,10 @@
ext:'ppt',
frameid:'svg_edit_frame',
getContent: function () {
return document.getElementById("list").innerHTML;
return getSlidesContent();
},
setContent: function (content) {
document.getElementById ("list").innerHTML=content;
//re initial the edit frame for the new page
$dialogEdit.append(editSlideIframe);
$('.edit_slide_button').click(function() {
editClick(this);
});
$('.remove_slide_button').click(function() {
removeClick(this);
});
$('section').hover(function() {
slideHover(this);
}, function(){
slideOut(this);
});
$('section').mousedown(function() {
slideOut(this);
});
setSlidesContent(content);
},
onload: function (param) {
var waitForInit = function (fun) {
......
......@@ -230,6 +230,32 @@ function appendSlideButtons(element, index){
$(element).after(button);
}
function getSlidesContent(){
return document.getElementById("list").innerHTML;
}
function setSlidesContent(content){
document.getElementById ("list").innerHTML=content;
reinitialSlides();
}
function reinitialSlides(){
$dialogEdit.append(editSlideIframe);
$('.edit_slide_button').click(function() {
editClick(this);
});
$('.remove_slide_button').click(function() {
removeClick(this);
});
$('section').hover(function() {
slideHover(this);
}, function(){
slideOut(this);
});
$('section').mousedown(function() {
slideOut(this);
});
}
$(document).ready(function(){
$(function() {
//Extract the slides
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment