Ver código fonte

code editor warnings

mjz 10 anos atrás
pai
commit
644ea3151a

+ 1 - 1
src/allplatforms/classes/HTMLEditor.js

@@ -35,7 +35,7 @@ SC.loadPackage({ 'HTMLEditor': {
 
                 var warningText = document.createElement('div');
                     warningText.classList.add('sg-editing-superuser-warning');
-                    warningText.innerHTML = '<b>Caution:</b> Your are now editing the source code!';
+                    warningText.innerHTML = startConfig.warning ? startConfig.warning : '<b>Code Editor</b>';
                 self.get('content').appendChild(warningText);
 
 

+ 2 - 0
src/allplatforms/classes/MenuItemEditCSS.js

@@ -57,6 +57,8 @@ SC.loadPackage({ 'MenuItemEditCSS': {
                     SuperGlue.get('windowManager').do('createWindow', {
 
                         class:      'HTMLEditor',
+
+                        warning:    '<b>CSS Style Definitions</b> (Be careful, mistakes can break your page)',
                         
                         html:       rawCSS,
                         

+ 2 - 0
src/allplatforms/classes/WidgetEditHTML.js

@@ -34,6 +34,8 @@ SC.loadPackage({ 'WidgetEditHTML': {
                             SuperGlue.get('windowManager').do('createWindow', {
 
                                 class:      'HTMLEditor',
+
+                                warning:    '<b>Caution:</b> You are now editing HTML source code!',
                                 
                                 html:       rawHtml,