Kademi / keditor

KEditor is a jQuery plugin which provides a content editor with drag n drop, configurable contents
http://kademi.github.io/keditor/
MIT License
319 stars 153 forks source link

can we disable links for a particular component ? #215

Closed srikanthmovva closed 4 years ago

srikanthmovva commented 5 years ago

i added a lightbox(gallery) component. so i can click and view the images in bigger size. but i want to disable the href/links(or any javascript im running when i click the image) inside the keditor. i want the links to be active only in the uneditable webpage.

is this possible?

ducdhm commented 4 years ago

@srikanthmovva Yes you can. In "init" method of your component, just handle a click event.