integration/js/edition.js
changeset 124 271d3c41f007
parent 121 b7ab06d7ec3e
child 125 eb327c2595db
--- a/integration/js/edition.js	Tue Jun 11 17:30:00 2013 +0200
+++ b/integration/js/edition.js	Tue Jun 11 18:06:06 2013 +0200
@@ -1121,18 +1121,17 @@
                         ["Header 6","<h6>"]],
         docType:      '<!DOCTYPE HTML>',
         bodyStyle:    "margin:0; font-family: 'Helvetica Neue',​Helvetica,​Arial,​sans-serif;",
-        updateTextArea : function(text){
-            disabledPreview();
-            currentAnnotation.content.text = text;
-            return text;
-        },
-        updateFrame: function(text){
-            disabledPreview();
-            currentAnnotation.content.text = text;
-            return text;
-        }
+        updateTextArea : updateWysiwigText,
+        updateFrame: updateWysiwigText
     };
 
+    function updateWysiwigText(text){
+        disabledPreview();
+        currentAnnotation.content.markup = 'html';
+        currentAnnotation.content.text = text;
+        return text;
+    }
+
     //slider
     function configSlider(data){
         return {