- This topic has 9 replies, 4 voices, and was last updated 5 years, 10 months ago by
Tom.
-
AuthorPosts
-
April 16, 2015 at 11:37 am #99176
Bard
Hi!
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ård
April 16, 2015 at 5:14 pm #99310Tom
Lead DeveloperLead DeveloperHi Bard,
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 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJuly 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 #212513Tom
Lead DeveloperLead DeveloperIt’s possible to disable it in your profile by going to “Users > Your Profile”.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJuly 24, 2016 at 10:56 am #212536Chad
ok, I still cant use a
. It keeps stripping it.-Chad
July 24, 2016 at 11:00 am #212541Tom
Lead DeveloperLead DeveloperThis 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=4
Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJuly 24, 2016 at 11:25 am #212546Chad
Sweet! Thank you Tom!
July 24, 2016 at 11:37 am #212548Tom
Lead DeveloperLead DeveloperYou’re welcome 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJuly 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 ‘ ’ you can use a CSS and a class like this.
`.hidegrid {
content: ‘.’;
visibility: hidden;
}’
‘.‘
July 25, 2016 at 12:05 am #212607Tom
Lead DeveloperLead DeveloperThat’s another way for sure, but
is probably a little more simple for things like this.Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.