mirror of
https://github.com/codex-team/editor.js
synced 2026-03-16 23:55:49 +01:00
add comments
This commit is contained in:
parent
319cabbc98
commit
2428849b79
3 changed files with 16 additions and 6 deletions
|
|
@ -3,9 +3,10 @@
|
|||
/*}*/
|
||||
|
||||
.marked {
|
||||
font-family: 'monospace', 'monaco', 'consolas', 'courier';
|
||||
background-color: rgba(255, 97, 106, 0.2);
|
||||
border: 1px solid rgba(255, 98, 86, 0.49);
|
||||
padding: 0px 3px;
|
||||
border-radius: 3px;
|
||||
/*font-family: 'monospace', 'monaco', 'consolas', 'courier';*/
|
||||
background-color: #f4f4f4;
|
||||
border: 1px solid #eaeaea;
|
||||
color: #3c3434;
|
||||
padding: 1px 3px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,13 +51,21 @@ class Term {
|
|||
return this.button;
|
||||
}
|
||||
|
||||
// @todo add description
|
||||
/**
|
||||
* Process selected fragment
|
||||
*
|
||||
* @param {Range} range
|
||||
*/
|
||||
surround(range) {
|
||||
if (!range) {
|
||||
return;
|
||||
}
|
||||
|
||||
console.log(range);
|
||||
|
||||
|
||||
let state = this.api.selection.findParentTag(this.TAG, this.CSS);
|
||||
console.log(state);
|
||||
|
||||
/**
|
||||
* If start or end of selection is in the highlighted block
|
||||
|
|
|
|||
1
example/tools-inline/term/term.svg
Normal file
1
example/tools-inline/term/term.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg width="19" height="14" viewBox="0 0 19 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M2.921 7.014l4.835 4.834a1.113 1.113 0 1 1-1.574 1.574L.543 7.784a1.113 1.113 0 0 1 .04-1.613L6.125.627a1.125 1.125 0 0 1 1.591 1.591L2.921 7.014zm15.301-.823l.02.019c.435.435.435 1.14 0 1.574l-5.639 5.638a1.113 1.113 0 1 1-1.574-1.574l4.835-4.834-4.796-4.796A1.125 1.125 0 1 1 12.66.628l5.544 5.543.02.02z"/></svg>
|
||||
|
After Width: | Height: | Size: 451 B |
Loading…
Add table
Add a link
Reference in a new issue