Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Sometimes organizing and writing my thoughts brings me very positive results.</p> <p>I have found satisfactory solution.</p> <p>1)insert hidden div as a first child node into your editing div:</p> <pre><code>&lt;div id="editor" contenteditable="true"&gt; &lt;div class="edit_text_mozilla_hack"&gt;&lt;/div&gt; SomeText &lt;/div&gt; </code></pre> <p>2) The CSS for it:</p> <pre><code>.edit_text_mozilla_hack { display: block; width: 0; height: 0; -moz-user-edit: none; -moz-user-select: none } </code></pre> <p>3)Now you can edit. I tested it with this my small test (actually I need all this stuff to edit short pieces of text like like captions, news subjects etc)</p> <p>4)Before you use the content -- obious -- remoe that div. 5)When you want to return to editing -- insert it again.</p> <p>Some bits of code from working (finally! ))) project:</p> <pre><code>//adds hidden div to all editable regions 'editables' //the parameter is for speeding the thins up -- I'm often working with all or a lot of editable regions function editAddMozillaHack(editables) { if (!editables) { editables = editGetEditables(); } $("." + adminOptions["admin_loader"]).remove(); editables.each(function() { $(this).prepend('&lt;div class="edit_text_mozilla_hack"&gt;&lt;/div&gt;') }); } //removes the hack from all regions function editRemoveMozillaHack() { $(".edit_text_mozilla_hack").remove(); } //just returns all the editable regions -- my project often requires them all function editGetEditables() { return $("[contenteditable=\"true\"]"); } </code></pre> <p>of course -- testing pending. I would like to hear from you ;) regards.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload