Commit add0e20b by ramdayalmunda

working on adding list

parent 26bcc8ae
...@@ -52,6 +52,29 @@ ...@@ -52,6 +52,29 @@
padding: 1px; padding: 1px;
display: flex; 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{ .a-doc-editor .header button{
width: 25px; width: 25px;
} }
......
...@@ -125,6 +125,14 @@ var ADocEditor = function (customConfig) { ...@@ -125,6 +125,14 @@ var ADocEditor = function (customConfig) {
<button ade-action="font-size-plus">+</button> <button ade-action="font-size-plus">+</button>
</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>
<div class="option"> <div class="option">
<div class="font-color"> <div class="font-color">
<span>A</span> <span>A</span>
...@@ -133,11 +141,23 @@ var ADocEditor = function (customConfig) { ...@@ -133,11 +141,23 @@ var ADocEditor = function (customConfig) {
</div> </div>
</div> </div>
<div class="option" ade-action="font-bold"> <div class="option">
<div class="option-button"><strong>B</strong></div> <div class="list-label">
</div> <span>1&ndash;&ndash;&ndash;&ndash;</span>
<div class="option" ade-action="font-italic"> <span>2&ndash;&ndash;&ndash;&ndash;</span>
<div class="option-button"><em>I</em></div> <span>3&ndash;&ndash;&ndash;&ndash;</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>
</div> </div>
...@@ -1036,6 +1056,10 @@ var ADocEditor = function (customConfig) { ...@@ -1036,6 +1056,10 @@ var ADocEditor = function (customConfig) {
event.stopPropagation(); event.stopPropagation();
} }
function setupListItem(){
}
inititalize(customConfig) inititalize(customConfig)
function destory() { function destory() {
clearInterval(caretData.interval) clearInterval(caretData.interval)
......
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