Assign tinymce to text formats Just to start with I am trying to do this in code (installation profile), not in Drupal itself.
In my installation profile I create three text formats. Thanks to the drush make file tinymce is also automaticly installed. Now wysiwyg gives you the option to assign the editor to a text format. See image below how the option looks in Drupal.


Now I am wondering how I could change the 'No editor' to 'TinyMCE' in my installtion profile. After changing the option in drupal itself then the database changes to: (see image below)


What is the right way to do this and how can I change these module settings?
Looking through the WYSIWYG modules' code when saving the form, it implements:

db_merge('wysiwyg')
  -&gt;key(array('format' =&gt; 'full_html'))
  -&gt;fields(array(
    'editor' =&gt; 'tinymce',
  ))
  -&gt;execute();


So that's what I suspect you'll need to put into your install profile