Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Robert 13 posts 34 karma points
    Jun 21, 2011 @ 00:11
    Robert
    0

    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.

  • Tom Fulton 2030 posts 4996 karma points c-trib
    Jun 21, 2011 @ 00:22
    Tom Fulton
    1

    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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies