PinPics Posted April 15 Posted April 15 Just wanted to add some feedback here. It'd be really nice if there was an option in the editor buttons to add a horizontal line in a post/article. Thanks!
Marc Posted April 15 Posted April 15 Its not something we are likely to add within version 4, as the editor itself is changing in version 5, and you can do this already in that version 😉 PinPics 1
Nathan Explosion Posted April 15 Posted April 15 Just add a custom button: Here's the HTML: <hr> Â Marc and PinPics 2
PinPics Posted April 15 Author Posted April 15 Thank you to both of you!! Great news, @Marc Stridgen. We're definitely looking forward to v5. It was actually in hopes of it being included there that I left the feedback. Not a necessary feature, but certainly would be nice!  @Nathan Explosion Thanks for that link! I hadn't thought to do that, but it's perfect. Appreciate it.
WebCMS Posted April 27 Posted April 27 Not everyone can have the ability to edit HTML except admins may be temporarily due to security reasons. HR should be a toolbar item. Also since pasted content is enforced as plain text (due to various color themes) losing formatting, TABLE/TR/TD toolbar items are needed too.
Jim M Posted April 27 Posted April 27 38 minutes ago, WebCMS said: Not everyone can have the ability to edit HTML except admins may be temporarily due to security reasons. HR should be a toolbar item This is the purpose of the custom button 😉. You set it up in HTML but your users just click the button in the toolbar to evaluate it.  PinPics 1
Claudia999 Posted April 27 Posted April 27 40 minutes ago, WebCMS said: HR should be a toolbar item. I added a <HR> to my toolbar. Here's the code: <div><hr style="width:150px; margin:2em auto 1.9em; border:none; border-bottom:1px solid #000;"></div> And here's the explanation in Help Guide: Â
WebCMS Posted April 27 Posted April 27 (edited) 8 minutes ago, Jim M said: This is the purpose of the custom button 😉. You set it up in HTML but your users just click the button in the toolbar to evaluate it.  I guess the custom buttons are for specific purposes (Eg: Stock Replies) and it would be ideal to use built-in functionality instead of cooking our own. CK Editor has most of the buttons that can be provided in the ACP which can be exposed by admins. Edited April 27 by WebCMS
Jim M Posted April 27 Posted April 27 3 minutes ago, WebCMS said: I guess the custom buttons are for specific purposes (Eg: Stock Replies) and it would be ideal to use built-in functionality instead of cooking our own. CK Editor has most of the buttons that can be provided in the ACP which can be exposed by admins. Custom buttons allow you to create what you want, like a button for a horizontal line. Stock replies are completely separate feature. You can also install CKEditor plugins.Â
WebCMS Posted May 15 Posted May 15 (edited) Is it possible to add a custom button for <video> tag for mp4 files from a URL? All it needs is - <video autoplay data-video-embed="" loop muted playsinline preload="auto" src="https://www.apple.com/newsroom/videos/fraud-prevention-illustration/large_2x.mp4" style="width: 100%"> </video> It would need an input dialog to accept the src URL. How to implement the input dialog for the custom button? How to use {option} and {content} for src and URL? NOTE: autoplay works only when muted is used for optimal bandwidth usage. https://www.gumlet.com/learn/how-to-autoplay-html-video Edited May 15 by WebCMS
WebCMS Posted May 17 Posted May 17 Is it possible to add a custom button for <video> tag for mp4 files from a URL? All it needs is - <video autoplay data-video-embed="" loop muted playsinline preload="auto" src="https://www.apple.com/newsroom/videos/fraud-prevention-illustration/large_2x.mp4" style="width: 100%"> </video> It would need an input dialog to accept the src URL. How to implement the input dialog for the custom button? How to use {option} and {content} for src and URL? Using the following definition, will the user be required to enter both "src" string and URL string for option and content tags? <video autoplay data-video-embed="" loop muted playsinline preload="auto" {option}="{content}" style="width: 100%"> </video> NOTE: autoplay works only when muted is used for optimal bandwidth usage. https://www.gumlet.com/learn/how-to-autoplay-html-video
Jim M Posted May 17 Posted May 17 Anything is possible with the custom button tag. However, keep in mind that we do not provide support for custom buttons (and this is the Feedback forum 🙂 ). The {content} variable though would be what the user is highlighting in the editor. Whereas, the {option} variable would be a popup. If you are wanting to do this, you would likely just want to use {option} and replace the URL with {option} in the button HTML.
Recommended Posts