Adding HTML Fragment to a Resource

Adding HTML Fragment to a Resource

von Jim Stevenson -
Anzahl Antworten: 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

 

Als Antwort auf Jim Stevenson

Re: Adding HTML Fragment to a Resource

von Martin Dougiamas -
Nutzerbild von Core developers Nutzerbild von Documentation writers Nutzerbild von Moodle HQ Nutzerbild von Particularly helpful Moodlers Nutzerbild von Plugin developers Nutzerbild von 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".