How to use _create_prototype_node for change the A-Tag to a Span/Div-Tag #2523
Replies: 2 comments
-
Same here, I have a lot of divs which I put inside Many thanks! @vakata Thanks for cool library! |
Beta Was this translation helpful? Give feedback.
-
@gkieninger Found solution We have object here: Starts with this:
One of the property looks like this:
So we should redefine this function to get changed element (I found this function by looking where Step 1. Step 2.
To this line:
Step 3.
Instead of As you can see I changed one line to
So now I have I also commented this line: That's all @vakata Maybe it's a good idea to add example like this to docs. I think it will be very useful for someone how's doing a lot of customization. |
Beta Was this translation helpful? Give feedback.
-
Hi!
I would like to change the A-Tag to a Span or Div-Tag because it doesn't make very much sense with a right click to see a 'Open Link in new Tab' and I would like to have a A-Tag on my own in the text.
Can somebody help me to change the A-Tag to Span or Div? Just a small example would help me.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions