Posts

Showing posts from 2018

Getting iframe tag to work in TinyMCE

If iframe tag does not work in TinyMCE (ie when iframe tag is inserted into the HTML editor, the code is simply removed), it must be enabled by modifying the tinyMCE.init function in the application and adding the extended_valid_elements option: tinyMCE.init({   ...   extended_valid_elements : "iframe[src| allowfullscreen |frameborder|style|scrolling|class|width|height|name|align]" }); This will make the iframe tag immediately available in the editor. To check if the new settings have been added, tinyMCE.settings.extended_valid_elements can be typed into the Firefox or Chrome console.

Increase the redo log size using innodb_log_file_size

Got this error while trying to import a large .sql file in MySQL Workbench: ERROR 1118 (42000) at line 171970: The size of BLOB/TEXT data inserted in one transaction is greater than 10% of redo log size. Increase the redo log size using innodb_log_file_size. Solution to the above error in XAMPP is as follows: In xampp\mysql\bin\my.ini file, set innodb_log_file_size = 128M (the default value was around 20M) Save the file and restart MySQL server.