Answer the question
In order to leave comments, you need to log in
How is it possible to achieve such a template for writing a post?
The site template has the following:
First 4 lines of text - Picture - 4 lines of text - quote - picture - other lines of text
How can I achieve such a template through the backend? I have a couple of ideas:
1) Use CKEditor (but for Laravel I didn’t find a normal one on github, one didn’t work at all, gave JS errors)
2) Get all the text from the database, and use substr to cut off the first paragraph from 1 to 100 characters, insert a picture , then from 101 characters to 200, then a quote, then 201 characters to the rest (but this is debility, I think, especially not all posts have a quote)
How do people achieve this? How can I do better here?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question