Meek Consulting Websites
Monthly Archives: June 2014
TinyMCE — stripping junk when pasting from word
This will strip all annoying extra nonsense when copy/pasting from Word: tinyMCE.init({ selector: “textarea”, menubar: false, plugins: “paste”, paste_as_text : true, paste_data_images: false, paste_word_valid_elements: “”, paste_webkit_styles: “”, paste_retain_style_properties : “”, toolbar: “insertfile | bold italic | bullist numlist”, height : … Continue reading
Posted in Uncategorized
Leave a comment
Handling Errors in MYSQL Procedures with Rollback
f you have mysql stored procedure that changes database tables — you probably want to enclose the whole procedure in a single transaction and add error handling to roll back the work if anything fails. Here is how to do … Continue reading
Posted in Uncategorized
Leave a comment