Comments (8)
Hey @proimage, couple updates:
- I found and fixed a bug where the scroll positions weren’t being maintained properly on reload, when more than two tabs were open to the same entry’s edit page.
- Craft 4.10 and 5.2 will allow plugins to partially1 disable auto page reloading, and Redactor2 will take advantage of that when in fullscreen mode, once Craft 4.10 and 5.2 are out.
You can update to Craft 4.10 / 5.2 and the Redactor change right now by setting the following constraints in composer.json, and then running composer update
:
// Craft 4.10
"craftcms/cms": "4.10.x-dev as 4.10.0-alpha",
"craftcms/redactor": "3.x-dev as 3.1.0-alpha",
// Craft 5.2
"craftcms/cms": "5.2.x-dev as 5.2.0-alpha",
"craftcms/redactor": "4.x-dev as 4.1.0-alpha",
1 Other tabs will still reload when a provisional draft is first created in the active tab, or when a draft is deleted/applied, because it’s crucial that all tabs are working with the correct revision at those points.
2 I’m assuming that’s what you’re using, but the same logic could easily be applied to other rich text editors (besides CKEditor, which doesn’t have first party fullscreen mode).
from cms.
Craft 4.10.0 and 5.2.0 are out, as well as Redactor 3.1.0 and 4.1.0.
from cms.
This is working as intended. The other tab will get refreshed because something about its content may have just changed, e.g. any non-translatable fields, or things like the entry’s post date.
from cms.
Ok, that makes sense... so what about autosaveDrafts
being deprecated? Is that replaced with something else, or is there just no way to prevent autosaving drafts going forward?
from cms.
autosaveDrafts
was added in Craft 3 as a temporary solution to make content editing more tolerable on installs where saving an entry took several seconds each time.
That hasn’t been the case nearly as much in Craft 4+, and we’re continuing to find ways to improve performance with each major release, and the plan is to remove it once long save times are fully resolved.
So it’s a performance hack; not meant to be an alternate workflow you might want to opt into.
from cms.
I've updated the site in question to Craft 4.x, and the auto-refreshing is more disruptive than expected. The content is long-form, so smallish WYSIWYG fields don't really cut it, which is why the content editor has the WYSIWYG fields in their full-screen modes. There are multiple language windows open in parallel, each with their WYSIWYG in full-screen mode. Whenever changes are registered in any of the open windows, they all refresh, which exits them out of full-screen and reloads their pages, losing the place in the long-form content being edited.
For now, what they're doing is pasting the English reference content into a temporary entry, and only editing one translation at a time. Obviously, this greatly slows down the editing process.
So this is a multi-tasking, content-editing related issue, made difficult by the Autosave Drafts feature.
Do you have any suggestions?
from cms.
Thanks, @brandonkelly, that looks like those changes should address the core issue. :) As I understand it, Redactor scroll positions will be kept more consistent due to a bugfix, and in full-screen mode (which I presume cannot be automatically re-triggered when an auto-save + page refresh happens), there's a way for Redactor to pause autosaving.
My main question is CKEditor. With Redactor being deprecated, I had planned on transitioning over to CKE either under Craft 4.x or 5.x, but if CKE has no full-screen mode... is there a plugin that provides that functionality?
from cms.
There are a couple third party plugins that add it, like this one, but I have no idea how reliably they are.
There’s an open feature request for it to be added as a first party plugin here.
from cms.
Related Issues (20)
- [3.x]: add ownerId Filter to the query with 'not ID'. .ownderId("not 1") for example HOT 3
- [5.x]: Color Selection Improvement for disabled/enabled elements HOT 3
- [5.x]: Email fields aren't showing HOT 3
- craft root files are publicly visible and accessible [4.x]: HOT 4
- [5.x]: UX issue with Password Reset dialog. No way to close dialog box. HOT 2
- [4.x]: cookieValidationKey must be configured with a secret key. HOT 5
- [5.x]: Element chips and cards show other users' provisional drafts HOT 1
- [5.x]: Slideout shortcuts broken when the slideout is opened via disclosure menu HOT 3
- [4.9.7]: Calling unknown method: craft\web\Response::getIsDraft() HOT 2
- [5.x]: a11y issue with status indicators HOT 3
- [5.x]: Level indentation broken for entries with status label in structured sections HOT 1
- [5.x]: Replace File assets - UI doesn't provide enough feedback to authors HOT 2
- Serialization failure HOT 5
- [5.x]: Float numbers in GraphQL weird behaviour HOT 1
- [5.x]: When using editableTableField, with autosuggest and suggestEnvVars, the dropdown only appears on first table row
- [5.x]: Aliasing of fields in field layout doesn't work HOT 5
- [5.x]: SVGs are considered "Images" HOT 5
- [5.x]: 0 added to all empty fields HOT 4
- [5.x]: Upgrade from Craft 4 deletes all text fields HOT 4
- [5.x]: Error on the edit page for created assets by asset index utility from files with spaces in filename HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cms.