소스 검색

Style Read More section in WYSIWYG like link

pull/383/head
Matt Baer 3 년 전
부모
커밋
706ae9cc77
2개의 변경된 파일11개의 추가작업 그리고 1개의 파일을 삭제
  1. +10
    -0
      less/prose-editor.less
  2. +1
    -1
      prose/schema.js

+ 10
- 0
less/prose-editor.less 파일 보기

@@ -106,6 +106,9 @@ li.ProseMirror-selectednode:after {
.ProseMirror-menuitem {
margin-right: 3px;
display: inline-block;
div {
cursor: pointer;
}
}

.ProseMirror-menuseparator {
@@ -404,6 +407,13 @@ textarea {
margin-bottom: 4px;
}

.editorreadmore {
color: @textLinkColor;
text-decoration: underline;
text-align: center;
width: 100%;
}

@media all and (min-width: 50em) {
#editor {
margin-left: 10%;


+ 1
- 1
prose/schema.js 파일 보기

@@ -12,7 +12,7 @@ export const writeFreelySchema = new Schema({
draggable: true,
toDOM: (node) => [
"div",
{ class: "editorreadmore", style: "width: 100%;text-align:center" },
{ class: "editorreadmore" },
"Read more...",
],
parseDOM: [{ tag: "div.editorreadmore" }],


불러오는 중...
취소
저장