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, sysattrs,
] }, ] },
// generate code...
__parse_code__: function(code, editor, elem){ __parse_code__: function(code, editor, elem){
var [elem, attrs, system] = this.parseBlockAttrs(editor, code, elem) var [elem, attrs, system] = this.parseBlockAttrs(editor, code, elem)
// XXX use filter handler here... return !editor.__code_attrs__ ?
return editor.__code_attrs__ ? elem.text
elem.text +'\n'+ attrs : editor.__code_attrs__ == 'all' ?
: elem.text }, elem.text +'\n'+ attrs +'\n'+ system
: elem.text +'\n'+ attrs },
// generate view...
__pre_parse__: function(text, editor, elem){ __pre_parse__: function(text, editor, elem){
var [elem, attrs, system] = this.parseBlockAttrs(editor, text, elem) var [elem, attrs, system] = this.parseBlockAttrs(editor, text, elem)
// XXX use filter handler here... // XXX use filter handler here...
return editor.__view_attrs__ ? return !editor.__view_attrs__ ?
elem.text +'\n'+ attrs elem.text
: elem.text }, : elem.text +'\n'+ attrs
},
// XXX revise naming... // XXX
// XXX revise attr order... __parse_attrs__: function(){
__code_attrs__: function(editor, elem, attrs, system){
// XXX // XXX
}, }
__view_attrs__: function(editor, elem, attrs, system){
// XXX
},
} }