Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WYSIWYG editor icons not displaying #1408

Closed
jhdrn opened this issue Jan 24, 2018 · 15 comments · Fixed by #1411
Closed

WYSIWYG editor icons not displaying #1408

jhdrn opened this issue Jan 24, 2018 · 15 comments · Fixed by #1411

Comments

@jhdrn
Copy link
Contributor

jhdrn commented Jan 24, 2018

The icons for the WYSIWYG editor is not showing up. Trumbowyg tries to load it's icons from /OrchardCore.Resources/Scripts//ui/icons.svg which results in a 404 Not found. When the double slash in the path is replaced with a single slash, the file is served correctly.

This seems to be an issue with Trumbowyg and I created a pull request Alex-D/Trumbowyg#701 with a fix.

In the meantime I guess the SVG path could be set manually according to the docs: https://alex-d.github.io/Trumbowyg/documentation/#svg-icons.

@jhdrn
Copy link
Contributor Author

jhdrn commented Jan 24, 2018

The Trumbowyg pull request was accepted so I guess we'll have to wait for a new release and update the dependency.

@agriffard
Copy link
Member

I tested and even if the path is //ui/icons.svg, this is working for me.

@jtkech
Copy link
Member

jtkech commented Jan 24, 2018

I could repro.

While in dev mode we still serve static files from physical locations, otherwise we use a custom file provider, so i could repro by starting the app from the command line.

I think it is easy to fix, just replace // with /, just need to do be sure if it's normal to allow this but seems to be allowed by the physical file provider, or maybe at a lower lever by the file system.

No time right now, i will search on this this night and then fix it.

@sebastienros
Copy link
Member

In the same topic, the visibility toggle for the connection string is broken since a recent update of BS.

@agriffard
Copy link
Member

The connection string visibility toggle works for me on the setup or the tenant creation in admin.

@jtkech
Copy link
Member

jtkech commented Jan 24, 2018

The visibility toggle also works for me when doing a setup in debug mode or through the command line.

@sebastienros
Copy link
Member

CAn you share a screenshot of this toggle? It was ugly on my machine. Maybe I need to refresh the css files, but I can't start OC anymore ;/

@jtkech
Copy link
Member

jtkech commented Jan 25, 2018

  • Before toggling

toggle1

  • After toggling

toggle2

@sebastienros
Copy link
Member

Sure it works, but it was more beautiful. And the icon gave some UI hint about the state.

@jtkech
Copy link
Member

jtkech commented Jan 25, 2018

Ah okay, i don't remember well how it was.
First i don't see any network issue.
Need to think about this.

@jtkech
Copy link
Member

jtkech commented Jan 25, 2018

Ah okay

gave some UI hint about the state

You mean not the same icon if showed or hidden

Before installing node modules and run gulp tasks, did you try to update static files by running gulp?

@jtkech
Copy link
Member

jtkech commented Jan 25, 2018

What i see is that we replaced tether.js with popper.js. Need to see what they do

@jtkech
Copy link
Member

jtkech commented Jan 25, 2018

Too lazy to install things to use gulp, maybe tomorrow.
But maybe we need the help of @agriffard if he has time.

That said, i saw this on the bootstrap repo where they say

We've dropped .input-group-addon and .input-group-btn for two new classes, .input-group-prepend and .input-group-append

And the toggle button use the input-group-addon class. So, maybe just use one of the 2 new classes .input-group-prepend or .input-group-append.

@jtkech
Copy link
Member

jtkech commented Jan 25, 2018

@sebastienros

  • Changed the class with input-group-append and used a <button> with the fa icon.

  • Didn't find where the fa icon was swithched to show the state, maybe through bootstrap.

  • So, in the script at the end of the setup Index.cshtml (no need to use gulp) i just switched the fa icon class at the same place we swith the input type attribute between password and text.

toggle1

toggle2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants