-
Notifications
You must be signed in to change notification settings - Fork 9
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
An alternate addon, combine forces #18
Comments
@Panman8201 👍 @artsmc @maulsea @jigneshchudasama05 would love to hear your thoughts about this! |
Yeah sounds great to me I'm actually reading it over now. |
I think a true sign that Froala is addressing something is one the fact that its the most downloaded WYSIWYG editor in emberaddons despite being a paid editor. And two the fact that people want to contribute issues on different platforms. But overall I am in favor of much of the decisions you made, I just want to consolidate where things can be declared in only one place if possible. |
@artsmc No problem, certainly take some time to dig through the source. I tried to comment everything with some details (like "why do it this way").
Replace dots with dashes (rather than underscores in this addon, dashes are more "ember like"). Ex:
Humm....that's an interesting one, I haven't handled that one either. Since it's not valid Handlebars syntax, it'll have to be some special usecase/microsyntax.
Cool, sounds like we're on the same page, it's a community effort. Which is the reason I like to submit PR's to help improve addons, it improves things for everyone else too. |
Sorry @stefanneculai, me & @jigneshchudasama05 have not been able to look over this addon closely after initial implementation. @Panman8201's changes look thorough & I don't think it'd be a problem to merge this in with PR. We can tag it with new major version in npm & here in repo. People can optionally grab an update (with a disclaimer that they need to change their implementation). Does that sound like a good idea to you? |
@maulsea I think a good approach would be to enable the ability to use all the new names in the existing version, with depreciations for current names that don't match. I could work on a PR for that. Then, pull in this new version, releasing a new major version. Depreciate specifically;
P.S. I did try to think through everything very thoroughly, took over a month to tweak things. No hurry on this, if you need time look through the source... It's has big changes internally! |
FYI, I released a new alpha with support for the And to throw out another possible path forward; transfer ownership of my |
Indeed it makes sense to have it named |
@artsmc @maulsea @jigneshchudasama05 Before I make the transfer, is everyone ok with this plan? Again, I really don't want to create any hard feelings. I'll be sure to add everyone to the repo and npm contributors. |
All good at my & @jigneshchudasama05 On Thu, Mar 10, 2016 at 2:14 AM, Ryan Panning [email protected]
Maulik Bengali |
My one exemption at the moment is maintaining froala options from one location. But outside of that this is solid gold |
@artsmc Can you expand on that? It's basically the same thing as the current Edit: Do you mean not being able to set each option as their own attribute? Ex: |
For example if i declare options=(hash key="foo") in the template |
All options still come through the To expand on that, the So basically, it's up to the developer to decide how to organize options; |
Ok now that makes more sense. Let's go ahead and move forward with this I can help update the readme and we can write up a changelog with depreciation docs |
@stefanneculai do you have slack account setup for Froala I want to move the rest of conversation offline since we are all in agreement we can chat about the details |
@artsmc I added Gitter for this repo to ease communication. I am closing this issue and we shall continue to talk there. |
FYI, ready to transfer, just need to work with @stefanneculai to make it happen. I think temporary admin rights are needed, but I haven't transferred before so I couldn't say for sure. |
the one time I've done this I had the admin rights, so you might be correct On Mon, Mar 14, 2016 at 1:45 PM, Ryan Panning [email protected]
Redberry Mobile, LLC |
For example if i declare options=(hash key="foo") in the template |
I just wanted to make you aware of an alternate Froala Editor addon that I've created. It started out as a way to propose some changes here but I ended up running with it. https://github.com/Panman8201/ember-froala-editor
TLDR; Let's figure out a way to combine this stuff into one addon
Here is a list of the main differences;
content
overvalue
property name, keeps it in-line with what the Froala Editor calls it (with thecontentChanged
event name anyway)content
property to a Froala Editor event,contentChanged
by defaultoptions
overparams
property name, made more sense to call it "options" and keeps it in-line with what Froala Editor actually calls themdefaultOptions
(although I have plans to consolidate it into just theoptions
property, just waiting on a Ember.js bugfix to be released)on-*
eliminates the possibility of attaching a "non-event" listener (ex:{{froala-editor class="foobar"}}
)*-getHtml
plays nicely with the ember(mut)
helper{{froala-editor on-blur="someAction"}}
)false
from the action (when supported by the Froala Editor that is...)ember-cli-font-awesome
addon (and will add a projectdevDependancy
for it) instead of re-inventing the wheelindex.js
importing options are very flexible{{froala-editor}}
is very aware of its current state, being careful not to call handlers and such at the wrong timeAnd beyond the differences, here are some of the added features;
defaultContent
, which itself defaults to<p><br></p>
(which in relation is the actual Froala Editor's default)didRender()
hook overdidInsertElement()
hook)content
andoptions
properties (will properly update the editors HTML for content changes and reinitialize for option changes){{froala-content}}
component to wrap generated HTML in the.fr-view
class (as suggested inthe Froala Editor docs)(froala-method)
helper to wire an editor event and method together(merged-hash)
helper which can be very handy with theoptions
So, where am I going with this? I'd like join forces and merge this stuff together into one addon. My main concern for not providing PR's are the breaking changes (property name differences, event handling altogether,
index.js
option names, etc.). I'm more than willing to add all the existing contributors and transfer ownership of this repo to the froala org. Or do you think there is a better way forward? Or perhaps our opinions are too different to join together.?. Let's discuss.P.S. I'm honestly not trying to step on anyone's toes here, but seen some things with the existing addon that concerned me, which lead me down this road...
The text was updated successfully, but these errors were encountered: