forked from 0x2620/oxjs
update video editor (editables)
This commit is contained in:
parent
43cfc1f0b5
commit
408ebf54cb
7 changed files with 55 additions and 51 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue