We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

CM Template Editor [extension]

Development and Programming

Gabriel's avatar
Gabriel
130 posts
17 years ago
Gabriel's avatar Gabriel

CM Template Editor extension

This extension converts textarea in Template area into source code editor using EditArea script.

Installation:

  1. Download latest version EditArea script from their site (cdolivet.net);
  2. Upload EditArea script everywhere on your server;
  3. Upload the file named “ext.cm_template_editor.php” to the /system/extensions/ folder;
  4. Upload the file named “lang.cm_template_editor.php” to the /system/language/english/ folder;
  5. Go to admin and enable CM Template Editor extension;
  6. Check extension Settings and configure script (set full URL to edit_area_full_with_plugins.js and script settings - see docs);
  7. Go to Templates area in your admin and enjoy comfortable of EditArea script.

Download caleydon.com/en/project/cm-template-editor/

History

Version 2.2.0 - 05/09/2008 - Fixed: Correcting the purpose of the extension.</p>

Version 2.1.0 - 31/08/2008 - Added: Czech language file (Translated by Pavel Kotrla).

Version 2.0.0 - 14/06/2008 - Changing extension name (Template Editor –> CM Template Editor); - Little source code improvements.

Version 1.0.0 - 11/06/2007 - Initial release.

       
elwed's avatar
elwed
151 posts
17 years ago
elwed's avatar elwed

Neat.

       
JT Thompson's avatar
JT Thompson
745 posts
17 years ago
JT Thompson's avatar JT Thompson

Saw another post regarding this extension by another user, But I replied to his thread on accident. NOt this one. This is the isntructions I followed (in the O/P’s post). Here is my response:


Well, after using this since I found it here, I’m back to using the no plug in method.

This edit area plugin bogs the whole browser down, and eventually slows the process down so much I have to stop typing to let the plugin keep up. It slows down so badly that i end up with many mistakes because it was busy and did not catch my keystrokes.

I had my business partner test it and it was much worse for him. I’ve got a very powerful machine with 4GB of RAM and even then it just bogged ie and FF down.

Shame too, I like the look of this.

       
kingdoz's avatar
kingdoz
45 posts
17 years ago
kingdoz's avatar kingdoz

typical, i find this as soon as i finish playing with all the templates 😉

will be using this from here on out!

       
Gabriel's avatar
Gabriel
130 posts
16 years ago
Gabriel's avatar Gabriel

I’ve made little update of the script. Check details in the top of this thread.

       
Michael Hay's avatar
Michael Hay
65 posts
16 years ago
Michael Hay's avatar Michael Hay

Hi

I am having a problem with this plugin where when I update a template the cursor re-appears at random positions. Also when I initially load up the code it starts at the bottom of the script. Is there something I can do to remedy this?

Michael

       
wecreateyou's avatar
wecreateyou
86 posts
16 years ago
wecreateyou's avatar wecreateyou

This is incredible will try it on a dev site. I was dreaming of this. Can’t wait. A big thanks for this one!

       
Michael Hay's avatar
Michael Hay
65 posts
16 years ago
Michael Hay's avatar Michael Hay

Can anyone help with the question I posted above?

       
Gabriel's avatar
Gabriel
130 posts
16 years ago
Gabriel's avatar Gabriel

It depends on settings. Better to ask author of the EditArea script.

       
Meirion's avatar
Meirion
127 posts
16 years ago
Meirion's avatar Meirion

Sweet, this looks like it could be great. Thanks!

I used to swear by templates saved as files and edited in Eclipse/Aptana. Since doing more remote dev’ on EE I’ve had to go back editing in the CP using the Firefox ‘it’s all text’ extension - which is a bodge solution really.

       
Meirion's avatar
Meirion
127 posts
16 years ago
Meirion's avatar Meirion

Gabriel this extension is really useful. Have you thought about extending it to make use of EditArea’s ability to open multiple files in tabs and then to save files using ajax and the save-callback?

That could make for a superb replacement of ee’s native template editing screen.

Also the syntax highlighting could be set automatically depending on the template type (ie CSS/HTML)

And might it even be possible to colourise the ee {} tags?

Anyhow, thanks for releasing this.

       
Erdal Demirtas's avatar
Erdal Demirtas
84 posts
16 years ago
Erdal Demirtas's avatar Erdal Demirtas
Can anyone help with the question I posted above?

Hi Michael,

did you solve this?

I have the same problem: the cursor starts at the bottom

Thanks to Gabriel for releasing this very usefull extension.

       
stinhambo's avatar
stinhambo
1,268 posts
16 years ago
stinhambo's avatar stinhambo

I get no extension settings. Just a blank area (not a blank page).

Let me know when it starts working but a great idea! I wondered about colour coded ee code in the browser.

       
Micah Goulart's avatar
Micah Goulart
8 posts
16 years ago
Micah Goulart's avatar Micah Goulart

Use this for the settings. The default settings don’t include fullscreen.

id : "template_data", 
syntax : "html", 
start_highlight : true, 
language : "en", 
allow_resize : "n", 
toolbar:  "fullscreen,syntax_selection,|,select_font,|,undo,redo,|,go_to_line,search,highlight,change_smooth_selection,reset_highlight,|,help", syntax_selection_allow : "html,css,js,xml,php",
replace_tab_by_spaces : 4,
font_size: 9,
font_family : "Monaco,monospace",
fullscreen : false
       
Sean C. Smith's avatar
Sean C. Smith
3,818 posts
16 years ago
Sean C. Smith's avatar Sean C. Smith

I really like this add on and am wondering if it will be updated to be compatible with EE2.0 when that is released.

       
1 2

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.