Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
a-doc-editor
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ramdayal Munda
a-doc-editor
Commits
778e064f
Commit
778e064f
authored
Dec 07, 2023
by
ramdayalmunda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style changed to text next page issue
parent
7c331391
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
14 deletions
+8
-14
a-doc-editor.css
dist/assets/a-doc-editor.css
+1
-1
a-doc-editor.js
dist/assets/a-doc-editor.js
+7
-13
No files found.
dist/assets/a-doc-editor.css
View file @
778e064f
...
@@ -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
);
}
}
...
...
dist/assets/a-doc-editor.js
View file @
778e064f
...
@@ -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
:
2
97
,
height
:
2
10
,
},
},
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
:
1
0
,
fontSize
:
7
0
,
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment