Opened 7 years ago

Closed 7 years ago

#16904 closed Bug (invalid)

CKEditor breaks SharePoint TaxonomyWebTaggingControl fields

Reported by: mmc071dotnet Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:


Steps to reproduce

  1. Create a SharePoint application page in Visual Studio
  2. Add a Taxonomy:TaxonomyWebTaggingControl control to the page
  3. Add a script tag referencing ckeditor.js

Expected result

The Taxonomy field should work as normal its not a Textarea field so should not be touched by CKEditor

Actual result

CKEditor modifies the field's html to such an extent that it breaks the functionality of it

Other details (browser, OS, CKEditor version, installed plugins)

Am using SharePoint 2016 and have reproduced the issue using CKEditor and 4.5.11, using standard config and have also tried CKEditor.Net.

The Taxonomy control's html without loading CKEditor on the page is as follows...

<div class="ms-rtestate-write ms-taxonomy-writeableregion ms-inputBox"
 id="ctl00_PlaceHolderMain_ctl01editableRegion" role="textbox" aria-haspopup="true"
 contenteditable="true" aria-autocomplete="both" aria-multiline="true"
 DisableRibbonCommands="True" AllowMultiLines="false" 
<span title="" class="valid-text">Cruise</span></div>

The Taxonomy control's html with loading CKEditor on the page is as follows...

<div tabindex="0" title="Rich Text Editor, ctl00_PlaceHolderMain_ctl01editableRegion" 
class="ms-rtestate-write ms-taxonomy-writeableregion ms-inputBox cke_editable
 cke_editable_inline cke_contents_ltr cke_show_borders"
 id="ctl00_PlaceHolderMain_ctl01editableRegion" role="textbox"
 aria-haspopup="true" aria-describedby="cke_114" style="position: relative;"
 contenteditable="true" spellcheck="false" aria-autocomplete="both"
 aria-label="Rich Text Editor, ctl00_PlaceHolderMain_ctl01editableRegion"
 aria-multiline="true" DisableRibbonCommands="True" AllowMultiLines="false"

Change History (1)

comment:1 Changed 7 years ago by Jakub Ś

Keywords: SharePoint removed
Resolution: invalid
Status: newclosed
Version: 4.5.11

The Taxonomy field should work as normal its not a Textarea field so should not be touched by CKEditor

CKEditor also provides inline editor which by default is auto-created on contenteditable elements. To disable this feature, please use!/api/CKEDITOR-cfg-disableAutoInline.

Please see:!/api/CKEDITOR-method-inline and inlinebycode sample in ckeditor/samples/old

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy