Changeset 622
- Timestamp:
- 05/24/09 13:11:47 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wymeditor/jquery.wymeditor.mozilla.js
r606 r622 168 168 //'this' is the doc 169 169 var wym = WYMeditor.INSTANCES[this.title]; 170 170 var container = null; 171 171 172 if(evt.ctrlKey){ 172 173 if(evt.keyCode == 66){ … … 181 182 } 182 183 } 184 185 else if(evt.keyCode == 13) { 186 if(!evt.shiftKey){ 187 //fix PRE bug #73 188 container = wym.selected(); 189 if(container && container.tagName.toLowerCase() == WYMeditor.PRE) { 190 evt.preventDefault(); 191 wym.insert('<p></p>'); 192 } 193 } 194 } 183 195 }; 184 196 … … 197 209 //cleanup <br><br> between paragraphs 198 210 jQuery(wym._doc.body).children(WYMeditor.BR).remove(); 199 200 //fix PRE bug #73201 container = wym.selected();202 if(container && container.tagName.toLowerCase() == WYMeditor.PRE)203 wym._exec(WYMeditor.FORMAT_BLOCK, WYMeditor.P); //create P after PRE204 211 } 205 212
Note: See TracChangeset
for help on using the changeset viewer.