Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Mirador annotations
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
IIIF
Mirador
Mirador annotations
Commits
89d6b0d9
Commit
89d6b0d9
authored
1 year ago
by
Anthony
Browse files
Options
Downloads
Patches
Plain Diff
Update UI : label and fix linter issues
parent
60c9177f
No related branches found
No related tags found
1 merge request
!10
Draft: MigratingAnnotationCreation to MUI5.
Pipeline
#1928
failed
1 year ago
Stage: test
Changes
2
Pipelines
3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/TextEditor.js
+12
-12
12 additions, 12 deletions
src/TextEditor.js
src/annotationForm/AnnotationFormContent.js
+1
-1
1 addition, 1 deletion
src/annotationForm/AnnotationFormContent.js
with
13 additions
and
13 deletions
src/TextEditor.js
+
12
−
12
View file @
89d6b0d9
...
...
@@ -2,14 +2,15 @@ import React, { useState } from 'react';
import
PropTypes
from
'
prop-types
'
;
import
ReactQuill
from
'
react-quill
'
;
import
'
react-quill/dist/quill.snow.css
'
;
import
{
styled
}
from
"
@mui/material/styles
"
;
import
{
Paper
}
from
"
@mui/material
"
;
// include styles
import
{
styled
}
from
'
@mui/material/styles
'
;
const
StyledReactQuill
=
styled
(
ReactQuill
)(({
theme
})
=>
({
"
.ql-editor
"
:
{
minHeight
:
'
150px
'
}
'
.ql-editor
'
:
{
minHeight
:
'
150px
'
,
},
}));
/** Rich text editor for annotation body */
function
TextEditor
({
annoHtml
,
updateAnnotationBody
})
{
const
[
editorHtml
,
setEditorHtml
]
=
useState
(
annoHtml
);
...
...
@@ -25,7 +26,6 @@ function TextEditor({ annoHtml, updateAnnotationBody }) {
<
StyledReactQuill
value
=
{
editorHtml
}
onChange
=
{
handleChange
}
// You can also pass other props to customize the toolbar, etc.
/
>
<
/div
>
);
...
...
This diff is collapsed.
Click to expand it.
src/annotationForm/AnnotationFormContent.js
+
1
−
1
View file @
89d6b0d9
...
...
@@ -8,7 +8,7 @@ function AnnotationFormContent({ textBody, updateTextBody, textEditorStateBustin
return
(
<
Paper
style
=
{{
padding
:
'
5px
'
}}
>
<
Typography
variant
=
"
overline
"
>
Metadata
Infos
<
/Typography
>
<
Grid
>
<
TextEditor
...
...
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