-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cover restoring and fetch function fixed #101
Merged
Changes from 6 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
8dea3af
cover restoring fixed
khaydarov 0b7f330
upd
khaydarov 876cc23
fetch fixed in safari
khaydarov f69d85d
updated
khaydarov a26c2fa
plugins
khaydarov 586afdb
plugins ready
khaydarov c3d16cd
code improved
khaydarov fac0a66
fixed bug with backspace
khaydarov 1c1e647
improved architecture
khaydarov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,4 @@ Thumbs.db | |
/*.sublime-project | ||
/*.sublime-workspace | ||
|
||
node_modules/* | ||
plugins/* | ||
node_modules/* |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.ce-code { | ||
display: block; | ||
border: 1px solid #ebeef3; | ||
border-radius: 3px; | ||
background: #fdfdff !important; | ||
|
||
margin: 1em 0 !important; | ||
padding: .5em .8em; | ||
box-sizing: border-box; | ||
white-space: pre-wrap; | ||
|
||
font-family: 'monospace', 'monaco', 'consolas', 'courier'; | ||
line-height: 1.5em; | ||
color: #325179; | ||
font-size: .8em; | ||
} | ||
|
||
|
||
/** | ||
* CodeX Editor styles overlay | ||
* @todo change for ce-tool-wrapper__code | ||
*/ | ||
.ce_block[data-type="code"]{ | ||
padding: 1em 0 !important; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/** | ||
* Code Plugin\ | ||
* Creates code tag and adds content to this tag | ||
*/ | ||
var codeTool = { | ||
|
||
baseClass : "ce-code", | ||
|
||
/** | ||
* Make initial header block | ||
* @param {object} JSON with block data | ||
* @return {Element} element to append | ||
*/ | ||
make : function (data) { | ||
|
||
var tag = document.createElement('code'); | ||
|
||
tag.classList.add(codeTool.baseClass); | ||
|
||
if (data && data.text) { | ||
tag.innerHTML = data.text; | ||
} | ||
|
||
tag.contentEditable = true; | ||
|
||
return tag; | ||
|
||
}, | ||
|
||
/** | ||
* Method to render HTML block from JSON | ||
*/ | ||
render : function (data) { | ||
|
||
return codeTool.make(data); | ||
|
||
}, | ||
|
||
/** | ||
* Method to extract JSON data from HTML block | ||
*/ | ||
save : function (blockContent){ | ||
|
||
var data = { | ||
text : null, | ||
}; | ||
|
||
data.text = blockContent.innerHTML; | ||
|
||
return data; | ||
|
||
} | ||
|
||
}; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
почему не в dev?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
плагины же без сборки.
fetch
используется в плагине link, поэтому подумал, что к ядру это не относится. Разработчик может написать свой аякс, либо пользоваться нашим API.