Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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

    #757832

    That 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?

    #757837

    No 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.

    #757853

    It 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?

    #757858

    Hi 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 ? :-) ?

    #757881

    It’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.

    #757899

    Great 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.

    #758001

    I’m glad that worked out for you!

    #758682

    Hi @SteffenKraemer,

    Great, glad you got it working and thanks for sharing :-)

    Thanks @kevinmcgillivray for helping out, much appreciated.

    Best regards,
    Rikard

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.