?
avatar bato3
bato3
10 Aug 2020

Steps to reproduce the issue

Create new content: article. (editor: TinyMce)

Inspect paragraph

Expected result

box-sizing: border-box;
color: rgb(33, 37, 41);
font-family: "Fira Sans", Arial, sans-serif;
font-size: (body: 1rem, html 14px) 14px;
font-weight: 400;
line-height: (body: 1.6)  22.4px;
margin-bottom: 14px;
margin-top: 0px;
text-align: left

Actual result

color: rgb(51, 51, 51);
font-family: Tahoma, Helvetica, Arial, sans-serif;
font-size: (body: 12px) 12px;
line-height: (body: 1.3em) 15.6px;
overflow-wrap: break-word

System information (as much as possible)

Clean installation, debian 10, default configuration
release Joomla 4.0 Beta 3
screen size: 1920 x 1080, editor: TinyMce

Additional comments

It would be nice if the page template included an editor style generated from the same settings.
It would be nice if the editor width was close to the width of the page content.

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
2.00

avatar bato3 bato3 - open - 10 Aug 2020
avatar joomla-cms-bot joomla-cms-bot - change - 10 Aug 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 10 Aug 2020
avatar bato3 bato3 - change - 10 Aug 2020
The description was changed
avatar bato3 bato3 - edited - 10 Aug 2020
avatar chmst
chmst - comment - 10 Aug 2020

Thank you very much for your hint. We are working in this area and will take this on our list.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30336.

avatar chmst chmst - change - 10 Aug 2020
Category Templates (site)
avatar Quy
Quy - comment - 13 Sep 2020

Related #29031

avatar Quy Quy - close - 13 Sep 2020
avatar Quy Quy - change - 13 Sep 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-09-13 17:08:55
Closed_By Quy
avatar Quy Quy - change - 13 Sep 2020
Status Closed New
Closed_Date 2020-09-13 17:08:55
Closed_By Quy
avatar Quy Quy - reopen - 13 Sep 2020
avatar bato3
bato3 - comment - 24 Sep 2020

I suggest create editor.scss in cassopea template with content:

/*TYPOGRAPHY FOR EDITOR**/

html {
  background-color: $white; // I can't find special variable for content background. In cassiopea/scss/blocks/global it's forced to  #fff
  padding:7px;
  margin:0;
}

@import "../../../media/vendor/bootstrap/scss/functions";

@import "variables";

@import "mixin";

// Bootstrap
@import "../../../media/vendor/bootstrap/scss/variables";
@import "../../../media/vendor/bootstrap/scss/functions";
@import "../../../media/vendor/bootstrap/scss/mixins";
@import "../../../media/vendor/bootstrap/scss/type";
@import "blocks/global"; // Leave this first
@import "vendor/bootstrap/table";


/* STYLES FOR JOOMLA! EDITOR */
hr#system-readmore  { border: red dashed 1px; color: red; }
hr.system-pagebreak { border: gray dashed 1px; color: gray; }


/* Classes for style picker */

.float-left  { float: left !important; }
.float-right { float: right !important; }

table {
  &.table, &.table-striped, &.table-hover {
    width:100%; // fake content, to don't remove empty rules, it's OK for me
  }
  &.table-sm {
    width:100%; // fake content, it's OK for me
    th,
    td {
      padding: $table-cell-padding-sm;
    }
  }
  &.table-bordered {
    border: $table-border-width solid $table-border-color;
    th,
    td {
      border: $table-border-width solid $table-border-color;
    }
  }
}
tr.thead-dark {
  width:100%; // fake content, 
  th {
    color: $table-dark-color;
    background-color: $table-dark-bg;
    border-color: $table-dark-border-color;
  }
}

tr.thead-light {
  width:100%; // fake content, 
  th {
    color: $table-head-color;
    background-color: $table-head-bg;
    border-color: $table-border-color;
  }
}

I put it so ugly, because I'm not quite able to work with pull-requests, especially since these changes need to be added to 4.0, 4.1, 4.2 and applied to the compiling library...

avatar bembelimen bembelimen - change - 2 Jan 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-01-02 01:31:38
Closed_By bembelimen
avatar bembelimen bembelimen - close - 2 Jan 2021
avatar HLeithner
HLeithner - comment - 3 Jan 2021

closed because of PR #31828

Add a Comment

Login with GitHub to post a comment