In Advanced rich text editor, i want to save a image, then how to save the source code of that image which is view in menu bar into a variable?
I want to save below source code into a variable:
But, When I pass a variable in richTextSaveInto, it save like below: (length of characters: 247454)
which is too long to save into DB.
So, I want to save the source code which is view in menu bar
Please anyone suggest !!
Discussion posts and replies are publicly visible
As far as I know, that rich text component does not support your use case. But, why not allow the user to upload that image separately?
Thanks for your reply,
Its a client need to use components or plugins that behave like a Word document in which we can format text, add images and tables.
Are you using (+) Appian Community (Advanced Rich Text Editor (Vuram)) this plugin, it allows image upload
Yes, i am using the same plugin
share your richTextEditorField code snippet.
Here is my code:
richTextEditorField( label: "Advanced Rich Text Editor ", labelPosition: "ABOVE", height: "AUTO", richTextValue: local!tableSaveData, richTextSaveInto: { local!tableSaveData }, isReadOnly: null, showMenubar: true, includeHTMLlength: false(), maxSize: 1400000, placeholder: null, enableSpellChecker: true, showUsageBar: true, uploadedImagesDocIds: null, exportedPdfId: null, enableExportPdf: null ),
Hi,
The variables that you used are invalid as per the current version of the component. As per the documentation, we need a connected system to store images. (Refer 2nd Image).
Image 2:
change col type to longtext and try
Seems like you got your solution. I had the impression that you want to store uploaded images somewhere separately.
I have downloaded the plugins of connected system.
And used the constant of this connected system in richTextEditorField():
But it gives the error:
So, Please suggest if I missed something..
richTextEditorField( label: "Advanced Rich Text Editor ", labelPosition: "ABOVE", height: "AUTO", richTextValue: local!tableSaveData, richTextSaveInto: { local!tableSaveData }, isReadOnly: null, showMenubar: true, includeHTMLlength: false(), maxSize: 1400000, placeholder: null, enableSpellChecker: true, showUsageBar: true, allowImageUpload: true(), imageStorageConnectedSystem: cons!RTE_CONNECTEDSYSTEM_LOCATIONDOC, uploadedImagesDocIds: null, exportedPdfId: null, enableExportPdf: null ),
Upload Images as User in connected system should be valid user.. check that value.