lakelib 0.4.0 → 0.4.1

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.
package/lib/lake.js CHANGED
@@ -6611,7 +6611,7 @@ function removeBox(range) {
6611
6611
  return box;
6612
6612
  }
6613
6613
 
6614
- var version = "0.4.0";
6614
+ var version = "0.4.1";
6615
6615
 
6616
6616
  // Converts the custom HTML tags to the special tags that can not be parsed by browser.
6617
6617
  function denormalizeValue(value) {
@@ -11552,21 +11552,23 @@ function renderDone(box) {
11552
11552
  });
11553
11553
  const captionNode = renderCaption(box);
11554
11554
  renderFloatingToolbar(box);
11555
- new Resizer({
11556
- root: rootNode,
11557
- target: rootNode,
11558
- onResize: newWidth => {
11559
- boxContainer.css('width', `${newWidth}px`);
11560
- updateBoxMarginBottom(box, captionNode);
11561
- },
11562
- onStop: (newWidth, newHeight) => {
11563
- box.updateValue({
11564
- width: newWidth,
11565
- height: newHeight,
11566
- });
11567
- editor.history.save();
11568
- },
11569
- }).render();
11555
+ if (!editor.readonly) {
11556
+ new Resizer({
11557
+ root: rootNode,
11558
+ target: rootNode,
11559
+ onResize: newWidth => {
11560
+ boxContainer.css('width', `${newWidth}px`);
11561
+ updateBoxMarginBottom(box, captionNode);
11562
+ },
11563
+ onStop: (newWidth, newHeight) => {
11564
+ box.updateValue({
11565
+ width: newWidth,
11566
+ height: newHeight,
11567
+ });
11568
+ editor.history.save();
11569
+ },
11570
+ }).render();
11571
+ }
11570
11572
  });
11571
11573
  }
11572
11574
  var imageBox = {