video editor update
This commit is contained in:
parent
ba9423462f
commit
88f31a5ae3
10 changed files with 245 additions and 65 deletions
|
|
@ -87,7 +87,7 @@ Ox.Editable = function(options, self) {
|
|||
//height = self.options.height || Ox.limit(self.$test.height() + 2, self.minHeight, self.maxHeight);
|
||||
height = self.options.height || Math.max(self.$test.height() + 2, self.minHeight);
|
||||
width = self.options.width || Ox.limit(self.$test.width() + 2, self.minWidth, self.maxWidth);
|
||||
Ox.Log('Form', self.options.width, self.$test.width(), 'wxh', width, height)
|
||||
Ox.Log('Form', self.options.width, self.$test.html(), self.$test.width(), self.$test.height(), 'wxh', width, height)
|
||||
if (self.options.type == 'input') {
|
||||
self.$input.options({
|
||||
width: width
|
||||
|
|
@ -184,8 +184,14 @@ Ox.Editable = function(options, self) {
|
|||
function formatTestValue() {
|
||||
return self.options.type == 'input'
|
||||
? self.options.value.replace(/ /g, ' ')
|
||||
: Ox.encodeHTML(self.options.value || ' ')
|
||||
//.replace(/ /g, ' ')
|
||||
.replace(/\n$/, '\n ')
|
||||
.replace(/\n/g, '<br/>')
|
||||
/*
|
||||
: Ox.parseHTML(self.options.value || ' ')
|
||||
.replace(/<br\/?>$/, '<br/> ');
|
||||
.replace(/(\n|<br\/?>)$/, '<br/> ');
|
||||
*/
|
||||
}
|
||||
|
||||
function formatValue() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue