update video editor (editables)

This commit is contained in:
rlx 2012-01-16 16:52:34 +05:30
commit 408ebf54cb
7 changed files with 55 additions and 51 deletions

View file

@ -1,14 +1,16 @@
Ox.load('UI', function() {
var items = [
{editable: true, value: 'The <b><i><u>firefox.</u></i></b> jumps over the lazy fox.'},
{editable: true, value: 'The lazy fox jumps over the <a href="http://mozilla.org">firefox</a>.'}
{editable: true, value: 'The firefox jumps over the lazy fox.'},
{editable: true, value: 'The <b><i><u>lazy fox</u></i></b><br>\njumps over the<br><br><a href="http://mozilla.org">firefox</a>.'}
],
$box = Ox.Element()
.css({width: '256px', height: '512px', padding: '8px', background: 'rgb(224, 224, 224)'})
.appendTo(Ox.$body),
$arrayEditableInput = Ox.ArrayEditable({
items: items
items: items.map(function(item) {
return {editable: item.editable, value: Ox.encodeHTML(item.value)};
})
})
.css({background: 'rgb(240, 240, 240)', boxShadow: '0 0 1px black'})
.appendTo($box),