Change in image.js of quill (node modules) doesn't reflect any change
See original GitHub issueI want to add an another attribute data-id to .
I did following thing
- Make a change in image.js of quill (node modules)
class Image extends Parchment.Embed {
static create(value) {
let node = super.create(value);
if (typeof value === 'string') {
console.log(value);
node.setAttribute('src', this.sanitize(value.src));
node.setAttribute('data-id', this.sanitize(value.id));
}
return node;
}
- In my component
let obj={
src:url,id:data.data.data.id
};
console.log(obj);
this.editorInstance.insertEmbed(this.editorRangeIndex, 'image',obj,"user");
this.editorInstance.setSelection(this.editorRangeIndex + 1);
Nothing will happen. (Even after deleting image.js file from quill) Rewriting using Image Bolt is a solution . But I want to know what is wrong in this step.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
React : Change in node_modules file does not reflect the ...
I want to do changes in node_modules folder. Now when I run npm run watch or npm run dev it doesn't get reflected...
Read more >Image Resize · Issue #104 · quilljs/quill - GitHub
I cant seem to import/register it in my quill, how to import this module? Does it need recompiling/packing? I copied your js files...
Read more >quill-image-edit-module - npm
A module for Quill rich text editor that allows editing of images. ... are no other projects in the npm registry using quill-image-edit-module....
Read more >Build a WYSIWYG text editor using Quill - LogRocket Blog
Today, we'll build a WYSIWYG text editor in React using Quill. ... After, change your working directory to the newly created project folder ......
Read more >field 'browser' doesn't contain a valid alias configuration angular
In my library I have a common input, it all works fine in the project component, but when trying to import the mock...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Why would you change the quill lib? By your self?
You should not do that…
And in General The umd bundle of quilljs is used… So Changes in image.js would lead to nothing.
satish666 notifications@github.com schrieb am So., 4. Okt. 2020, 20:16:
You can Close the issue again since ist hast nothing To-Do with ngx-quill.
Just ask at quilljs repo how to add custom Attributes 😉.
satish666 notifications@github.com schrieb am So., 4. Okt. 2020, 20:44: