Skip to content

Instantly share code, notes, and snippets.

@eakorolev
Created January 10, 2013 11:59
Show Gist options
  • Save eakorolev/4501531 to your computer and use it in GitHub Desktop.
Save eakorolev/4501531 to your computer and use it in GitHub Desktop.
Untitled
.hr
{
background: yellow;
}
.params
{
font-weight: bolder;
background: #aa0;
}
textarea
{
display: inline;
}
p:active
{
background: grey;
}
<div class="myedit" contenteditable="true">
Text <span contenteditable="false" class="hr">{=i18n:...(<span contenteditable="true" class="params">params</span>)=}</span> text
</div>
// alert('Hello world!');
jQuery(".myedit").keydown(function() { console.log(arguments, this); });
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"javascript"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment