Hi,
On 18 Apr 2013 16:23, "Till K." <ti...@php.net> wrote:
> Currently — when someone leaves the page where ACE/redactor is open
> and goes to the opposite. The editor is still open but the content is not
> refreshed. I think it's using the same instance underneath.
If they're completely different pages, then this is probably because of localStorage and sessionStorage used by Create.
You can pass an arbitrary 'storagePrefix' configuration option when instantiating Create. All sessionStorage keys will be prefixed with that.
https://github.com/bergie/create/blob/master/src/jquery.Midgard.midgardCreate.js#L59
This will solve the edit/browse state issue. However, unfortunately midgardStorage doesn't yet obey that prefix for its localStorage usage.
Should be easy to fix, however. I'll look at that.
> Till
/Henri
Hi,
On 18 Apr 2013 16:23, "Till K." <ti...@php.net> wrote:
> Currently — when someone leaves the page where ACE/redactor is open
> and goes to the opposite. The editor is still open but the content is not
> refreshed. I think it's using the same instance underneath.If they're completely different pages, then this is probably because of localStorage and sessionStorage used by Create.
You can pass an arbitrary 'storagePrefix' configuration option when instantiating Create. All sessionStorage keys will be prefixed with that.
https://github.com/bergie/create/blob/master/src/jquery.Midgard.midgardCreate.js#L59
This will solve the edit/browse state issue. However, unfortunately midgardStorage doesn't yet obey that prefix for its localStorage usage.
Should be easy to fix, however. I'll look at that.
Hi,
On 18 Apr 2013 17:18, "Till K." <ti...@php.net> wrote:
>> This will solve the edit/browse state issue. However, unfortunately midgardStorage doesn't yet obey that prefix for its localStorage usage.
>>
>> Should be easy to fix, however. I'll look at that.
>
> And, thanks! :)
Try with this commit:
https://github.com/bergie/create/commit/4a4586b9945a5f6f39cd7cdc5834dd952d6d699e
> I'm also running into an issue where the save button becomes inactive and
> is not triggered to be active (clickable) by changes in the box. Any idea
> what I could look into there?
Sounds like some editing widget doesn't communicate changes correctly. Try with latest git version, and then report an issue (mentioning the editors you use) if needed.
> Till
/Henri