to:sync
This commit is contained in:
parent
07dcd13877
commit
c115dda50b
@ -380,6 +380,13 @@ main {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#my-title {
|
||||||
|
&:empty::before {
|
||||||
|
content: '请输入标题';
|
||||||
|
color: #CCC;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#yxl_note p span[data-before-style="my-li-content"]::before {
|
#yxl_note p span[data-before-style="my-li-content"]::before {
|
||||||
content: attr(my-li-content);
|
content: attr(my-li-content);
|
||||||
/*border: 1px rgb(0, 140, 255) solid;*/
|
/*border: 1px rgb(0, 140, 255) solid;*/
|
||||||
|
@ -74,9 +74,9 @@ define(function (require, exports, module) {
|
|||||||
// spanContent.append(document.createElement("br"));
|
// spanContent.append(document.createElement("br"));
|
||||||
spanContent.setAttribute("data-flag", "span_content")
|
spanContent.setAttribute("data-flag", "span_content")
|
||||||
if (curNo === 0) { //首行有提示
|
if (curNo === 0) { //首行有提示
|
||||||
spanContent.setAttribute("placeholder", "请输入")
|
spanContent.setAttribute("placeholder", "请输入内容")
|
||||||
} else {
|
} else {
|
||||||
spanContent.setAttribute("placeholder", "请输入")
|
spanContent.setAttribute("placeholder", "请输入内容")
|
||||||
spanContent.innerHTML = " "
|
spanContent.innerHTML = " "
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -109,7 +109,7 @@ define(function (require, exports, module) {
|
|||||||
let tmpP = document.createElement("p");
|
let tmpP = document.createElement("p");
|
||||||
let curNo = ctx.getCurRowNo();
|
let curNo = ctx.getCurRowNo();
|
||||||
if (curNo === 0) { //首行有提示
|
if (curNo === 0) { //首行有提示
|
||||||
tmpSpan.setAttribute("placeholder", "请输入")
|
tmpSpan.setAttribute("placeholder", "请输入内容")
|
||||||
} else {
|
} else {
|
||||||
tmpSpan.textContent = "\n"
|
tmpSpan.textContent = "\n"
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<header>
|
<header>
|
||||||
<div class="fixStylePosition" id="_style_utils">
|
<div class="fixStylePosition" id="_style_utils">
|
||||||
<div class="fixStyleOut">
|
<div class="fixStyleOut">
|
||||||
|
|
||||||
@ -172,12 +172,15 @@
|
|||||||
<span>无色</span>
|
<span>无色</span>
|
||||||
</li>
|
</li>
|
||||||
<li data-my-style-k="color" data-my-style-v="red"><span style="color: red">红色</span></li>
|
<li data-my-style-k="color" data-my-style-v="red"><span style="color: red">红色</span></li>
|
||||||
<li data-my-style-k="color" data-my-style-v="#edce02"><span style="color: #edce02">黄色</span>
|
<li data-my-style-k="color" data-my-style-v="#edce02"><span
|
||||||
|
style="color: #edce02">黄色</span>
|
||||||
</li>
|
</li>
|
||||||
<li data-my-style-k="color" data-my-style-v="blue"><span style="color: blue">蓝色</span></li>
|
<li data-my-style-k="color" data-my-style-v="blue"><span
|
||||||
|
style="color: blue">蓝色</span></li>
|
||||||
<li data-my-style-k="color" data-my-style-v="black"><span style="color: black">黑色</span>
|
<li data-my-style-k="color" data-my-style-v="black"><span style="color: black">黑色</span>
|
||||||
</li>
|
</li>
|
||||||
<li data-my-style-k="color" data-my-style-v="gray"><span style="color: gray">灰色</span></li>
|
<li data-my-style-k="color" data-my-style-v="gray"><span
|
||||||
|
style="color: gray">灰色</span></li>
|
||||||
</ul>
|
</ul>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@ -287,23 +290,21 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<main id="myEdit_main" style="font-size: 14px">
|
<main id="myEdit_main" style="font-size: 14px">
|
||||||
<!-- 标题 -->
|
<!-- 标题 -->
|
||||||
<h3 contenteditable="true">
|
<h3 id="my-title" contenteditable="true"></h3>
|
||||||
测试编辑
|
|
||||||
</h3>
|
|
||||||
<!-- 内容 -->
|
<!-- 内容 -->
|
||||||
<div id="yxl_note" contenteditable="true" spellcheck="false" translate="no">
|
<div id="yxl_note" contenteditable="true" spellcheck="false" translate="no">
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
|
|
||||||
</footer>
|
</footer>
|
||||||
<div id="testDiv" style="font-size: 14px; width: 300px;margin-left: 10%; display: block"></div>
|
<div id="testDiv" style="font-size: 14px; width: 300px;margin-left: 10%; display: block"></div>
|
||||||
<div id="testDevice" style="font-size: 14px; width: 300px;margin-left: 10%; display: block"></div>
|
<div id="testDevice" style="font-size: 14px; width: 300px;margin-left: 10%; display: block"></div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
<script>
|
<script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user