Hot answers tagged

9

I don't know if you're using the Monokai colour scheme, but if you are you'll need to hack it to make the EE tags go purple - just add the word 'constant' on line 96 of ~/Application Supprt/Sublime Text 2/Packages/Color Scheme - Default/Monokai.tmTheme like this: The end result should look like this: Edit to add that I'm now using the Spacegray Eighties ...


3

If it's static content within a template and you don't want to give the client access to the template then you have a couple of options; Use a global variable or snippet, the client can edit this without touching the full template... though you won't have WYSIWYG editing. Create a channel entry and replace the content in the template with the tags for to ...


3

You could use Low Variables to manage the template content; that would abstract the maintenance to an interface and leave the template out of the process entirely. Your question is not very clear though; how is the content getting into the template? Presumably you have channels; can your client not edit the channel entries to update the site? Or do you ...


3

I'm not sure how agressive you want to get with stripping inline styles or if there are certain instances where you'd need to allow them, but you could use some simple jQuery to strip them out. Something like has worked for me in the past: $('.wygwam p').removeAttr('style'); You could obviously modify this depending on the element(s) your client ...


2

If you jump into your WYGWAM configurations, there are a few settings you can add to aid this errant behavior. Modules > Wygwam > Edit Configuration ForceAsPlainText EnterMode PasteFromWordRemoveStyles And a few more dependent on your needs. I also am in the habit of wrapping any wygwam content inside a <div class="wygwam"> so I can target via CSS ...


2

Okay, shame on me. The solution is so simple: DevDemon Support pointed out, that all the Text Formating options are in the «pilcrow sign» Button:


2

It looks like they have some half-finished docs on adding buttons programatically ... you should really contact their support to clarify this.


2

Checkout Publisher or Publisher Lite by Brian Litzinger. I have been using Publisher since the beta release without problems.


2

This was an odd one! It turns out it was a suhosin.get.max_value_length setting. Any value over 128 characters, the variable was dropped from $_GET. And our combo loader specifies the files to pull in to create the js file via $_GET: plugin=ee_codemirror&amp;file=codemirror/codemirror,codemirror/closebrackets,codemirror/lint,codemirror/overlay,etc, ...


1

You can try to install MX Universal Editor, but I can't guarantee anything about this. http://wiseupstudio.com/expressionengine/mx-universal-editor.html


1

The problem was that the URL to the themes folder was not https: http://www.example.com/themes/ vs. https://www.example.com/themes/ This caused the resources to load in mixed mode causing the issue.


1

Mate, you've got your work curt out! I just spend a half hour of my time trawling through the compressed JS to find a solution, it's not coming easy! The problem is the formatting seems to be applied via JS when your editing the field, this is courtisy of a plugin called Wysihat, but not just that, Wysihat has been modified to work with jQuery, then ...


1

Contact our DevDemon support. I believe this has been fixed with a bugfix.


1

All you need to do is "disable" the Editor Extension. That is the only thing the extension does!


1

I was having the same issue. I copied a new version of the "themes" folder from a fresh 2.9.2 install into my webroot. Then I put my third-party themes back in and all works great now. I think it's a set of styles or JS in the themes folder that you're missing. Good luck! Greg


1

Did you remember to update your themes? There is new JavaScript in 2.9.0 that handles the improved template editor. If you open your console on that page, I'm going to guess you have a number of JS errors (which also explains why your fields at the bottom are toggled open).


1

When working on larger projects, i usually write templates to files. That way you can more easily edit in a "real" editor (like sublime etc.) and store a copy in an archive or even version control with git or mercurial. After everything works, you only have to sync all templates via the template manager once (and optionally disable templates as files to ...


1

This utility is not available outside the location where you are seeing it.


1

Well, I am biased but I use my own Channel Data library for just about everything. I just re-wrote it entirely with full CRUD support, and will save you loads of time. Not familiar with Bjorn's solution, so I can't comment either way. I would advise against this. When you upgrade EE, you will have to constantly backup specific files and ensure they aren't ...


1

This is how I do it in ProForm and other add-ons... Basically, you first put the needed files into the themes/third_party directory under a new directory name that matches the name of your addon's main third_party folder. For instance, if your module is at this location: system/expressionengine/third_party/module_name/mcp.module_name.php You would place ...


1

For me, this happened and was a cache problem -- I cleared the cache; it started working again. I know you said you tried that, but give it another go.


1

I've used Edit Alarm in the past with pretty good results. I didn't use it with Zoo Admin, so I'm not sure if this is the same add-on you're referring to, but it's free and will likely do what you need with very little footprint. If you want more advanced features, I would also go with Justin's recommendation of Publisher. http://devot-ee.com/add-ons/edit-...


1

Well ok. It was as simple as to change the < textarea NAME -> ID. and it shows up. Thank you!


1

For the time being I have created the following plugin to workaround this issue. I am still interested in a proper solution (if there is one) though: public function excl_empty_html() { $this->EE = &get_instance(); // If content is empty then waste no further time $content = trim($this->EE->TMPL->fetch_param('content')); if (...


Only top voted, non community-wiki answers of a minimum length are eligible