Open markfink opened 11 years ago
Could you reproduce the issue? Do you need any more information from me for triage? I would appreciate if you could tell me if you are going to fix this eventually.
I think the way to go about it is probably to wrap it into a block: http://aloha-editor.org/guides/plugin_block.html
this sounds about right. I will check this and close the issue in case it works. Thank you very much
I added the block - Plugin but it did not change much. I still get the Javascript error.
What I meant was to build a custom block implementation that contains the SVG. For example, the table plugin wraps tables in a block, which gives tables the draghandle.
This sounds like a massive task to work around a defect (the table plugin has over 3000 lines). I like Aloha-Editor so please do not get this the wrong way. Maybe one day I come back but for now I switched to redactor it is able to handle inline SVG images.
It might not be too bad. I had built a custom block implementation around my FIGURE tags using DIV as the root tag. However, I am having trouble building a custom block using SPAN as the root tag. I hope Aloha can help here. https://github.com/alohaeditor/Aloha-Editor/issues/945
Thanks.
Any updates on this?
I am trying to use embedded SVG images within HTML5 code (last time I checked SVG tags are valid HTML5).
In google chrome I get the following error: Uncaught TypeError: Object # has no method 'indexOf'
(aloha-bare.min.js:23911). The whole thing does not work in Firefox so maybe there is something wrong, too.
It would be great if Aloha-Editor could handle the SVG tags in a useful way so one could select it and use Cut&Paste etc.
Here is the HTML file I used to discover the problem: