**Description**= Image alignment causes VisualEditor to not load
**Intention** = Align an image for cosmetic purposes
**Steps** = First) Go to Edit Source
Then) Change image alignment e.g. [[File:test.jpg|center]], click save
Finally) Attempt to edit the page with VisualEditor
Recreate steps) Attempted to recreate on this page: https://www.mediawiki.org/wiki/VisualEditor:Test, VisualEditor does not crash.
Attempted to parse using the local parsoid server, works as designed.
**Results** = VisualEditor blue bar does not load
**Expectations** = VisualEditor is able to edit the page
**Site** = private wiki, can provide stripped down syntax of page
**Browser **= Google Chrome 47.0.2526.106 (Official Build) m (64-bit)
Revision 19b9e1a5713f4b9ae324bd59bbe16ca6eb91d0e0-refs/branch-heads/2526@{#532}
**OS** = Windows 7
**Skin** = Vector (issue happens on Monobook also)
**Notes** = Exception from Chrome console log:
Uncaught TypeError: Cannot read property 'constructor' of nulloo.cloneObject @ load.php?debug=false&lang=en&modules=Base64.js|easy-deflate.core%2Cdeflate|ext.visualEditor.base%2C…:1262ve.dm.IndexValueStore.index @ load.php?debug=false&lang=en&modules=Base64.js|easy-deflate.core%2Cdeflate|ext.visualEditor.base%2C…:248ve.dm.GeneratedContentNode.static.storeGeneratedContents @ load.php?debug=false&lang=en&modules=Base64.js|easy-deflate.core%2Cdeflate|ext.visualEditor.base%2C…:304ve.dm.MWBlockImageNode.static.toDataElement @ load.php?debug=false&lang=en&modules=Base64.js|easy-deflate.core%2Cdeflate|ext.visualEditor.base%2C…:1101ve.dm.Converter.createDataElements @ load.php?debug=false&lang=en&modules=Base64.js|easy-deflate.core%2Cdeflate|ext.visualEditor.base%2C…:255ve.dm.Converter.getDataFromDomSubtree @ load.php?debug=false&lang=en&modules=Base64.js|easy-deflate.core%2Cdeflate|ext.visualEditor.base%2C…:260ve.dm.Converter.getModelFromDom @ load.php?debug=false&lang=en&modules=Base64.js|easy-deflate.core%2Cdeflate|ext.visualEditor.base%2C…:255(anonymous function) @ load.php?debug=false&lang=en&modules=Base64.js|easy-deflate.core%2Cdeflate|ext.visualEditor.base%2C…:726
Mediawiki Version: 1.26.2
VisualEditor version:
VisualEditor: a73354552166dff822874a1d55c8a51f845383db
2016-03-04T03:17:38
a733545
Other notes) I removed all templates from the page so it didn't include any code that we could have contaminated, issue still happens.
**Workaround** = Don't use alignment on images