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
add0e20b
Commit
add0e20b
authored
Jan 09, 2024
by
ramdayalmunda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
working on adding list
parent
26bcc8ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
5 deletions
+52
-5
a-doc-editor.css
dist/assets/a-doc-editor.css
+23
-0
a-doc-editor.js
dist/assets/a-doc-editor.js
+29
-5
No files found.
dist/assets/a-doc-editor.css
View file @
add0e20b
...
...
@@ -52,6 +52,29 @@
padding
:
1px
;
display
:
flex
;
}
.a-doc-editor
.header
.option
.list-label
{
position
:
relative
;
font-size
:
0.5em
;
border-bottom
:
1px
solid
rgba
(
0
,
0
,
0
,
0.137
);
padding
:
1px
;
display
:
flex
;
flex-direction
:
column
;
width
:
25px
;
}
.a-doc-editor
.header
.option
.thumbnail-options
{
display
:
none
;
position
:
absolute
;
z-index
:
100
;
background-color
:
#f5f5f5
;
border-radius
:
5px
;
max-height
:
300px
;
overflow
:
auto
;
top
:
100%
;
}
.a-doc-editor
.header
.option
.thumbnail-options.show
{
display
:
block
;
width
:
max-content
;
}
.a-doc-editor
.header
button
{
width
:
25px
;
}
...
...
dist/assets/a-doc-editor.js
View file @
add0e20b
...
...
@@ -125,6 +125,14 @@ var ADocEditor = function (customConfig) {
<button ade-action="font-size-plus">+</button>
</div>
<div class="option" ade-action="font-bold">
<div class="option-button"><strong>B</strong></div>
</div>
<div class="option" ade-action="font-italic">
<div class="option-button"><em>I</em></div>
</div>
<div class="option">
<div class="font-color">
<span>A</span>
...
...
@@ -133,11 +141,23 @@ var ADocEditor = function (customConfig) {
</div>
</div>
<div class="option" ade-action="font-bold">
<div class="option-button"><strong>B</strong></div>
</div>
<div class="option" ade-action="font-italic">
<div class="option-button"><em>I</em></div>
<div class="option">
<div class="list-label">
<span>1––––</span>
<span>2––––</span>
<span>3––––</span>
</div>
<div class="thumbnail-options">
<div>Item 1</div>
<div>Item 2</div>
<div>Item 3</div>
<div>Item 4</div>
<div>Item 5</div>
<div>Item 6</div>
<div>Item 7</div>
<div>Item 8</div>
<div>Item 9</div>
</div>
</div>
</div>
...
...
@@ -1036,6 +1056,10 @@ var ADocEditor = function (customConfig) {
event.stopPropagation();
}
function setupListItem(){
}
inititalize(customConfig)
function destory() {
clearInterval(caretData.interval)
...
...
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