mirror of
				https://github.com/flynx/PortableMag.git
				synced 2025-10-31 20:10:13 +00:00 
			
		
		
		
	removed hard dependency on ckeditor...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									2153de8487
								
							
						
					
					
						commit
						22ca44a279
					
				
							
								
								
									
										25
									
								
								editor.html
									
									
									
									
									
								
							
							
						
						
									
										25
									
								
								editor.html
									
									
									
									
									
								
							| @ -109,6 +109,15 @@ $(document).ready(function(){ | ||||
| 			//fingers: $.fn.swipe.fingers.THREE | ||||
| 		}) | ||||
| 
 | ||||
| 	// XXX this will need to be repeated to newly created elements... | ||||
| 	$('[contenteditable=true]') | ||||
| 		.on('focus', function(){ | ||||
| 			toggleEditorMode('on') | ||||
| 		}) | ||||
| 		.on('blur', function(){ | ||||
| 			toggleEditorMode('off') | ||||
| 		}) | ||||
| 
 | ||||
| 
 | ||||
| 	// load state and setup everything that depends on it... | ||||
| 	loadState() | ||||
| @ -140,22 +149,6 @@ $(document).ready(function(){ | ||||
| 	 | ||||
| }) | ||||
| 
 | ||||
| // setup ckeditor events... | ||||
| // XXX need to $('[contenteditable]').attr('contenteditable', 'false') on | ||||
| //		thumbnail view mode and true on page view mode... | ||||
| CKEDITOR.on('instanceCreated', function(evt){ | ||||
| 	var editor = evt.editor | ||||
| 	editor.on('focus', function(){ | ||||
| 		toggleEditorMode('on') | ||||
| 	}) | ||||
| 	editor.on('blur', function(){ | ||||
| 		toggleEditorMode('off') | ||||
| 	}) | ||||
| }) | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| </script> | ||||
| </head> | ||||
| <body> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user