DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

CKEditor Questions, Issues

 35 Replies
 4 Subscribed to this topic
 40 Subscribed to this forum
Sort:
Page 3 of 4 << < 1234 > >>
Author
Messages
New Around Here
Posts: 25
New Around Here
Posted By Will Strohl on 12/6/2022 9:30 PM
Posted By Gothic Wizard on 12/6/2022 4:19 PM

Hi Timo the problem is I ALREADY had AllowedContent  = true. And it is still stripping it out. I found if I manaully add the tags one by one under extraAllowedContent that helps but some things still getting stripped. Any ideas? Bug?

Hello again...!  :)  

Depending on the content you're trying to add to the HTML editor, it will always get stripped out in my experience.  :( 

All online WYSIWYG editors are notorious for that.  This is why a lot of implementations for text editing are moving toward Monaco-style implementations.  Though, that would not be the best editor for most CMSs.  :(  

I stand corrected it is now working, it's just the 'preview' when you go to source back to HTML looks 'stripped' but once I published the article it displayed properly. I did have to add "class,lang,dir,ref_src,script,lang,a href" under allowed extra conent, but it's working. Thank you both for the assist.

My only outstanding issue is getting one of the media embed functions to work. As that would make the whole copy/paste embed code moot as I'd just have te copy/paste the web link. However as I said above when I enter a link I still get "Failed to fetch content for the given URL."

Per the request here is my file settings file, note I replaced all < with a * so it would display properly;

*?xml version="1.0" encoding="utf-8"?>
*EditorProviderSettings xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  *OverrideFileOnUpload>false*/OverrideFileOnUpload>
  *FileListPageSize>20*/FileListPageSize>
  *FileListViewMode>DetailView*/FileListViewMode>
  *DefaultLinkMode>RelativeURL*/DefaultLinkMode>
  *DefaultLinkProtocol>Https*/DefaultLinkProtocol>
  *UseAnchorSelector>true*/UseAnchorSelector>
  *ShowPageLinksTabFirst>false*/ShowPageLinksTabFirst>
  *SubDirs>false*/SubDirs>
  *InjectSyntaxJs>true*/InjectSyntaxJs>
  *BrowserRootDirId>-1*/BrowserRootDirId>
  *BrowserRootDirForImgId>-1*/BrowserRootDirForImgId>
  *UploadDirId>-1*/UploadDirId>
  *UploadDirForImgId>-1*/UploadDirForImgId>
  *ResizeHeightUpload>-1*/ResizeHeightUpload>
  *ResizeWidthUpload>-1*/ResizeWidthUpload>
  *ResizeHeight>-1*/ResizeHeight>
  *ResizeWidth>-1*/ResizeWidth>
  *ToolBarRoles>
    *ToolbarRoles>
      *RoleId>0*/RoleId>
      *Toolbar>Full*/Toolbar>
    */ToolbarRoles>
  */ToolBarRoles>
  *UploadSizeRoles>
    *UploadSizeRoles>
      *RoleId>0*/RoleId>
      *UploadFileLimit>-1*/UploadFileLimit>
    */UploadSizeRoles>
  */UploadSizeRoles>
  *UploadFileSizeLimit>0*/UploadFileSizeLimit>
  *BrowserMode>None*/BrowserMode>
  *Browser>standard*/Browser>
  *ImageButtonMode>StandardButton*/ImageButtonMode>
  *ImageButton>standard*/ImageButton>
  *BrowserRoles>0;Administrators;*/BrowserRoles>
  *SettingMode>Portal*/SettingMode>
  *Config allowedContent="false" autoGrow_bottomSpace="0" autoGrow_maxHeight="0" autoGrow_minHeight="200" autoGrow_onStartup="false" autoParagraph="true" autosave_delay="25" autoUpdateElement="true" baseFloatZIndex="10000" basicEntities="true" blockedKeystrokes="[ CKEDITOR.CTRL + 66, CKEDITOR.CTRL + 73, CKEDITOR.CTRL + 85 ]" browserContextMenuOnCtrl="true" clipboard_defaultContentType="html" colorButton_colors="00923E,F8C100,28166F" colorButton_enableMore="true" contentsLangDirection="Inherit" dataIndentationChars="    " defaultLanguage="en" defaultLinkType="url" dialog_backgroundCoverColor="white" dialog_backgroundCoverOpacity="0.5" dialog_buttonsOrder="OS" dialog_magnetDistance="20" dialog_noConfirmCancel="0" dialog_startupFocusTab="false" disableNativeSpellChecker="true" disableNativeTableHandles="true" disableObjectResizing="false" disableReadonlyStyling="false" div_wrapTable="false" docType="" enableTabKeyTools="true" enterMode="P" entities="true" entities_additional="#39" entities_greek="false" entities_latin="false" entities_processNumerical="false" extraPlugins="dnnpages,wordcount,notification" filebrowserWindowFeatures="location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,scrollbars=yes" filebrowserWindowHeight="70%" filebrowserWindowWidth="80%" fillEmptyBlocks="true" flashAddEmbedTag="false" flashConvertOnEdit="false" flashEmbedTagOnly="false" floatSpaceDockedOffsetX="0" floatSpaceDockedOffsetY="0" floatSpacePinnedOffsetX="0" floatSpacePinnedOffsetY="0" fontSize_sizes="12px;2.3em;130%;larger;x-small" font_names="Arial;Times New Roman;Verdana" forceEnterMode="false" forcePasteAsPlainText="false" forceSimpleAmpersand="false" format_tags="p;h1;h2;h3;h4;h5;h6;pre;address;div" fullPage="false" height="200" htmlEncodeOutput="false" ignoreEmptyParagraph="true" image_previewText="Lorem ipsum dolor..." image_removeLinkByEmptyURL="true" indentOffset="40" indentUnit="px" linkJavaScriptLinksAllowed="false" linkShowAdvancedTab="true" linkShowTargetTab="true" magicline_color="#FF0000" magicline_holdDistance="0.5" magicline_keystrokeNext="0" magicline_keystrokePrevious="0" magicline_putEverywhere="false" magicline_triggerOffset="30" menu_groups="clipboard,tablecell,tablecellproperties,tablerow,tablecolumn,table,anchor,link,image,flash,checkbox,radio,textfield,hiddenfield,imagebutton,button,select,textarea,div" menu_subMenuDelay="400" oembed_maxWidth="0" oembed_maxHeight="0" pasteFromWordCleanupFile="" pasteFromWordNumberedHeadingToList="false" pasteFromWordPromptCleanup="false" pasteFromWordRemoveFontStyles="true" pasteFromWordRemoveStyles="true" protectedSource="[( /[\s\S]*?<\/i>/gi ),( /[\s\S]*?<\/span>/gi ),( /[\s\S]*?<\/em>/gi ),( /

Senior Member
Posts: 1322
Senior Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
Lifesaver
Lifesaver
You're Life Saver!
New Poster
New Poster
Congrats on posting!
3 Engaged Reader
Engaged Reader
You are an engaged reader!

Please realise that you should not use AllowedContent  = true or allow script tags in a configuration that will be used by non admins!
It's a security risk if you do allow script tags to be added.

Senior Member
Posts: 1322
Senior Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
Lifesaver
Lifesaver
You're Life Saver!
New Poster
New Poster
Congrats on posting!
3 Engaged Reader
Engaged Reader
You are an engaged reader!

Can you post some of the links you have issues with?
Also, if you are regularly publishing the same kind of links it's worth it to use a structured content module and not the HTML module.
I use Open Content for that.

New Around Here
Posts: 25
New Around Here
Posted By Timo Breumelhof (40FINGERS) on 12/7/2022 5:16 AM

Can you post some of the links you have issues with?
Also, if you are regularly publishing the same kind of links it's worth it to use a structured content module and not the HTML module.
I use Open Content for that.

https://twitter.com/CP_Ne.../1600671697782407170

https://www.youtube.com/watch?v=TSJSQ4ib1Qw

Really any media link gives me that error. All I need is a twitter and YT post embed ability. Again my work around is copying their share -> embed code. But it would be so much nicer to have this media plugin work. I uploaded all the dependant files so unsure what the issue is. Thanks for any help.

 

 

 

Senior Member
Posts: 1322
Senior Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
Lifesaver
Lifesaver
You're Life Saver!
New Poster
New Poster
Congrats on posting!
3 Engaged Reader
Engaged Reader
You are an engaged reader!

I tried inserting the links a few times and once I got your error the other 5 times they worked.
I do see that my Add Blocker is blocking scripts from YouTube and Twitter, maybe that could be the cause?
(although they are also blocked when the plugin does work)

Senior Member
Posts: 1607
Senior Member
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!
Posted By Timo Breumelhof (40FINGERS) on 12/8/2022 3:06 AM

I tried inserting the links a few times and once I got your error the other 5 times they worked.
I do see that my Add Blocker is blocking scripts from YouTube and Twitter, maybe that could be the cause?
(although they are also blocked when the plugin does work)

Aha! Very good point.  True testing should be done in Incognito/Private mode in this scenario.  :)  

 

