Is there a way to enable the script editor (used for XSLT, templates, etc.) for content? I don't care much for tiny and it would be nice to bypass hitting "HTML" button each time I want to edit content. Textarea works ok but I like the lines and color coding.
There is no built-in way to use the script editor (CodeMirror) as a datatype, however you could probably make a custom datatype that makes use of it if you are familiar with C#.
You could use the usercontrol method to create the datatype and insert the CodeArea control from umbraco.uicontrols to achieve this. A good place to start on using the CodeArea control might be to check the source for the uTube Post-Installer User Control, which uses the CodeArea control to show code that needs to be pasted into a template.
Script editor for content editing
Is there a way to enable the script editor (used for XSLT, templates, etc.) for content? I don't care much for tiny and it would be nice to bypass hitting "HTML" button each time I want to edit content. Textarea works ok but I like the lines and color coding.
Hi Robert,
There is no built-in way to use the script editor (CodeMirror) as a datatype, however you could probably make a custom datatype that makes use of it if you are familiar with C#.
You could use the usercontrol method to create the datatype and insert the CodeArea control from umbraco.uicontrols to achieve this. A good place to start on using the CodeArea control might be to check the source for the uTube Post-Installer User Control, which uses the CodeArea control to show code that needs to be pasted into a template.
Hope this helps,
Tom
is working on a reply...