--- 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 {