ponkotsu-md-editor 0.1.26 → 0.1.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6730ee55efac443136f63872557bf43feaa7fa820541351954f8e9fe4b19dbbf
4
- data.tar.gz: 25b97dbbd103ae9ee6f514e1b2c2c4575cdea1aad778b499566d2b04f70b2b53
3
+ metadata.gz: a65b192afe985862cc30596413f33700d73b37554056e49699b8539c2d91b916
4
+ data.tar.gz: 75a37e81090cc5588b0a66e59679499a7ee9c9c48329a41ba803a7e2e6a2c1b2
5
5
  SHA512:
6
- metadata.gz: fac5a317834db75048de901a310eaaaf1d4662d6da3d1cb77bebf1ad7b9874fa030b5283307aad0d928601417780d84579e74a3ed65e749b3b6e64ba54c025cf
7
- data.tar.gz: 8f4ab954655e4bb8e0fd7aa78cd6f3c9549d26dad0e89c1c4227bbe4b0216bd0069a6ba051b9bf06848fac1e05b8b0b1fae4a1bc22b362c936773f0f0ec2f847
6
+ metadata.gz: 0076b2388010cd9d424d2aff825c2e7e0956a2a0d31626194b576f158de9135affa3724d59e39154b577b7302967215bee1d6a2aea265ef9f19383a19f81e861
7
+ data.tar.gz: c582d4020bf52d12cfb2d7c26a253ac9a645874e5ac0d3ee75979a4d94f08ddba3737ed1b8d476e27a3c2563d1f9f462ab5d358550192930708629cf19a2e32d
@@ -74,7 +74,7 @@
74
74
  foundStart = true;
75
75
  }
76
76
 
77
- // Identify end position
77
+ // Identify end position (exclusive)
78
78
  if (!foundEnd && textNode === range.endContainer) {
79
79
  endPos = cumulativeLength + range.endOffset;
80
80
  foundEnd = true;
@@ -116,7 +116,7 @@
116
116
  return {
117
117
  start: startPos,
118
118
  end: endPos,
119
- selectedText: selectedText
119
+ selectedText: fullText.substring(startPos, endPos)
120
120
  };
121
121
  }
122
122
 
@@ -1,7 +1,5 @@
1
1
  <%
2
- _form = locals[:form][:form]
3
- puts "1_form:" + _form.inspect
4
- puts "1locals:" + locals.inspect
2
+ _form = locals[:form]
5
3
  _content = locals[:content]
6
4
  _options = {
7
5
  lang: locals[:options][:lang] || :en,
@@ -1,7 +1,5 @@
1
1
  <%
2
2
  _form = locals[:form]
3
- puts "2_form:" + _form.inspect
4
- puts "2locals:" + locals.inspect
5
3
  _content = locals[:content]
6
4
  _placeholder = locals[:options][:placeholder]
7
5
  %>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PonkotsuMdEditor
4
- VERSION = "0.1.26"
4
+ VERSION = "0.1.28"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ponkotsu-md-editor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.26
4
+ version: 0.1.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - dhq_boiler