appy.gen: added params String.allowImageUpload and String.styles for tuning the in-line editor corresponding to a String instance with format=XHTML; managed borders images uploaded in such a field; bugfix for https://bugs.launchpad.net/appy/+bug/913171 (appy.shared.dav).
This commit is contained in:
		
							parent
							
								
									2bd3fe1eeb
								
							
						
					
					
						commit
						30a51b7c1d
					
				
					 8 changed files with 47 additions and 32 deletions
				
			
		|  | @ -1,4 +1,4 @@ | |||
| body { font: 70% Lucida,Helvetica,Arial,sans-serif; background-color: #EAEAEA; } | ||||
| body { font: 75% Lucida,Helvetica,Arial,sans-serif; background-color: #EAEAEA; } | ||||
| pre { font: 100% Lucida,Helvetica,Arial,sans-serif; margin: 0} | ||||
| h1 { font-size: 11pt; margin:0;} | ||||
| h2 { font-size: 10pt; margin:0; font-style: italic; font-weight: normal;} | ||||
|  | @ -32,7 +32,8 @@ ul { line-height: 1.2em; margin: 0 0 0.2em 0.6em;  padding: 0; | |||
|      list-style: none outside none;} | ||||
| li { margin: 0; background-image: url("ui/li.gif"); padding-left: 10px; | ||||
|      background-repeat: no-repeat; background-position: 0 4px;} | ||||
| img {border: 0;} | ||||
| img {border: 0} | ||||
| .xhtml img { margin-right: 5px } | ||||
| 
 | ||||
| .main { width: 900px; background-color: white; box-shadow: 3px 3px 3px #A9A9A9; | ||||
|         border-style: solid; border-width: 1px; border-color: grey; } | ||||
|  |  | |||
|  | @ -23,4 +23,9 @@ CKEDITOR.editorConfig = function( config ) | |||
|                                 'SpecialChar', 'PageBreak', 'Link', 'Unlink', | ||||
|                                 '-', 'Maximize']}, | ||||
|   ]; | ||||
|   config.format_p =  { element:'p',  attributes:{'style':'margin:0;padding:0'}}; | ||||
|   config.format_h1 = { element:'h1', attributes:{'style':'margin:0;padding:0'}}; | ||||
|   config.format_h2 = { element:'h2', attributes:{'style':'margin:0;padding:0'}}; | ||||
|   config.format_h3 = { element:'h3', attributes:{'style':'margin:0;padding:0'}}; | ||||
|   config.format_h4 = { element:'h4', attributes:{'style':'margin:0;padding:0'}}; | ||||
| }; | ||||
|  |  | |||
|  | @ -3,23 +3,12 @@ Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. | |||
| For licensing, see LICENSE.html or http://ckeditor.com/license | ||||
| */ | ||||
| 
 | ||||
| body | ||||
| { | ||||
| 	/* Font */ | ||||
| 	font-family: Arial, Verdana, sans-serif; | ||||
| 	font-size: 12px; | ||||
| body { font: 75% Lucida,Helvetica,Arial,sans-serif; background-color: white; } | ||||
| 
 | ||||
| 	/* Text color */ | ||||
| 	color: #222; | ||||
| 
 | ||||
| 	/* Remove the background color to make it transparent */ | ||||
| 	background-color: #fff; | ||||
| } | ||||
| 
 | ||||
| ol,ul,dl | ||||
| { | ||||
| 	/* IE7: reset rtl list margin. (#7334) */ | ||||
| 	*margin-right:0px; | ||||
| 	/* preserved spaces for list items with text direction other than the list. (#6249,#8049)*/ | ||||
|     padding:0 40px; | ||||
| ol,ul,dl { | ||||
|   /* IE7: reset rtl list margin. (#7334) */ | ||||
|   *margin-right:0px; | ||||
|   /* preserved spaces for list items with text direction other than the list. (#6249,#8049)*/ | ||||
|   padding:0 40px; | ||||
| } | ||||
| img { margin-right: 5px} | ||||
|  |  | |||
|  | @ -10,11 +10,13 @@ | |||
|       <span tal:condition="python: fmt == 3">********</span> | ||||
|     </tal:singleValue> | ||||
|   </span> | ||||
|   <tal:formattedString condition="python: fmt not in (0, 3)"> | ||||
|     <span tal:condition="python: value and (fmt == 1)" | ||||
|           tal:replace="structure python: contextObj.formatText(value, format='html')"/> | ||||
|     <span tal:condition="python: value and (fmt == 2)" tal:replace="structure value"/> | ||||
|   </tal:formattedString> | ||||
|   <tal:comment replace="nothing">Text</tal:comment> | ||||
|   <span tal:condition="python: value and (fmt == 1)" | ||||
|         tal:replace="structure python: contextObj.formatText(value, format='html')"/> | ||||
|   <tal:comment replace="nothing">XHTML text</tal:comment> | ||||
|   <div tal:condition="python: value and (fmt == 2)" class="xhtml"> | ||||
|     <span tal:replace="structure value"/> | ||||
|   </div> | ||||
|   <input type="hidden" tal:condition="masterCss" | ||||
|          tal:attributes="class masterCss; value rawValue; name name; id name"/> | ||||
| </metal:view> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Gaetan Delannay
						Gaetan Delannay