- This topic has 9 replies, 4 voices, and was last updated 4 years, 9 months ago by Tom.
April 16, 2015 at 11:37 am #99176Bard
Question about the brilliant Sections plugin and edit mode (visual/text).
I have to edit content in text-mode, due to short-codes. But when saving it re-appears in visual mode, adding line-breaks and thus breaking short-code content. Is it possible to make it re-appear in the same mode it was saved in, like when editing ordinary post/page?
Regards, BårdApril 16, 2015 at 5:14 pm #99310TomLead DeveloperLead Developer
Yea, I’m aware of this issue – I have someone working on it right now to improve it, but I can’t make any promises at this point in time.
Repeatable editors have been a huge hurdle – they certainly haven’t made it easy.
That being said, adding shortcodes inside the visual editor shouldn’t be breaking anything – WordPress adds the same HTML whether you’re using the Visual/Text editor on save.
Are you using the latest version of Premium/Sections? Improvements were made on how the editors handle shortcodes in the latest version.
In time I hope to have the editors behave the exact same as the default editor – it’s still quite a new plugin 🙂July 24, 2016 at 8:26 am #212498Chad Biggs
Is it possible to disable the visual tab with a function?July 24, 2016 at 9:31 am #212513TomLead DeveloperLead DeveloperJuly 24, 2016 at 10:56 am #212536Chad
ok, I still cant use a
. It keeps stripping it.
-ChadJuly 24, 2016 at 11:00 am #212541TomLead DeveloperLead Developer
This is just standard WP editor behavior.
Something like this might help: https://wordpress.org/support/topic/prevent-nbsp-characters-from-getting-removed-by-the-visual-editor?replies=4July 24, 2016 at 11:25 am #212546Chad
Sweet! Thank you Tom!July 24, 2016 at 11:37 am #212548TomLead DeveloperLead DeveloperJuly 24, 2016 at 3:51 pm #212582Chad
I just found an answer that I lost and was looking for but couldn’t find till now. Instead using ‘&NBSP;’ you can use a CSS and a class like this.
‘July 25, 2016 at 12:05 am #212607TomLead DeveloperLead Developer
- You must be logged in to reply to this topic.