You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the buttonContent property is set in the configuration for the ImageTool of EditorJS, the SVG icon disappears, leaving only the text message visible.
Examples:
Example 1:
importImageToolfrom'@editorjs/image';vareditor=EditorJS({
...
tools: {
...
image: {class: ImageTool,config: {endpoints: {byFile: 'http://localhost:8008/uploadFile',// Your backend file uploader endpointbyUrl: 'http://localhost:8008/fetchUrl',// Your endpoint that provides uploading by Url}}}}
...
});
Example 2:
importImageToolfrom'@editorjs/image';vareditor=EditorJS({
...
tools: {
...
image: {class: ImageTool,config: {endpoints: {byFile: 'http://localhost:8008/uploadFile',// Your backend file uploader endpointbyUrl: 'http://localhost:8008/fetchUrl',// Your endpoint that provides uploading by Url},buttonContent: 'Select an image',}}}
...
});
Temporary Solution:
A temporary fix is to include the SVG icon within the buttonContent property:
When the
buttonContent
property is set in the configuration for theImageTool
of EditorJS, the SVG icon disappears, leaving only the text message visible.Examples:
Example 1:
Example 2:
Temporary Solution:
A temporary fix is to include the SVG icon within the buttonContent property:
The text was updated successfully, but these errors were encountered: