minor tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-12-25 19:59:40 +03:00
parent 4e156e4fdd
commit e39bab97e0

View File

@ -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
},
__view_attrs__: function(editor, elem, attrs, system){
__parse_attrs__: function(){
// XXX
},
}
}