You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This has always been an issue I've just never reported this. By default EE tries to use the ID of the element as it's default file ID. for example, if you have <div id="poop"> in localStorage the file would be called poop if no name is given. We need to:
If no name is given...
If the element has an ID, use it
If the element has no ID generate an ID auto-epiceditor-N where N = editor number on the page
If a name is given, use it as is
for 1b, when we load up the files we can go through all the files with auto-epiceditor- and add the content based on the DOM placement.
Not urgent, but also something to think about, how do we handle multiple editors with the same file open?
The text was updated successfully, but these errors were encountered:
I found out when doing <div id="bar" class="foo"></div> and then doing EpicEditor({ container: document.getElementsByClassName('foo')[0] }) the resulting storage name is:
This has always been an issue I've just never reported this. By default EE tries to use the ID of the element as it's default file ID. for example, if you have
<div id="poop">
in localStorage the file would be calledpoop
if no name is given. We need to:auto-epiceditor-N
where N = editor number on the pagefor 1b, when we load up the files we can go through all the files with
auto-epiceditor-
and add the content based on the DOM placement.Not urgent, but also something to think about, how do we handle multiple editors with the same file open?
The text was updated successfully, but these errors were encountered: