| Index: trunk/extensions/VisualEditor/modules/es/models/es.DocumentModel.js |
| — | — | @@ -40,32 +40,26 @@ |
| 41 | 41 | * parents and children properties may contain one of two possible values: |
| 42 | 42 | * {Array} List symbolic names of allowed element types (if empty, none will be allowed) |
| 43 | 43 | * {Null} Any element type is allowed (as long as the other element also allows it) |
| 44 | | - * droppable: |
| 45 | | - * {Boolean} Whether the node can be dropped from it's parent (false for table cells) |
| 46 | 44 | * |
| 47 | 45 | * @example Paragraph rules |
| 48 | 46 | * { |
| 49 | 47 | * 'parents': null, |
| 50 | | - * 'children': [], |
| 51 | | - * 'droppable': true |
| | 48 | + * 'children': [] |
| 52 | 49 | * } |
| 53 | 50 | * @example List rules |
| 54 | 51 | * { |
| 55 | 52 | * 'parents': null, |
| 56 | | - * 'children': ['listItem'], |
| 57 | | - * 'droppable': true |
| | 53 | + * 'children': ['listItem'] |
| 58 | 54 | * } |
| 59 | 55 | * @example ListItem rules |
| 60 | 56 | * { |
| 61 | 57 | * 'parents': ['list'], |
| 62 | | - * 'children': null, |
| 63 | | - * 'droppable': true |
| | 58 | + * 'children': null |
| 64 | 59 | * } |
| 65 | 60 | * @example TableCell rules |
| 66 | 61 | * { |
| 67 | 62 | * 'parents': ['tableRow'], |
| 68 | | - * 'children': null, |
| 69 | | - * 'droppable': false |
| | 63 | + * 'children': null |
| 70 | 64 | * } |
| 71 | 65 | */ |
| 72 | 66 | es.DocumentModel.nodeRules = {}; |
| — | — | @@ -848,7 +842,7 @@ |
| 849 | 843 | // Handle selected nodes |
| 850 | 844 | if ( !selectedNode.range ) { |
| 851 | 845 | // Drop whole nodes |
| 852 | | - if ( rules[selectedNode.node.getElementType()].droppable ) { |
| | 846 | + if ( /*rules[selectedNode.node.getElementType()].droppable*/ true ) { |
| 853 | 847 | tx.pushRemove( doc.data.slice( left, right ) ); |
| 854 | 848 | } else { |
| 855 | 849 | tx.pushRetain( 1 ); |
| Index: trunk/extensions/VisualEditor/modules/es/models/es.HeadingModel.js |
| — | — | @@ -30,8 +30,7 @@ |
| 31 | 31 | |
| 32 | 32 | es.DocumentModel.nodeRules.heading = { |
| 33 | 33 | 'parents': null, |
| 34 | | - 'children': [], |
| 35 | | - 'droppable': true |
| | 34 | + 'children': [] |
| 36 | 35 | }; |
| 37 | 36 | |
| 38 | 37 | /* Inheritance */ |
| Index: trunk/extensions/VisualEditor/modules/es/models/es.TableRowModel.js |
| — | — | @@ -30,8 +30,7 @@ |
| 31 | 31 | |
| 32 | 32 | es.DocumentModel.nodeRules.tableRow = { |
| 33 | 33 | 'parents': ['table'], |
| 34 | | - 'children': ['tableCell'], |
| 35 | | - 'droppable': true |
| | 34 | + 'children': ['tableCell'] |
| 36 | 35 | }; |
| 37 | 36 | |
| 38 | 37 | /* Inheritance */ |
| Index: trunk/extensions/VisualEditor/modules/es/models/es.ParagraphModel.js |
| — | — | @@ -30,8 +30,7 @@ |
| 31 | 31 | |
| 32 | 32 | es.DocumentModel.nodeRules.paragraph = { |
| 33 | 33 | 'parents': null, |
| 34 | | - 'children': [], |
| 35 | | - 'droppable': true |
| | 34 | + 'children': [] |
| 36 | 35 | }; |
| 37 | 36 | |
| 38 | 37 | /* Inheritance */ |
| Index: trunk/extensions/VisualEditor/modules/es/models/es.PreModel.js |
| — | — | @@ -30,8 +30,7 @@ |
| 31 | 31 | |
| 32 | 32 | es.DocumentModel.nodeRules.pre = { |
| 33 | 33 | 'parents': null, |
| 34 | | - 'children': [], |
| 35 | | - 'droppable': true |
| | 34 | + 'children': [] |
| 36 | 35 | }; |
| 37 | 36 | |
| 38 | 37 | /* Inheritance */ |
| Index: trunk/extensions/VisualEditor/modules/es/models/es.TableCellModel.js |
| — | — | @@ -30,8 +30,7 @@ |
| 31 | 31 | |
| 32 | 32 | es.DocumentModel.nodeRules.tableCell = { |
| 33 | 33 | 'parents': ['tableRow'], |
| 34 | | - 'children': null, |
| 35 | | - 'droppable': false |
| | 34 | + 'children': null |
| 36 | 35 | }; |
| 37 | 36 | |
| 38 | 37 | /* Inheritance */ |
| Index: trunk/extensions/VisualEditor/modules/es/models/es.TableModel.js |
| — | — | @@ -30,8 +30,7 @@ |
| 31 | 31 | |
| 32 | 32 | es.DocumentModel.nodeRules.table = { |
| 33 | 33 | 'parents': null, |
| 34 | | - 'children': ['tableRow'], |
| 35 | | - 'droppable': true |
| | 34 | + 'children': ['tableRow'] |
| 36 | 35 | }; |
| 37 | 36 | |
| 38 | 37 | /* Inheritance */ |
| Index: trunk/extensions/VisualEditor/modules/es/models/es.ListItemModel.js |
| — | — | @@ -30,8 +30,7 @@ |
| 31 | 31 | |
| 32 | 32 | es.DocumentModel.nodeRules.listItem = { |
| 33 | 33 | 'parents': ['list'], |
| 34 | | - 'children': null, |
| 35 | | - 'droppable': true |
| | 34 | + 'children': null |
| 36 | 35 | }; |
| 37 | 36 | |
| 38 | 37 | /* Inheritance */ |
| Index: trunk/extensions/VisualEditor/modules/es/models/es.ListModel.js |
| — | — | @@ -30,8 +30,7 @@ |
| 31 | 31 | |
| 32 | 32 | es.DocumentModel.nodeRules.list = { |
| 33 | 33 | 'parents': null, |
| 34 | | - 'children': ['listItem'], |
| 35 | | - 'droppable': true |
| | 34 | + 'children': ['listItem'] |
| 36 | 35 | }; |
| 37 | 36 | |
| 38 | 37 | /* Inheritance */ |