Jump to content

Recommended Posts

Posted

Hi there,

ist it possible to predefine content like text or html snippet for ck editor? So if i start a new page with this template containing this ck-editor-field there is already pre-written some text/html in this field?

thanks

Posted

Here's a somewhat long discussion about default values. The take-away is that it is that it's not as needed as it seems, and that if you do need it, it can be implemented using hooks or a quick module. No core support for it that I know of.

Posted

You could use CKEditor Templates.

This would be a 2-Click Solution and you can even choose which block to insert:

CKEditor_templates_window.png

  • Like 1
Posted

Well thanks a lot for your replies. I will have a look at all the CK template options!

Posted

@Matze I've used this handy module:

 to generate content for fields. It's intentionally not automatic, allowing you to specify what/how much dummy content per field. You could maybe make it so with a hook to look for empty CK-Editor textareas on page load?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...