Sign in

editor style (editor.css) not applied

  • This topic has 2 replies, 2 voices, and was last updated 3 years, 9 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1041
    Avatar photo[anonymous]

    really liking Publii, but the UI is killing me – are there any prebuilt themes that cover both the UI and TinyMCE?

    styles added to either of the following are not applied…

    `/Documents/Publii/themes/simple/assets/css/editor.css`
    or…
    `/opt/Publii/resources/app.asar.unpacked/default-files/default-themes/simple/assets/css/editor.css`

    i tried enabling the option in dev tools > experiments to allow custom UI styles, but that seems to have no effect

    here’s an example of what i added to editor.css…

    `/* POST EDITOR */
    .post-editor {
    background: #080808;
    }
    .mce-container, .mce-container *, .mce-widget, .mce-widget *, .mce-reset {
    color: #b7b7b7;
    font-size: 20px;
    }
    .button-outline[data-v-50d42e6d] {
    color: #b7b7b7;
    }
    @media screen and (min-width: 20rem)
    html {
    font-size: 1.5rem;
    }`

     

    ps: i did read the doc

    #1042
    Avatar photo[anonymous]

    also found another editor.css here but it didn’t work either…
    `/Documents/Publii/sites/mysitename/input/themes/simple/assets/css/`

    ideally i’d like to have a global editor theme anyway, not per-site

    #1124
    Avatar photoTomasz Dziuda

    Hi,

    I have just edited the /documents/publii/sites/test-site/input/themes/simple/assets/css/editor.css file to add red background and it works like a charm and allows me to edit the CSS inside the editor.

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.