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
- Forum
- JCE Editor
- Character Map - Adding own Characters
Support is currently Offline
Official support hours:
Monday To Friday
From 09:00 To 17:00 Europe/London (BST)
From 09:00 To 17:00 Europe/London (BST)
Please post your question in the Forum and we will get back to you as soon as we can.
I write tutorials about Joomla like this
https://www.joomlaforever.com/Basic-Tutorials/how-to-add-styles-in-joomla-without-html-code-in-jce-editor
I want to include ie the field tag like this only displaying it like HTML code so the field does not appear, that's why the HTML entity ❴ as { and so on but the HTML code disappear after saving. I have turned off the validate HTML.
https://www.joomlaforever.com/Basic-Tutorials/how-to-add-styles-in-joomla-without-html-code-in-jce-editor
I want to include ie the field tag like this only displaying it like HTML code so the field does not appear, that's why the HTML entity ❴ as { and so on but the HTML code disappear after saving. I have turned off the validate HTML.
I think I might be misunderstanding the issue. Please send me a login - https://www.joomlacontenteditor.net/contact/site-login - and include any information you can to replicate the issue on your site.
Just because you're not paranoid doesn't mean everybody isn't out to get you.
I will first try to elaborate:
I write articles with plain content, in some articles I want to include content that conflicts with Joomla's method to display for instance a field included like . This works great.
I want to write in HTML as ❴field 1&10101; witch displays the { and } as an HTML Entity not conflicting with the nametag using the insert with Character Map, but when I change to Code it displays as { and }. I have also tried to insert the HTML Entity directly in HTML, this works on first save, but when I open the article again to edit it, it goes back to plain , and not ❴field 1&10101;.
I write articles with plain content, in some articles I want to include content that conflicts with Joomla's method to display for instance a field included like . This works great.
I want to write in HTML as ❴field 1&10101; witch displays the { and } as an HTML Entity not conflicting with the nametag using the insert with Character Map, but when I change to Code it displays as { and }. I have also tried to insert the HTML Entity directly in HTML, this works on first save, but when I open the article again to edit it, it goes back to plain , and not ❴field 1&10101;.
This is working fine for me in my tests, see below:
but, I think there is a better way to do this, without using {} in the article at all, but using css to display them.
Add the following to your template stylesheet:
Then, go to Editor Profiles -> Plugin Parameters -> Style Select, and create a new Custom Style, as in the image below (Tag value set to span and curly-brackets in the Classes field)
You can now select some text, then select the Curly Brackets option from the Styles list to apply the span and curly-brackets class.
but, I think there is a better way to do this, without using {} in the article at all, but using css to display them.
Add the following to your template stylesheet:
span.curly-brackets {
display: inline-block;
background-color: #eee;
}
span.curly-brackets:before {
content: "{";
}
span.curly-brackets:after {
content: "}";
}
Then, go to Editor Profiles -> Plugin Parameters -> Style Select, and create a new Custom Style, as in the image below (Tag value set to span and curly-brackets in the Classes field)
You can now select some text, then select the Curly Brackets option from the Styles list to apply the span and curly-brackets class.
Just because you're not paranoid doesn't mean everybody isn't out to get you.
I want to use the Entity to display the { and }
I sugeested using the css approach as this will not actually write {} to the content, so it won't be processed by Joomla plugins, it will display in the content as {field1}. I assumed that this is what you wanted.
Just because you're not paranoid doesn't mean everybody isn't out to get you.
- Page :
- 1
There are no replies made for this post yet.
Be one of the first to reply to this post!
Be one of the first to reply to this post!