Jump to content

Horizontal Line Option in Editor


Recommended Posts

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.

Link to comment
Share on other sites

  • 2 weeks later...

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.

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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:

 

Link to comment
Share on other sites

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 by WebCMS
Link to comment
Share on other sites

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. 

Link to comment
Share on other sites

  • 3 weeks later...
Posted (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%"> &nbsp; </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 by WebCMS
Link to comment
Share on other sites

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%"> &nbsp; </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%"> &nbsp; </video>

NOTE: autoplay works only when muted is used for optimal bandwidth usage.

https://www.gumlet.com/learn/how-to-autoplay-html-video

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...