Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
selfnote
Manage
Activity
Members
Labels
Plan
Issues
3
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alyx
selfnote
Commits
0e57b9de
Commit
0e57b9de
authored
4 years ago
by
Alyx
Browse files
Options
Downloads
Patches
Plain Diff
removed markown editor
parent
4dc4ed06
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
resources/views/editnote.blade.php
+6
-13
6 additions, 13 deletions
resources/views/editnote.blade.php
with
6 additions
and
13 deletions
resources/views/editnote.blade.php
+
6
−
13
View file @
0e57b9de
...
@@ -5,13 +5,10 @@
...
@@ -5,13 +5,10 @@
<
form
id
=
"noteform"
>
<
form
id
=
"noteform"
>
<
input
type
=
"text"
id
=
"cleartextTitle"
>
<
input
type
=
"text"
id
=
"cleartextTitle"
>
<
div
id
=
"test-editor"
>
<
div
id
=
"test-editor"
>
<
div
class
=
"d-flex justify-content-center"
id
=
"loadingSpinner"
>
<
div
class
=
"form-group"
>
<
div
class
=
"spinner-border"
role
=
"status"
>
<
label
for
=
"noteeditor"
>
Entry
</
label
>
<
span
class
=
"sr-only"
>
Loading
...
</
span
>
<
textarea
class
=
"form-control"
id
=
"noteeditor"
rows
=
"10"
></
textarea
>
</
div
>
</
div
>
</
div
>
</
div
>
<
textarea
style
=
"display:none;"
id
=
"noteeditor"
></
textarea
>
</
div
>
<
p
>
<
p
>
<
button
id
=
"editor-submit"
type
=
"submit"
class
=
"btn btn-success"
>
Save
</
button
>
<
button
id
=
"editor-submit"
type
=
"submit"
class
=
"btn btn-success"
>
Save
</
button
>
—
<
span
id
=
"savedstatus"
class
=
"text-muted"
>
Last
saved
<
span
id
=
"saved-time"
></
span
></
span
>
—
<
span
id
=
"savedstatus"
class
=
"text-muted"
>
Last
saved
<
span
id
=
"saved-time"
></
span
></
span
>
...
@@ -34,11 +31,7 @@
...
@@ -34,11 +31,7 @@
loadNote
();
loadNote
();
});
});
var
editor
=
editormd
(
"test-editor"
,
{
width
:
"100%"
,
height
:
720
,
path
:
"/editormd/lib/"
});
function
loadNote
()
{
function
loadNote
()
{
$
.
ajax
({
$
.
ajax
({
...
@@ -59,7 +52,7 @@
...
@@ -59,7 +52,7 @@
e
.
preventDefault
();
// avoid to execute the actual submit of the form.
e
.
preventDefault
();
// avoid to execute the actual submit of the form.
encryptedTitle
=
CryptoJS
.
AES
.
encrypt
(
$
(
"#cleartextTitle"
)
.
val
(),
sessionStorage
.
getItem
(
'key'
))
.
toString
();
encryptedTitle
=
CryptoJS
.
AES
.
encrypt
(
$
(
"#cleartextTitle"
)
.
val
(),
sessionStorage
.
getItem
(
'key'
))
.
toString
();
encryptedBody
=
CryptoJS
.
AES
.
encrypt
(
editor
.
getMarkdown
(),
sessionStorage
.
getItem
(
'key'
))
.
toString
();
encryptedBody
=
CryptoJS
.
AES
.
encrypt
(
$
(
"#noteeditor"
)
.
val
(),
sessionStorage
.
getItem
(
'key'
))
.
toString
();
$
.
post
(
"/note/edit/
{
{$id}
}
"
,
{
$
.
post
(
"/note/edit/
{
{$id}
}
"
,
{
"_token"
:
"{{ csrf_token() }}"
,
"_token"
:
"{{ csrf_token() }}"
,
title
:
encryptedTitle
,
title
:
encryptedTitle
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment