Hongmu Notes
Home Program Notes EMLOG backend editor – Set text size
Program Notes emlog

EMLOG backend editor – Set text size

EMLOG backend editor – Set text size

When editing text in Emlog, the font size is too small – it's really uncomfortable to read; if you don't adjust it, it's practically impossible to read!

To set the font size to 16px, you can modify the following code:

Step 1: Open/admin/views/article_write.phpdocument

EditorEditor_summary The initialization section – locate path: "editor.md/lib/"Add the following code line below this line:

theme: 'default', // 设置主题为默认主题

Step 2: EditorEditor_summary In the initialization section, locate the following two lines of code:

width: "100%",
height: 640,

height Change the attribute value to "640px"And add the following line of code:

fontSize: "16px", // 设置字体大小为16px

ad1a1b7183212920

Apply the changes as shown in the figure!

微信赞赏

WeChat

支付宝赞赏

Alipay

✍️ Author: Hong Mu

webmaster · Thanks for reading, stay tuned for more exciting content

Author homepage View home page →

Related articles

Emlog enables automatic saving when editing articles.

Emlog enables automatic saving when editing articles. Program Notes emlog

The automatic save feature allows you to automatically save your edits when you publish an article – it doesn't generate any extra IDs or drafts! When you click the "Auto Save" button, the page will be automatically submitted and saved without interrupting your editing process! The advantage is that you can save your article at any time; if a power outage or network disruption occurs and your changes aren't saved, you might be in for a real headache! Let's get started with the tutorial! Step 1: Open /admin/views/artic...
👁 244
Change article line breaks in EMLog to <p> tags.

Change article line breaks in EMLog to <p> tags. Program Notes emlog

The new version of EMLOG is still unfamiliar to me – the editor still has a ton of issues! However, since I'm not very familiar with JavaScript, I've simply modified the line breaks using PHP! Find your article page template (e.g., `echo_log.php`) and modify the variable used for outputting your articles: `&lt;? $log_content = str_replace(&quot;&lt;br/&gt;", &quot;&lt;/p&amp;gt;...`
👁 191
When editing articles in the EMLOG backend, automatic saving and display of word count statistics are enabled.

When editing articles in the EMLOG backend, automatic saving and display of word count statistics are enabled. Program Notes emlog

The specific modifications are shown in the figure below: This shows exactly how many seconds have been saved! It also displays the number of words in the article, making it very convenient for users to review their own content! Modification tutorial: Open the file `/admin/views/article_write.php`, and locate the code snippet: `<label>Article Summary:</label><%/label>` – this is approximately 18 lines of code. Add the following code snippet above this section: `<span i...`
👁 260
EMLog Pro – Happy Crack Version – For learning, sharing, and use.

EMLog Pro – Happy Crack Version – For learning, sharing, and use. Program Notes emlog

This website uses the WordPress platform; emlog was only temporarily used for learning and sharing purposes. Recently, I remembered using the emlog software to write a blog before – it worked quite well – so on a whim, I downloaded and started using it! However, there's a so-called paid version available! So, I searched online and found a cracked version of the software. Driven by my desire to learn, I gave it a try – and the results are as follows: The performance is excellent! In fact, the emlog source code is open-source, and...
👁 1587
EMLOG Pro Registration Code "Cracking" Tutorial (What should users do if the official or free version of EMLOG suddenly becomes unavailable?)

EMLOG Pro Registration Code "Cracking" Tutorial (What should users do if the official or free version of EMLOG suddenly becomes unavailable?) Program Notes emlog

Preface: A tutorial on "cracking" the EMLOG Pro registration code – why use quotation marks for the word "cracking"? Because EMLOG is fully open-source software; anyone can download and modify it freely. Since it's open-source, the concept of "cracking" doesn't really apply. Main text: What should users do if the official EMLOG version or the free EMLOG version suddenly disappears? What if your EMLOG Pro cannot connect to the server...
👁 1264
How to make administrator login visible on Emlog?

