diff --git a/features/ns_text/css/ns_text.css b/features/ns_text/css/ns_text.css
new file mode 100644
index 0000000..bb0e933
--- /dev/null
+++ b/features/ns_text/css/ns_text.css
@@ -0,0 +1,11 @@
+/* CKEditor justify styles */
+.align-left { text-align: left; }
+.align-center { text-align: center; }
+.align-right { text-align: right; }
+.align-justify { text-align: justify; }
+
+/* CKEditor indent styles */
+.indent-1 { margin-left:3em; }
+.indent-2 { margin-left:6em; }
+.indent-3 { margin-left:9em; }
+.indent-4 { margin-left:12em; }
\ No newline at end of file
diff --git a/features/ns_text/ns_text.module b/features/ns_text/ns_text.module
index 571221f..2f8b46d 100644
--- a/features/ns_text/ns_text.module
+++ b/features/ns_text/ns_text.module
@@ -4,3 +4,45 @@
  */
 
 include_once('ns_text.features.inc');
+
+/**
+ * Implements hook_wysiwyg_editor_settings_alter()
+ */
+function ns_text_wysiwyg_editor_settings_alter(&$settings, &$context) {
+  // CKeditor can use classes instead of inline css when using the justify
+  // plugin and the indent plugin.
+  if ($context['editor']['name'] == 'ckeditor') {
+    // Use justify classes instead of inline css.
+    $settings['justifyClasses'] = array(
+      'align-left',
+      'align-center',
+      'align-right',
+      'align-justify',
+    );
+
+    // Use indent classes instead of inline css.
+    $settings['indentClasses'] = array(
+      'indent-1',
+      'indent-2',
+      'indent-3',
+      'indent-4',
+    );
+
+    // As we want to insert classes instead of inline css, we most have the
+    // classes defined in a css file.
+
+    // This is the default ckeditor css file.
+    $settings['contentsCss'][] = base_path() . wysiwyg_get_path('ckeditor') . '/contents.css';
+    // Add basic default styles. To override this, just override them in your
+    // own theme css file.
+    $settings['contentsCss'][] = base_path() . drupal_get_path('module', 'ns_text') . '/css/ns_text.css';
+
+  }
+}
+
+/**
+ * Implements hook_page_alter().
+ */
+function ns_text_page_alter(&$page) {
+  drupal_add_css(drupal_get_path('module', 'ns_text') . '/css/ns_text.css', array('group' => CSS_SYSTEM));
+}
\ No newline at end of file
