Matze Posted March 20, 2018 Share Posted March 20, 2018 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 More sharing options...
alxndre Posted March 20, 2018 Share Posted March 20, 2018 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 More sharing options...
theo Posted March 20, 2018 Share Posted March 20, 2018 You could use CKEditor Templates. This would be a 2-Click Solution and you can even choose which block to insert: 1 Link to comment Share on other sites More sharing options...
tpr Posted March 20, 2018 Share Posted March 20, 2018 https://ckeditor.com/cke4/addon/templates I've used this in a project and worked well, though it's not so simple to set up, and the client can easily mess things up. 1 Link to comment Share on other sites More sharing options...
Matze Posted March 20, 2018 Author Share Posted March 20, 2018 Well thanks a lot for your replies. I will have a look at all the CK template options! Link to comment Share on other sites More sharing options...
psy Posted March 20, 2018 Share Posted March 20, 2018 @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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now