#1175 Notes field in Add/Edit dialog should only accept plaintext

v1.0_(example)
open
nobody
None
1
2014-04-18
2014-04-14
Saurav Ghosh
No

At least on OS X, the Notes field accepts text with formatting information which sometimes prevents me from seeing what got pasted in the Notes. For example, if I paste something from a terminal window with white text on a blue background, the pasted text is white in colour in the Notes field (which has a white background). Another example would be text from webpages with a large'ish font, so sometimes its not possible to see the entire text that I just pasted into Notes.

But once the entry is saved, all such formatting information is removed and Notes are converted to plaintext. But I have to do this to ensure the correct text remains in the Notes and there are no extraneous whitepsaces.

Discussion

  • Rony Shapiro
    Rony Shapiro
    2014-04-18

    Sounds like a problem with the underlying wxWidget. Perhaps there's a property that can be set to control what's pasted?

     
    • Saurav Ghosh
      Saurav Ghosh
      2014-04-18

      I didn’t see any such property. In the end, wxWidgets just seems to call a paste method on the native control which does the actual pasting (with formatting information included).

      We somehow have to force the entire text in Notes to have the default style by hooking into paste notifications, selecting the entire text and applying the default style.

      Incidentally, this behaviour is (kind of) documented, in that multi-line text controls can have formatting information.