mirror of
				https://github.com/flynx/pWiki.git
				synced 2025-10-31 02:50:08 +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, | 			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
 |  | ||||||
| 	}, |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user