You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#105940 Quote element or custom format element

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by dee on Monday, 30 November 2020 10:21 GMT

dee
Dear team, I can't find an option to choose "quote" ( html element <q> ) in the editor.
If it is not available, is it somehow possible to add a custom format element for this, and/or even create a custom icon?
It is an essential feature for one of our customers.
All best,
Konstantinos

Ryan
If it is not available, is it somehow possible to add a custom format element for this, and/or even create a custom icon?


You can create this using a Custom Style - https://www.joomlacontenteditor.net/support/tutorials/editor/creating-custom-styles

For example:

https://cdn.joomlacontenteditor.net/tmp/105940-quote-element-or-custom-format-element.jpg

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

dee
Thank you for the quick reply.
I tried this option and it works!
I created a tag "figcaption" and added as Selector "figure".
This way, in the editor I see the info "Write a caption...", where I can enter a caption - great so far!
But when I hide "Styles" in the editor profile, there is no way to edit the created custom style, even after re-enabling "Styles" - it is gone, I cant even delete it.
Is this a bug, or am I missing something?

A second question:
Can I create something a custom style (or similar), something like <figure><blockquote> (two elements combined I mean)?

All best,
KK

Ryan
I created a tag "figcaption" and added as Selector "figure".
This way, in the editor I see the info "Write a caption...", where I can enter a caption - great so far!


This is not actually necessary, as selecting Figure from the Format list when you have an image selected will automatically create a <figcaption> tag inside the <figure> tag.

Can I create something a custom style (or similar), something like <figure><blockquote> (two elements combined I mean)?


Unfortunately not. Custom Styles are currently limited to applying a single tag to a selection.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

dee
I see, thank you for pointing out the figure/figcaption connection.

1. But how about the problem with creating a custom style, hiding "Styles" in the editor profile, and custom style is no more editable/deletable?

2. About the custom styles limited to a single tag: could the templated be a solution for creating a <figure><blockquote> combination?

Ryan
1. But how about the problem with creating a custom style, hiding "Styles" in the editor profile, and custom style is no more editable/deletable?


The Styles list is required to apply a style, but depending on the the style properties, you may be able to remove it with the Remove Format button.

https://cdn.joomlacontenteditor.net/tmp/105940-quote-element-or-custom-format-element-2.jpg

2. About the custom styles limited to a single tag: could the templated be a solution for creating a <figure><blockquote> combination?


Yes, you can create any type of custom HTML to insert into the editor with the Template Manager, which can then be selected from the list on the Template Manager button in the editor toolbar.

https://cdn.joomlacontenteditor.net/tmp/105940-quote-element-or-custom-format-element-3.jpg

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

dee
great stuff! thanks