add integration modifs
authorcavaliet
Tue, 11 Jun 2013 18:15:43 +0200
changeset 126 5e714dc743a4
parent 125 eb327c2595db
child 127 a5374f604b60
add integration modifs
src/metadatacomposer/static/metadatacomposer/js/edition.js
--- a/src/metadatacomposer/static/metadatacomposer/js/edition.js	Tue Jun 11 18:07:09 2013 +0200
+++ b/src/metadatacomposer/static/metadatacomposer/js/edition.js	Tue Jun 11 18:15:43 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 {