Issue #1954Opened April 9, 2019by sdrebel0 reactions

[QUESTIONS] Creating image map on canvas

Question

Hi, Is there anyway to create image map like functionality on canvas. User should be able to select particular area for linking. Example the way it's done in this below link. https://www.jqueryscript.net/demo/Easy-Imagemap-Generator-With-jQuery-hotArea-js/

I have tried creating link like below but this doesn't give flexibility to move around all the places.

Code SnippetTEXT
var bm = editor.BlockManager;
  bm.add('link-block3', {
        category: 'Basic',
        label: 'Link Block3',
        attributes: { class: 'fa fa-link' },
        content: {
            type: 'link',
           droppable: true,
            draggable: true,
            resizable: true,
            attributes: { class: 'fa fa-link' },
            style: {
                display: 'inline-block',
                padding: '5px',
                'min-height': '50px',
                'min-width': '50px'
            }
        },
    });

canvas:dragover will trigger only when blocks are dragged inside the canvas. Is there any solutions or events which I can trigger to select the canvas?

Answers (2)

artfApril 11, 20190 reactions

With a custom component you should be able to create whatever you want

lock[bot]April 15, 20200 reactions

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.