Adding HTML Fragment to a Resource

Adding HTML Fragment to a Resource

by Jim Stevenson -
Number of replies: 1

Hello.

Is there a limit to the size (amount ) of HTML code one can paste into the built-in editor.

I get an error ("

Could not add a new instance of resource

") when I paste from a web page. I'm running on a Windows 2000 Pro box.

 

Thanks,

Jim

 

Average of ratings: -
In reply to Jim Stevenson

Re: Adding HTML Fragment to a Resource

by Martin Dougiamas -
Immàgine de Core developers Immàgine de Documentation writers Immàgine de Moodle HQ Immàgine de Particularly helpful Moodlers Immàgine de Plugin developers Immàgine de Testers
There are two limits that come to mind.

The first is the limit of the text editing area ... it might be 32k (this is a browser-set limit).

The second is the PHP size limit on acceptable form data. This variable is called post_max_size, see moodle/lib/htaccess for more details.

The embedded editor is not really meant for heavy-duty use - I'd recommend saving the original page as a file and uploading it to the course, or otherwise simply linking to it using a resource type "web page".