// if we want to surround text with quotes
// not sure if just check if value has length == 2
- if (insertVal.length) == 2) {
+ if (insertVal.length == 2) {
var startTag = insertVal[0];
var endTag = insertVal[1];
var textAreaOpened = editArea;
return _finalize(failure);
html2text({
- element: $('#html-view div').get(0),
+ element: $('#html-view').get(0),
+ stripOuter: true,
success: function(text){
self.doc.setText(text);
_finalize(success);