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

Update drafts JS to operate as a editor plugin #483

Merged
merged 10 commits into from Jun 4, 2013
Merged

Update drafts JS to operate as a editor plugin #483

merged 10 commits into from Jun 4, 2013

Conversation

Spuds
Copy link
Contributor

@Spuds Spuds commented May 31, 2013

For consideration

This splits the current drafts.js in to two files.

The first is the standard drafts.js which is only used by quick reply when it is not using the editor (e.g. a plain text box). This is a simplified version of the current draft.js.

The new file is drafts.plugin which loads with and is called directly by the editor. It uses the events as provided by the editor instead of trying to add new event handlers external to the editor. This should make the autosave better behaved.

Spuds added 10 commits April 21, 2013 19:15
Signed-off-by: Spuds <spuds@spudsdesign.com>
…quick reply

Signed-off-by: Spuds <spuds@spudsdesign.com>
Signed-off-by: Spuds <spuds@spudsdesign.com>
Signed-off-by: Spuds <spuds@spudsdesign.com>
Signed-off-by:Spuds <spuds@spudsdesign.com>
…ith the header stripped :P

Signed-off-by:Spuds <spuds@spudsdesign.com>
…tsJS

Conflicts:
	themes/CurveClassic/Display.template.php
	themes/CurveClassic/GenericControls.template.php
	themes/default/Display.template.php

Signed-off-by: Spuds <spuds@spudsdesign.com>
Signed-off-by: Spuds <spuds@spudsdesign.com>
Signed-off-by: Spuds <spuds@spudsdesign.com>
Signed-off-by: Spuds <spuds@spudsdesign.com>
@norv
Copy link
Contributor

norv commented Jun 3, 2013

I think this is a much better idea, thank you for working on it! I admit I didn't test the PR, but it makes sense.

Shall we try it? :)

@eurich
Copy link
Member

eurich commented Jun 4, 2013

Shall we try it? :)

yep, merge please, I think it's better than before..

norv added a commit that referenced this pull request Jun 4, 2013
Update drafts JS to operate as a editor plugin
@norv norv merged commit af87026 into elkarte:master Jun 4, 2013
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 this pull request may close these issues.

None yet

3 participants