Making SVG elements readonly

Handware

New Member
I am implementing a customized version of SVG-edit for a project that needs to be able to edit very basic SVG files. The requirement is for the text in these SVG files to be editable, but not the images.So, a common example of one of these files would have a text element at the top, and an image element below that. Is there any attribute I can add to the image element, and consequently any config I can make on the javascript editor itself, to prevent the user from making changes to the image element?(Obviously I'm able to achieve this without the use of SVG-edit. Ie. simply having a TextBox for the user's input, and replacing the text element on the SVG with its value, but that's ugly.)Any help greatly appreciated..
 
Back
Top