Last modified: 2014-11-18 13:52:51 UTC
When disabling an Editor's .target.surface (by calling .disable()), the text is no longer editable, which is great. However, the text in the disabled Editor cannot be copied and pasted. It does not appear to make it to the clipboard. Desired behavior is that the text can be be copied even when the editor is disabled. Or perhaps there could be a setting/option around that. We traced this to ve.dm.Surface.prototype.changeInternal, where it returns immediately if the surface is disabled. if ( !this.enabled ) { return; } I found this here: https://doc.wikimedia.org/VisualEditor/master/source/ve.dm.Surface.html#ve-dm-Surface-method-changeInternal I'm using OSX Mavericks and Google Chrome Version 36.0.1985.125. Thanks! - Ryan Wold ryan.wold@neo.com
*** Bug 69516 has been marked as a duplicate of this bug. ***
The surface model also tracks selections so disabling the surface model would also disable any meaningful copy/paste functionality. dm.Surface#disable is not really intended for putting the surface into a useful read-only mode. What exactly are you trying to achieve?