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 {
|
||||
content: attr(my-li-content);
|
||||
/*border: 1px rgb(0, 140, 255) solid;*/
|
||||
|
@ -74,9 +74,9 @@ define(function (require, exports, module) {
|
||||
// spanContent.append(document.createElement("br"));
|
||||
spanContent.setAttribute("data-flag", "span_content")
|
||||
if (curNo === 0) { //首行有提示
|
||||
spanContent.setAttribute("placeholder", "请输入")
|
||||
spanContent.setAttribute("placeholder", "请输入内容")
|
||||
} else {
|
||||
spanContent.setAttribute("placeholder", "请输入")
|
||||
spanContent.setAttribute("placeholder", "请输入内容")
|
||||
spanContent.innerHTML = " "
|
||||
}
|
||||
|
||||
@ -109,7 +109,7 @@ define(function (require, exports, module) {
|
||||
let tmpP = document.createElement("p");
|
||||
let curNo = ctx.getCurRowNo();
|
||||
if (curNo === 0) { //首行有提示
|
||||
tmpSpan.setAttribute("placeholder", "请输入")
|
||||
tmpSpan.setAttribute("placeholder", "请输入内容")
|
||||
} else {
|
||||
tmpSpan.textContent = "\n"
|
||||
}
|
||||
|
@ -172,12 +172,15 @@
|
||||
<span>无色</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 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>
|
||||
<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>
|
||||
</span>
|
||||
</div>
|
||||
@ -291,9 +294,7 @@
|
||||
|
||||
<main id="myEdit_main" style="font-size: 14px">
|
||||
<!-- 标题 -->
|
||||
<h3 contenteditable="true">
|
||||
测试编辑
|
||||
</h3>
|
||||
<h3 id="my-title" contenteditable="true"></h3>
|
||||
<!-- 内容 -->
|
||||
<div id="yxl_note" contenteditable="true" spellcheck="false" translate="no">
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user