How to make administrator login visible on Emlog? Program Notes emlog

I took a look at EMLOG, downloaded a template, but during use, I noticed that there was no login-protected functionality! What I needed was features accessible only to administrators upon logging in. So, I checked the official documentation: there are directly usable constant variables and constant type definitions. For example: - `Option::EMLOG_VERSION` – retrieves the current EMLOG version number; - `ROLE` – indicates the current user role (user group): `admin` (administrator), `writer`, etc.
👁 259

Recommended reading

Responsive explosion-proof instrumentation and valve components website template 0425

Responsive explosion-proof instrumentation and valve components website template 0425 Practical Collection Yiyou template

An eyouCMS responsive website template designed for the explosion-proof, instrumentation, piping and valve industries. Its professional and secure design is ideal for showcasing explosion-proof products, instrumentation and piping components, technical specifications, and industrial applications. This template helps explosion-proof equipment manufacturers showcase their products online and attract customers from the petrochemical and industrial sectors. Template Overview | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: EasyCMS Installation Guide...
👁 57
(Adaptive mobile version) PBootCMS template for corporate recruitment and enterprise service websites; Download source code for HR and labor dispatch company websites – 0232

(Adaptive mobile version) PBootCMS template for corporate recruitment and enterprise service websites; Download source code for HR and labor dispatch company websites – 0232 Practical Collection pbootcms Template

An adaptive PbootCMS website template designed for talent recruitment and corporate services for mobile devices. Its professional and sophisticated design makes it ideal for HR agencies and labor dispatch companies to showcase their services and job openings. This template helps HR organizations establish online recruitment platforms to attract both employers and job seekers. Template Preview | Installation Instructions | Website Backend: /admin.php | Username: admin | Password: admin | Extraction Password: www.4s5.c...
👁 56
Advertising Design and Production Company Website Template 1134

Advertising Design and Production Company Website Template 1134 Practical Collection Yiyou template

This EyouCMS template is ideal for advertising design and production agencies, featuring a professional visual design style perfect for showcasing design works, advertising campaigns, brand case studies, and corporate strength. It helps advertising agencies present their brands online and attract corporate clients. Template Overview | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for EyouCMS | EyouCMS (EyouC...
👁 49
(Adaptive Mobile Version) pbootCMS Webmaster Navigation Template – Website Directory Navigation Source Code Download (with Comment Feature) – 0910

(Adaptive Mobile Version) pbootCMS Webmaster Navigation Template – Website Directory Navigation Source Code Download (with Comment Feature) – 0910 Practical Collection pbootcms Template

A PbootCMS website template combining webmaster navigation and URL directory functionality, compatible with both PC and WAP devices, and featuring a comment section. Its clean and practical design makes it ideal for collecting and organizing various website resources. This template helps webmasters or web professionals create practical online navigation and communication platforms. Template Preview | Installation Instructions | Website Backend: /admin.php | Username: admin | Password: admin | Extraction Password: www.4s5.cn...
👁 62
PHP determines whether a web link exists

PHP determines whether a web link exists Language Notes PHP

To determine whether a link exists, you can use the curl method in PHP. Curl is a powerful PHP extension that can send HTTP requests and obtain remote data. Here is a simple example code for checking if a link exists: 🔒 Hidden content: Viewable after logging in $url = "http://www.example.com/"; $curl = cu…
👁 294
Responsive outdoor and sports equipment website template – 0426

Responsive outdoor and sports equipment website template – 0426 Practical Collection Yiyou template

This EyouCMS responsive template is ideal for the outdoor and sports equipment industries. Its dynamic outdoor design style is perfect for showcasing outdoor gear products, sports goods, brand stories, and sports solutions. It helps outdoor sports brands showcase their products online and attract sports enthusiasts. Template Demo | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for EyouCMS...
👁 39