Web based family history software

Solved [SOLVED] color formatted keywords in HTML block

  • Bogie
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
  • Life is good!
More
4 years 2 months ago - 4 years 2 months ago #1 by Bogie
Hi,

When using color formatted keywords in front page HTML blocks they don't work. Removing color formatting brings them back to work.

Bogie
webtrees 2.1.19 | PHP 8.1.27 | MariaDB 10.5.23 | Apache on Ubuntu 12.9
AutoComplete places of @tkempf, chart modules of @magicsunday, Fancy treeview of @justCarmen
Attachments:
Last edit: 4 years 2 months ago by Bogie.

Please Log in or Create an account to join the conversation.

More
4 years 2 months ago #2 by fisharebest
Replied by fisharebest on topic color formatted keywords in HTML block
Works for me.



Can you change the editor to see the HTML view?

What does it show?

Perhaps you have formatting in the middle of the keyword.
Code:
This works: <span style="color:#e74c3c">#commonGivenFemale#</span> This will not work: <span style="color:#e74c3c">#common</span><span style="color:#e74c3c">GivenFemale#</span>

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Attachments:

Please Log in or Create an account to join the conversation.

  • Bogie
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
  • Life is good!
More
4 years 2 months ago #3 by Bogie
Replied by Bogie on topic color formatted keywords in HTML block
Weird; my HTML looks like that and was generated by the CKEditor. It happens even in a virgin HTML block.

Code:
<p><br /> The most common male given names are:<br /> <span style="color:#c0392b">#commonGivenMale#</span></p>

Bogie
webtrees 2.1.19 | PHP 8.1.27 | MariaDB 10.5.23 | Apache on Ubuntu 12.9
AutoComplete places of @tkempf, chart modules of @magicsunday, Fancy treeview of @justCarmen

Please Log in or Create an account to join the conversation.

More
4 years 2 months ago #4 by fisharebest
Replied by fisharebest on topic color formatted keywords in HTML block

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • Bogie
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
  • Life is good!
More
4 years 2 months ago #5 by Bogie
Replied by Bogie on topic color formatted keywords in HTML block
Perfect, thank you for your quick support.

- edit -

But now all enumerations get a hash added.

The oldest individual in our pedigree was born in 1570#.
The youngest family member was born in 2017#.
The most common female given names are:
Maria (99), Anna (80), Elisabeth (52), Dorothea (34), Marie (32), Wilhelmine (27), Johanna (27), Luise (23), Auguste (21), Emma (17)#

Bogie
webtrees 2.1.19 | PHP 8.1.27 | MariaDB 10.5.23 | Apache on Ubuntu 12.9
AutoComplete places of @tkempf, chart modules of @magicsunday, Fancy treeview of @justCarmen

Please Log in or Create an account to join the conversation.

More
4 years 2 months ago #6 by fisharebest
Replied by fisharebest on topic color formatted keywords in HTML block
Sorry, I was at work, and did not have time to test thoroughly.

Fixed.

github.com/fisharebest/webtrees/commit/e...1992d6ede40de3dadc7d

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • Bogie
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
  • Life is good!
More
4 years 2 months ago #7 by Bogie
Looks quite good, thank you for your help.

Solved.

Bogie
webtrees 2.1.19 | PHP 8.1.27 | MariaDB 10.5.23 | Apache on Ubuntu 12.9
AutoComplete places of @tkempf, chart modules of @magicsunday, Fancy treeview of @justCarmen

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum
}