-
Notifications
You must be signed in to change notification settings - Fork 140
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
Add HTML wysiwyg editor with image upload #224
Add HTML wysiwyg editor with image upload #224
Conversation
Thanks for the great PR @6temes! I like your choice of wysiwyg and integration method and would likely merge this PR with a few considerations addressed. At a high level my main concern is the added page weight for a feature we won't be using a whole lot. It looks like core is about 20kb, which I'm not too concerned about but the PR includes a number of plugins and lang files as well. I'm not familiar with how much of that will be loaded by default. A couple options for us here are:
I considered this same issue with our Markdown GUI as well. Let me know your thoughts Also, if we don't adopt this feature internally there's the topic of maintenance. Features not commonly used by the core maintainers will get overlooked, so we'd have to lean on the community more to support this feature. Not a deal breaker but can be an awkward position. Other than that, this would still require tests and docs as you mentioned. thanks again! |
@@ -0,0 +1,11 @@ | |||
/* =========================================================== |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While we have the ability to manage content in multiple languages in Fae, the interface only supports english currently. I'd prefer to keep all the lang files out and maybe supply a info in the docs to users can add them to the app if they so wish.
In order to conditionally load the libraries, I see two options: The easiest way would be to load them in the The other way would be to configure them in the initializer. As for the i18n, that's the next thing I wanted to do. If I have to use this CMS, I will need to internationalize it because I don't work in an English speaking country.
I guess the way to go is that if someone needs a feature, that person/company will have to maintain it. At the same time, I guess that its wise to add only features that are relevant for a big subset of the users. If someone needs something really specific, that person have the option to maintain their own fork. |
With the last commit, the trumbowyg libraries are opt-in. I thought to do the same with the Markdown editor but then I thought that it would be a breaking change. What do you think, @jamesmk ? The other way would be, as you said, to add a configuration flag in the initialized with defaults to SimpleMDE, but if don't think if it is really necessary. |
I like your idea to move the inclusion of the libs to Think you're missing some tests and docs, then this is close to mergeable. @aaronransley: mind jumping in and taking a look as well? Thanks for your work on this! |
I will start to work in the documentation and tests. I just wanted to make sure that the code was ok before. As for locales, I would like to add support for i18n to this project. In my case, I need Japanese locales, but I am sure that more people will want to add their locales. But well, this belongs to the next PR. ;) |
@6temes Sorry yesterday we noticed a bad merge commit on master, so I had to rebase master to remove it. It looks like those commits are still on your branch (hench the now 38 commits this PR introduces). Can you rebase your branch to master? If that doesn't work, you may have to cherry-pick your commits to a new branch :/ thanks |
Hi @jamesmk. No problem. Because I was not sure about what was meant to be changed, I just replaced the branch with a fresh one from the new master and cherrypicked my commits. It was easy. :) Can you please check if the Changelog is correct? |
Perfect, thanks 👍 |
@jamesmk Sorry for the delay, I have been working in other projects this days. I added the documentation. I have been checking the current tests but I am not really familiar with feature tests. Do you have any idea about which part of the functionality would make sense to test? |
To add feature tests you'll need to add an example in the dummy app. We'll want it there to QA the feature separate from any specific integration. Since we have some undocumented rules around the dummy app I can add the example and a couple feature tests around it. Can you add a test for thanks |
I created the test for the endpoint and fixed the Code Climate errors. Regards! |
(Sorry, I had a little accident while working on my fork) @jamesmk What do you think about the tests I introduced. Do you think that this branch can be merged? |
@6temes Looks good, thanks for your work on this PR! I'm releasing v1.5.1 now and will merge it after to include in v1.6. |
Thanks! |
fixes #213 |
I just added trumbowyg and configured an endpoint to upload images.
It's still not production code -no tests nor documentation- but I wanted to know what you think about.