Jump to content

Predefined HTML/text for CK-Editor


Matze
 Share

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

@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?

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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