@@ -13,6 +13,7 @@ var ADocEditor = function (customConfig) {
...
@@ -13,6 +13,7 @@ var ADocEditor = function (customConfig) {
background:"#fff",
background:"#fff",
margin:20,
margin:20,
border:"",
border:"",
fontSize:28,
}
}
}
}
varconfig=null;
varconfig=null;
...
@@ -21,8 +22,13 @@ var ADocEditor = function (customConfig) {
...
@@ -21,8 +22,13 @@ var ADocEditor = function (customConfig) {
{
{
id:`${++counter}`,
id:`${++counter}`,
type:"text",
type:"text",
plainContent:"Hello World"
plainContent:"Since they are still preserved in the rocks for us to see, they must have been formed quite recently, that is, geologically speaking. What can explain these striations and their common orientation?"
}
},
// {
// id: `${++counter}`,
// type: "text",
// plainContent: "Did you ever hear about the Great Ice Age or the Pleistocene Epoch? Less than one million years ago, in fact, some 12,000 years ago, an ice sheet many thousands of feet thick rode over Burke Mountain in a southeastward direction."
// }
]
]
varcaretData={
varcaretData={
...
@@ -56,10 +62,10 @@ var ADocEditor = function (customConfig) {
...
@@ -56,10 +62,10 @@ var ADocEditor = function (customConfig) {
container.append(mainComponent)
container.append(mainComponent)
reRenderPages(dataSet)
reRenderPages(dataSet)
caretData.interval=setInterval(()=>{
// caretData.interval = setInterval(() => {
caretData.blink=!caretData.blink
// caretData.blink = !caretData.blink
reRenderPages(dataSet,true)
// reRenderPages(dataSet, true)
},caretData.intervalDuration)
// }, caretData.intervalDuration)
}
}
functionreRenderPages(dataList,blinking=false){
functionreRenderPages(dataList,blinking=false){
...
@@ -68,6 +74,7 @@ var ADocEditor = function (customConfig) {
...
@@ -68,6 +74,7 @@ var ADocEditor = function (customConfig) {