You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-26 22:41:17 +02:00
Mobile: Add a Rich Text Editor (#12748)
This commit is contained in:
@@ -158,11 +158,13 @@ export const imageReplacement = function(ResourceModel: OptionsResourceModel, ma
|
||||
}
|
||||
|
||||
// contenteditable="false": Improves support for the Rich Text Editor -- without this,
|
||||
// users can add content within the <div>, which breaks the html-to-md conversion.
|
||||
// users can add content within the <span>, which breaks the html-to-md conversion.
|
||||
//
|
||||
// Use a <span> and not a <div> to allow the placeholder to appear in <p> elements.
|
||||
return (
|
||||
`<div ${attributesHtml(attrs)} contenteditable="false">`
|
||||
`<span ${attributesHtml(attrs)} contenteditable="false">`
|
||||
+ `<img src="data:image/svg+xml;utf8,${htmlentities(icon)}"/>`
|
||||
+ '</div>'
|
||||
+ '</span>'
|
||||
);
|
||||
}
|
||||
const mime = resource.mime ? resource.mime.toLowerCase() : '';
|
||||
|
||||
Reference in New Issue
Block a user