User formatter
For a long time I’ve been developing sites, of course, every site requires some kind of “admin panel”, and since the most important thing in the site is content (content), you need to prepare a tool for the user (resource administrator) to work with content (content). Since you can’t kill stereotypes, and mostly people are accustomed to working in Word (at least I met them), a formatter is needed. I tried a pretty large number of formatters, even there was a crazy idea to write my own. There are a lot of problems, users are trying to edit the formatting of the text to their taste, which is sometimes missing, change the font, its color (bright red letters with a green background even appeared), size, fills in tables and other creativity. The result was not an article, but a terrible eclecticism ...
In formatters, it was forbidden to change the format of text, tables, etc., signed their classes, etc. Everything seemed to be working out, the result became more or less acceptable, only there was a problem with the pictures. Pictures are of different sizes, sometimes such that they break the entire layout (sometimes it even happens on Habr’s, what can we say about managers who don’t even imagine that the size of the screen graphics is measured in pixels, and not in centimeters). In general, another “terrible” problem, the staff is reluctant to train, my terrible stories about kilobytes, download speed, pixels do not always reach the ears of managers.
As a result, the following idea was born. What if the article is divided into several blocks. For example, a block with a picture on the left and text, a block with a picture on the right and text, a block of pictures in a row, a table block, a block of plain text ...
A user uploading a picture indicates it on his computer, it loads and is compressed to the desired size (and all this happens without reloading the page, since there is such a technology as AJAX), the position of the image on the page, alignment, etc., are immediately determined.
Pros:
Here is a question for the Habr community: are there any similar implementations and what problems can arise in your opinion using a similar tool?
In formatters, it was forbidden to change the format of text, tables, etc., signed their classes, etc. Everything seemed to be working out, the result became more or less acceptable, only there was a problem with the pictures. Pictures are of different sizes, sometimes such that they break the entire layout (sometimes it even happens on Habr’s, what can we say about managers who don’t even imagine that the size of the screen graphics is measured in pixels, and not in centimeters). In general, another “terrible” problem, the staff is reluctant to train, my terrible stories about kilobytes, download speed, pixels do not always reach the ears of managers.
As a result, the following idea was born. What if the article is divided into several blocks. For example, a block with a picture on the left and text, a block with a picture on the right and text, a block of pictures in a row, a table block, a block of plain text ...
A user uploading a picture indicates it on his computer, it loads and is compressed to the desired size (and all this happens without reloading the page, since there is such a technology as AJAX), the position of the image on the page, alignment, etc., are immediately determined.
Pros:
- The user immediately sees how the page with its text will look
- Ease of use
- The user does not make up his “creative”, everything will look like the designer planned it
Here is a question for the Habr community: are there any similar implementations and what problems can arise in your opinion using a similar tool?