New Around Here
Posts: 25
New Around Here
Posted By Timo Breumelhof (40FINGERS) on 12/8/2022 6:06 AM

I tried inserting the links a few times and once I got your error the other 5 times they worked.
I do see that my Add Blocker is blocking scripts from YouTube and Twitter, maybe that could be the cause?
(although they are also blocked when the plugin does work)

 

Just to eliminate that I turned adblock plus off and privacy badger off. Tried a few times and every time I got that message. Didn't work once.

 

 

Senior Member
Posts: 1322
Senior Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
Lifesaver
Lifesaver
You're Life Saver!
New Poster
New Poster
Congrats on posting!
3 Engaged Reader
Engaged Reader
You are an engaged reader!

Hmm, well that's weird. Do you have the option to try in another browser / on another machine / other DNN installation?
 

New Around Here
Posts: 25
New Around Here
Posted By Timo Breumelhof (40FINGERS) on 12/9/2022 2:57 PM

Hmm, well that's weird. Do you have the option to try in another browser / on another machine / other DNN installation?
 

Just to be clear this all correct.

Under ExtraPlugins: dnnpages,wordcount,notification,embedbase,embed,dialogui,dialog,lineutils,widget,oembed,notificationaggregator

and inserted in CKToolbarButtons.xml;

ToolbarName>Embed
ToolbarIcon>embed.png

As far as the setting files that's all that I need to do correct?

 

Senior Member
Posts: 1607
Senior Member
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!
Posted By Timo Breumelhof (40FINGERS) on 12/9/2022 11:57 AM

Hmm, well that's weird. Do you have the option to try in another browser / on another machine / other DNN installation?
 

Beyond using Incognito/Private mode, this is the only way to truly troubleshoot client-side issues.  :) 

 

Page 3 of 4 << < 1234 > >>

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved