-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preview state is not being retained on unload & load #161
Comments
That'd be a bug. That's something that I just overlooked. I set it to go to edit mode on load, but it should actually check if a state exists, and if a state exists use that otherwise default to edit. I'll get this into the 0.1.2 release also. |
… you load again its where you left it. Also added a guard for calling load when its already loaded to save on memory and changed all _eeState checks internally to use is() instead
@sebnitu Can you pull and try now? The change was pretty simple, but I did some cleanup. All tests pass still tho. If you're interested: |
Awesome, works like a charm :D |
Nice! Keep the bug reports coming :) |
* upstream/develop: Ticket OscarGodson#96 - Make hash links scroll the iframe, not open a new browser window Ticket OscarGodson#6 - Shitty patch for Safari fullscreen. Using faux fullscreen until Safari gets fixed Prevent loading the editor when it's already loaded Typo in comment Ticket OscarGodson#161 - Remember the edit or preview state on unloading so when you load again its where you left it. Also added a guard for calling load when its already loaded to save on memory and changed all _eeState checks internally to use is() instead Ticket OscarGodson#88 - Added public is() method to check the state of EE. Added docs and tests and changed eeState to _eeState Conflicts: epiceditor/js/epiceditor.js epiceditor/js/epiceditor.min.js src/editor.js
Sorry, I know I'm making a lot of these :P
Just noticed that when the Editor is loaded it doesn't keep it's previous state (preview mode) and just defaults to edit mode. Is this intended?
The text was updated successfully, but these errors were encountered: