Hot answers tagged

5

I now have definitive answers. Basically neither works with autosave. EllisLab have noted that their Grid fieldtype doesn't work either. EllisLab https://support.ellislab.com/bugs/detail/19838 P&T Have responded with: Unfortunately, Wygwam currently doesn't have support for EE's auto-save functionality, but I've added to our list to look into for ...


3

It really all depends on what field you're ultimately going to import into. If you're importing into an XML-formatted textarea or a Rich Text Editor field, then you'll need to totally remove both the <p> and <br> tags, because EE adds those tags dynamically when inserting the content into the template, and, as you said, replace them with carriage ...


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 ...


2

Until we get a better autosave fix from ellislab I went ahead and make a really simple extension that integrates the autosave plugin for CKeditor into wygwam. The extension uses the ckeditor autosave plugin, which saves the content of the wygwam fields into local storage as you type, and prompts you to import any missing content on pageload. Hopefully this ...


2

I've tested in in v2.7.1 - Build Date: 20130924 I added a new entry gave it a title and waited. It then said 'autosaved' by the submit button. I then hit submit and clicked "Edit This Entry" added some text then waited. Entry then said 'autosaved' by the submit button (I didn't time it but would suggest it was also about 10 seconds). I then added some ...


2

I'm not aware of any solutions on how to limit to only show current users images, however with Assets, you can just use the file input field instead of the full Assets field: <input type="file" name="assets_field_name"> If you want further control on where the file is uploaded, then just add a hidden field for the upload directory: <input type="...


1

well...a table is not really rich text. That's more something for a wysiwyg editor.


1

You need to change the directory dropdown from "All" to the directory you're trying to upload to. Once you select it you should get the option to upload at the bottom.


1

Try just: <div class="form-element-wrapper" id="mission-container"> <label for="mission">Mission</label> {field:mission} </div> {field:mission} will render the textarea for you.


1

So, here's how this was fixed: {exp:channel:form channel="your_channel"} <div class="form-element-wrapper" id="custom-field-container"> <label for="custom_field">Custom Field Label</label> {field:custom_field} </div> etc etc {/exp:channel:form} :-)


1

One option you could try is to convert the HTML to Markdown format and import that into a MarkItUp or Markdown formatted text field. Brett Terpstra's online Markdownifier tool (http://heckyesmarkdown.com) can be scripted and Brett has a Ruby script (https://gist.github.com/ttscoff/2960951) that you can use to call it. I've successfully used this before by ...


1

Found Answer: Check out the rte.image.php file, line 32. 'cp_only' => 'n' It was originally set to 'y'. Now to get it functioning! Hopefully this helps others.


1

Okay, it turns out it’s a bug that manifests when using the RTE in Safari. Switching to Chrome gets rid of the problem (though I'm not 100% sanguine about telling clients that they need to avoid a specific browser if they want to be able to use soft returns).


1

After much consternation I tried commenting out the Strip paragraph tags section of the save_field() function from above again, but tested it more thoroughly and it works. It keeps the tags on submission/repopulation through channel:form. This might cause bugs down the line, but it'll do for now. /system/expressionengine/modules/rte/libraries/Rte_lib.php ...


1

I have actually now fixed the DevDemon Channel Images issue, and so we are going to use that, we could not find an alternative way of doing this easily. In fact, it was not an issue with Channel Images as I thought, but an issue with EE/RTE and JQuery... We were using our own JQuery version, one of the latest ones. If I removed this, and EE inserted its ...


1

Sounds like a perfect user case for krea elements: http://devot-ee.com/add-ons/content-elements You could have a 'script' field as a separate entity and arrange it before/after any other fields required.


1

You need to put classes into "library" files (as opposed to "code" files) and always do require_once or include_once on them. Once you separate code from libraries, the next logical step is to switch to using autoloader mechanism of PHP. If not possible, then put wrapper around the classes you are loading: if (class_exists('headings_rte') != true) { ...


1

The formatting buttons aren't part of Matrix. They are part of the ExpressionEngine native RTE. Please see the docs for how to adjust settings for the RTE field here.


1

You have to add the package path for the RTE module first: ee()->load->add_package_path(PATH_MOD.'rte/');


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