dlegr250_material_design 0.5.71 → 0.5.72
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b13319091143291c1b5e4d5747ec618744281f7
|
4
|
+
data.tar.gz: 0c40569f74851d7eae3cae5e702afe4e1e9e2447
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4dfa3b992fb872648aee35cb0bd9d86a56ed72b747652dfcf2aa6cea065ee991e0df1b7159dee147f9dc19354d2d30707888dcdceba8bf7751a5c0778b95c623
|
7
|
+
data.tar.gz: 0b2afc2c92ebaff0d5a4492e24c96abeb262524c14d23f9af8d4a76a9177b19ce1df4f69cee915dc93641067709f8c6d42849c916e42f8f295f9f83c76397386
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dlegr250_material_design
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.72
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel LeGrand
|
@@ -37,7 +37,6 @@ files:
|
|
37
37
|
- lib/dlegr250_material_design.rb
|
38
38
|
- lib/dlegr250_material_design/version.rb
|
39
39
|
- vendor/assets/javascripts/base/init.coffee
|
40
|
-
- vendor/assets/javascripts/components/DEPRECATED_html_editor.coffee
|
41
40
|
- vendor/assets/javascripts/components/combobox.coffee
|
42
41
|
- vendor/assets/javascripts/components/datepicker.coffee
|
43
42
|
- vendor/assets/javascripts/components/dialog.coffee
|
@@ -1,94 +0,0 @@
|
|
1
|
-
class App.MD.DEPRECATED.HtmlEditor
|
2
|
-
constructor: (element, options = {}) ->
|
3
|
-
@$element = $(element)
|
4
|
-
@format = options["format"] || "simple"
|
5
|
-
@templateVariables = options["templateVariables"] || false
|
6
|
-
|
7
|
-
if @format == "full"
|
8
|
-
@options = $.extend({}, @defaultFullSettings(), options)
|
9
|
-
else if @format == "core"
|
10
|
-
@options = $.extend({}, @defaultCoreSettings(), options)
|
11
|
-
else
|
12
|
-
@options = $.extend({}, @defaultSimpleSettings(), options)
|
13
|
-
|
14
|
-
@init()
|
15
|
-
|
16
|
-
init: () ->
|
17
|
-
if @templateVariables
|
18
|
-
@$element.on("froalaEditor.initialized", (e, editor) ->
|
19
|
-
new App.AtWhoWithTemplateVariables(editor.$el)
|
20
|
-
editor.events.on("keydown", (e) ->
|
21
|
-
if (e.which == $.FroalaEditor.KEYCODE.ENTER && editor.$el.atwho("isSelecting"))
|
22
|
-
return false
|
23
|
-
, true)
|
24
|
-
).froalaEditor(@options)
|
25
|
-
else
|
26
|
-
@$element.froalaEditor(@options)
|
27
|
-
|
28
|
-
if @options["focus"] == true || @$element.attr("autofocus")
|
29
|
-
@$element.froalaEditor("events.focus")
|
30
|
-
|
31
|
-
# Simple Settings
|
32
|
-
#----------------------------------------------------------------------
|
33
|
-
|
34
|
-
defaultCoreSettings: () ->
|
35
|
-
{
|
36
|
-
placeholderText: null,
|
37
|
-
enter: 2, # $.FroalaEditor.ENTER_BR
|
38
|
-
heightMin: 100,
|
39
|
-
toolbarBottom: false,
|
40
|
-
toolbarSticky: false,
|
41
|
-
toolbarButtons: @coreToolbarButtons(),
|
42
|
-
toolbarButtonsMD: @coreToolbarButtons(),
|
43
|
-
toolbarButtonsSM: @coreToolbarButtons(),
|
44
|
-
toolbarButtonsXS: @coreToolbarButtons(),
|
45
|
-
}
|
46
|
-
|
47
|
-
coreToolbarButtons: () ->
|
48
|
-
[
|
49
|
-
"bold", "italic", "underline", "|", "formatOL", "formatUL"
|
50
|
-
]
|
51
|
-
|
52
|
-
defaultSimpleSettings: () ->
|
53
|
-
{
|
54
|
-
placeholderText: null,
|
55
|
-
enter: 2, # $.FroalaEditor.ENTER_BR
|
56
|
-
heightMin: 100,
|
57
|
-
toolbarBottom: false,
|
58
|
-
toolbarSticky: false,
|
59
|
-
toolbarButtons: @simpleToolbarButtons(),
|
60
|
-
toolbarButtonsMD: @simpleToolbarButtons(),
|
61
|
-
toolbarButtonsSM: @simpleToolbarButtons(),
|
62
|
-
toolbarButtonsXS: @simpleToolbarButtons(),
|
63
|
-
}
|
64
|
-
|
65
|
-
simpleToolbarButtons: () ->
|
66
|
-
[
|
67
|
-
"bold", "italic", "underline", "color",
|
68
|
-
"|", "insertLink",
|
69
|
-
"|", "formatOL", "formatUL", "outdent", "indent",
|
70
|
-
"|", "clearFormatting"
|
71
|
-
]
|
72
|
-
|
73
|
-
# Full Settings
|
74
|
-
#----------------------------------------------------------------------
|
75
|
-
|
76
|
-
defaultFullSettings: () ->
|
77
|
-
{
|
78
|
-
placeholderText: null,
|
79
|
-
enter: 2, # $.FroalaEditor.ENTER_BR
|
80
|
-
heightMin: 100,
|
81
|
-
toolbarBottom: false,
|
82
|
-
toolbarSticky: false,
|
83
|
-
toolbarButtons: @fullToolbarButtons(),
|
84
|
-
toolbarButtonsMD: @fullToolbarButtons(),
|
85
|
-
toolbarButtonsSM: @fullToolbarButtons(),
|
86
|
-
toolbarButtonsXS: @fullToolbarButtons(),
|
87
|
-
}
|
88
|
-
|
89
|
-
fullToolbarButtons: () ->
|
90
|
-
[
|
91
|
-
"fontSize", "|", "bold", "italic", "underline", "color",
|
92
|
-
"|", "align", "formatOL", "formatUL", "outdent",
|
93
|
-
"indent", "|", "insertLink", "|", "clearFormatting"
|
94
|
-
]
|