Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
f5cce0e1
Commit
f5cce0e1
authored
May 18, 2017
by
Nicolas Giard
Committed by
GitHub
May 18, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #106 from fa93hws/fa93hws
fixed code block bugs
parents
60cb01fc
0cbc2bc4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
editor-codeblock.js
client/js/components/editor-codeblock.js
+1
-0
editor.js
client/js/components/editor.js
+0
-2
No files found.
client/js/components/editor-codeblock.js
View file @
f5cce0e1
...
...
@@ -50,6 +50,7 @@ module.exports = (mde, mdeModalOpenState) => {
},
methods
:
{
open
:
(
ev
)
=>
{
mdeModalOpenState
=
true
;
$
(
'#modal-editor-codeblock'
).
addClass
(
'is-active'
)
_
.
delay
(()
=>
{
...
...
client/js/components/editor.js
View file @
f5cce0e1
...
...
@@ -150,8 +150,6 @@ module.exports = (alerts, pageEntryPath, socket) => {
name
:
'code-block'
,
action
:
(
editor
)
=>
{
if
(
!
mdeModalOpenState
)
{
mdeModalOpenState
=
true
if
(
mde
.
codemirror
.
doc
.
somethingSelected
())
{
vueCodeBlock
.
initContent
=
mde
.
codemirror
.
doc
.
getSelection
()
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment