mirror of
https://github.com/flynx/pWiki.git
synced 2025-10-29 01:50:07 +00:00
minor tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
4e156e4fdd
commit
e39bab97e0
@ -247,27 +247,27 @@ var attributes = {
|
||||
sysattrs,
|
||||
] },
|
||||
|
||||
// generate code...
|
||||
__parse_code__: function(code, editor, elem){
|
||||
var [elem, attrs, system] = this.parseBlockAttrs(editor, code, elem)
|
||||
// XXX use filter handler here...
|
||||
return editor.__code_attrs__ ?
|
||||
elem.text +'\n'+ attrs
|
||||
: elem.text },
|
||||
return !editor.__code_attrs__ ?
|
||||
elem.text
|
||||
: editor.__code_attrs__ == 'all' ?
|
||||
elem.text +'\n'+ attrs +'\n'+ system
|
||||
: elem.text +'\n'+ attrs },
|
||||
// generate view...
|
||||
__pre_parse__: function(text, editor, elem){
|
||||
var [elem, attrs, system] = this.parseBlockAttrs(editor, text, elem)
|
||||
// XXX use filter handler here...
|
||||
return editor.__view_attrs__ ?
|
||||
elem.text +'\n'+ attrs
|
||||
: elem.text },
|
||||
return !editor.__view_attrs__ ?
|
||||
elem.text
|
||||
: elem.text +'\n'+ attrs
|
||||
},
|
||||
|
||||
// XXX revise naming...
|
||||
// XXX revise attr order...
|
||||
__code_attrs__: function(editor, elem, attrs, system){
|
||||
// XXX
|
||||
__parse_attrs__: function(){
|
||||
// XXX
|
||||
},
|
||||
__view_attrs__: function(editor, elem, attrs, system){
|
||||
// XXX
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user