diff --git a/src/components/SourceView.vue b/src/components/SourceView.vue
new file mode 100644
index 00000000000..b702fdb6606
--- /dev/null
+++ b/src/components/SourceView.vue
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+ {{ t('text', 'Edit') }}
+
+
+
+
+
+
+
+
+
diff --git a/src/components/ViewerComponent.vue b/src/components/ViewerComponent.vue
index d7a9837d185..feb3efa3745 100644
--- a/src/components/ViewerComponent.vue
+++ b/src/components/ViewerComponent.vue
@@ -14,46 +14,27 @@
:class="{ 'text-editor--embedding': isEmbedded }"
:mime="mime"
:show-outline-outside="showOutlineOutside" />
-
-
-
- {{ t('text', 'Edit') }}
-
-
-
-
-
+ :fileid="fileid"
+ :filename="filename"
+ :mime="mime"
+ :source="source"
+ v-bind="$attrs"
+ @loaded="onLoaded">
+ @edit="toggleEdit">
+