Merge branch 'master' into jori/rm-dnd
This commit is contained in:
@@ -248,22 +248,6 @@ const StyledEditor = styled(Editor)`
|
||||
h5,
|
||||
h6 {
|
||||
font-weight: 500;
|
||||
|
||||
.anchor {
|
||||
visibility: hidden;
|
||||
color: #dedede;
|
||||
padding-left: 0.25em;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.anchor {
|
||||
visibility: visible;
|
||||
|
||||
&:hover {
|
||||
color: #cdcdcd;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
h1:first-of-type {
|
||||
|
||||
@@ -72,6 +72,7 @@ export const Heading1 = styled(Heading)`
|
||||
&:hover {
|
||||
${Anchor} {
|
||||
visibility: visible;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -15,6 +15,7 @@ export default async function insertImageFile(
|
||||
try {
|
||||
// load the file as a data URL
|
||||
const id = uuid.v4();
|
||||
const alt = '';
|
||||
const reader = new FileReader();
|
||||
reader.addEventListener('load', () => {
|
||||
const src = reader.result;
|
||||
@@ -24,7 +25,7 @@ export default async function insertImageFile(
|
||||
.insertBlock({
|
||||
type: 'image',
|
||||
isVoid: true,
|
||||
data: { src, id, loading: true },
|
||||
data: { src, id, alt, loading: true },
|
||||
})
|
||||
.apply();
|
||||
editor.onChange(state);
|
||||
@@ -45,7 +46,7 @@ export default async function insertImageFile(
|
||||
);
|
||||
|
||||
return finalTransform.setNodeByKey(placeholder.key, {
|
||||
data: { src, loading: false },
|
||||
data: { src, alt, loading: false },
|
||||
});
|
||||
} catch (err) {
|
||||
throw err;
|
||||
|
||||
@@ -101,11 +101,11 @@ samp {
|
||||
}
|
||||
code,
|
||||
samp {
|
||||
font-size: 87.5%;
|
||||
font-size: 85%;
|
||||
padding: 0.125em;
|
||||
}
|
||||
pre {
|
||||
font-size: 87.5%;
|
||||
font-size: 85%;
|
||||
overflow: scroll;
|
||||
}
|
||||
blockquote {
|
||||
|
||||
Reference in New Issue
Block a user