Home > file upload > 'Upload a file'-button in rich text editor does not insert link to document if the document is uploaded to a document library with extra columns

'Upload a file'-button in rich text editor does not insert link to document if the document is uploaded to a document library with extra columns

May 4Hits:17
Advertisement

This was tested on a non-branded, out of the box enterprise wiki page. The behavior is consistent.

Case 1 (as expected): I have an unmodified document library 'Documents' and a pages library 'Pages' with wiki-pages. When I edit a wiki page and in the ribbon choose 'Upload a document', I get the dialog for uploading and choose to upload to the Documents-library. I'm then back on the wiki-page where an document type icon and a link to the uploaded document have been inserted in the text.

Case 2: Same as case 1, but I now have added a site column, e.g. 'URL', to the document library. When I choose to upload a file to the document library I then get another form asking me to fill out the value of the 'URL'-column. After saving the form, I'm returned to the wiki-page, but no link to the uploaded document have been added to the text.

With the browser console open, I see that I get a javascript-error in the file sp.ui.rte.js "Uncaught TypeError: Cannot read property 'newFileUrl' of undefined" after clicking save. As this file is minimized it's a bit hard to specify exactly where it is, but it is in the function $FG_0.

var b=document.createElement("A"); b.href=a.newFileUrl; 

Workaround for now is to remove the extra columns of the document library, but that is unfortunate. Any ideas if it's possible to fix?

Related Articles

  • 'Upload a file'-button in rich text editor does not insert link to document if the document is uploaded to a document library with extra columnsMay 4

    This was tested on a non-branded, out of the box enterprise wiki page. The behavior is consistent. Case 1 (as expected): I have an unmodified document library 'Documents' and a pages library 'Pages' with wiki-pages. When I edit a wiki page and in the

  • uploading image separately versus inside rich text editor

    uploading image separately versus inside rich text editorJune 10

    In our web application we have List/Details and Edit pages On the list page we show default image, and some other short information – Wireframes created with Balsamiq Mockups On the edit page, we have a rich text editor and some other fields like tit

  • Disable media upload in rich text editorMay 30

    I wonder if there any way to disable/remove the Upload/Insert button on the text editor that created on the custom field? I already has a field that handling the file upload, so I just want the text editor to handle text with basic formatting and lis

  • Created a custom image uploader for the Rich Text Editor, but how do I insert the image?August 22

    Some background: I have created a custom image uploader for my rich text editor. I feel like I have taken the functionality most of the way, currently it can: Upload the image to another server Return the URL for that image But what I am having troub

  • Editing Web page in HTML instead of Rich Text editorApril 13

    I've created a page via SITE ACTIONS > CREATE > WEB PAGES > BASIC PAGE. That gave me the Rich Text editor, where I pasted in some stuff text from the platform I'm migrating from (conventional HTML). Note that I copied and pasted via the browser,

  • Expression Engine Rich Text Editor Tools

    Expression Engine Rich Text Editor ToolsMarch 15

    I'm trying to follow along with the rich text editor documentation in expression engine, but it's a little unclear to me: http://ellislab.com/expressionengine/user-guide/development/rte_tools.html I created a php file like this: Class center_text { p

  • Adding rich text editor to my plugin

    Adding rich text editor to my pluginApril 21

    I'm trying to add a rich text editor to my own plugin. So I googled it first of course and I found several answers on dev4press and Stack Overflow. This code displays nothing so I tried another solution. This displays a rich text editor like : This s

  • Is there a way to paste pictures inside the rich text editor, for my enterprise wiki site?September 17

    I have a publishing site collection using the enterprise wiki template. Currently if I have a word document which contain text & images , and I copy all the word document content, after that I paste the content inside the rich text editor , then only

  • Custom text styles for rich text editors load forever

    Custom text styles for rich text editors load foreverJuly 22

    I have created my own custom styles for rich text editors to replace the defaults. I have followed this blog post Here's a sample css style .lzpd-Style-Teaser { -ms-name: "Teaser"; font-family: arial; font-weight: bold; font-size: 14px; color: #

  • How can I make blogger insert p tags instead of br when using rich text editor?August 2

    I don't like how when I'm using the rich text editor in Blogger and I press Enter it inserts a <br > instead of a <p>. Is there any way to get the behavior to change? Or at least is there any way to insert a <p> without switching to the

  • Rich Text Editor Error MessagesOctober 4

    My SharePoint system is experiencing problems when users attempt to edit a web-part text using the Rich Text Editor. Upon selecting "Edit" from the web-part and clicking the "Rich Text Editor" button displayed in the Web-Part configura

  • Simple rich text editor in Text widget?

    Simple rich text editor in Text widget?June 30

    I've seen a few plugins that add rich text editing to the default "Text" Widget. However, all of the ones I've tested are either too complicated (or try to do too much) or don't work properly with the latest WP versions. I'm just looking for a s

  • Disable buttons on rich text input fieldDecember 10

    Is it possible to disable some of the buttons on the rich text editor field on a text field? I have set the editor for the text column to accept rich html input, but want to disable/hide some of the buttons that appear in the ribbon then the text box

  • Rich text editor settings persist throughout all rich text editorsFebruary 6

    I have an issue I'm trying to better understand in order to force mce to true in the script check below. Background: I'm applying a rich text editor to the category description textarea to allow users to apply rich text formatting to the category des

  • Javascript disappearing in sharepoint 2007 when using rich text editorMarch 14

    This may be an easy one. When I add javascript code and HTML to a Sharepoint 2007 content webpart, if I then go in and edit the page using the rich text editor and save, the javascript disappears. Is their a wrapper or something similar I can use to

  • Adding a rich text editor to Excerpt

    Adding a rich text editor to ExcerptJuly 12

    I need add to the excerpt field the TinyMCE Advanced editor, any ideas? I have the qTranslate plugin (multilanguage), and it's impossible to connect teh excerpt with this plugin and an editor. Thanks --------------Solutions------------- Just replace

  • Rich text editor fails when pasting in IE 8 and 9 error 800a025eOctober 5

    We have a solution with a lot of customization. At some point something was added that breaks the rich text editor because now I cannot paste from clipboard using either Ctrl+V or the "Paste" ribbon button. When I try to paste I get this error:

  • Inserting ordered or unordered lists in custom rich text editor breaks the domOctober 24

    I have a div that is part of a custom web part. Once a user clicks an edit-button I want the div to turn into a rich text field to allow the user to edit the contents as they would edit any rich text field in a page. Currently I'm able to create the

  • Default to no styling images in EE's Rich Text EditorJanuary 15

    Is there a way to disable the Rich Text Editor from adding styling to images that are inserted into the field? I am specifically referring to use of the RTE in the administration portal. For example if I add an image it automatically has: <figure sty

  • maximum size of file attachments in rich text fieldsFebruary 4

    When a custom list has a multi line text column which allows rich text, users have the possibility to add files to this rich text field (not as an attachment to the list item, but as attachments to this rich text box). I'm looking for (official if po

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 1.882 s.