Hot answers tagged

18 votes
Accepted

How to get matrix editor into frontend?

Getting a Matrix field working on the front-end is going to require 2 things: Setting up the field inputs so the data submits correctly. Some custom JavaScript to make the blocks repeat and behave ...
user avatar
  • 13.2k
14 votes
Accepted

Live Preview Button missing

For the Live Preview button to show up, two criteria must be met: Your section’s “Entries in this section have their own URLs” setting must be checked Your section’s “Entry Template” setting must be ...
user avatar
13 votes
Accepted

How do I add custom styles/plugins to the rich text editor in Craft?

If by styles you mean the formatting drop-down, just add them in an array: { buttons: ['bold', 'italic'], formatting: ['p', 'blockquote', 'h2', 'h3', 'h4', 'SomeHtmlTag'] } . If you want to ...
user avatar
  • 8,316
9 votes

How do I add custom styles/plugins to the rich text editor in Craft?

It's worth noting that as of Craft 2.5, it's now using Redactor II, so the above code examples don't work if you have upgraded. Here's a working JSON config example you can build on: { "buttons": ...
user avatar
  • 403
8 votes

How do I add custom styles/plugins to the rich text editor in Craft?

Victor answers my questions regarding the formatting tags and the fact that you need to create a Craft plugin to add Redactor plugins. Since there wasn't a solution for adding classes on inline ...
user avatar
  • 7,228
7 votes
Accepted

Editorial workflow / custom status

One solution that comes to mind is to add your own custom status field (i.e. 'reviewStatus') as a drop-down menu (or checkbox perhaps if only one status). Then add this field as a column in your list ...
user avatar
5 votes
Accepted

How do I set up the Rich Text Editor Field (Redactor) for code snippets?

Not sure if it helps, but I accomplished this using a plain text field (with multi-line enabled). Then I just used CSS to format the field in a way to make it look like a code snippet... Screenshot ...
user avatar
  • 23.6k
4 votes

Redactor image caption not saved and formatting lost

I copied your Redactor settings to a clean installation of Craft (2.6.2945) and added an image to a Rich Text field set to use those specific settings. Initially I encountered the same behaviour. ...
user avatar
4 votes

Editorial workflow / custom status

Douglas has posted a great suggestion about creating an additional custom field for "Status". But I think it's also worth mentioning Josh Crawford's great free plugin called Workflow which takes Craft'...
user avatar
3 votes

What is the future for the Craft rich text editor?

Asking us to predict the future is hard (and probably a little off-topic). But I'll go ahead and contribute what little knowledge I have... Per conversations in Craft Slack, a few reputable plugin ...
user avatar
  • 23.6k
3 votes

What is the future for the Craft rich text editor?

Eventually, if a Craft CKEditor plugin doesn't come to life, then we might consider developing a 1st party (Pixel & Tonic) CKEditor plugin, although it would likely not replace the native Redactor ...
user avatar
  • 66.4k
3 votes

Is it possible to bulk-edit a field across multiple entries at once?

This plugin does it for Craft 3: https://github.com/kffein/craft-bulk-edit
user avatar
3 votes

Live Preview Button missing

Have you specified a template to use under that section's settings? If you didn't, the Live Preview button won't show.
user avatar
  • 66.4k
3 votes
Accepted

Visual editor for Craft 3

If you are looking for "drag and drop" I would use matrix blocks. You can define text block, image block, video block, etc that would be available in Elementor. Maybe you don't get as much out of the ...
user avatar
3 votes

How to include twig in the editor? e.g. Shortcodes for dynamic content

The typical 'Craft' way of doing this would be via a Matrix field instead of a single text block field, so that editors can sandwich the dynamic content (which would be its own block type) in between ...
user avatar
  • 3,794
3 votes
Accepted

How to insert widgets in Rich Text field

Have you considered using the Matrix field type? You could create a block for rich text, then a block for a contact form (or whatever widget). You could probably achieve what you're asking with a ...
user avatar
  • 2,437
2 votes

Live Preview Button missing

I just had the same issue of the Live Preview button not displaying. I followed the instructions from Brandon and Brad and still did not see the live preview button. It was not till that I created ...
user avatar
2 votes
Accepted

Show an entry is being worked on

Nope, not currently... though there is a feature request for it: http://feedback.craftcms.com/forums/285221-feature-requests/suggestions/9009169-add-an-alert-or-warning-when-multiple-authors-are I ...
user avatar
  • 23.6k
2 votes
Accepted

Craft WYSIWYG editor and CKEditor

Thanks guys - yes I'm fully aware of the downfall of letting clients run free with the editor, and we've had discussions internally about tables & trying to stop the client from using them but in ...
user avatar
  • 41
2 votes

Craft WYSIWYG editor and CKEditor

Am I heading down the wrong path? If you gotta ask that question, sometimes it's a self-fullilling prophecy! ;) One of the big reasons people use Craft is it does a great job of separating content ...
user avatar
  • 6,442
2 votes

Craft WYSIWYG editor and CKEditor

From my experience, I try to strip out as much formatting options as I can from any wysiwyg editor. Otherwise you'll end up with large, purple text with a red background (or some other crazy style the ...
user avatar
  • 4,696
2 votes
Accepted

Does a Craft Editor's Guide exist?

If you're looking for professional-grade videos showing off what Craft can do, then Jamie has already pointed you in the right direction... If you'd like to add your own content to help your clients ...
user avatar
  • 23.6k
2 votes

Does a Craft Editor's Guide exist?

The Features section on the Craft site already has some useful videos that may be of interest: https://buildwithcraft.com/features/matrix
user avatar
  • 3,594
2 votes

Live Preview Not Updating - No errors found

Okay, so I figured this out and its a very stupid twig template noob mistake on my part. The mistake is this: I had a section called 'demo' with a field called 'demoField' and created a template ...
user avatar
  • 41
2 votes
Accepted

frontend editing, show selected category

Something like the following should work. This assumes that your category field handle is 'jobCategory', and has a limit set to 1. {% set categories = craft.categories.group('jobCategory') %} {% set ...
user avatar
2 votes

Is it possible to bulk-edit a field across multiple entries at once?

This has been requested in the Craft feedback forum (vote for it if you like, here and here). But as of Jan 2017, there is no functionality for this in a default Craft install. The closest thing I've ...
user avatar
2 votes
Accepted

I want to get the HTML/text contents of the Redactor editor

I'm not 100% sure I follow, but I think this is what you are looking for. In your javascript file, you'll want code.set API Reference ... $('#yourTextArea').redactor('code.set', your.data);
user avatar
  • 4,696
2 votes

Visual editor for Craft 3

Yes, you will have to define the elements that the client will manage for a page. If you watch the video in craftcms.com landing page you can see how that would look like. The elements on the left ...
user avatar
2 votes

How to include twig in the editor? e.g. Shortcodes for dynamic content

There's also the Shortcodes plugin
user avatar
  • 10.9k
2 votes

Allow editors to create pages (singles)

Just make a channel for your generic pages, and set the route to {slug}, that way your editors can create, delete, edit and disable any generic template pages without needing to touch the more ...
user avatar
  • 146

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