diff --git a/linkit.install b/linkit.install
index 97bfffc..2b27acf 100644
--- a/linkit.install
+++ b/linkit.install
@@ -81,6 +81,24 @@ function linkit_schema() {
 }
 
 /**
+ * Implements hook_install().
+ */
+function linkit_install() {
+  _linkit_update_module_weight();
+}
+
+/**
+ * Set the module weight to ensure it runs after pre_render hooks added by the
+ * WYSIWYG module.
+ */
+function _linkit_update_module_weight() {
+  db_update('system')
+    ->fields(array('weight' => 5))
+    ->condition('name', 'linkit')
+    ->execute();
+}
+
+/**
  * Migrate settings from v2 to v3 if needed.
  */
 function linkit_update_7300() {
@@ -259,3 +277,10 @@ function linkit_update_7303() {
     }
   }
 }
+
+/**
+ * Update the module weight.
+ */
+function linkit_update_7304() {
+  _linkit_update_module_weight();
+}
