wickedest / Mergely

Merge and diff documents online
http://www.mergely.com
Other
1.17k stars 228 forks source link

$(...).mergely is not a function #188

Closed jiangyuhang0506 closed 6 months ago

jiangyuhang0506 commented 6 months ago

version:"mergely": "^5.1.1" code: image preview: image

wickedest commented 6 months ago

@jiangyuhang0506, this works for me. was it working previously for you?

jiangyuhang0506 commented 6 months ago

@jiangyuhang0506, this works for me. was it working previously for you?

This is my first time using it and I discovered this issue

wickedest commented 6 months ago

It could be that your intended content block is not id="mergely", or that you didn't include mergely in the webpack. Dunno exactly.

jiangyuhang0506 commented 6 months ago

It could be that your intended content block is not id="mergely", or that you didn't include mergely in the webpack. Dunno exactly. Well, I can retrieve a value using this $('#mergely').text(), indicating thatid="mergely"exists. image image image image image

Is version 5.1.1 not supported for this use

wickedest commented 6 months ago

I see now. No, 5.1.1 no longer requires jquery. I should have realized that earlier. I think you used the mergely-webpack example. I see that the mergely-webpack example is out of date and I need to update it. This is how you instantiate mergely in 5.x.

jiangyuhang0506 commented 6 months ago

我现在明白了。不,5.1.1 不再需要 jquery。我应该早点意识到这一点。我认为您使用了 mergely-webpack 示例。我发现 mergely-webpack 示例已过时,我需要更新它。就是在 5.x 中实例化 mergely 的方式。

The problem has been solved, thank you very much