CMS background to publish the article when the ' preview ' function to realize what the idea is, how everyone realizes, exchange and exchange
Reply content:
CMS background to publish the article when the ' preview ' function to realize what the idea is, how everyone realizes, exchange and exchange
Some rich text editors provide preview functionality, but in fact this preview is very different from the foreground effect, while some open source products provide a better and more realistic implementation, such as WordPress, Durpal, etc.
The Rich Text Editor's preview deviation is very big reason is the CSS setting causes, simultaneously realizes these better more real open source product can discover a commonality, is the draft function, therefore perhaps we can deduce such a thought.
The article needs to be saved before previewing, making it a "persisted" data, and then loading the front-end CSS in a specific container (such as an IFRAME), and then displaying the contents of the article on that basis to see the final effect of the article on the front-end display.
Refueling, although it is easy to say, but it is not easy to do, too much detail needs to be dealt with.