Conversation Lightbox doesn't work #1557

Mnkras opened this Issue Nov 23, 2014 · 3 comments


None yet
3 participants

Mnkras commented Nov 23, 2014

When I insert a link and click lightbox, (Image or Ajax) it doesn't seem to do anything.


ChrisHougard commented Nov 24, 2014

The problem is the htmLawed config does not allow for data-concrete5-link-type and data-concrete5-link-launch. I tried to write a spec string for it (a=data-concrete5-link-type(oneof=image|ajax), data-concrete5-link-launch(oneof=lightbox-image)) but htmLawed is only using the data-concrete part of the name because the regex used to parse (^([a-z:\-\*]+)(?:\((.*?)\))?, line 386) does not allow for numbers. Changing that to include numbers made it read in the full property name, but I still can't get it to use the spec because the number is making it fail somewhere else in the code. This should be fixed in htmLawed 1.2.

Thinking the best way to fix this for now is going to be with a hook.


ChrisHougard commented Nov 24, 2014

Hook isn't going to work because I run into another spot not allowing numbers in the attribute name. I fixed this by doing a string replace to get rid of the 5. Ugly but I'm not sure how else to fix it until the updated version of htmLawed is released.


aembler commented Nov 24, 2014

Going to remove redactor as a conversation editor.

@aembler aembler closed this Nov 24, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment