We have moved to a new Sailfish OS Forum. Please start new discussions there.
0

Can the browser do local saves with contenteditable-attributed elements?

asked 2015-01-09 00:41:56 +0300

rdmo gravatar image

updated 2015-04-27 17:39:57 +0300

In contenteditable HTML files, I cannot save edits in the browser. Please allow saving in the browser so I can use my browser as a text editor.

  • A mark-up example:

    <html><body><pre contentEditable="true">any content</pre></body>

  • Tests (may fail due to server parse or its use of XHTML, at the moment I'm disinclined to try to find out.)

This <pre> text [sh|w]ould be editable, but on the Jolla phone it will not write to disk (no 'Save As...').

This <p> text is likewise, with its attribute 'contenteditable' set to "true".

Ref: http://html5demos.com/contenteditable

Tangentally/directly related: https://together.jolla.com/questions/scope:all/sort:activity-desc/page:1/query:save/

edit retag flag offensive close delete

1 Answer

Sort by » oldest newest most voted
1

answered 2015-12-29 11:28:01 +0300

sor911 gravatar image

Here is a video to show you how to save contenteditable from the browser with XHTML you can use a button to fire the function instead of onblur event,

<button onclick="myFunction">Save</button>

https://youtu.be/VdN9oBWOUJ4

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2015-01-09 00:41:56 +0300

Seen: 367 times

Last updated: Dec 29 '15