forked from 0x2620/oxjs
strip tags in Ox.Editable
This commit is contained in:
parent
4dd5107a48
commit
19d5f811d6
5 changed files with 21 additions and 6 deletions
|
|
@ -16,7 +16,8 @@ Ox.formatArea = function(num, dec) {
|
|||
/*@
|
||||
Ox.formatColor <f> (strange one)
|
||||
@*/
|
||||
Ox.formatColor = function(val, type) {
|
||||
// FIXME: implement invert
|
||||
Ox.formatColor = function(val, type, invert) {
|
||||
var background, color, element;
|
||||
if (type == 'hue') {
|
||||
background = Ox.rgb(val, 1, 0.25).map(function(val) {
|
||||
|
|
@ -45,10 +46,11 @@ Ox.formatColor = function(val, type) {
|
|||
}
|
||||
element = Ox.element('<div>')
|
||||
.css({
|
||||
borderRadius: '4px',
|
||||
padding: '0 3px 1px 3px',
|
||||
borderRadius: '8px',
|
||||
padding: '0 4px 1px 4px',
|
||||
color: 'rgb(' + color.join(', ') + ')',
|
||||
overflow: 'hidden',
|
||||
textAlign: 'right',
|
||||
textOverflow: 'ellipsis',
|
||||
//textShadow: 'black 1px 1px 1px'
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue