[x] Bug report => search github for a similar issue or PR before submitting
[ ] Feature request
[ ] Other, please describe
Tell about your platform
Trumbowyg version : v2.9.4
Vue.js version : 2.5.13
Browser name and version : Doesn't matter which browser, any
This package version : 3.2.0
Current behavior
When sending the content I see that for some reason the content of the editor gets wrapped in ". So if I simply enter test it ends up as "test" when the request is send. Next time I reload the page it ends up with the " inside the editor.
I've even tried to use a computed property and to strip the " but it always ends up with the ".
methods: {
// Helper method to workaround
// https://github.com/ankurk91/vue-trumbowyg/issues/13
trim: (s, c) => {
if (c === "]") c = "\\]";
if (c === "\\") c = "\\\\";
return s.replace(new RegExp(
"^[" + c + "]+|[" + c + "]+$", "g"
), "");
}
},
computed: {
// Workaround for
// https://github.com/ankurk91/vue-trumbowyg/issues/13
editorContent: {
get: () => {
return this.trim(this.content.body, '"');
},
set: (value) => {
this.content.body = this.trim(value, '"');
}
}
},
Expected behavior
That only test is going out without the ".
Minimal reproduction of the problem with instructions
I'm submitting a ... (check one with "x")
Tell about your platform
Current behavior When sending the content I see that for some reason the content of the editor gets wrapped in
"
. So if I simply entertest
it ends up as"test"
when the request is send. Next time I reload the page it ends up with the"
inside the editor.I've even tried to use a computed property and to strip the
"
but it always ends up with the"
.Expected behavior
That only
test
is going out without the"
.Minimal reproduction of the problem with instructions