<script src="https://cdn.ckeditor.com/4.7.0/full-all/ckeditor.js"></script>
<textarea id="container">
This is standard font size (12px)
<ol>
<li><span style="font-size:15px;">Select list and change font size</span></li>
<li><span style="font-size:15px;">Ordered list text will follow font size style</span></li>
<li><span style="font-size:15px;">But list marks (numbers) will not follow font size style</span></li>
<li><span style="font-size:15px;">Font size is applied only to content of li and not list itslef</span>
</ol>
<ol style="font-size:24px">
<li>You still can modify list styles manually in Source mode if editor.config.allowedContent = true</li>
</ol>
</textarea>
JavaScript
editor = CKEDITOR.replace('container')
editor.config.allowedContent = true // allows to edit styles manually in Source mode
// so you can check how list should look when <ol style="font-size:8px"> is set
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Fiddle Pages
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Get Fiddle Pages with PRO
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.