https://bugzilla.wikimedia.org/show_bug.cgi?id=69516

            Bug ID: 69516
           Summary: Cannot copy text when dm.surface.enabled === false
           Product: VisualEditor
           Version: unspecified
          Hardware: Macintosh
                OS: Mac OS X 10.9
            Status: UNCONFIRMED
          Severity: normal
          Priority: Unprioritized
         Component: Data Model
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]
       Web browser: ---
   Mobile Platform: ---

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
  [email protected]

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to