-
AuthorPosts
-
March 8, 2017 at 3:04 pm #757819
Hi Support,
We need to have a
Character inside our text. After inserting and saving this with the advanced text editor
it is working, but after again editing this Characters are erased.It doesnt matter if i use the visual or the text editing mode.
How can we prevent the Enfold system of parsing / clearing those characters ?
for e.g.
"
etc.
To put them inside a code-section does not help ..Thans
- This topic was modified 7 years, 8 months ago by SteffenKraemer.
March 8, 2017 at 3:11 pm #757832That sounds like a strange problem. Especially if it’s happening in the regular text editor. Have you tried disabling all your plugins? Are you running a child theme and have you tried switching to the main Enfold theme?
March 8, 2017 at 3:21 pm #757837No Plugins,
Virgin Enfold Installation
main theme / not child!
Happens on 3.8.5 and 4.0.2 (no older Versions avaible)Try it out:
Enter & n b s p; (without the spacers) inside a text-edit .. and save it .. After that, those characters are erased.- This reply was modified 7 years, 8 months ago by SteffenKraemer.
March 8, 2017 at 3:35 pm #757853It looks like this might be the default behavior for WordPress and TinyMCE. I just tried it on a site running another theme and when I add a non breaking space or the quot character in the text editor, switch to the visual editor and back to the text editor it replaces those values with characters instead. Have you tried this with one of the Twenty[Something] themes instead of Enfold?
March 8, 2017 at 3:47 pm #757858Hi Kevin,
you are right .. i also tried it on the same setup with the twenty% theme and when i am using only
the text-editor mode the & n b s p; is still alive .. after switching only one-time to the visual mode – and back – these characters are away..thats strange and i think this is a ticket issue for the wordpress ?!
Your enfold system is also securing the Shortcode code .. may there is a “dont parse / touch those characters” function ?
Any workaround Idea ? :-) ?
- This reply was modified 7 years, 8 months ago by SteffenKraemer.
March 8, 2017 at 4:09 pm #757881It’s more likely (IMHO) that this is a TinyMCE editor feature/setting and you’d have to address it through them in some way.
If you’re comfortable working in code, you could try creating a shortcode that inserts the character in question. Here’s an example of how something like that could work: http://botcrawl.com/how-to-create-a-shortcode-for-a-blank-or-empty-line-space-on-wordpress/ Seems like overkill but it’s probably the shortest route to what you’re after. In my experience working with TinyMCE settings and features is a bit more involved.
March 8, 2017 at 4:36 pm #757899Great Kevin, this way works fine :-)
i added :
/* shortcode for unbroken space */
function unbrokenspace() {
return' '
;
}add_shortcode(‘unbroken’, ‘unbrokenspace’);
and in my edit i added [unbroken] between the textelement which should not break .. !
Great! Thanks.
- This reply was modified 7 years, 8 months ago by SteffenKraemer.
March 8, 2017 at 8:11 pm #758001I’m glad that worked out for you!
March 10, 2017 at 5:24 am #758682Hi @SteffenKraemer,
Great, glad you got it working and thanks for sharing :-)
Thanks @kevinmcgillivray for helping out, much appreciated.
Best regards,
Rikard -
AuthorPosts
- You must be logged in to reply to this topic.