Page 1 of 1
Formatted text version 19
Posted: Thu Dec 07, 2023 8:22 am
by colin1661music
Whenever I highlight text it's fine until I save the page then the highlighted text disappears and reverts back to the original. This applies to bold and italic.
Re: Formatted text version 19
Posted: Thu Dec 07, 2023 8:28 am
by Pablo
Can you please be more specific?
What exactly are you doing?
Do you have a DEMO?
Re: Formatted text version 19
Posted: Thu Dec 07, 2023 8:52 am
by colin1661music
The only way to show you is to make a video but here is what I do.
I create a layout grid
Create a large block of text, place it in to the layout grid, apply a body-text style, then I highlight one word bold or italic, and it shows bold or italic all good so far.
Then I save the page, the text that was showing bold or italic reverts back to the body-text style.
It's difficult to send you a demo until i can make a screen recording, if you still can't replicate I will make a screen recording tonight.
Re: Formatted text version 19
Posted: Thu Dec 07, 2023 9:00 am
by Pablo
It sounds like you are mixing up different styling types.
Global style and local styles. These cannot be mixed.
You either apply a global style (from the Style manager) or local style (via the formatting options).
If you first a style and then add bold or italic , then this will undo the global style (and vise versa).
Note that this is not new behavior, it always has worked this way.
If you need further assistance the please share DEMO project. I need to see the content and settings.
See also the forum rules.
Re: Formatted text version 19
Posted: Thu Dec 07, 2023 9:11 am
by colin1661music
Managed to record it on my hand held mobile phone not very professional but it shows you what happens.
https://www.youtube.com/watch?v=v0RF1N8WYBM
Re: Formatted text version 19
Posted: Thu Dec 07, 2023 9:21 am
by colin1661music
Hi Pablo,
Reading your reply, it looks like you can't highlight a word within a style?
Seems strange that bulleted lists work within a style!
Colin
Re: Formatted text version 19
Posted: Thu Dec 07, 2023 10:06 am
by Pablo
Reading your reply, it looks like you can't highlight a word within a style?
Correct. Because a word either uses global style or local style, not both at the same time.
If the global style does not have bold enabled then the text cannot not bold.
So, if you want to make the word bold, then create a new style with bold enabled.
'Bulleted list' is not a style, it's an HTML structure.
Re: Formatted text version 19
Posted: Tue Jun 11, 2024 4:45 pm
by colin1661music
Hi Pablo,
Is there any chance you could look at this in the next version, it's seems crazy that we can't have bold text in the middle of sentence, surly it's just a question of adding <b> </b> around text.
As you know I love your work.
Colin
Re: Formatted text version 19
Posted: Tue Jun 11, 2024 5:29 pm
by Pablo
This has nothing to do with WWB. This is how styles works.
Re: Formatted text version 19
Posted: Tue Jun 11, 2024 6:00 pm
by crispy68
After playing with setting 2 styles, it seems the issue lies with how the font weight is set in CSS.
For example, if you use a font like Open Sans, it has different weights: 400, 600, 700, etc. So in the CSS the font-weight is set to one of these numbers (ex: font-weight:400) which is usually the normal weight of a font. However, you can also set font-weight to bold (ex: font-weight:bold).
Only one option can be used.
So, if you want to bold the text, set the bold style to use the bolder text setting. For example, if you were using Open Sans for the regular text, then use Open Sans Bold for the bold section. This will set the appropriate font-weight for both sections of text. It also allows you to be more creative as you could use a completely different font or color.
Unfortunately, setting bold = true in the style manager is conflicting. It cant be set to bold and the appropriate font weight of the font you are using at the same time. Only Pablo could say if setting the bold=true would add <b></b> around the text in the html.
Re: Formatted text version 19
Posted: Wed Jun 12, 2024 4:09 pm
by colin1661music
Hi Guys,
I've very confused by this, I created this test page and I edited the second paragraph in an editor and you will see in the second paragraph with <b>10-year</b> as you see it's bold.
https://www.cosmedics-skin.com/test-page.php
I can achieve this by editing the pages in and html editor and then not publishing then in WYSIWYG.
Re: Formatted text version 19
Posted: Wed Jun 12, 2024 4:17 pm
by crispy68
Are you creating a style in the style manager and then applying that style to the text object or are you simply applying a style directly to the text object?
Re: Formatted text version 19
Posted: Wed Jun 12, 2024 4:36 pm
by colin1661music
Yes the style for this block of text is <span class="body-roberto-l-14">
Re: Formatted text version 19
Posted: Wed Jun 12, 2024 4:39 pm
by crispy68
So you are using the style manager correct?
Re: Formatted text version 19
Posted: Wed Jun 12, 2024 4:42 pm
by colin1661music
Yes, but I just want the word "10 Years" to be bold.
I've been thinking of a workaround I could try creating a blank link and then applying a bold style to the link.
Re: Formatted text version 19
Posted: Wed Jun 12, 2024 4:45 pm
by crispy68
did you try what I suggested and try using Roberto Bold?
Re: Formatted text version 19
Posted: Wed Jun 12, 2024 4:53 pm
by colin1661music
If I do that the whole paragraph will be bold, applying a style to a link works but it very messy, and it can't be blank link. I'm going to develope this.
In a program like dreamweaver you can apply a style to a paragraph, section of text, a link etc.
It seems so basic, not being able to bold a section of text within a style. It works for links, why not a section of text?
Re: Formatted text version 19
Posted: Wed Jun 12, 2024 4:54 pm
by Pablo
I'm sorry, but as a developer I have no control over this. I did not create the text editor. This is standard Windows functionality.
Re: Formatted text version 19
Posted: Wed Jun 12, 2024 5:01 pm
by jerryco
Time for Pablo Windows
Re: Formatted text version 19
Posted: Wed Jun 12, 2024 5:01 pm
by crispy68
If I do that the whole paragraph will be bold,
No it won't. You create 2 styles in the style manager. For example:
Step 1:
RobotoRegular - set the style to use Roboto regular font, font size, etc.
RobotoBold - set this style to have the same as RobotoRegular but choose Roboto Bold as the font
Step 2:
Double click on the text object to select all the text, right click on the text and select Style in the context menu and choose RobotoRegular from the list. This sets all the text to this style. Now select the text box again and only highlight the text you want to appear bold, right click, choose style and select RobotoBold.
Re: Formatted text version 19
Posted: Wed Jun 12, 2024 5:17 pm
by colin1661music
When I do that the whole paragraph changes to bold!
This interesting thing is that I can select a section of text and and make it bold but as soon as I save it, it removes the bold section.
Thanks for all your ideas on this, I'm going either edit the page in an editor or try and find a way to create a bold blank link.
Re: Formatted text version 19
Posted: Wed Jun 12, 2024 5:33 pm
by crispy68
I'm not having that issue, so either I dont understand your setup exactly or I'm not explaining how to do it properly.
So at this point, without seeing what you have done, it's hard to say anything else. Can you provide a demo project just showing what you are trying to do?
Re: Formatted text version 19
Posted: Wed Jun 12, 2024 5:41 pm
by colin1661music
I will try and make a video for you.
Re: Formatted text version 19
Posted: Wed Jun 12, 2024 5:51 pm
by crispy68
Video may help but it would be easier if you just stripped the page down, removed everything but the text box you are trying to style and make that available
Re: Formatted text version 19
Posted: Wed Jun 12, 2024 5:59 pm
by BaconFries
Just as suggested by crispy68 can you just provide a simple "Demo". Create a "New" project add a couple of blocks of text within one of them add bold to the one word you require. Save this and share. This way it makes it easier to view the settings you have used.
Re: Formatted text version 19
Posted: Thu Jun 13, 2024 5:46 pm
by colin1661music
Hi Guys
This is what I did with
https://www.cosmedics-skin.com/test-page.php
Create a blanks page.
Insert a single column layout grid
Created some text, dropped it in to the layout grid and applied a style to the text.
Now, no matter what I do I can't highlight some text and make it bold. If I highlight a section and apply a bold style the who paragraph becomes bold.
If I highlight a section and press the B icon the text becomes bold until I save it.
All I want to do is add the <b> </b> tags to a section of text. The only way I can see to do that is to manually edit the code as in did in the second section. and publish the page with filezilla.
Re: Formatted text version 19
Posted: Thu Jun 13, 2024 5:55 pm
by crispy68
Created some text, dropped it in to the layout grid and applied a style to the text.
So based on this, you are applying to the text a style created in the style manager correct? It would be easier to see a demo just so we can see your settings.
So I followed your instructions and here are my results:
I created a style in the style manager called 'demo'. I set the font to 'Oswald' with font size 16.
I then inserted a 1 column layout grid, inserted a text object, selected all the text and applied the 'demo' style to the text. I then double clicked on the text object, highlighted some text and bold it.
When I preview it, the text is bold like I set it in the workspace.
Based on the html and css code, you can see that the text indeed has the style 'demo' and that the text I bolded is bold using <strong> versus <b>. This also works if you want to set some of the text to italics.
Re: Formatted text version 19
Posted: Sat Jun 15, 2024 9:05 am
by colin1661music
Thanks I will work on this over the weekend.
Regards Colin
Re: Formatted text version 19
Posted: Sun Jun 16, 2024 6:46 am
by colin1661music
HI Guys,
Thanks so much for everyone who has worked on this, I created and new project and it worked.
Now I need to work out why this doesn't work in the website
https://www.cosmedics-skin.com/.
I started the website in WYSIWYG in 2019 and I've been updating everyone month ever since. It has 69 pages with 36 different styles perhaps something has become corrupt along the way.
Once again thank you for all your, help sometimes I can't see the wood for the trees.
This is a brilliant program with an amazing community.