Note that there are some explanatory texts on larger screens.

plurals
  1. POsimple html textarea/contenteditable text editor component supporting links, undo, tab-in/outdent for google chrome
    primarykey
    data
    text
    <p>im writing a chrome extension and need a simple text editor component so that users can edit <strong>simple notes</strong> in the extension. </p> <p>required:</p> <ul> <li><strong>clickable links</strong>, but without any sort of modal dialog. its sufficient if any "http://.." substrings can be turned into actual clickable links of any sort (ie. divs styled like links and with onclick handler are fine)</li> <li><strong>undo/redo</strong> functionality</li> <li><strong>tab indent/outdent</strong> of a single line or multiple selected lines simultaneously</li> <li><strong>seamless switch</strong> between editing/displaying, ie. no save buttons or reflowing or the like (<a href="http://valums.com/files/2009/editableText/demo/demo.htm" rel="nofollow">counterexample</a>)</li> <li><strong>dont need</strong> any kind of <strong>formatting</strong> capabilities apart from indenting, just plain text (<a href="http://www.freshcode.co.za/plugins/jquery.contenteditable/demo.html" rel="nofollow">counterexample</a>)</li> <li>html/js that works on <strong>chrome</strong></li> </ul> <p>i have looked at/tried:</p> <ul> <li>&lt;textarea/&gt;: undo included and tab indent easy to implement, but no way to do links</li> <li>&lt;div contenteditable="true"&gt;: undo broken, tab indent=hell (selections and ranges), but links work fine. also have set <em>white-space: nowrap;</em> to show indent spaces. this is my current solution but its very buggy, maybe ill have to open another question just for this.</li> <li><a href="http://tinymce.moxiecode.com/" rel="nofollow">tinymce</a>: overkill i guess</li> <li><a href="http://markitup.jaysalvat.com/home/" rel="nofollow">markitup</a>: looks good, but since it is a textarea, i figure no links possible</li> <li><a href="http://ace.ajax.org/" rel="nofollow">ACE</a>: looks promising, worth a shot? not overkill?</li> <li><a href="https://github.com/benjamn/kix-standalone" rel="nofollow">kix-standalone</a> demo doesnt work on chrome (ironically)</li> </ul> <p>any comments or answers very appreciated..</p> <p>edit: i have used codemirror 1 in my project (Syncpad for Simplenote Chrome extension) and i am quite content with it. CodeMirror provided alot of additional infrastructure for text editing (esp live parsing) which i wouldnt want to miss anymore. Will be updating to codemirror 2 when i have the time</p>
    singulars
    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.
 

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