Problem/Motivation
When creating a new node entry with a lot of tokens, opening the edit/create form page containing the token replacement list will greatly slow down or even crash the browser.
Proposed resolution
The token module lately introduced the possibility to show tokens in a dialog which loads the tokens on demand using ajax: #1684984-17: Support opening token browser in a jQuery UI dialog on demand
The change is backward compatible.
Loading the tokens in the dialog is still slow and still could crash the browser but at least it's on demand.
Remaining task
Review patch
This might not be the best solution, but met our needs.
User interface changes
The tree list of tokens is replaced by a link to open a dialog with the token tree list.
API changes
none
Comment | File | Size | Author |
---|---|---|---|
token-tree-dialog.patch | 806 bytes | rovo | |
Token-list-via-link.png | 5.17 KB | rovo | |
Token-list-without-dialog.png | 35.72 KB | rovo |
Comments
Comment #1
rovoI recently upgraded to the most recent Ember Dev release, and had forgotten about this issue. The Token Selection box was appearing on edit screen of the content creation page. For some editors, this would cause the browser to timeout and display a script error.
Comment #2
rovo