Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1466736

    Hello. I publish an online literary journal and often have to format poetry in unique ways, such as carefully controlling line breaks and indenting lines in the middle of a paragraph. In Enfold’s textblock, many of the codes I enter on the Text tab are immediately discarded when I change back to Visual, such as

    <br>
     
    <p> </p>

    …and blank spaces at the beginning of lines. Is there a way to make Enfold respect my decisions? These are not incorrectly placed, and while they may seen redundant, they’re not. I can demonstrate this with a video if necessary.

    Thanks,
    Paul

    #1466751

    I would recommend using html entities. Unfortunately, even there it is sometimes the case that a new call of the editor mode / visual mode leaves them effective or not, but they are no longer visible in the backend. One example is the so-called softhyphen – a conditional hyphen.

    Günter has created a plugin with which it was possible to set the characters larger / smaller as well as in the layout elements, without them being evaluated as tag beginnings. Since I didn’t want to put 3 # characters before and after the abbreviation, I shortened it to one # character and extended the list that could be used with the plugin.

    So if i would like to have an invisible Space at the beginning of one line i inserted instead: #nbsp#

    See the plugin here: https://pastebin.com/jttc230x
    Download it here: specialcharacter Plugin

    just put it into your plugins folder via ftp

    #1466769

    Hi,

    Thank you for the info @Guenni007.

    Another way to prevent the editor from discarding or formatting the content is to apply attributes to the html elements, such as class names or IDs. For example:

    <br class="av-permanent-br">
    <p class="av-permanent-p"></p>
    
    

    The editor should not remove these elements, even if they are deemed unnecessary.

    Best regards,
    Ismael

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