kolkov / angular-editor

A simple native WYSIWYG editor component for Angular 6 -14+
https://angular-editor.kolkov.ru
MIT License
678 stars 360 forks source link

update uploadUrl dynamic on runtime in editorConfig is not working #46

Open sadiqodho opened 5 years ago

sadiqodho commented 5 years ago
angularEditorConfig: AngularEditorConfig = {
    editable: true,
    spellcheck: true,
    height: '25rem',
    minHeight: '5rem',
    placeholder: 'Enter text here...',
    translate: 'no',
    uploadUrl: 'api/images/upload?cId=' + cId + '&sId=' + sId
  };

Here in above when cId and sId is changed on event. it did not get change in URL. How can I change uploadUrl dynamically?

mvaljento commented 5 years ago

@sadiqodho, Did you ever figure this out?

sadiqodho commented 5 years ago

@sadiqodho, Did you ever figure this out?

From Angular side, I could not update URL but I get to know request url of the page at server side

Srjkaa commented 5 years ago

@sadiqodho @mvaljento @kolkov I can implement OnChanges interface for check is config had been changed and provide a PR for fix this issue.

kolkov commented 5 years ago

@Srjkaa yes, thanks! And check editor initialization please.