Feature #3996
closed/inlineimage add new parameter -r
0%
Description
Hello,
I wanna request an new parameter of /inlineimage command that will hide the already inlined image for preview, because now there is not any way to hide certain inlineimages from preview and if someone pastes an porn image or something that i want to hide it then i cannot, it would be nice to have this feature on because we can work on right click to create custom hiding/parsing codes.
Examples:
/inlineimage -c <window> <file|url>
I will provide some useful scripting methods that this is gonna be useful, under Menus Editor on Links you can enter that code:
NOTE: The only 'problem' here is to make -c to work only for the specific right click selected inline image and on others above that used the same file/url to be parsed.
Parse Inline Image: { var %p = /.*\.(?:jpe?g|gif|png|tiff|ico)$/ if ($regex($$1,%p)) { inlineimage -a $$1 } } Hide Inline Image: { var %p = /.*\.(?:jpe?g|gif|png|tiff|ico)$/ if ($regex($$1,%p)) { inlineimage -ca $$1 } }
- Thanks!
Updated by westor (GR) over 6 years ago
Just to give you an image of how-to work:
Updated by Per Amundsen over 6 years ago
- Subject changed from /inlineimage -c to /inlineimage add new parameter -r
- Status changed from New to Resolved