Commit 778e064f by ramdayalmunda

style changed to text next page issue

parent 7c331391
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
.a-doc-editor .body .scrolling-area canvas.page { .a-doc-editor .body .scrolling-area canvas.page {
background: #f3f3f3; background: #f3f3f3;
margin-bottom: 10px; margin-bottom: 10px;
/* width: 100%; */ width: 100%;
box-shadow: 4px 0px 10px 4px rgba(0, 0, 0, 0.4); box-shadow: 4px 0px 10px 4px rgba(0, 0, 0, 0.4);
} }
......
...@@ -12,7 +12,7 @@ var ADocEditor = function (customConfig) { ...@@ -12,7 +12,7 @@ var ADocEditor = function (customConfig) {
element: "", element: "",
pageSetup: { pageSetup: {
width: 210, width: 210,
height: 297, height: 210,
}, },
format: { format: {
background: "#fff", background: "#fff",
...@@ -21,14 +21,14 @@ var ADocEditor = function (customConfig) { ...@@ -21,14 +21,14 @@ var ADocEditor = function (customConfig) {
fontSize: 10, fontSize: 10,
}, },
style: { style: {
fontSize: 10, fontSize: 70,
fontFamily: 'Arial', fontFamily: 'Arial',
bold: false, bold: false,
italic: false, italic: false,
fontColor: "#1e1f77" fontColor: "#1e1f77"
}, },
} }
var config = null; var config = JSON.parse( JSON.stringify( defaultConfig ) );
var canvasList = [] var canvasList = []
const dataTypes = [ const dataTypes = [
"paragraph", // simple text filled line by line "paragraph", // simple text filled line by line
...@@ -39,13 +39,7 @@ var ADocEditor = function (customConfig) { ...@@ -39,13 +39,7 @@ var ADocEditor = function (customConfig) {
id: ++counter, id: ++counter,
type: 0, type: 0,
plainContent: "", plainContent: "",
style: { style: { ...config.style }
fontSize: 10,
fontFamily: 'Arial',
bold: false,
italic: false,
fontColor: "#1e1f77"
}
} }
] ]
...@@ -56,9 +50,9 @@ var ADocEditor = function (customConfig) { ...@@ -56,9 +50,9 @@ var ADocEditor = function (customConfig) {
intervalDuration: 800, intervalDuration: 800,
blink: false, blink: false,
canvasIndex: 0, canvasIndex: 0,
caretSize: 10, caretSize: config.style.fontSize,
x: 0, x: config.style.margin,
y: 21, y: 3*config.style.fontSize/4,
} }
var renderInProgress = false; var renderInProgress = false;
......
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