Solved [SOLVED] color formatted keywords in HTML block
- Bogie
- Topic Author
- Offline
- Elite Member
- Life is good!
Less
More
4 years 2 months ago - 4 years 2 months ago #1
by Bogie
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
color formatted keywords in HTML block was created 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.
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
Last edit: 4 years 2 months ago by Bogie.
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
4 years 2 months ago #2
by fisharebest
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
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.
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
Please Log in or Create an account to join the conversation.
- Bogie
- Topic Author
- Offline
- Elite Member
- Life is good!
4 years 2 months ago #3
by Bogie
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
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.
- fisharebest
- Offline
- Administrator
4 years 2 months ago #4
by fisharebest
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
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
- Life is good!
4 years 2 months ago #5
by Bogie
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
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)#
- 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.
- fisharebest
- Offline
- Administrator
4 years 2 months ago #6
by fisharebest
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
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
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
- Life is good!
4 years 2 months ago #7
by Bogie
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
Replied by Bogie on topic [SOLVED] color formatted keywords in HTML block
Looks quite good, thank you for your help.
Solved.
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.