Save collapse state in cookies

Description

Suggestion:

If cookies are available (test for cookies) then upon
collapse/uncollapse of the editor toolbar save the state
in cookie. This way upon refresh the state will be
preloaded. If editor uses dynamic content, then loading
different content will retain collapse state.