We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🆕 Feature request Font plugin: support for points to set the font-size
💻 Version of CKEditor
inline build v11.1.1, font-plugin v10.0.3
📋 Steps to reproduce
<p><span style=\"font-size:10pt;\">some text </span></p>
✅ Expected result Font size applied.
❎ Actual result Font size remains unchanged for this element.
The text was updated successfully, but these errors were encountered:
You can achieve this using configuration:
ClassicEditor .create( document.querySelector( '#editor' ), { plugins: [ ArticlePluginSet, FontSize ], toolbar: [ 'heading', '|', 'fontSize' //..., ], fontSize: { options: [ generatePtSetting( '10' ), generatePtSetting( '12' ), generatePtSetting( '14' ), 'default', generatePtSetting( '18' ), generatePtSetting( '20' ), generatePtSetting( '22' ), ] } } ); function generatePtSetting( size ) { return { model: size, title: size, view: { name: 'span', styles: { 'font-size': `${ size }pt` } } }; }
In action:
Sorry, something went wrong.
jodator
No branches or pull requests
🆕 Feature request
Font plugin: support for points to set the font-size
💻 Version of CKEditor
inline build v11.1.1, font-plugin v10.0.3
📋 Steps to reproduce
<p><span style=\"font-size:10pt;\">some text </span></p>
✅ Expected result
Font size applied.
❎ Actual result
Font size remains unchanged for this element.
The text was updated successfully, but these errors were encountered: