D
D
driverx182017-08-31 03:21:56
Laravel
driverx18, 2017-08-31 03:21:56

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

1 answer(s)
O
one_day, 2017-08-31
@one_day

CKEditor is easier
https://feedshit.ru/zagruzka-izobrazhenij-v-ckedit...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question