Merge branch 'fix-editor-spaces' into 'master'

Do not emit events when setting editor content

See merge request framasoft/mobilizon!919
This commit is contained in:
Thomas Citharel 2021-04-30 10:21:14 +00:00
commit c335f5d6ad
2 changed files with 3 additions and 3 deletions

View File

@ -1,9 +1,9 @@
FROM elixir:latest
LABEL maintainer="Thomas Citharel <tcit@tcit.fr>"
ENV REFRESHED_AT=2021-02-08
ENV REFRESHED_AT=2021-04-30
RUN apt-get update -yq && apt-get install -yq build-essential inotify-tools postgresql-client git curl gnupg xvfb libgtk-3-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 cmake exiftool
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash && apt-get install nodejs -yq
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash && apt-get install nodejs -yq
RUN npm install -g yarn wait-on
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN mix local.hex --force && mix local.rebar --force

View File

@ -419,7 +419,7 @@ export default class EditorComponent extends Vue {
onValueChanged(val: string): void {
if (!this.editor) return;
if (val !== this.editor.getHTML()) {
this.editor.setContent(val);
this.editor.setContent(val, false);
}
}