~carla-sella/reminders-app/new-reminders-app-tests

« back to all changes in this revision

Viewing changes to src/app/qml/ui/NotePage.qml

  • Committer: Tarmac
  • Author(s): Michael Zanetti
  • Date: 2013-11-26 13:20:39 UTC
  • mfrom: (7.1.6 reminders-app-html2evml)
  • Revision ID: tarmac-20131126132039-3zmyobkekgqi3ckm
"properly" convert html back to enml. Loses images and tables but works quite well for all the rest.

Approved by David Planella, Ubuntu Phone Apps Jenkins Bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
            width: parent.width
14
14
            text: "save"
15
15
            onClicked: {
16
 
                print("timer triggered")
17
 
                var content = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE en-note SYSTEM \"http://xml.evernote.com/pub/enml2.dtd\"><en-note><div><br clear=\"none\"/>"
18
 
                content = content + noteTextArea.getText(0, noteTextArea.length)
19
 
                content = content + "<br clear=\"none\"/></div><div><br clear=\"none\"/></div></en-note>"
20
 
                note.content = content
 
16
                note.content = noteTextArea.text
21
17
                note.save();
22
18
            }
23
19
        }