fix the code editor save and refresh actions

This commit is contained in:
Quincy Larson
2015-08-19 18:30:01 -07:00
parent ba8d0e6022
commit 27cac3067a

View File

@ -252,11 +252,11 @@ var allSeeds = '';
editorValue = (codeStorage.isAlive())? codeStorage.getEditorValue() : allSeeds;
editor.setValue(editorValue.replace(/\<script\>/gi, 'fccss').replace(/\<\/script\>/gi, 'fcces');
editor.setValue(editorValue.replace((/fccss/gi), '<script>').replace((/fcces/gi), '</script>'));
editor.refresh();
var resetEditor = function resetEditor() {
editor.setValue(allSeeds);
editor.setValue(allSeeds.replace((/fccss/gi), '<script>').replace((/fcces/gi), '</script>'));
updatePreview();
codeStorage.updateStorage();
};